R Basics

  1. The first thing to do whenever we are working on a project, is setting our working directory. This will allow us to bring the information needed from the datasets that are located within the directory selected. To do this we can use setwd("") and adding the location in between the parentheses

Example

 setwd("~/Desktop/Satistics for linguistics/Stat2")
  1. Once the dictionary is set, we can upload the dataset to the Global Environment by using the function read.delim("") and adding stringsAsFactors to turn categorical variables into factors as shown below:
x <- read.delim(file="_inputfiles/03_RT.csv", stringsAsFactors=TRUE)