Displaying 3 results from an estimated 3 matches for "catcount".
Did you mean:
capcount
2010 Oct 23
1
Summarizing For Values with Multiple categories
...> df<-
data.frame(COGs=c("COG1","COG2","COG3","COG4"),counts=c(10,20,30,40))
I've been trying various version of apply and well as some crazy loops
(Eg. below).
Any help would be appreciated
Thanks,
Alison
> CATS<-names(CAT2COG)
> Catcounts<-rep(0,length(CATS))
> counter<-1
> for (i in CATS){
+ Catcounts[counter]<-CatCounts+df$counts[df[1,]=CAT2COG[i],]
Error: syntax error
> counter<-counter+1
> }
2002 Apr 25
1
understanding and resolving seg faults
...with calloc and deltaI[0][0] should be OK, but apparently not.
thanks for your help,
For those that don't have structure of rpart drilled into their brain:
deltaI is declared in "rpmatrix.c":
void rpmatrix(struct node *me, Sint *nodecount, Sint *splitcount,
Sint *catcount, Sint *numcat, double **dsplit,
Sint **isplit, Sint **csplit, double **dnode,
Sint **inode, double **deltaI, int id)
rpmatrix is called by "s_to_rp.c" where
ddeltaI is a pointer from an ALLOC call:
void s_to_rp2(Sint *n, Sint...
2008 Aug 06
1
error in installing R packages
...ition of ?F77_NAME? was here
classTree.c: In function ?F77_NAME?:
classTree.c:353: warning: type of ?catmaxb? defaults to ?int?
classTree.c:360: error: ?nhit? undeclared (first use in this function)
classTree.c:361: error: ?nCat? undeclared (first use in this function)
classTree.c:362: error: ?catCount? undeclared (first use in this
function)
classTree.c:363: error: ?tclasscat? undeclared (first use in this
function)
classTree.c:363: error: ?nclass? undeclared (first use in this function)
classTree.c:366: warning: implicit declaration of function ?R_qsort_I?
classTree.c:369: error: ?classCoun...