gather_response.data.frame: Convert response data from a data frame into tidy format

Description Usage Arguments Value Examples

Description

Convert response data from a data frame into tidy format

Usage

1
2
3
## S3 method for class 'data.frame'
gather_response(x, sample_ids = NULL,
  compound_ids = NULL, endpoints = NULL, resp_ids = NULL)

Arguments

x

a data frame in either resp_df or tall_df format

sample_ids

A vector of sample ids. Default is NULL (don't filter on sample id)

compound_ids

A vector of compound ids. Default is NULL (don't filter on compound id)

endpoints

A vector of endpoints. Default is NULL (don't filter on endpoint)

resp_ids

A vector of response ids. Default is NULL (don't filter on response id)

Value

a data frame in tall_df format

Examples

1
2
3
4
5
data('dietlein_data')
gather_response.data.frame(dietlein_data, sample_ids=c('NCIH1703_LUNG', 'NCIH1792_LUNG'))
gather_response.data.frame(dietlein_data, compound_ids='KU60648')
gather_response.data.frame(dietlein_data, endpoints='pGI50')
gather_response.data.frame(dietlein_data, resp_ids='KU60648_pGI50')

chapmandu2/biotidyr documentation built on May 13, 2019, 3:29 p.m.