search for: ccol

Displaying 11 results from an estimated 11 matches for "ccol".

Did you mean: col
2004 Feb 08
2
substitute, eval, quote and functions
Hi, i am working with large data frames with many dependend variables. I want to write some functions that will allow me to quickly select variables from the frame and plot them in various colors depending on factor columns, possibly selecting rows according to factor conditions. In order to do this in a nice function, i need to understand how to work with a column name in the body of a
2011 Mar 02
2
clustering problem
...atrix). Unfortunately then I'm not anymore able to use cutree to access individual clusters. In general I do something like this: hc <- hclust(dist(USArrests), "ave") library(RColorBrewer) library(gplots) clrno=3 cols<-rainbow(clrno, alpha = 1) clstrs <- cutree(hc, k=clrno) ccols <- cols[as.vector(clstrs)] heatcol<-colorRampPalette(c(3,1,2), bias = 1.0)(32) heatmap.2(as.matrix(USArrests), Rowv=as.dendrogram(hc),col=heatcol, trace="none",RowSideColors=ccols) Nice, I can access 3 main clusters with cutree. But what about a situation when I perform hclust lik...
2002 Dec 27
2
RSvgDevice & sapply(plotmeans)
...ot;, width = 10, height = 8, bg = "lightblue", fg = "white", onefile=T, xmlHeader=TRUE) #par(bg="lightblue",ann=T) plt <- function(x) { plotmeans(h2[,x] ~ h2$V174,ylab=names(h2)[x],xlab="InglehartIndex",mean.labels=T, connect=list(1:2,3:4,4:5),ccol="red",pch=7,barwidth=1,barcol="black") title("Mittelwert-Plots Allbus 1998") } sapply((2:ncol(h2)),plt) dev.off() Thanks for advance christian
2017 Jun 13
2
reading data
...nd how I am reading it is as follows. library(stringr) namelist <- file("Adress1.txt",encoding="ISO-8859-1") Name <- read.fwf(namelist, colClasses="character", skip=2,sep="\t",fill=T, width =c(2,8,1,1,1,1,1,1,9,5)+1,col.names=ccol) Can some one suggest me how track the issue? Is it the library issue or Java issue? May I read as free format instead of fixed format? Thank you in advance
2017 Jul 03
2
R memory limits on table(x, y) (and bigtabulate)
.../R-devel/library/base/html/Memory-limits.html> and <http://www.win-vector.com/blog/2015/06/r-in-a-64-bit-world/>, but I just want to make sure I understood that right); - I thought I could handle this with the package bigtabulate, but whenever I run xy.tab <- bigtable(data.frame(x, y), ccols=1:2) R crashes as follows: terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted Any idea on what I am doing wrong with bigtabulate? Thanks for your consideration
2014 Jul 02
0
How do I call a C++ function (for k-means) within R?
...Y=as.double(y), Offset=as.double(offset), X=as.double(x), X.order=as.integer(x.order), weights=as.double(w), Misc=as.double(Misc), cRows=as.integer(cRows), cCols=as.integer(cCols), var.type=as.integer(var.type), var.monotone=as.integer(var.monotone), distribution=as.character(distribution.call.name), n.trees=as.integer(n.trees), interaction.depth=as.integer(...
2017 Jun 14
0
reading data
...follows. > > library(stringr) > namelist <- file("Adress1.txt",encoding="ISO-8859-1") > Name <- read.fwf(namelist, > colClasses="character", skip=2,sep="\t",fill=T, > width =c(2,8,1,1,1,1,1,1,9,5)+1,col.names=ccol) > > Can some one suggest me how track the issue? > Is it the library issue or Java issue? > May I read as free format instead of fixed format? > > Thank you in advance > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSC...
2017 Jul 03
0
R memory limits on table(x, y) (and bigtabulate)
...ml/Memory-limits.html> > and <http://www.win-vector.com/blog/2015/06/r-in-a-64-bit-world/>, but > I just want to make sure I understood that right); > - I thought I could handle this with the package bigtabulate, but whenever I run > > xy.tab <- bigtable(data.frame(x, y), ccols=1:2) > > R crashes as follows: > > terminate called after throwing an instance of 'std::bad_alloc' > what(): std::bad_alloc > Aborted > > Any idea on what I am doing wrong with bigtabulate? Thanks for your > consideration > > ____________________________...
2011 Apr 03
0
Homals package color function problem
..._analysis, plot.dim = c(1,3), plot.type = "jointplot", col = 1) this should be straightforward - but I can't seem to effect the plotted colours I have tried various combinations for "col" commands in other plot packages I know col = col = c('red', 'green') ccol = rcol = also the different ways of designating the colour col = 1, col = "black", col = (#6698FF) I get no error messages, I have tried flushing R, restarting etc. the colours never change I'm under MacOS- 10.5.8, in R- 2.12.2 I'm sure it is something so obvious I'll...
2012 Feb 29
0
Question about tables in bigtabulate
...s. basically combine the results of running it on individual columns ## if you try to specify multiple columns, you get a contingency table, and if you use too many ## columns you will hang your system hard .. so dont try the line below . Well at least I hung my system # Ouch <- bigtable(test, ccols = seq(1,10)) So, is there a simple way to get the answer as emulated by P<-table(as.matrix(test)) without coercing to a matrix. TIA [[alternative HTML version deleted]]
2007 Sep 07
1
"bug" and patch: quadratic running time for strsplit(..., fixed=TRUE) (PR#9902)
...the end of bufp, followed by a zero byte; luckily, the storage + pointed to by bufp had already been zeroed, so the undefined + byte was in fact zero. */ + strcpy(bufp, text); + bufp += (j = strlen(text)); + clength += j; printstring(DE, buf, clength, DE->crow, DE->ccol, 1); return;