Marsh Hardy ARA/RISK
2018-Jan-27 04:54 UTC
[R] Newbie wants to compare 2 huge RDSs row by row.
Each RDS is 40 MBs. What's a slick code to compare them row by row, IDing row numbers with mismatches? Thanks in advance. //
Hi Marsh, An RDS is not a data structure such as a data.frame. It can be anything. For example if I want to save my objects a, b, c I could do:> saveRDS( list(a,b,c,), file="tmp.RDS")Then read them back later with> myList <- readRDS( "tmp.RDS" )Do you have additional information about your "RDSs" ? Eric On Sat, Jan 27, 2018 at 6:54 AM, Marsh Hardy ARA/RISK <mhardy at ara.com> wrote:> Each RDS is 40 MBs. What's a slick code to compare them row by row, IDing > row numbers with mismatches? > > Thanks in advance. > > // > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/ > posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
Also, it will be easier to provide helpful information if you'd describe what in your data you want to compare and what you hope to get out of the comparison. Best wishes, Ulrik Eric Berger <ericjberger at gmail.com> schrieb am Sa., 27. Jan. 2018, 08:18:> Hi Marsh, > An RDS is not a data structure such as a data.frame. It can be anything. > For example if I want to save my objects a, b, c I could do: > > saveRDS( list(a,b,c,), file="tmp.RDS") > Then read them back later with > > myList <- readRDS( "tmp.RDS" ) > > Do you have additional information about your "RDSs" ? > > Eric > > > On Sat, Jan 27, 2018 at 6:54 AM, Marsh Hardy ARA/RISK <mhardy at ara.com> > wrote: > > > Each RDS is 40 MBs. What's a slick code to compare them row by row, IDing > > row numbers with mismatches? > > > > Thanks in advance. > > > > // > > > > ______________________________________________ > > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide http://www.R-project.org/ > > posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]