readTidyData: Read in and tidy the data from Fredrickson et al.

Description Usage Arguments Value

Description

This downloads the data from the PNAS website (or from a local CSV file) and performs some basic preprocessing to create 'tidy' data.frames for easy analysis.

Usage

1
  readTidyData(file = "http://www.pnas.org/content/suppl/2014/08/21/1407057111.DCSupplemental/pnas.1407057111.sd02.csv")

Arguments

file

Name of the local CSV file. If left unspecified, defaults to download the data from PNAS.

Value

a list with four elements: Predictors, Genetics, Psychometrics, FactorAssignment, GeneSigns.


dalejbarr/RR53 documentation built on May 14, 2019, 3:30 p.m.