search for: site6

Displaying 8 results from an estimated 8 matches for "site6".

Did you mean: site
2006 Sep 26
1
How to "Pack" a matrix
Hello, Suppose I have a matrix a where a= sp1 sp2 sp3 sp4 sp5 sp6 site1 1 0 1 1 0 1 site2 1 0 1 1 0 1 site3 1 1 1 1 1 1 site4 0 1 1 1 0 1 site5 0 0 1 0 0 1 site6 0 0 1 0 1 0 And I want to pack that matrix so that the upper left corner contains most of the ones and the bottom right corner contains most of the zeros so that matrix b is b= sp3 sp6 sp4 sp1 sp2 sp5 site1 1 1 1 1 0 0 site2 1 1 1 1 0 0 site3 1 1 1 1 1 1 site4 1 1 1 0 1 0 site5 1 1 0 0 0 0...
2006 Oct 13
3
multiply two matrixes with the different dimension column by column
...ot;C","D"), c("stage1","stage2","stage3"))) Y<- matrix(1:28, nrow=4, ncol=7, dimnames=list(c("A","B","C","D"), c("site1","site2","site3","site4","site5", "site6","site7"))) I would like to multiply first column of the "Y"matrix (site1) to the all of the columns in "X"matrix. Then, the product will be three new columns (for example:site1stage1, site1stage2 and site1stage3 or something like this) which I want to add t...
2009 Feb 03
1
overlaying plots from a list of data frames
..., "2005"), class = c("ordered", "factor" )), data = c(0.00618165243153993, 0.00303216804813299, -5.51581146266983e-08, 1.44109415817357e-09, 0.0336487468345765)), .Names = c("year", "data"), class = "data.frame", row.names = c(NA, -5L)), site6 = structure(list( year = structure(1:6, .Label = c("2001", "2002", "2003", "2004", "2005", "2006"), class = c("ordered", "factor")), data = c(-6.33889022834333e-10, 1.34668283090261e-08, 4.17885398551684e-...
2007 Jul 07
2
random sampling with some limitive conditions?
I want to gain thousands of random sampling data by randomizing the presence-absence data. Meantime, one important limition is that the row and column sums must be fixed. For example, the data "tst" is following: site1 site2 site3 site4 site5 site6 site7 site8 1 0 0 0 1 1 0 0 0 1 1 1 0 1 0 1 1 0 0 0 1 0 1 0 0 0 0 1 0 1 0 1 1 0 1 0 0 0 0 0 0 1 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 sum(tst[1,]) = 3, sum(tst[,1])=4, and so on. When I randomize the data, the first row sums must equal to 3, and the first column sums must equal to 4. The rul...
2006 Oct 12
3
Cross two dataframe
Dear r-users! I would like to cross two data frame which have the same row number but different in the number of column. Can anybody help me for this case ? Thanks a lot in advance -------------------------------------------------------------------------------- Majid Iravani PhD Student Swiss Federal Research Institute WSL Research Group of Vegetation Ecology Z?rcherstrasse 111
2011 Nov 01
1
Multiple time series with zoo
...above for 6 different sites (column 1 is the "site" index). I still think in excel, so I was planning on lining up all 6 sites in a spreadsheet so that the dates (daily means from the above code) line up, and then just averaging the data like so: Date, Site1, Site2, Site3, Site4, Site5, Site6 Average 2006-04-09 ,20,19,20,19,14,12,average(Site1-6) 2006-04-10,12,13,14,15,16,12 ,average(Site1-6) 2006-04-11,12,12,12,13,12,12 , average(Site1-6) 2006-04-12,12,13,13,12,12,12, average(Site1-6) But I figure R can do this for me, so why bother going back to excel when R is turning out to be a...
2005 Jun 16
1
mu^2(1-mu)^2 variance function for GLM
...e Std. Error t value Pr(>|t|) (Intercept) -7.92253 0.44463 -17.818 < 2e-16 *** site2 1.38308 0.44463 3.111 0.00268 ** site3 3.86013 0.44463 8.682 8.18e-13 *** site4 3.55697 0.44463 8.000 1.53e-11 *** site5 4.10841 0.44463 9.240 7.48e-14 *** site6 4.30541 0.44463 9.683 1.13e-14 *** site7 4.91811 0.44463 11.061 < 2e-16 *** site8 5.69492 0.44463 12.808 < 2e-16 *** site9 7.06762 0.44463 15.896 < 2e-16 *** variety2 -0.46728 0.46868 -0.997 0.32210 variety3 0.07877 0.46868 0...
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",