ABCD-STUDY / analysis-nda

Collection of scripts to analyze ABCD release data
42 stars 36 forks source link

eventname factor level before object is there #13

Closed HaukeBartsch closed 5 years ago

HaukeBartsch commented 5 years ago

I adjusted for my needs and then ran all of the scripts on your ABCD site, but I noticed an error or something missing. The first script located here https://github.com/ABCD-STUDY/analysis-nda/blob/master/notebooks/general/merge_data.md has the following command despite there not yet being an object called nda:

We can also sort the levels of eventname by timepoint.

nda18$eventname = factor(nda18$eventname, levels(nda18$eventname)[c(2,4,1,3)])

It seems fine regardless, but I wanted to note that.