I would like to identify binary columns in a data.frame.
For example, this table
my.table <-read.table(text="a,b,c
0,2,0
0.25,1,1
1,0,0", header=TRUE, as.is=TRUE,sep = ",")
would give FALSE, FALSE, TRUE
I would like to identify binary columns in a data.frame.
For example, this table
my.table <-read.table(text="a,b,c
0,2,0
0.25,1,1
1,0,0", header=TRUE, as.is=TRUE,sep = ",")
would give FALSE, FALSE, TRUE