compile_data: Compile data and meta-data to wide format

Description Usage Arguments Details Value Author(s)

View source: R/compile_data.R

Description

Compiles data with meta-data using the standardized sample names. The compiled datasets can be readily exported as Excel sheets.

Usage

1
compile_data(dat, meta, na.rm = TRUE)

Arguments

dat

A MarineDatabase data object. A data file that has passed through one of the process data functions in the MarineDatabase package, such as process_cdom_data.

meta

A MetaData object.

na.rm

Logical indicating whether sample names that are missing from meta-data should be removed. Defaults TRUE.

Details

The sample_name column is used to merge data. Sample names in dat and meta have to match and be unique.

Value

Returns a data frame that contains all entries in dat that could be merged with meta.

Author(s)

Mikko Vihtakari


MikkoVihtakari/MarineDatabase documentation built on Oct. 23, 2018, 4:16 p.m.