how to edit a .rds file in r?
1
0
Entering edit mode
5 months ago
xxxxxxxx ▴ 20

I have a .rds of geo dataset. Is it possible to edit the .rds file and add some columns in its pdata and remove some data from its fdata and exprs file manually?

dataframe r .rds pdata • 291 views
1
Entering edit mode

How about, importing .rds in the R environment and perform the operations on pretty much everything that you are asking (I assume you have accessed the data using GEOquery and your .rds object is an output of the getGEO function therefore you can access all the matrices as dataframe) and save it again!!

1
Entering edit mode
5 months ago
ATpoint 55k

RDS is a storage format based on the saveRDS command, see https://stackoverflow.com/questions/59107717/how-do-i-load-an-rds-file-into-r

Once loaded into R with readRDS it becomes the data object that was saved to disk, so you would need to tell what format you have.