Hi Ana, You are making this far too complicated.
load("paired_example.Rdata") ls() str(rawdata) str(treatment) str(patient) load() puts all of them into your current environment. If you assign the result of load() to something, in your example a, that object contains the names of the objects, but the objects themselves are in your workspace. You should probably try a basic R tutorial; it will help you with this kind of thing. Sarah On Fri, Jul 31, 2020 at 10:18 PM Ana Marija <sokovic.anamar...@gmail.com> wrote: > > Hello, > > I have this file: > > a=load("paired_example.Rdata") > > a > [1] "rawdata" "treatment" "patient" > > I can extract "rawdata" with: > dat<-local(get(load("paired_example.Rdata"))) > > Can you please advise how would I extract in data frame "treatment" > and "patient"? > > Thanks > Ana > > ______________________________________________ > R-help@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. -- Sarah Goslee (she/her) http://www.numberwright.com ______________________________________________ R-help@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.