[R] references in R

From: Jonas Zierer <jonas.zierer_at_campus.lmu.de>
Date: Tue, 24 May 2011 11:16:08 +0200

Hi everybody,

my problem is the following: I have a function which produces for an input number a dataframe with a fixed number of columns and 0 to 10 rows.
Now i want to apply this function to a vector with different inputs and merge all these result-dataframes in one data.frame.

Can i give a data.frame-reference to the function, so that the result of the function is not returned but appended to the given data.frame?

Or i could use lapply, but then i have to find a way to merge the single dataframes in the returned list (the only solution i found for this is a for loop over all list entries and merging them...but there must be a better solution, or?)

thx. bye

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 Tue 24 May 2011 - 09:25:23 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 Tue 24 May 2011 - 10:00:08 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