[R] barplot, for loop?

2007-03-10 Thread Lauri Nikkinen
Hi R-users, I have a dataset like this: kuvaaja kuva yhteispisteet Hannu isokala 8 Hannu kaapin alta löytynyt 2 Hannu kaapin alta löytynyt 2 8 Hannu limamikko 1 Hannu maukasta marmeladia 8 Hannu skrinnareita 4 Hate madekoukkujen suojelupyhimys 3 Hate matka aikaan

Re: [R] barplot, for loop?

2007-03-10 Thread Lauri Nikkinen
I put the data again because it looks like it went all mixed up. Data is named pisteet.sum. First row is the header row. kuvaaja kuva yhteispisteet Hannu isokala 8 Hannu kaapin alta löytynyt 2 Hannu kaapin alta löytynyt2 8 Hannu limamikko 1 Hannu maukasta marmeladia 8 Hannu skrinnareita 4 Hate

Re: [R] Problem with ci.lmer() in package:gmodels

2007-03-10 Thread Gregory Warnes
Hello Michael, I checked the source code, and the lower and upper confidence interval endpoints were simply reversed. The calculations themselves are correct. I have uploaded a new version of the gmodels package to the CRAN repository, and it should show up in a couple of days. In the mean

Re: [R] Using large datasets: can I overload the subscript operator?

2007-03-10 Thread Gabor Grothendieck
On 3/9/07, Maciej Radziejewski [EMAIL PROTECTED] wrote: Hello, I do some computations on datasets that come from climate models. These data are huge arrays, significantly larger than typically available RAM, so they have to be accessed row-by-row, or rather slice-by slice, depending on the

Re: [R] dendrogram - got it , just need to label :)

2007-03-10 Thread bunny , lautloscrew.com
thx very much! that helps to give those nodes somewhat dynamic names, so a legend to explain those numbers would be a solution, i´ll think about. Anyway, is it possible to name the nodes by hand, for example call node1 myname1, node2 something else and so on ? best -m. P.S.: Are there

[R] long character string problem

2007-03-10 Thread toby909
Hi All I am having 2 very long character strings (550chars) and I want to put them as expressions together with c(). The problem is that I also get these double-quotes, as seen below in 'fct'. How can I remove these double-quotes? I tried as.name() but it did not work (because of size?). These

[R] piecing together statements (macro?)

2007-03-10 Thread toby909
Hi All I am pretty new to R but saw stata and sas's macro facilities and am looking for how such things work in R. I am trying to piece together a series of statements: n = 5 #want to have it dynamic with respect to n for (j in 1:n) { eval(paste(x, j, =x[, j, ], sep=)) } I want the

[R] Mac vs. PC

2007-03-10 Thread Richard Morey
My adviser has a Mac notebook that he bought 6 months ago, and I have a PC notebook I bought a month ago. Here are the respective specs, as far as I know them: His: Mac OSX 1 GB DDR2 RAM Intel Core Duo, 2 GHz (2MB cache per core) Unknown HD Mine Windows Vista Home Premium 32bit 2 GB DDR2 RAM

[R] useR! 2007 --- Call for papers and posters

2007-03-10 Thread Dianne Cook
R Users and Developers, The first North American useR! will be held at Iowa State University, Ames, Iowa, August 8–10, 2007. Information about the meeting can be found at http://www.user2007.org/. We are now ready to accept paper and poster submissions. Papers are encouraged in all areas,

Re: [R] piecing together statements (macro?)

2007-03-10 Thread Gabor Grothendieck
Read the FAQ 7.21: http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html#How-can-I-turn-a-string-into-a-variable_003f Note that it points out that you don't really want to do this anyways. On 3/9/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi All I am pretty new to R but saw stata and sas's

Re: [R] Mac vs. PC

2007-03-10 Thread Gabor Grothendieck
Such a calculation would be dominated by the time spent inside a call to an offf-the-shelf C matrix inversion library used by R and is not really any test of R itself. On 3/9/07, Richard Morey [EMAIL PROTECTED] wrote: My adviser has a Mac notebook that he bought 6 months ago, and I have a PC

Re: [R] useR! 2007 --- Call for papers and posters

2007-03-10 Thread Ranjan Maitra
Di, You probably wanted to say first useR! (hosted) in North America, isn't that right? Anyway, I was wondering: what are the conditions for submitting a paper? Are the guidelines the same as JSS (or are they bringing it out)? If I can figure out how to make R packages, I might submit a paper

Re: [R] Off topic:Spam on R-help increase?

2007-03-10 Thread François Pinard
[Marc Schwartz] The Human Spam Filter (aka Martin) [...] The R mailing list has, indeed, be remarkably spam-free, and well-managed so far that I can see. I do hope, however, that Martin does not have to do the filtering himself -- it would be just daunting! In any case, Martin, a lot of

[R] RMySQL on win32

