This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how to edit a .rds file in r?

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

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 answer

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.

Log in to answer this question.