Data Input and Dataframes

Elinor Jones, Simon Harden, Michael J. Crawley · 2022

This chapter explores how to import data into R and then, when it has arrived, how to manipulate its default structure, known as a dataframe. R always has a working directory which is where it will attempt to read and write files. When data is read into R from a file, that file will need to have a separator between elements of the dataset. There are many built-in data sets within the datasets package, which is automatically enabled when R is launched. The chapter recommends that the simplest way to organize things is to set the working directory to wherever (directory or folder) the project we are working on is based, as soon as R is started.

Read the paper · More papers on PaperTik