[R] load and

Rui Barradas ruipbarradas at sapo.pt
Sat Nov 19 18:53:34 CET 2016


1) You don't need to do t1 = load(...), use just load(...). The objects 
saved in the file will be created with the same name they had when they 
were saved.
2) If the object dat256 was not found try

file_dat256 <- file.choose()
load(file = file_dat256)

Hope this helps,

Rui Barradas

Em 19-11-2016 17:14, Val escreveu:
> Hi all,
> I have two *.RData  objects saveds in different time. They do have the
> same number of columns but different number of rows. I was trying to
> load and compare the two files by the first columns but face problem.
> t1=load(file="dat.RData")
> t2=load(file="dat256.RData")
> Error: object 'dat256' not found
> How do I fix this one and compare the two files?
>   thank you 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.

More information about the R-help mailing list