This function runs through the metadata.tsv files in the installed package, running `study_long_form()` on each, then binds them together, appending a `study` column.

metadata_long_form()

Value

a data.frame with the following columns:

- study - sampleID - subjectID - variable: the column name from the wide-form data - numeric_value: if a numeric value, this value will be non-NA - string_value: if a character value, this value will be non-NA - logical_value: if a logical value, this value will be non-NA

Author

Sean Davis <seandavi@gmail.com>

Examples

ret = metadata_long_form()
#> Warning: Unknown or uninitialised column: `sampleID`.
#> Error: Assigned data `as.character(df$sampleID)` must be compatible with existing data.
#>  Existing data has 24 rows.
#>  Assigned data has 0 rows.
#>  Only vectors of size 1 are recycled.
dim(ret)
#> Error in eval(expr, envir, enclos): object 'ret' not found
ret
#> Error in eval(expr, envir, enclos): object 'ret' not found
table(ret$study)
#> Error in table(ret$study): object 'ret' not found
summary(ret)
#> Error in summary(ret): object 'ret' not found