Displaying 4 results from an estimated 4 matches for "picea".
Did you mean:
pice
2005 Nov 27
4
Counting the occurence of each unique "charecter string"
LS,
I would really like to know how to count the frequency/occurrence of chachters inside a dataset. I am working with extreemly large datasets of forest inventory data with a large variety of different species inside it.
Each row inside the dataframe represents one individual tree and the simplified dataframe looks something like this:
num species dbh
1 sp1
2005 Nov 27
4
Counting the occurence of each unique "charecter string"
LS,
I would really like to know how to count the frequency/occurrence of chachters inside a dataset. I am working with extreemly large datasets of forest inventory data with a large variety of different species inside it.
Each row inside the dataframe represents one individual tree and the simplified dataframe looks something like this:
num species dbh
1 sp1
2003 Feb 19
1
getting/storing the name of an object passed to a function
...s would
be most appreciated.
By the way, the object obj is of class lda (Package MASS), if that matters.
Functions appended below. R 1.6.2 on windows XP.
Many Thanks
Gavin Simpson
Functions: the commented line in print.hotelling.t (last line) is where I
want to use the name of obj, to replace picea.lda. The code works if you
known the lda object, I now just want to grab it from the original call to
hotelling.t
hotelling.t <- function(obj)
{
if (is.null(class(obj))) {
stop("You must supply an object of class lda from lda()")
} else {
if (class(obj) != &qu...
2008 Feb 08
1
Can I index a dataframe with a reference from/to a second dataframe?
...quot;Cornus alternifolia", "Cornus canadensis", "Diervilla lonicera",
"Dirca palustris", "Fagus grandifolia", "Fraxinus americana",
"Fraxinus nigra", "Lonicera canadensis", "Ostrya virginiana",
"Picea glauca", "Picea mariana", "Pinus resinosa", "Pinus strobus",
"Populus tremuloides", "Prunus serotina", "Prunus virginiana",
"Quercus rubra", "Ribes ", "Sorbus americana", "Thuja occidentali...