search for: objektid

Displaying 7 results from an estimated 7 matches for "objektid".

Did you mean: objectid
2003 Jan 02
1
aggregate: "sum" not meaningful for factors
...o summarise my data per category using aggregate, but for some reason I get the error message "sum" not meaningful for factors even though my vector is numeric. The data set is shown below. Could someone please give a hint. Thanks in advance! Sincerely, Tord > names(test) [1] "ObjektID" "tallstubbyta" > is.factor(test$ObjektID); is.factor(test$tallstubbyta) [1] TRUE [1] FALSE > is.numeric(test$ObjektID); is.numeric(test$tallstubbyta) [1] FALSE [1] TRUE > mean(test$tallstubbyta) [1] 0.01142584 > aggregate(test, list(test$ObjektID), length)[, c(&q...
2003 Jan 16
1
problem with as.data.frame.table
Dear all, I think that what I want is an as.data.frame.table-object, but see error message below. I have a data frame with one tree per row, diaclass tells if it is a small, mid or large tree > cpy.tradart[1:5, ] ObjektID diaclass 1 AX.Grb.1 bigdia 2 AX.Grb.1 middia 3 AX.Grb.1 middia 4 AX.Grb.1 smalldia 5 AX.Grb.1 middia > I want a data frame telling no of trees per diameter class, per ObjektID There are 107 ObjektID > nlevels(cpy.tradart$ObjektID) [1] 107 and 3 diaclass levels > levels(cpy.t...
2003 Feb 05
1
simplify a data frame
Dear all, For the past three hours I have tried simplify a data frame. I would be really happy if someone could help solving this, I'm sure simple, problem. I want to "aggregate" the data frame: ObjektID BalteNummer Baltessegment S.13 S.13.1 S.13.1.2 S.13 S.13.1 S.13.1.3 S.13 S.13.2 S.13.2.1 S.13 S.13.2 S.13.2.2 S.13 S.13.2 S.13.2.3 S.13 S.13.3 S.13.3.6 S.13 S.13.3 S.13.3.7 S.13 S.13.3 S.13.3.8 S.13 S.13.3 S.13.3.9 so that the results look likte this: ObjektID BalteNummer S.13 S.13.1...
2003 Jan 10
0
Thanks: Re: count levels per factor level
...> > > To: r-help at stat.math.ethz.ch > > Subject: [R] count levels per factor level > > > > Dear all, > > > > I would be really happy for help with the following because I will > treat > > many columns the same way. > > > > nlevels per ObjektID is what I want, but nlevels returns all levels > > occurring in cpy.busk$TradArt: > > > > buskartant<- aggregate(list(trash = cpy.busk$TradArt), list(ObjektID > = > > cpy.busk$ObjektID), nlevels) > > > > But as you can see I use it below anyway. I could...
2003 Jan 09
0
aggregate() nlevels()
Dear all, I try to calculate the number of occurring levels, per ObjektID, of cpy.busk$TradArt, but this line returns the TOTAL number of levels occurring in cpy.busk$TradArt for each ObjektID. This was difficult to say in English! Did you get it? Is there any function for doing what I want. I have tried searching the archives without success. buskartant<- aggrega...
2002 Dec 12
0
if problem in function
...nag (=h?gst). The included volume regreesion model includes ten parameter values, which are tree species specific. bj?rk.formh?jd.pars is an object which includes the parameter values (parameter set) for birch (=bj?rk). There is one row per tree in the data object. > relev.kols[1:5, c("ObjektID", "CPYTradID", "tree.spec", "Diameter")] ObjektID CPYTradID tree.spec Diameter 1 2101 2101.2.1 spruce 2 2 2101 2101.2.2 spruce 7 3 2101 2101.2.3 pine 29 4 2101 2101.2.4 pine 38 5...
2003 Jan 02
1
replace NA with factor class
...to be spruce. For some reason the tree species names on the remaining (non-NA) rows are changed into numbers (that I do not recognise). I guess that ifelse is not the correct function to use, but I have not found any better one in my searches. Thanks in advance! Sincerely, Tord > test ObjektID tree.sp Diameter 2030 S.2001.S5 <NA> 2 2034 S.2001.S5 <NA> 2 1 S.1 spruce 2 2 S.1 birch 12 3 S.1 spruce 7 4 S.1 spruce 5 5 S.1 birch 8 > test$tree.sp6<- ifelse(is.na(test$tre...