Question: Generate an R program and name it hw 1 . R that creates a character vector, c 1 , with 7 values and 2 numeric

Generate an R program and name it hw1.R that creates a character vector, c1, with 7 values and 2 numeric vectors, v1 and v2, with 7 values each. Use the cbind() statement to create a data frame named hw1. Add a 4th variable to hw1, v3, that adds the 2 numeric vectors together. Include program statements in hw1.R that find the minimum of v3 and the maximum of v3. Submit the R program and the text output.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!