findMaxMinColumnNamesForEachRow | R Documentation |
Find the column name of maximum/minimum value for each row
findMaxMinColumnNamesForEachRow(
df,
max = FALSE,
min = FALSE,
ties.method = c("random", "first", "last"),
specified.column = NULL
)
df |
A dataframe |
max |
Default FALSE |
min |
Default FALSE |
ties.method |
"random", "first", "last" |
specified.column |
Numeric vector. Which columns want to be checked |
data(LIRI)
df = LIRI
res <- loonR::findMaxMinColumnNamesForEachRow(df, min = T, specified.column = 3:6)
res
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.