2007-03-10 Thread Pete Cap
List, I just left an environment where I was running R and mysql on CENTOS. At the time of install, RMySQL was available on CRAN. Later installs on Ubuntu were possible because it was available as a package in the base repos. Now I'm in a new environment where I have no choice but to use

Re: [R] barplot, for loop?

2007-03-10 Thread jim holtman
Here is one way of doing it. x - 'kuvaaja kuva yhteispisteet Hannu isokala 8 Hannu kaapin alta löytynyt 2 Hannu kaapin alta löytynyt2 8 Hannu limamikko 1 Hannu maukasta marmeladia 8 Hannu skrinnareita 4 Hate madekoukkujen suojelupyhimys 3 Hate matka aikaan joka ei enää palaa 3 Hate munat puoliks

Re: [R] Mac vs. PC

2007-03-10 Thread Thomas Lumley
On Fri, 9 Mar 2007, Richard Morey wrote: 1. R on Mac was compiled with optimizations for the CPU, with R for Windows was not. I could test this by compiling R with the Intel compiler, or GCC with optimizations, and seeing if I get a significant speed boost. Yes. The Mac distribution uses

Re: [R] RMySQL on win32

2007-03-10 Thread Uwe Ligges
Pete Cap wrote: List, I just left an environment where I was running R and mysql on CENTOS. At the time of install, RMySQL was available on CRAN. Later installs on Ubuntu were possible because it was available as a package in the base repos. Now I'm in a new environment where I have

Re: [R] Off topic:Spam on R-help increase?

2007-03-10 Thread Marc Schwartz
On Sat, 2007-03-10 at 10:17 -0500, François Pinard wrote: [Marc Schwartz] The Human Spam Filter (aka Martin) [...] The R mailing list has, indeed, be remarkably spam-free, and well-managed so far that I can see. I do hope, however, that Martin does not have to do the filtering himself

[R] finding max into matrix

2007-03-10 Thread Milton Cezar Ribeiro
Dear r-friends, Starting from a random position of a matrix, I would like find the position (index) of max values using 3x3 and 5x5 windows. Just supose that I have something like: set.seed(1) my.values-round(runif(441)*21,0) my.matrix-matrix(my.values,21)

[R] xtable with dupplicate rownames

2007-03-10 Thread Anirudh V. S. Ruhil
I have a table (tab5; see below) with the first block showing the counts in a cross-tabulation, and the lower block reflecting the proportions of interest. tab5 None Low Level Moderate Intense Very Intense Total None 0.00 3.00 0.000.00 1.00 4 Low

Re: [R] Using large datasets: can I overload the subscript operator?

2007-03-10 Thread rdporto1
Maciej, I think it should be possible to make a package (call it slice) that could be used like this: ... Has anyone ever made a similar extension, with virtual (lazy) arrays? take a look at the filehash package at http://cran.r-project.org/doc/Rnews/Rnews_2006-4.pdf Regards, Rogerio

Re: [R] curve of density on histogram

2007-03-10 Thread Ted Harding
On 08-Mar-07 Duncan Murdoch wrote: On 3/8/2007 11:29 AM, (Ted Harding) wrote: On 08-Mar-07 KOITA Lassana - STAC/ACE wrote: [snip] [snip] The argument N to sdnorm is readily available from the argument x, as N = length(x). However, I cannot work out from the documentation for these

Re: [R] About cex=: how to improve resolution?

2007-03-10 Thread Greg Snow
Use the symbols function! -Original Message- From: Luca Quaglia [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch r-help@stat.math.ethz.ch Sent: 3/9/07 2:55 PM Subject: [R] About cex=: how to improve resolution? Hi, I need to plot a graph with a circle of radius 1 and with a series of

Re: [R] xtable with dupplicate rownames

2007-03-10 Thread Anirudh V. S. Ruhil
I patched a solution together; essentially by using cbind to stack the proportions as columns. Duplicate columns names appear to pose no problems for xtable but duplicate rownames do! --On Saturday, March 10, 2007 1:11 PM -0500 Anirudh V. S. Ruhil [EMAIL PROTECTED] wrote: : I have a table

[R] Dyn.load and Unload problems

2007-03-10 Thread Saptarshi Guha
Hi, I am trying to modify the devX11.c source in the directory R-2.4.1/ src/modules/X11. Under OS X 10.4.9 running the R gui (R version 2.4.1) on a Powerbook, i type this and get the subsequent error. dyn.unload(/Library/Frameworks/R.framework/Resources/modules/ppc/

Re: [R] Mac vs. PC

2007-03-10 Thread R. Villegas
2007/3/10, Richard Morey [EMAIL PROTECTED]: My adviser has a Mac notebook that he bought 6 months ago, and I have a PC notebook I bought a month ago. Here are the respective specs, as far as I know them: His: Mac OSX 1 GB DDR2 RAM Intel Core Duo, 2 GHz (2MB cache per core) Unknown HD