Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribedimage text in transcribedimage text in transcribed
Directions: SHOW ALL WORK. You may use R for computations, but no other software (and in particular, not the Internet). If you use R to calculate something, then hand write the R code that you typed, together with the numerical answer. 1. Elongation of steel plates treated with nickel are random with probability density function f(3) = 350 0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Precalculus, Enhanced

Authors: Cynthia Y Young

3rd Edition

1119339510, 9781119339519

More Books

Students also viewed these Mathematics questions