[R] Accessing methods and extending S4 classes of existing packages

2008-06-29 Thread Johannes Huesing
Dear all, I am trying to understand how to access S4 methods after loading a package, using the online documentation of getMethod and friends. This is what I have been trying: library(coin) findMethods(ApproxNullDistribution) list() Warning message: In findMethods(ApproxNullDistribution) :

Re: [R] Parallel R

2008-06-29 Thread Martin Morgan
Juan Pablo Romero Méndez [EMAIL PROTECTED] writes: Hello, The problem I'm working now requires to operate on big matrices. I've noticed that there are some packages that allows to run some commands in parallel. I've tried snow and NetWorkSpaces, without much success (they are far more

[R] Calculating quarterly statistics for time series object

2008-06-29 Thread Megh Dal
I have time series observation on daily frequencies : library(zoo) SD=1 date1 = seq(as.Date(01/01/01, format = %m/%d/%y), as.Date(12/31/02, format = %m/%d/%y), by = 1) len1 = length(date1); data1 = zoo(matrix(rnorm(len1, mean=0, sd=SD*0.5), nrow = len1),  date1) plot(data1) Now I want to

Re: [R] Calculating quarterly statistics for time series object

2008-06-29 Thread Gabor Grothendieck
See ?aggregate.zoo, ?as.yearqtr and vignette(zoo-quickref) and the other zoo vignettes. library(zoo) SD - 1 date1 - seq(as.Date(2001-01-01), as.Date(2002-12-1), by = day) len1 - length(date1) set.seed(1) # to make it reproducible data1 - zoo(rnorm(len1), date1) plot(data1) # quarterly summary

[R] How to get an argument dynamically from a list?

2008-06-29 Thread Stephane Bourgeois
Hi, I'd like to get an argument (I think it's the right term) dynamically from a list, but cannot manage to do it. Here is the code I use: #output given by database BOB - c('A/A', 'C/C', '15/27') MARY - c('A/A', NA, '13/12') JOHN - c('A/A', 'C/A', '154/35') CLIFF - c('A/C', 'C/C', '15/12')

Re: [R] Interactive plot

2008-06-29 Thread Gabor Grothendieck
Install the GTK runtime: http://www.ggobi.org/rgtk2/ On Sun, Jun 29, 2008 at 9:06 AM, Ron Michael [EMAIL PROTECTED] wrote: whenever I try to load playwith package I get following error : library(playwith) Loading required package: lattice Loading required package: grid Error in inDL(x,

[R] Arial font in R

2008-06-29 Thread Kobby Essien
Hi, I have created a couple of plots in R and would like text in the plots to be size 12 Arial or Helvetica font. Is this possible? Thanks. Kobby __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] How to get an argument dynamically from a list?

