search for: species9

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

Did you mean: species
2011 Jul 29
1
Using perm.t.test() upon Matrix/Dataframe columns parted by factor instead of t.test()
...uot;, 5), rep("B", 5))->Faktor matrix(rnorm(100, mean=20, sd=4), nrow=10, ncol=10)->M colnames(M) <- c("species1","species2", "species3","species4","species5","species6","species7","species8","species9", "species10") ###Conventional T-Test to test for differences of each species per factor lapply( M, function(x) t.test(x~ Faktor) ) ###Trying it for perm.t.test without the helpful formular expression. Does not work lapply( M, function(x) perm.t.test(subset(M, Fa...
2005 Nov 03
4
merging dataframes
Dear List, I often have to merge two or more data frames containing unique row names but with some columns (names) common to the two data frames and some columns not common. This toy example will explain the kind of setup I am talking about: mat1 <- as.data.frame(matrix(rnorm(20), nrow = 5)) mat2 <- as.data.frame(matrix(rnorm(20), nrow = 4)) rownames(mat1) <- paste("site",