inlist | R Documentation |
This function constructs an IN statement from a mapping file or dataframe. It assumes that the first column of the data contains the list of values to check for.
inlist(inputfile = NULL, header = FALSE)
inputfile |
Dataframe OR path to the mapping file |
header |
If reading a csv file, TRUE if the file includes a header row, FALSE if it does not include a header row. |
A string that represents the constructed CASE statement
input <- Data_Frame <- data.frame(Training = c("Strength", "Stamina",
"Other"))
result <- inlist(inputfile = input, header = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.