search for: sty2

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

Did you mean: sky2
2009 Mar 09
1
Zero distance error in corSpatial - correlation structure using lme
...e transects sampled several times - have different coordinates (STX1 and STY1), everything seems to work fine. But in my actual data set, there are multiple observations per sample and the coordinates are the same for the same sample. This is demonstrated below using the coordinates STX2 and STY2, which are the same for a single transect. How can I properly specify this structure in Variogram() and corSpatial()? library(nlme) set.seed(1001) ntrans <- 30 npertrans <- 5 ntot <- ntrans*npertrans STX1<-runif(ntot, min=16.0921, max=16.4823) STY1<-runif(ntot, min=1.9812, max=2....
2008 Apr 11
1
How to match some patterns in a matrix
Dear all, I have a data frame called x2, which looks like: > dim(x2) [1] 2237 2 > x2[1:4,1:2] name id 1 STye hggd3 2 STy2 bffbd2 3 qw22e bdbdbbbd7 4 deffrdff nnshfd3 and a vector called y, which looks like: > dim(y) [1] 135 1 > y[1:3,1] [1] ABCDE BDH5 DESRP1 y is a subset of x2$name and I want to select the rows in x2 whose 'name' match y....