meta_ID_match: This function determines which participant names match...

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This function determines which participant names match between the meta and otu.counts/otu.normed data frames.

Usage

1

Arguments

data

metadata or any other data frame with a participant ID column

otu

otu.normed, otu.counts or any other data frame with a participant ID column

Details

All inputs must have a study_id column

Value

The output is a list of 'study_id's that match between the two inputs

Author(s)

atomczik

See Also

meta_ID_error

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (data, otu) 
{
    data.match = subset(data, !(is.na(pmatch(data$study_id, names(otu)))))
    return(data.match)
  }

dlemas/microbes documentation built on May 15, 2019, 9:15 a.m.