Hi,
I'm trying to understand when and how to use do.call().
In this case, would it work with do.call() instead of lapply(), like this?
vars <- list(names(Tmese[, -(1:2)]))
res <- do.call(idw.cv, vars)
Thanks,
Ivan
Le 12/14/2010 11:48, Liviu Andronic a écrit :
On Tue, Dec 14, 2010 at 10:34 AM,
On Tue, Dec 14, 2010 at 10:34 AM, Annalaura wrote:
>
> Thanks a lot Uwe Ligges, I've abandoned R for a few time but now I'm working
> with it, so I've a question about the last problem that you solved: instead
> to write
> cv_1994<- idw.cv("X01_1994")
> cv_1995<- idw.cv("X01_1995")
> cv_1996<- idw
Thanks a lot Uwe Ligges, I've abandoned R for a few time but now I'm working
with it, so I've a question about the last problem that you solved: instead
to write
cv_1994<- idw.cv("X01_1994")
cv_1995<- idw.cv("X01_1995")
cv_1996<- idw.cv("X01_1996")
cv_1997<- idw.cv("X01_1997")
.
On 24.09.2010 17:51, Annalaura wrote:
Hi, I need help!
I am trying to iterate an iterative process to do cross vadation and store
the results each time.
I have a Spatial data.frame, called Tmese
str(Tmese)
Formal class 'SpatialPointsDataFrame' [package "sp"] with 5 slots
..@ data :
Hi, I need help!
I am trying to iterate an iterative process to do cross vadation and store
the results each time.
I have a Spatial data.frame, called Tmese
> str(Tmese)
Formal class 'SpatialPointsDataFrame' [package "sp"] with 5 slots
..@ data :'data.frame': 14 obs. of 17 variables:
.
try something like this using 'list'
results.dataset <- list()
for(i in tracks)
{
a <- (subset(data, data$Id==i))
result.dataset[[i]] <- function(a, other.arguements)
### this function is the other iterative process, but its in another script
and is imported in so dont wo
Dear All,
I am trying to iterate an iterative process (i know R is not the best place
for so much looping but i have to so tough!) and store the resulting data
from each iteration to then be graphed. In simple form the script looks like
this
for(i in tracks)
{
a <- (subset(d
7 matches
Mail list logo