logical2factor: logical to factor

logical2factorR Documentation

logical to factor

Description

logical to factor

Usage

logical2factor(x, true = get_name_in_parent(x), false = paste0("not", true))

factor2logical(x)

Arguments

x

logical vector

true

string : truelevel

false

string : falselevel

Value

factor

Examples

t1up <- c( TRUE,   FALSE,  TRUE)
t1   <- c('flat', 'down', 'up' )  %>%  factor(., .)
t1up
logical2factor(t1up)
factor2logical(t1)

bhagwataditya/autonomics documentation built on Nov. 1, 2024, 5:47 a.m.