See

        ?body

HTH,

Chuck


On Fri, 7 Dec 2007, piotr iksiński wrote:

I've complex problem and this's idealization of it:

v=1:10

fx<-function(x){
v[x]=v[x]*2}

fy<-function(y){
fx(y)}

for(i in 1:10){
fy(i)}

How to modife expresion (and only that):
{v[x]=v[x]^2}

to achive the redefinetion of the values of vector v, the result should
be: v=(1:10)*2. I think, that could be done with using of internal
functions, but I'm not the programmer.
Thanks for help
pg

----------------------------------------------------
Płyta CD i kartka pocztowa "Pocztówka do Św.Mikołaja 2007" już
w sprzedaży. Kupując tę płytę pomagasz dzieciom
z domów dziecka. wwW.pocztowkadoswietegomikolaja.pl
http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Fpocztowka.html&sid=122

______________________________________________
R-help@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.


Charles C. Berry                            (858) 534-2098
                                            Dept of Family/Preventive Medicine
E mailto:[EMAIL PROTECTED]                  UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901

______________________________________________
R-help@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.

Reply via email to