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/importomics documentation built on Oct. 29, 2024, 3:19 p.m.