Question: Suppose that we read a csv file called 'mpg' into R.The file has 6 variables and 150 rows.Which of the following is the correct command
Suppose that we read a csv file called 'mpg' into R.The file has 6 variables and 150 rows.Which of the following is the correct command to use in R if we would like to print out the first 6 rows of columns 1, 2 and 3 ?
a.acct[1-6,3]
b.acct[1:6,1:3]
c.acct[1:3,1:6]
d.acct[1-6,1,2,3]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
