Entering edit mode
6.7 years ago
niutster
▴
110
Hi,
There is a text file called "ref", i want to import this file in R. Used commands are below.Problem is that R removes empty strings , for example my file starts with "", "", "Body".... when i call ref[1], it returns "Body" while ref[1] equals to "".
ref<-read.delim("ref.txt",header=F)
ref<-as.character(ref$V1)