Off topic:read.delim() removes empty stringd
0
0
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)
R text file empty_strings • 936 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1610 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6