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 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.
>
Charles C. Berry (858) 534-2098
Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901