Statsbook

Data into R

There are three options to get data into R:

It is best to have no spaces in variable names as otherwise the whole name . In a spreadsheet, the variable names are stored in the first row. If the variable name contains a space, this space will be converted to a full stop “.”.  However, it is generally preferable not to use spaces in variable names and adhere to conventions such as:

See also:

Importing and Cleaning Data in R