Question
Use the R package UsingR to download the data file (called aid) about monthly payment for federal program to R. Use R code to check
Use the R package "UsingR" to download the data file (called "aid") about monthly payment for federal program to R.
Use R code to check whether it is a vector or matrix. Then assign "payment" as a vector based on the payment amounts only by removing the names of the states.
Use the appropriate vector functions to rank, to sort, and to order the payment vector. Call these vectors as rank.payment, sorted.payment, and ordered.payment, Then use R code to make a dataframe (or table) out of these four vectors.
Use R code to save the dataframe or table in the text file called "table.txt" in your working directory.
Use R code to find the name of the states with highest and lowest payment.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started