Re: [R] write data from function into external table

From: Dimitris Rizopoulos <>
Date: Wed 14 Jun 2006 - 20:59:39 EST

maybe you're looking for something like,

test <- 1:3
testfct <- function(x){

    x[1] <- 100

I hope it helps.


Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium

Tel: +32/(0)16/336899
Fax: +32/(0)16/337015

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
web mailing list PLEASE do read the posting guide!

Disclaimer: mailing list PLEASE do read the posting guide! Received on Wed Jun 14 20:58:18 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 Wed 14 Jun 2006 - 22:11:58 EST.

Mailing list information is available at Please read the posting guide before posting to the list.