[R] assigning to a list in a package environment

From: Sean Davis <sdavis2_at_mail.nih.gov>
Date: Thu 12 May 2005 - 07:22:03 EST

I have a list in a package environment


to which I would like to make assignments like:

refflat[['a']] <- read.table('fileA.txt') refflat[['b']] <- read.table('fileB.txt')

I am doing this to guard against a local version of refflat hanging around, as I want to refresh it with each new session (and so, want to store it in the package environment). I just can't quite get hot to make that work so that I am storing to the package:refflat rather than any in .GlobalEnv.


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu May 12 16:32:39 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:41 EST