Skip to content

Names of a data set in a package

5 messages · Göran Broström, Gabor Grothendieck

#
For some reason I want to let one data set in a package be known under 
two different names.  Is that possible, and if so, how? I do not want to 
have two copies of the data set in the package.

Thanks,

G?ran
#
2011/4/5 G?ran Brostr?m <gb at stat.umu.se>:
This will allow you to read the data frame under a different name but
you won't be able to modify it under the different name.  We make use
of the built in data frame BOD and create the alternate name BOD2:
[1] 1 2 3 4 5 7
[1] 1 2 3 4 5 7
[1] 99  2  3  4  5  7
#
5 apr 2011 kl. 18.25 skrev Gabor Grothendieck:
Thanks Gabor, but where do I put this in my package? To clarify, I want
and
refer to the same data set.

G?ran
#
2011/4/5 G?ran Brostr?m <gb at stat.umu.se>:
Implement your datasets as .R files.  See ?data and the source to the
quantreg package, say, as it uses .R files for its data.
#
5 apr 2011 kl. 21.01 skrev Gabor Grothendieck:
Gabor, thanks again, I got it! Note though that quantreg nowadays uses .rda files for its data. But in an old version I found the way to do it.

G?ran