I am exporting data from R with the command:
write.table(output,file = "data.raw", na "-9999", sep = "\\t", row.names = FALSE, c
If there are multiple columns, you could use set (using @josilber's example)
set
library(data.table) Cols <- which(sapply(dat, is.logical)) setDT(dat) for(j in Cols){ set(dat, i=NULL, j=j, value= as.numeric(dat[[j]])) }