metadata_long_form: convert all metadata.tsv files in package to long form

metadata_long_formR Documentation

convert all metadata.tsv files in package to long form

Description

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.

Usage

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(s)

Sean Davis <seandavi@gmail.com>

Examples

ret = metadata_long_form()
dim(ret)
ret
table(ret$study)
summary(ret)


waldronlab/curatedMetagenomicDataCuration documentation built on June 9, 2025, 3:56 p.m.