search for: rjadenham

Displaying 2 results from an estimated 2 matches for "rjadenham".

2010 Dec 13
1
Pure curiosity
Pure curiosity but does anyone know why '<-' and '=' generate different columning headers? > test <- data.frame(V1=c(1,2,3), V2=c(4,5,6)) > test V1 V2 1 1 4 2 2 5 3 3 6 > test <- data.frame(V1<-c(1,2,3), V2<-c(4,5,6)) > test V1....c.1..2..3. V2....c.4..5..6. 1 1 4 2 2 5 3
2008 Nov 15
0
min of array
I wanted to get the minimum of an array of dimenstion (nr,nc,6), so the output was of dimension (nr,nc), ie for each row,column the minimum of 6 numbers. I thought apply might be the sensible way, but I also compared it to looping over each row/column. In this case the loop method was faster than my apply (which probably means I wasn't using apply in the best way). Then I found that pmin