search for: ccols

Displaying 12 results from an estimated 12 matches for "ccols".

Did you mean: cols
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 like...
2002 Dec 27
2
RSvgDevice & sapply(plotmeans)
Hi, anybody know why this not works for several plots ? When i set onefile=T the plots are stacked one about another , onefile=F only the first plot is shown in AllbusMeansPlots.svg. [h2 is a data.frame] ......hist and sapply works for several plots nice with RSvgDevice ! Maybe setting the title after apply is a problem, but until yet i didn't found a better solution ? library(RSvgDevice)
2017 Jun 13
2
reading data
Hi all, I am using R to extract data on a regular basis. However, sometimes using the same script and the same data I am getting different observation. The library I am using and how I am reading it is as follows. library(stringr) namelist <- file("Adress1.txt",encoding="ISO-8859-1") Name <- read.fwf(namelist, colClasses="character",
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(i...
2017 Jun 14
0
reading data
You need to provide reproducible data. What does the file contain? Why are you using 'sep=' when reading fixed format. You might be able to attach the '.txt' to your email to help with the problem. Also you did not state what the differences that you are seeing. So help us out here. Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what
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
Hello The Homals package and its plot options are excellent. However, I am unable to manipulate the colour in the plots. In a call such as: plot(mc_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
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]]
2024 May 15
1
FR: Customize background colour of row and column headers for the View output
A criticism of your suggestion is that it is not backwards compatible. Does that matter? I don't know, but probably not. The X11 version of the viewer does what you suggest. Duncan Murdoch On 2024-05-15 2:20 a.m., Iago Gin? V?zquez wrote: > About the decisions: > > Actually, the same way dataedittext modifies the text colour not only > of data, but also of row and column
2007 Sep 07
1
"bug" and patch: quadratic running time for strsplit(..., fixed=TRUE) (PR#9902)
Full_Name: John Brzustowski Version: R-devel-trunk, R-2.4.0 OS: linux, gcc 4.0.3 Submission from: (NULL) (206.248.157.184) This isn't a bug, but an easily-remedied performance issue. SYMPTOM > for (i in 1000 * (1:20)) { y <- paste(rep("asdf", times=i), collapse=" ") t <- system.time(strsplit(y, " ", fixed=TRUE)) cat(sprintf("i=%5d