Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
- 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 in row 3. Show the R command and the output.
- (1 Point) Display everything in rows 6 through 10. Show the R command and the output.
- (1 Point) Display everything in columns 4 through 7. Show the R command and the output.
- (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
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