Description Usage Arguments Examples
View source: R/mpred_function.R
This function allows you to extract the metabolites are being measured in both dataset that you are interested in.
1 2 | subset_data(df1, df1_sampleinfo, df2, df2_sampleinfo,
df1_sample_name = "SAMPLE_NAME", df2_sample_name = "SAMPLE_NAME")
|
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 |
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]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.