Description Usage Arguments Examples
Determines the names or locations (i.e., index) of particular types of columns.
1 2 3 4 5 6 7 | which_numeric(x, names = TRUE)
which_factor(x, names = TRUE)
which_character(x, names = TRUE)
which_integer(x, names = TRUE)
|
x |
A data frame (ideally), but list-like objects should work too. |
names |
Logical indicating whether to return names ( |
1 2 3 4 5 6 | which_numeric(iris)
which_factor(iris)
d <- data.frame(x = 1:3, y = c("a", "b", "c"), stringsAsFactors = FALSE)
which_integer(d)
which_numeric(d)
which_character(d)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.