Displaying 2 results from an estimated 2 matches for "identtree".
2006 Apr 20
3
The contrary of command %in%
Dear r-list,
I've got a data base:
> HData[1:10,]
NumTree Site Species Date Age DBH H IdentTree
1 1 Queige Spruce 2002 184 49 33.5 Queige 1
2 2 Queige Fir 2002 NA 5 4.6 Queige 2
3 3 Queige Fir 2002 25 8 6.6 Queige 3
4 4 Queige Spruce 2002 198 47 32.5 Queige 4
5 5 Queige Fir 2002 200 59 35.3 Queige 5
6 6 Queige Spruce 200...
2005 Dec 16
1
Vector of matrix
...uld be of class "matrix".
I tried the following script:
Script:
#Creation of a previous vector
n.Tree<-2
VectorX<-rep(1,n.Tree)
#loop
for (i in 1:2) {
Ti<-MatOccurTree[Tree[i],1] #number of observation for Tree i
Xi<-matrix(data=1,nrow=Ti,ncol=2)
Xi[,2]<-treedata2$lnE[IdentTree==Tree[i]]
VectorX[i]<-Xi
}
Console:
> VectorX[i]<-Xi
Warning message:
le nombre d'objets à remplacer n'est pas multiple de la taille du remplacement
"number of object to replace isn't a multiple of the length of the replacement"
Would you have any solution to crea...