View source: R/combine_analyses.R
combineDataframes | R Documentation |
The function adds a column "condition" and/or "channel" to each dataframe in the given *listofdataframes*, after which it concatenates all dataframes. If not all columns in the dataframes match, it discards the columns which don't match. The function returns the concatenated dataframe "finalframe" and the original list of dataframes with the "condition" and/or "channel" column added to each dataframe.
combineDataframes(listofdataframes, listofconditions, listofchannels, output="finalframe")
listofdataframes |
list of dataframes of which the common columns need to be combined |
listofconditions |
list of conditions corresponding to each dataframe. Needs to have the same order and length as listofdataframes. |
listofchannels |
list of channels corresponding to each dataframe. Needs to have the same order and length as listofdataframes. |
output |
when output = "all", both 'finalframe' and 'originaldata' will be in the output list. when output = "finalframe" or "originaldata", only the given data will be in the output list. |
finalframe |
concatenated dataframe with columns "condition" and/or "channel" added |
originaldata |
the input list of dataframes with columns "condition" and/or "channel" added |
Renske van Raaphorst
## Not run:
##download example data from https://veeninglab.com/f/example_data.zip:
##VanFL_objDM.rda
##VanFL_objWT.rda
load("VanFL_objDM.rda")
load("VanFL_objWT.rda")
##find the data documentation on https://veeninglab.com/bactmap
combined <- combineDataframes(list(VanFL_objDM, VanFL_objWT),
listofconditions = list("mutant", "WT""))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.