A problem about saving Rstudio data matrix
0
0
Entering edit mode
20 months ago
yoser4 ▴ 10

hello everyone I have encountered a "strange" problem (possibly because I am a novice and cannot fully understand something)

The problem is as follows: Today I processed some data and finally got a data frame through filtering, filling and other steps. When I saved it, I found that the data I saved was not quite the same as what I "saw" in Rstudio. Originally, in my R, this data frame has less than 80000 rows, but the actual saved data is far more than 80000 rows, and it is about 600000 rows.

I want to know how to export the data frame I "see" to my computer without some other "strange things"

My code for saving data is as follows:

write.table(GeneiASE_input,"scurred_p1_GeneiASE_input.tab",quote = FALSE,row.names = FALSE,col.names = T,sep  ='\t')
data Rstudio matrix • 705 views
ADD COMMENT
0
Entering edit mode

enter image description here

ADD REPLY
0
Entering edit mode

I also found that my data frame does not start from the first line, but from the 4564 line

ADD REPLY
0
Entering edit mode

Are all 600,000 rows populated?

It's gonna be difficult for us to help you with a problem like this without a reproducible example. Follow the steps and advice here and report back.

ADD REPLY

Login before adding your answer.

Traffic: 2426 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