search for: albertoloram

Displaying 6 results from an estimated 6 matches for "albertoloram".

2009 Jul 24
2
Lists
Hi Everybody I have the following problem suppose that we a<-c("uno","dos","tres") I am working with a while cycle and the idea is in each iteration adding an item to a list In the first iteration the resultshould be: [[1]] [1] "uno" In the second [[1]] [1] "uno" [[2]] [1] "dos" And the final result [[1]] [1] "uno"
2009 Jul 20
2
Rows for a list of values
Hi could yelp me with this Suppose that we have the following matrix m1<-matrix(c("a","e","a","i","o","u","i","1","2","3","4","5","6","7"), ncol=2) m2<-c("a","i") m1 [,1] [,2] [1,] "a" "1" [2,]
2009 Jul 20
2
I need to obtain all the rows in m1 in which m2 the elements of m2 are present
Hi could you yelp me please with this Suppose that we have the following matrix m1<-matrix(c("a","7","a","i","o","u","i","1","2","3","4","5","6","7"), ncol=2) m1 [,1] [,2] [1,] "a" "1" [2,] "7" "2" [3,]
2009 Jul 15
4
Extract pairs (rowname, columname) from a matrix where value is 0
Dear sir, I have a matrix like a<-matrix(c(0,2,0,4,0,6,5,8,0),nrow=3) colnames(a)<-c("F1","F2","F3") rownames(a)<-c("A1","A2","A3") a F1 F2 F3 A1 0 4 5 A2 2 0 8 A3 0 6 0 I want to extract all pairs (rownames, columnames) from which the value in the matrix is 0 The result should be something like this A1, F1 A2,
2009 Aug 18
4
Remove columns
Hi Everbody Could somebody help me.? I need to remove the columns where the sum of it components is equal to zero. For example > a<-matrix(c(0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,1,1,0,0,1,0), ncol=4) > a [,1] [,2] [,3] [,4] [1,] 0 0 0 1 [2,] 0 1 0 1 [3,] 0 0 0 0 [4,] 0 1 0 0 [5,] 0 0 0 1 [6,] 0 0 0 0 Columns
2009 Jul 17
1
Arules questions. I need some help please
Question 2a) I am also working with arules package and I have the following problem let suppose the matrix b like: b<-matrix(c(1,1,1,1,1,1,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1),nrow=6) rownames(b)=c("T1", "T2", "T3", "T4", "T5", "T6") colnames(b)=c("It1", "It2", "It3", "It4") bt<-as(b,