Description Usage Arguments Details Value Author(s) Examples
View source: R/General_Utils.R
find a column in a dataframe where it is a priori unkown wether the column is present or not.
1 | find.dataset(dataset, TermsList = c())
|
dataset |
data.frame. A dataframe where to find a column based on the columnames |
TermsList |
a character vector with the columnnames to look for. They will be handled in the order given, and the search will stop at the first match |
An internal function to find information in incomming data of which the format and content is unknown
a character vactor with the content of the matching column (or the first match), or an empty vector
Maxime Sweetlove
1 | find.dataset(dataset=data.frame(var1=1:3, var2=1:3), "var2")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.