Wonderful!!
TY so much for the help.
> -Original Message-
> From: Patrizio Frederic [mailto:frederic.patri...@gmail.com]
> Sent: Thursday, May 13, 2010 10:47 AM
> To: arnaud Gaboury
> Cc: r-help@r-project.org
> Subject: Re: [R] access objects in my environment
>
Hi,
have a look at function 'get' (and function 'assign' too)
In your example:
x <- 1000
assign(paste('Pos',x,sep=''),rnorm(100))
Pos1000
posa <- get(paste(c("Pos",x),collapse=""))
posa
hope it's help
PF
On Thu, May 13, 2010 at 10:37 AM, arnaud Gaboury
wrote:
> Dear group,
>
> Here are my obj
Dear group,
Here are my objects in my environment:
> ls()
[1] "Pos100415" "Pos100416" "posA" "pose15""pose16""pose16t"
"position" "trade" "x"
I need to pass the object "Pos100415" to a function. This element is a
data.frame, obtained through a function: Pos(x)<-myfun(x) with
3 matches
Mail list logo