...
- set the working directory using
setwd
and read the dataset into R and assign it the variablesim.alspac
using theread.csv
function - Look up the
colnames
function in the help file and apply it tosim.alspac
to list all the column headings in the data. - Look up the
dims
dim
function in the help file and apply it to tosim.alspac
to get the dimensions of the dataset. Number of columns is the number of variables, number of rows is the number of participants.
...