CrumpLab / psyc7709_2019

Course website for PSYC 7709 - Using R for Reproducible Research (taught by Matt Crump 2019)
https://crumplab.github.io/psyc7709_2019/
1 stars 7 forks source link

Data wrangling basic code issue #11

Open 13vasquezan opened 5 years ago

13vasquezan commented 5 years ago

I kept getting an error from the flanker data we zipped. At first there was an error with library(data.table)- saying data.table was not a package. So then I deleted that but now, see picture below, even though I have put the data in a Flanker Data folder I now have an error on a function(fread) so that I can separate that data into the columns etc you provided.

screen shot 2019-03-06 at 1 18 09 pm

CrumpLab commented 5 years ago

It sounds like you need to first install the data.table package.

Go to the packages tab in R-studio, then choose install. Type data.table, and install with dependencies.

After you have data.table installed, you should be able to load it using library(data.table. You will need to put library(data.table back into your .rmd file, as the fread function is inside that library.

13vasquezan commented 5 years ago

You were right I did not have that installed as a package. It works now. Thank you!