On Nov 4, 2011, at 1:50 PM, "Francois Pepin"
wrote:
> Hi,
>
> assign is your friend here:
> apply(data,1,function(x)assign(x[1],x[2],envir = .GlobalEnv))
>
> As a note, you probably don't want to use data as a variable because it
> overwrites the data function, leading to unwanted side-effe
Hi,
assign is your friend here:
apply(data,1,function(x)assign(x[1],x[2],envir = .GlobalEnv))
As a note, you probably don't want to use data as a variable because it
overwrites the data function, leading to unwanted side-effects if you ever use
it.
Cheers,
François Pepin
Scientist
Sequenta,
Hi,
Did you program in SAS previously? :)
You don't really want data.frame but a named list (note that data frames
are lists but for columns).
mypars <- as.list(value)
names(mypars) <- param
mypars$max_pct
If you really want to use data.frame you can assign rownames and access
parameters throu
3 matches
Mail list logo