Re: [R] splitting a vector on comma

2008-05-04 Thread David Scott
?strsplit On Sun, 4 May 2008, Georg Ehret wrote: Dear R Usergroup, I have the following vector and I would like to split it on ",". How can I do this? u [1] "160798191,160802762,160813395,160816017,160817873,160824082,160825247,160826925,160834272,160836257," Thank you in advance!

[R] splitting a vector on comma

2008-05-04 Thread Georg Ehret
Dear R Usergroup, I have the following vector and I would like to split it on ",". How can I do this? > u [1] "160798191,160802762,160813395,160816017,160817873,160824082,160825247,160826925,160834272,160836257," Thank you in advance! With my best regards, Georg. *

Re: [R] Error in downViewport.vpPath(vpPathDirect(name)

2008-05-04 Thread Paul Murrell
Hi Paul Murrell wrote: > Hi > > > Andrewjohnclose wrote: >> Hi, >> >> I am having trouble plotting a series of dendrograms using lattice and grid >> code as found in Paul Murrells book R Graphics. >> >> This is the error message I recieve: >> >> Error in downViewport.vpPath(vpPathDirect(name),

Re: [R] Error in downViewport.vpPath(vpPathDirect(name)

2008-05-04 Thread Paul Murrell
Hi Andrewjohnclose wrote: > Hi, > > I am having trouble plotting a series of dendrograms using lattice and grid > code as found in Paul Murrells book R Graphics. > > This is the error message I recieve: > > Error in downViewport.vpPath(vpPathDirect(name), strict, recording = > recording) : >

Re: [R] quantitative spectra analysis

2008-05-04 Thread stephen sefick
look at the spectrums before you do the cbind - I would not suggest letting R wrap the data to fill in a data frame. I would suggest using something that you "know how it acts" in the frequency domain like zero. You are probably introducing periodicies that are not real, and I would suggest not t

Re: [R] Cross Spectrum Analysis

2008-05-04 Thread Maura E Monville
R function "spectrum" expects a time series as input. I have attached a compressed archive with two detrended and denoised signals (txt format) whose spectra I would like to compare. I start out trying to generate a multivariate time series. Please, notice the different signals length. Moreover, R

Re: [R] calling a C program from R

2008-05-04 Thread Duncan Murdoch
On 04/05/2008 7:39 PM, Paulo Cardoso wrote: Is it possible to call a program (an .exe wrote in C) from R Gui? I'm interested in interact with inputs for this program and analyze outputs with R. The program itself calls a input.dat file with a number of needed parameters. Based on this input fil

[R] calling a C program from R

2008-05-04 Thread Paulo Cardoso
Is it possible to call a program (an .exe wrote in C) from R Gui? I'm interested in interact with inputs for this program and analyze outputs with R. The program itself calls a input.dat file with a number of needed parameters. Based on this input file it produces a number of files resuming the p

Re: [R] Residual resampling for non linear reg model

2008-05-04 Thread Mary Winter
Since sending this message I have now solved the problem - needed to alter the initial values of alpha and beta! > From: [EMAIL PROTECTED]> To: r-help@r-project.org> Date: Mon, 5 May 2008 > 00:03:53 +0100> Subject: [R] Residual resampling for non linear reg model> > > > > > I was attempting t

[R] Residual resampling for non linear reg model

2008-05-04 Thread Mary Winter
I was attempting to use the residual resampling approach to generate 999 bootstrap samples of alpha and beta and find their confidence intervals. However, I keep getting the error message:Error in nls(resample.mp ~ cases/(alpha + (beta * cases)), start = init.values, : singular gra

Re: [R] plotting pie-charts into a coordinate system

2008-05-04 Thread Paul Murrell
Hi Georg Ehret wrote: > Dear R user group, > I wish to plot small pie-charts to specific coordinates in a e.g. > scatter-plot: > > E.g.: >> plot(rnorm(100),rnorm(100)) >> points(1,1,col="red",cex=4) > -> I wish to put pie(c(2,3)) at the position of the red circle... > > How can I do this e

Re: [R] Categorizing Fonts using Statistical Methods

2008-05-04 Thread Leonard Mada
Hello Johannes, Johannes Hüsing wrote: Leonard Mada [Sun, May 04, 2008 at 07:26:04PM CEST]: > Dear list members, > > Every "modern" OS comes with dozens of useless fonts, so that the > current font drop-down list in most programs is overcrowded with fonts > one never will use. Selecting a usef

Re: [R] plotting pie-charts into a coordinate system

2008-05-04 Thread hadley wickham
On Sun, May 4, 2008 at 2:30 PM, Georg Ehret <[EMAIL PROTECTED]> wrote: > Dear R user group, > I wish to plot small pie-charts to specific coordinates in a e.g. > scatter-plot: > > E.g.: > > plot(rnorm(100),rnorm(100)) > > points(1,1,col="red",cex=4) > -> I wish to put pie(c(2,3)) at the p

[R] plotting pie-charts into a coordinate system

2008-05-04 Thread Georg Ehret
Dear R user group, I wish to plot small pie-charts to specific coordinates in a e.g. scatter-plot: E.g.: > plot(rnorm(100),rnorm(100)) > points(1,1,col="red",cex=4) -> I wish to put pie(c(2,3)) at the position of the red circle... How can I do this efficiently? Thanking you and wishing you

Re: [R] Categorizing Fonts using Statistical Methods

2008-05-04 Thread Johannes Hüsing
Leonard Mada <[EMAIL PROTECTED]> [Sun, May 04, 2008 at 07:26:04PM CEST]: > Dear list members, > > Every "modern" OS comes with dozens of useless fonts, so that the > current font drop-down list in most programs is overcrowded with fonts > one never will use. Selecting a useful font becomes a nig

[R] Validating a mixed-effects model

2008-05-04 Thread Armin Goralczyk
Hi I constructed a mixed-effects model from longitudinal repeated measurements of lab values in 22 patients seperated into two groups with the groups as fixed effect using lme. I thought about using the jackknife procedure, i. e., removing any one subject and calculating the fixed effect, to asses

Re: [R] Cross Spectrum Analysis

2008-05-04 Thread stephen sefick
is this a problem? are there error messages? if so could you provide them. Try as.matrix(yourdata). One thing you could do is create a moving average that reduces the signals to the lowest common denominator. Could you provide reproducable code with maybe a toy data set so anybody could have a

[R] Text shrinking in pdf graphics

2008-05-04 Thread Ronnen Levinson
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Speedups with Ra and jit

2008-05-04 Thread Luke Tierney
A couple of comments on this and the original thread. As pointed out by several posters, in a vectorized language like R one can usually create the fastest and cleanest code by using vectorized operations. This applies to R as well as Matlab. That said, there are at times reasons for using code

[R] Categorizing Fonts using Statistical Methods

2008-05-04 Thread Leonard Mada
Dear list members, Every "modern" OS comes with dozens of useless fonts, so that the current font drop-down list in most programs is overcrowded with fonts one never will use. Selecting a useful font becomes a nightmare. In an attempt to ease the selection of useful fonts, I began looking in

[R] help with mars output

2008-05-04 Thread Russell Brown
I need help in interpreting some output of polymars. The returned model by my command is: m$model pred1knot1 pred2 knot2 coefs SE 1 0 NA 0NA 1.3163 0.0007806758 2 1 NA 0NA -0.10904285 0.0006735827 3 1 1.193575 0NA 1.25396

[R] adaptive optimization of mesh size

2008-05-04 Thread baptiste Auguié
DeaR list, I'm running an external program that computes some electromagnetic response of a scattering body. The numerical scheme is based on a discretization with a characteristic mesh size "y". The smaller y is, the better the result (but obviously the computation will take longer). A

Re: [R] Ancova_non-normality of errors

2008-05-04 Thread John Fox
Dear Tobias, Your observation that "When plot [the residuals from?] this model I get a banana-shape in Normal Q-Q Plot(with open site [side?] pointing downwards)," suggests that the residuals are negatively skewed, which in turn suggests that using log(wt) as the response variable may have been il

Re: [R] Errors bar in barchart

2008-05-04 Thread Ronaldo Reis Junior
Em Sex 02 Mai 2008, Deepayan Sarkar escreveu: > On 5/2/08, Ronaldo Reis Junior <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I user barplot2 to make a plot bar with errors bars. In old times I > > needed to use a sequence of segments commands to make this. > > > > Now I try to make the same but usin

Re: [R] improvement of Ancova analysis

2008-05-04 Thread hadley wickham
On Sat, May 3, 2008 at 9:00 PM, Tobias Erik Reiners <[EMAIL PROTECTED]> wrote: > Dear Helpers, > > I just started working with R and I'm a bit overloaded with information. > > My data is from marsupials reindroduced in a area. I have weight(wt), hind > foot > lenghts(pes) as continues variables

Re: [R] Is my understanding of rlnorm correct?

2008-05-04 Thread phil colbourn
Thank you for your reply. I think I have a poor understanding of this distribution but, if I understand your answer albeit roughly, then to get a mean of 100 I need to select a mu and derive the sd using sqrt(2*(log(100)-mu)). That helps a lot. My application is in modeling/simulating failure/re

Re: [R] Installing R under Cygwin [was (no subject)]

2008-05-04 Thread Prof Brian Ripley
On Sun, 4 May 2008, lmbewjs wrote: Dear R users, I have a question about R installation under Cygwin. Which versionof R should I download ,linux or windows? If linux ,which release should I download? Thanks a lot! Neither. You need to download the source tarball (R-2.7.0.tar.gz on teh CR

[R] (no subject)

2008-05-04 Thread lmbewjs
Dear R users, I have a question about R installation under Cygwin. Which versionof R should I download ,linux or windows? If linux ,which release should I download? Thanks a lot! Jiansheng Wu PhD Candidate of State Key Laboratory of Bioelectronics Southeast University, Nanjing, 210096, Chin

[R] Ancova_non-normality of errors

2008-05-04 Thread Tobias Erik Reiners
Hello Helpers, I have some problems with fitting the model for my data... -->my Literatur says (crawley testbook)= Non-normality of errors-->I get a banana shape Q-Q plot with opening of banana downwards Structure of data: origin wt pes gender 1 wild 5.35 147.0 male 2 wil

Re: [R] improvement of Ancova analysis

2008-05-04 Thread Stephan Kolassa
Hi Tobias, If you want to do inferential statistics with groups differing systematically on the covariate, you will need to be extra careful in your interpretation. See, e.g., Miller, G. A. & Chapman, J. P. Misunderstanding Analysis of Covariance, Journal of Abnormal Psychology, 2001, 110, 40