?any
For example,
> X <- matrix(1:9,nrow=3)
> X
[,1] [,2] [,3]
[1,]147
[2,]258
[3,]369
> any(X==5)
[1] TRUE
> any(X==10)
[1] FALSE
On 10/1/07, Svempa <[EMAIL PROTECTED]> wrote:
>
>
> Thank you, though one small problem remains. How do I define the criter
Thank you, though one small problem remains. How do I define the criteria so
that it searches through every value in the matrices? As for now it only
looks at the first [1,1] value of the matrices.
jholtman wrote:
>
> Read the files in, select those that meet the criteria and store them in a
Read the files in, select those that meet the criteria and store them in a list
match.list <- list()
for (i in list.files(pattern="some pattern")){
x.in <- read.table(i)
if (your match criteria) match.list[[i]] <- x.in
}
On 9/28/07, Svempa <[EMAIL PROTECTED]> wrote:
>
> I have a large num
I have a large number of textfiles, and one matix in every texfile. I now
want to find an easy way to select those textfiles that contain at least one
value over a certain limit, and collect those matrices in a vector or
something alike. How do I do that?
--
View this message in context:
http:/
4 matches
Mail list logo