ptt_select | R Documentation |
Only removes columns that contain variable SSS. Note that the data has to have codes.
ptt_select(data, ..., SSS = FALSE)
data |
data.frame to modify |
... |
chr, column names to select |
SSS |
logical, whether to leave SSS to selected columns |
data.frame
data <- cbind(tidyr::crossing(var1 = c("SSS", 1, 2),
var2 = c("SSS", "a", "b"),
var3 = c("SSS", "c", "d")),
value = rnorm(27))
data |> ptt_select(var3, value)
data |> ptt_select(var2, var3, value)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.