Question: (Closed) read.delim() removes empty stringd
0
gravatar for niutster
3.3 years ago by
niutster100
niutster100 wrote:

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)
empty_strings text file R • 704 views
ADD COMMENTlink written 3.3 years ago by niutster100

Can you show part of the file?

ADD REPLYlink written 3.3 years ago by st.ph.n2.5k

Hello niutster!

We believe that this post does not fit the main topic of this site.

This is not a bioinformatics question. Please search StackOverflow

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

ADD REPLYlink written 3.3 years ago by RamRS30k
Please log in to add an answer.
The thread is closed. No new answers may be added.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1448 users visited in the last hour