[R] Initialize many variables to NUL, check whether an object exist

From: Ng Stanley <stanleyngkl_at_gmail.com>
Date: Mon, 14 Apr 2008 21:47:49 +0800


Two questions:

  1. I need to initialize many variables to NULL. So I created variable_names <- c("a1", "a2"). What can I do to variable_names so that variable a1 is NULL and a2 is NULL ?
  2. How can I check whether an object exist ?


        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
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. Received on Mon 14 Apr 2008 - 13:50:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 14 Apr 2008 - 17:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive