subset_data: Find the subset of two datafraomes

Description Usage Arguments Examples

View source: R/mpred_function.R

Description

This function allows you to extract the metabolites are being measured in both dataset that you are interested in.

Usage

1
2
subset_data(df1, df1_sampleinfo, df2, df2_sampleinfo,
  df1_sample_name = "SAMPLE_NAME", df2_sample_name = "SAMPLE_NAME")

Arguments

df1

dataframe 1

df1_sampleinfo

sample information about dataframe1

df2

dataframe 2

df2_sampleinfo

sample information about dataframe2

df1_sample_name

the variable name for sample name, vary for each dataset Default is sampleinfo.SAMPLE_NAME

df2_sample_name

the variable name for sample name, vary for each dataset Default is sampleinfo.SAMPLE_NAME

Examples

1
2
3
4
5
list <- subset_data(df1 = RC12, df1_sampleinfo = RC12_sampleinfo, df2 = RC18, df2_sampleinfo = RC18_sampleinfo, df1_sample_name = "SAMPLE_NAME",  df2_sample_name = "SAMPLE_NAME")
RC12_tumor_match <- list[[1]]
RC18_tumor_match <- list[[2]]
RC12_normal_match <- list[[3]]
RC18_normal_match <- list[[4]]

czang97/mpred documentation built on July 9, 2019, 2:38 p.m.