Displaying 3 results from an estimated 3 matches for "tspecies".
Did you mean:
species
2010 Aug 05
2
try-error within for loop
...ted). So I would expect to get a dataframe with 1000 rows some of
which would be empty, but instead I get a dataframe with 995 rows. In
this case missing 5 rows were omitted.
Any suggestions?
Thanks,
Olga
----------------
result<-list()
for(i in 1:1000)try({
hclass<-mydata2$tclass[mydata2$tspecies%in%com[[i]][[5]][[1]]]
horder<-mydata2$torder[mydata2$tspecies%in%com[[i]][[5]][[1]]]
hfamily<-mydata2$tfamily[mydata2$tspecies%in%com[[i]][[5]][[1]]]
hgenus<-mydata2$tgenus[mydata2$tspecies%in%com[[i]][[5]][[1]]]
hspecies<-mydata2$tspecies[mydata2$tspecies%in%com[[i]][[5]][[1]]]
hier&l...
2010 Feb 01
0
working with taxonomic trees: sampling
...taxonomic data, represented as a list of classes,
orders, families, genera and finally species.
> class(mydata)
[1] "data.frame"
> mode(mydata)
[1] "list"
> names(mydata)
[1] "tclass" "torder" "tfamily" "tgenus" "tspecies"
> length(mydata$tclass)
[1] 161590
The first 10 rows look like the following:
> mydata[1:10,]
tclass torder tfamily tgenus
1 Chlorophyta Chlorophyceae Dunaliellaceae Collodictyon
2 Chlorophyta Chlorophyceae Dunaliellaceae Collodictyon
3 Ch...
2012 Oct 23
1
Understanding lattice barchart() display
...5 5 5 5 ...
$ torder : Factor w/ 18 levels "Achtinedida",..: 13 5 5 10 13 5 7 ...
$ tfamily : Factor w/ 81 levels "","Ameletidae",..: 79 46 46 14 42 ...
$ tgenus : Factor w/ 206 levels "","Acentrella",..: 1 10 10 1 140 ...
$ tspecies : Factor w/ 60 levels "","aequalis",..: 1 1 1 1 1 1 1 ...
$ quant : int 22 527 22 22 11 97 333 11 108 11 ...
$ stream : Factor w/ 7 levels "BCrk","JCrk",..: 1 1 1 1 1 1 1 1 ...
$ basin : Factor w/ 2 levels "H","O&...