[R] Re turning variable names with variables (in a function)

From: Stropharia <stevenworthington_at_hotmail.com>
Date: Thu, 08 May 2008 05:20:39 -0700 (PDT)

Dear R Users,

I have written a function that returns 4 variables. I would like to have the variables returned with their variable names, is this possible?

This returns (or something like this, depending on the value of T):

[1] 0.004998685 0.059797422 0.040202578 0.099973695

I would like:

[1] se=0.004998685 upper=0.059797422 lower=0.040202578 cv=0.099973695

Or even better:

se                 upper             lower            cv
0.004998685 0.059797422 0.040202578 0.099973695

Any help is much appreciated, thanks.


Steven Worthington
Ph.D. Candidate
New York Consortium in
Evolutionary Primatology &
Department of Anthropology
New York University
25 Waverly Place
New York, NY 10003
View this message in context: http://www.nabble.com/Returning-variable-names-with-variables-%28in-a-function%29-tp17124874p17124874.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 08 May 2008 - 12:38:33 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 Thu 08 May 2008 - 13:30:35 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