jim holtman:
> You might want to look at how to use 'lapply' to create lists. Here
> is one way of doing it:
>
> > # create test data
> > a_threshold <- b_threshold <- as.data.frame(matrix(sample(c(1:5,
> NA), 100, TRUE), 10))
> > classification <- c('a', 'b')
> > result <- lapply(classificatio
You might want to look at how to use 'lapply' to create lists. Here is one
way of doing it:
> # create test data
> a_threshold <- b_threshold <- as.data.frame(matrix(sample(c(1:5, NA), 100,
TRUE), 10))
> classification <- c('a', 'b')
> result <- lapply(classification, function(.cls){
+ colSum
Hi R-list.
This is my first post. I'll try to be as precise as possible with the
difficulty I have to "get things done".
I have a hard time trying to construct a double "for" loop and create
within the inner loop new objects (in this case vectors).
I posted this question in a non-directly relate
3 matches
Mail list logo