2008-06-29 Thread jim holtman
Is this what you want: you have to use data.raw[[polyList[2]]] to access the data. (see ?[[) lapply(polyList, function(x) as.character(data.raw[[x]])) [[1]] [1] A/A A/A A/A A/C A/C [[2]] [1] C/C NAC/A C/C C/A [[3]] [1] 15/27 13/12 154/35 15/12 13/12 On Sun, Jun 29, 2008 at 3:24 PM,

Re: [R] Accessing methods and extending S4 classes of existing packages

2008-06-29 Thread Johannes Huesing
Johannes Huesing [EMAIL PROTECTED] [Sun, Jun 29, 2008 at 08:13:27AM CEST]: Dear all, I am trying to understand how to access S4 methods after loading a package, using the online documentation of getMethod and friends. I am just realizing that the lack of online documentation on S4 methods,

Re: [R] Interactive plot

2008-06-29 Thread Ron Michael
Hi, whenever I try to load the playwith package I am getting following warning :   library(playwith) Loading required package: lattice Loading required package: grid Warning message: In namespaceImportFrom(self, asNamespace(ns)) :   replacing previous import: addhandler Can anyone please tell

Re: [R] Interactive plot

2008-06-29 Thread Ron Michael
Hi all R users. I already done through some of the examples given with playwith packages and feel nowhere they are matching with my requirement. Can amyone please suggest me how to create my desired interactive plot with tkrplot ?   I want following. Let look at following codes :   mat =

Re: [R] Interactive plot

2008-06-29 Thread Gabor Grothendieck
In ?playwith the third example seems pretty close to what you want. Here it is changed to correspond to your setup. Remove the barplot line from calc since we don't want calc to do any plotting and then try this: library(lattice) playwith(barchart(seq_along(result) ~ result, data =

Re: [R] Arial font in R

2008-06-29 Thread Ben Bolker
Kobby Essien kobby at seas.upenn.edu writes: Hi, I have created a couple of plots in R and would like text in the plots to be size 12 Arial or Helvetica font. Is this possible? Thanks. Kobby Well, 12 point Helvetica is actually the default for PDF and PostScript files (see ?pdf

[R] Survival Analysis with two different events

2008-06-29 Thread sickboyedd
Hello all, I am hoping to use survival analysis to examine whether parasite attack increases nest death in a species of social wasp. I therefore have data for 1. Whether the nest died in the 6 week census period (Status, where 1=died, 0=survived) 2. The day number of death/last recorded day it

Re: [R] Interactive plot

2008-06-29 Thread Ron Michael
It is not working here. I am getting following errors [big list :( ] :   library(playwith) Loading required package: grid Warning message: In namespaceImportFrom(self, asNamespace(ns)) :   replacing previous import: addhandler library(lattice) playwith(barchart(seq_along(result) ~ result, +

Re: [R] Survival Analysis with two different events

2008-06-29 Thread Ben Bolker
sickboyedd sickboyedd at gmail.com writes: Hello all, I am hoping to use survival analysis to examine whether parasite attack increases nest death in a species of social wasp. I therefore have data for 1. Whether the nest died in the 6 week census period (Status, where 1=died,

Re: [R] Accessing methods and extending S4 classes of existing packages

2008-06-29 Thread Johannes Huesing
Johannes Huesing [EMAIL PROTECTED] [Sun, Jun 29, 2008 at 08:13:27AM CEST]: Dear all, I am trying to understand how to access S4 methods after loading a package, using the online documentation of getMethod and friends. This is what I have been trying: library(coin)

Re: [R] Interactive plot

2008-06-29 Thread Gabor Grothendieck
I get those errors too but it works anyways. On Sun, Jun 29, 2008 at 2:09 PM, Ron Michael [EMAIL PROTECTED] wrote: It is not working here. I am getting following errors [big list :( ] : library(playwith) Loading required package: grid Warning message: In namespaceImportFrom(self,

[R] function to export data

2008-06-29 Thread Daniel Pires
Hi, I’m trying to built a simple function that allows me to export automatically some results to a text file. I’ve tried the two following approaches but none worked. exportdata-function(x) { + dataexp-summary(x) + export(dataexp,type=ascii,file=dataexp.txt) + }

[R] help

2008-06-29 Thread 王春萍
Dear : I am a college student, one R beginner, now i am doing one exercise with mclust package. I want to try one hierarchy cluster ananlysis on my data and my aim is to find out the clusters from the result and what are the members for each cluster? So can you give me some advices

Re: [R] help

2008-06-29 Thread Xiaohui Chen
mclust is not doing the hierarchicial clustering, if I understand your question correctly. Presumably you define certain distance measure, hclust and cut funtions should do the job. On the other hand, if the purpose is to extract the classification labels from mclust package, it should be

[R] Fwd: cannot install the package RMySQL

2008-06-29 Thread Peng Jiang
Hi, I first report the installing error to the r-sig-mac mailing list but it seems nobody ever encounter this annoying problem and I got no replies. so I am trying to forward it to this list, hope it never bothers. Anyone had the same problem, or what does the warning message mean ? Thank you

Re: [R] help

2008-06-29 Thread Daniel Malter
Assuming that you have installed and loaded the mclust library, type ?Mclust in the R-prompt. An example is provided there with the popular iris dataset. It seems to be as simple as Mclust(yourdata), where yourdata contains the dataset (data columns of your dataset) on which you want to perform

Re: [R] Parallel R

2008-06-29 Thread Juan Pablo Romero Méndez
Thanks! It turned out that Rmpi was a good option for this problem after all. Nevetheless, pnmath seems very promising, although it doesn't load in my system: library(pnmath) Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared library