search for: iogic

Displaying 1 result from an estimated 1 matches for "iogic".

Did you mean: logic
2008 Jul 18
1
only "T" becomes logical colum with read.table
...le below) Sometimes a column is composed of only "T" and in that case, the columns becomes a logical column TRUE (example below) I know that the argument "as.is" controls the turns off turning a column into a factor, instead becoming a character Is there something similar for Iogical? (I could not find it) I can solve this problem by doing something like: # FUN.changeLogi <- function(df){ if(identical(all.equal(all(df), T), T)) df <- 'T' return(df) } xx <- do.call('cbind', lapply(xx, FUN.changeLogi)) but it seems very cumbersome… Thanks, Tiago...