How to merge three .RData files with same object name in R -
i new user of r. have 3 rdata files same object name , want merge have 1 .rdata file 1 object name.
example:
- file1.rdata object name a
- file2.rdata object name a
- file3.rdata object name a
and result should
- file.rdata = object a
i tried rbind , merge command, nothing working.
you need save them new objects load each, merging. example, here, create list hold objects. then, load each, add version list.
listforfiles <- list() load("file1.rdata") listforfiles[[1]] <- load("file2.rdata") listforfiles[[2]] <- load("file3.rdata") listforfiles[[3]] <-
then, can use listforfiles
merging. since don't kind of object these are, can't suggest approach.
Comments
Post a Comment