Question: Using Script 3.2 below and USING R-STUDIO (1 Point) Display everything in column 2. Show the R command and the output. (1 Point) Display everything

  1. Using Script 3.2 below and USING R-STUDIO

  1. (1 Point) Display everything in column 2. Show the R command and the output.
  1. (1 Point) Display everything in row 3. Show the R command and the output.
  1. (1 Point) Display everything in rows 6 through 10. Show the R command and the output.
  1. (1 Point) Display everything in columns 4 through 7. Show the R command and the output.
  1. (1 Point) Display columns 3 through 6 for rows 11 through 15. Show the R command and the output.

# Script 3.2 Row and Column Manipulation

ccp.data <- ccpromo ccp.data # List entire data frame ccp.data[1] # Everything in column 1 ccp.data[1,] # Everything in row 1 ccp.data[,1] # Everything in column 1 ccp.data[1:5,] # Rows 1 through 5 ccp.data[,1:5] # Columns 1 through 5 ccp.data[1:3,1:3] # Columns and rows 1 through 3 ccpNew.data <-ccp.data[-c(2,3,4)] # Remove columns 2,3,and 4 ccpNew.data

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!