search for: tf3223618

Displaying 1 result from an estimated 1 matches for "tf3223618".

Did you mean: tf3223616
2007 Feb 13
2
Matrix manipulation
Hi, let's say I have this A = matrix(c(1, 2, 4), nrow=1) colnames(A)=c("YOO1", "YOO2", "YOO3") # ie # YOO1 YOO2 YOO3 #[1,] 1 2 4 HELLO <- NULL HELLO$YOO1="BOO" HELLO$YOO2="BOO" HELLO$YOO3="HOO" and I want a matrix that will sum my categorization.. how can I do it efficiently without any loop? #ie BOO HOO