transform01Logical | R Documentation |
takes logical data and replaces it with an alternative, eg "Yes" and "No"
transform01Logical(data, alternative = c("No", "Yes"), na.alternative = " ")
data |
data to be transformed, should be logicalm but can be 1's and 0's (internally these will be transformed into TRUE's and FALSE's respectively) |
alternative |
specifies what to transform TRUE (element 2) or FALSE (element 1) into |
na.alternative |
specifies what to use if NA is encountered transform01Logical(c(T,F,F,T)) transform01Logical(c(1,0,0,1)) |
data with alternatives in stead of TRUE/FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.