logical2factor | R Documentation |
logical to factor
logical2factor(x, true = get_name_in_parent(x), false = paste0("not", true))
factor2logical(x)
x |
logical vector |
true |
string : truelevel |
false |
string : falselevel |
factor
t1up <- c( TRUE, FALSE, TRUE)
t1 <- c('flat', 'down', 'up' ) %>% factor(., .)
t1up
logical2factor(t1up)
factor2logical(t1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.