[R] write data from function into external table

From: Sebastian Leuzinger <Sebastian.Leuzinger_at_unibas.ch>
Date: Wed 14 Jun 2006 - 20:41:34 EST

Dear list,
My apologies if a solution / explanation to this already exists on the list, but it is difficult to assign it to a certain keyword.

testfct <- function(x) {test[1]<-100}
[1] 1 2 3

[1] 1 2 3

Basically, I would like to write data into an external table that the function does not know. Why is this not working / what alternatives exist?

Thanks, Sebastian

Sebastian Leuzinger
University of Basel, Department of Environmental Science Institute of Botany
Schönbeinstr. 6 CH-4056 Basel

ph 0041 (0) 61 2673511
fax 0041 (0) 61 2673504
email Sebastian.Leuzinger@unibas.ch
web http://pages.unibas.ch/botschoen/leuzinger

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 Wed Jun 14 20:45:47 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 15 Jun 2006 - 00:12:04 EST.

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