Re: [R] convert RData to txt

2009-10-06 Thread Ilyas .
thank you for your reply,, i tried your commands but its not working,,i have attached the RData file,,which i want to convert into txt.. Ilyas On Mon, Oct 5, 2009 at 9:27 PM, Henrique Dallazuanna www...@gmail.comwrote: You can try something about like this: lapply(ls(), function(obj)cat(\n,

Re: [R] R on Linux, and R on Windows , any difference in maturity+stability?

2009-10-06 Thread Liviu Andronic
On 10/6/09, Robert Wilkins iwriteco...@gmail.com wrote: Will R have more glitches on one operating system as opposed to another, Probably not. or is it pretty much the same? Depending on the complexity of the code, it is pretty much the same. I recently had a (relatively simple) group

Re: [R] else if statement error

2009-10-06 Thread Uwe Ligges
David Winsemius wrote: On Oct 5, 2009, at 5:38 AM, Martin Maechler wrote: DW == David Winsemius dwinsem...@comcast.net on Sat, 3 Oct 2009 12:56:51 -0400 writes: DW On Oct 3, 2009, at 11:54 AM, Chen Gu wrote: Hello, I am doing a simple if else statement in R. But it always comes

Re: [R] Visualizing some data

2009-10-06 Thread Petr PIKAL
Try also to look at lattice or ggplot2. Regards Petr r-help-boun...@r-project.org napsal dne 05.10.2009 23:45:48: See http://addictedtor.free.fr/graphiques/ for many examples with code. Bert Gunter Genentech Nonclinical Biostatistics -Original Message- From:

Re: [R] Date-Time-Stamp input method for user-specific formats

2009-10-06 Thread esp
Thank you all who replied, I will try out these ideas later today. David Esp -- View this message in context: http://www.nabble.com/Date-Time-Stamp-input-method-for-user-specific-formats-tp25757018p25763935.html Sent from the R help mailing list archive at Nabble.com.

[R] 'persp' query

2009-10-06 Thread Geoffrey William Heard
Hi All I'm creating some 3-D plots using the function 'persp', and have a query regarding the ability to make changes to the label of the z-axis. There are two things I would like to do. First, the default setting places the label a little close to the axis for my liking. Is there any way of

[R] Problem with NLTM package

2009-10-06 Thread Abderrahim Oulhaj
Dear R users, I have a question concerning the nltm package. Before posting to the R list I first contacted the author of the package twice but no succes. May be I've got the wrong email! My question is about the object surv given in the package nltm. As explained, the object surv represents

[R] previous.best in metaMDS

2009-10-06 Thread Kim Vanselow
Dear R-community, dear Jari Oksanen! I use metaMDS (package vegan) to calculate NMDS. In a lot of papers I read that it is recommended to use previous best solutions as a new starting configuration to get better results and to avoid local minima. On the help page I found that a

[R] Interpolation

2009-10-06 Thread Lucas Sevilla García
Hi R community I need to interpolate precipitation data for a natural park. I have precipitation data from some climate stationts. (I know the table is not complete but I only need to show you X,Y, Altitude and PrepJul) X Y Altitude PrepJan PrepFeb PrepMar PrepAp PrepMay

[R] Extracting year from a date object

2009-10-06 Thread joris meys
Hi all, this one left me a bit puzzled, as I don't seem to find a function to perform this easily. I must have overlooked the obvious, so sorry in advance. I have a list of dates in numerical format (i.e. 34576), defined as the number of days that passed since january 1st 1900. So I apply the

[R] Odp: Extracting year from a date object

2009-10-06 Thread Petr PIKAL
r-help-boun...@r-project.org napsal dne 06.10.2009 11:39:51: Hi all, this one left me a bit puzzled, as I don't seem to find a function to perform this easily. I must have overlooked the obvious, so sorry in advance. I have a list of dates in numerical format (i.e. 34576), defined as

[R] Kernlab: multidimensional targets in rvm(), ksvm(), gausspr()

2009-10-06 Thread Emiliano Guevara
Hi there, I'm trying to do a regression experiment on a multidimensional dataset where both x and y in the model are multidimensional vectors. I'm using R version 2.9.2, updated packages, on a Linux box. I've tried gausspr(), ksvm() and rvm(), and the models are computed fine, but I'm always

[R] italics help in plot

2009-10-06 Thread Jacob Kasper
Part of my script reads: speciesName - names(data)[i] plot(year,depth, xlab=Year, ylab=Depth(m),main=expression(italic(paste(speciesName))) ) Unfortunately, this just plots *speciesName *on my graph, not the name of the species in italics. Any suggestions on how to resolve this? Thank you Jacob

[R] Unable to load 'doBy' package

2009-10-06 Thread Lauren Szathmary
Hi all, I am trying to load the doBy package, and I am getting the following error: library(doBy) Error in loadNamespace(i[[1L]], c(lib.loc, .libPaths())) : there is no package called 'Hmisc' Error: package/namespace load failed for 'doBy' I tried updating R to the current version (2.9.2)

Re: [R] R on Linux, and R on Windows , any difference in maturity+stability?

2009-10-06 Thread John Maindonald
I had a large job time ago that ran fine under MacOS X. I'd expect the same to be true under Linux. It would run under Windows XP only if XP had been freshly rebooted. John Maindonald email: john.maindon...@anu.edu.au phone : +61 2 (6125)3473fax : +61 2(6125)5549 Centre for

Re: [R] italics help in plot

2009-10-06 Thread baptiste auguie
Hi, Try this, x= my title plot(1,1, main = bquote(italic(.(x HTH, baptiste 2009/10/6 Jacob Kasper jacobkas...@gmail.com: Part of my script reads: speciesName - names(data)[i] plot(year,depth, xlab=Year, ylab=Depth(m),main=expression(italic(paste(speciesName))) ) Unfortunately,

Re: [R] R on Linux, and R on Windows , any difference in maturity+stability?

2009-10-06 Thread Duncan Murdoch
On 06/10/2009 6:36 AM, John Maindonald wrote: I had a large job time ago that ran fine under MacOS X. I'd expect the same to be true under Linux. It would run under Windows XP only if XP had been freshly rebooted. That sounds like you were running out of memory, or it was a bug. Did you

[R] Spatial Autocorrelation

2009-10-06 Thread P.Branco
Hello, I have a matrix with the distances among sites. And I have another matrix with the presence and absence of each species in each site. I would like to test the spatial autocorrelation among sites. I have tried to use the function gearymoran of the ade4 package, but error messages keep

Re: [R] Extracting year from a date object

2009-10-06 Thread Prof Brian Ripley
See ?weekdays, which says Note: Other components such as the day of the month or the year are very easy to compute: just use 'as.POSIXlt' and extract the relevant component. so as.POSIXlt(MyDate)$year+1900 [1] 1994 is how you are expected to do it. On Tue, 6 Oct 2009, joris

Re: [R] Unable to load 'doBy' package

2009-10-06 Thread joris meys
Hi Lauren, from the error message it looks like you have a problem with the package Hmisc. doBy is dependent on that one. Can you check whether Hmisc is installed in your R version? For me, doBy loads without problems. On Tue, Oct 6, 2009 at 12:18 PM, Lauren Szathmary lszathm...@gmail.com wrote:

Re: [R] Date-Time-Stamp input method for user-specific formats

2009-10-06 Thread Gabor Grothendieck
See below. On Mon, Oct 5, 2009 at 6:50 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: Try this.  First we read a line at a time into L except for the header.  Then we use strapply to match on the given pattern.  It passes the backreferences (the portions within parentheses in the

[R] Linear mixed effects model ?

2009-10-06 Thread Daniel Perkins
I am looking for some advice on an appropriate statistical analysis in R *Experimental question* : We are interested in how communities from different streams may vary in their response to experimental temperature. Specifically we are interested to test for differences in the slope and

Re: [R] Letter-based representation of pairwise comparisons

2009-10-06 Thread goz
hello, i try to use the multcomp letters, but i have problems with my results : here is my pvalue matrix (from a pairwise.t.test) : pair=pairwise.t.test(...) pair$p.value 0 BBxS B0.01727- - BxS 0.000130.00226 - S

[R] Unable to load 'doBy' package

2009-10-06 Thread Lauren Szathmary
Hi all, I am trying to load the doBy package, and I am getting the following error: library(doBy) Error in loadNamespace(i[[1L]], c(lib.loc, .libPaths())) : there is no package called 'Hmisc' Error: package/namespace load failed for 'doBy' I tried updating R to the current version (2.9.2)

[R] Viewing specific data from a dataframe

2009-10-06 Thread Krystyna Golabek
Dear R users, Simple question. Can anyone help with the code that would allow me to view only the variables who's correlation output is 0.8? This is the code I'm using to date cor(data, method=spearman) Kind regards Krys

Re: [R] Spatial Autocorrelation

2009-10-06 Thread anna freni sterrantino
Hi Paulo, you may want to take a look at http://cran.r-project.org/web/views/Spatial.html there, you can find all spatial packages that can be useful for your question. There is also a a mailing list R-sig-geo that where you can ask all those kind of question. Hope that this helps. Cheers

Re: [R] convert RData to txt

2009-10-06 Thread Henrique Dallazuanna
The file don't load in my computer, this give me a fatal error message. On Tue, Oct 6, 2009 at 1:09 AM, Ilyas . mykh...@gmail.com wrote: thank you for your reply,, i tried your commands but its not working,,i have attached the RData file,,which i want to convert into txt.. Ilyas On Mon, Oct

Re: [R] 'persp' query

2009-10-06 Thread Peter Ehlers
Geoff, One way (the only way without modifying source code?) to satisfy your first wish is to insert a newline before your label as in zlab = \nMy z-text. I don't know of an answer for your second wish other than using the single letter Z as your label :) -Peter Ehlers Geoffrey William

Re: [R] Viewing specific data from a dataframe

2009-10-06 Thread Paul Hiemstra
Hi, I'm not sure I understand what you want. This would have been easier if you had provided a reproducible example. See the following code: bla = matrix(runif(1), 10, 10) cor_bla = cor(bla, method = spearman) Now what do you want to select. All the variables that have a correlation

[R] save wmf with a batch file

2009-10-06 Thread guillaume Le Ray
Hi R users, I'm working on a autoreporting with the batch mode of R: I would like to save the graphs produced in wmf or emf. the problem is, it's working well with the R gui because we print on the screen the graph devices but not with the batch. I have used the function dev.print after encounter

Re: [R] 'persp' query

2009-10-06 Thread David Winsemius
On Oct 6, 2009, at 4:46 AM, Geoffrey William Heard wrote: Hi All I'm creating some 3-D plots using the function 'persp', and have a query regarding the ability to make changes to the label of the z- axis. There are two things I would like to do. First, the default setting places the

Re: [R] save wmf with a batch file

2009-10-06 Thread Duncan Murdoch
On 10/6/2009 9:05 AM, guillaume Le Ray wrote: Hi R users, I'm working on a autoreporting with the batch mode of R: I would like to save the graphs produced in wmf or emf. the problem is, it's working well with the R gui because we print on the screen the graph devices but not with the batch. I

Re: [R] Viewing specific data from a dataframe

2009-10-06 Thread Paul Hiemstra
Hi Krys, Please also cc all you responses to the list, keeping the conversation in the archives. The following code might be of help to you: set.seed(1) bla = matrix(runif(1), 10, 10) colnames(bla) = LETTERS[1:ncol(bla)] cor_bla = cor(bla, method = spearman) # Assign NA to all values

Re: [R] how to fit time varying coefficient regression model?

2009-10-06 Thread Giovanni Petris
Dear rh, You may take a look at package dlm. A vignette is included in the documentation. Giovanni Date: Mon, 05 Oct 2009 22:30:05 -0400 From: R_help Help rhelp...@gmail.com Sender: r-help-boun...@r-project.org Precedence: list DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;

Re: [R] Spatial Autocorrelation

2009-10-06 Thread Corey Sparks
Hi Paulo, if your data are distance matrices, you might consider doing a Mantel test, look at the mantel() function in package vegan. While this is not technically measuring spatial autocorrelation, it will test for correlation between the attribute distances and the geographic distances. Also,

Re: [R] save wmf with a batch file

2009-10-06 Thread Duncan Murdoch
On 10/6/2009 9:45 AM, guillaume Le Ray wrote: I have a window with unable to create metafile I think it is because I'm using the function layout() in some of my graphs I doubt if that's the cause. More likely it's a permissions problem, or some other problem. For example, this works fine:

Re: [R] else if statement error

2009-10-06 Thread Gabor Grothendieck
2009/10/6 Uwe Ligges lig...@statistik.tu-dortmund.de: The first rule is easy: As long as you are using scalar valued (i.e. length 1 vectors in R) cond, you should prefer  if(cond) cons.expr  else  alt.expr rather than  ifelse(cond, yes, no) because the latter one evaluates both yes and no

Re: [R] Letter-based representation of pairwise comparisons

2009-10-06 Thread David Winsemius
On Oct 6, 2009, at 8:41 AM, goz wrote: hello, i try to use the multcomp letters, but i have problems with my results : here is my pvalue matrix (from a pairwise.t.test) : pair=pairwise.t.test(...) pair$p.value 0 BBxS B0.01727- - BxS

[R] Plot

2009-10-06 Thread Ashta
Hi All, Days - matrix(c(Monday, Tuesday, Wed, Thu, Fri, Sat, Sun),7,1) Hum -matrix(c(56,57,60,75,62,67,70), Temp-matrix(c(76,77,81,95,82,77,83), Using the above information I want plot humidity and temperature on Y-axis and days on X-axis Any help is appreciated! [[alternative

[R] ggplot cumsum refined question (?)

2009-10-06 Thread stephen sefick
OK, so maybe last night was a little too much at one throw, so I have reduced the data to two stations- one that has precipitation and one that does not. This is going to be in the context of a larger data set. I would like to be able to issue a ggplot command and have cum sum just act on the

[R] Fwd: Long for Loop- calling C from R - Parallel Computing

2009-10-06 Thread Antonio Paredes
-- Forwarded message -- From: Antonio Paredes antonioparede...@gmail.com Date: Tue, Oct 6, 2009 at 9:41 AM Subject: Re: [R] Long for Loop- calling C from R - Parallel Computing To: Karl Ove Hufthammer k...@huftis.org Hello again, I'm hoping to get a response from some of the R

Re: [R] else if statement error

2009-10-06 Thread Uwe Ligges
Gabor Grothendieck wrote: 2009/10/6 Uwe Ligges lig...@statistik.tu-dortmund.de: The first rule is easy: As long as you are using scalar valued (i.e. length 1 vectors in R) cond, you should prefer if(cond) cons.expr else alt.expr rather than ifelse(cond, yes, no) because the latter one

Re: [R] Plot

2009-10-06 Thread Sarah Goslee
Did you try it? With, perhaps, plot() ? And lines() ? You might do better with Days as a factor with the day names in order. (And why are two full and five abbreviated?) I don't understand why Hum and Temp are matrices rather than vectors, and why then you didn't specify dimensions, and for that

Re: [R] ggplot cumsum refined question (?)

2009-10-06 Thread ONKELINX, Thierry
Dear Stephen, It is much easier to do you data preparation before plotting. Cummul - ddply(subset(DF, precipitation!=NA), gauge_name, function(x){ x$Cummul - cumsum(x$precipitation) x }) ggplot(Cummul, aes(x = date_time, y = Cummul)) + geom_line() + facet_wrap(~gauge_name,

Re: [R] Viewing specific data from a dataframe

2009-10-06 Thread Peter Ehlers
If I understand correctly, you can use which( ,arr.ind=TRUE): Assuming that you start with a data frame, dat - as.data.frame(matrix(runif(30), ncol=5)) nm - names(dat) cormat - cor(dat) cormat[lower.tri(cormat, diag=TRUE)] - NA idx - which(cormat 0.4, arr.ind=TRUE) idx cbind(nm[idx[,

Re: [R] ggplot cumsum refined question (?)

2009-10-06 Thread hadley wickham
It is much easier to do you data preparation before plotting. Cummul - ddply(subset(DF, precipitation!=NA), gauge_name, function(x){        x$Cummul - cumsum(x$precipitation)        x }) With a little less typing: Cummul - ddply(subset(DF, precipitation!=NA), gauge_name, transform,

Re: [R] R on Linux, and R on Windows , any difference in maturity+stability?

2009-10-06 Thread Jose Quesada
Robert Wilkins iwritecode2 at gmail.com writes: Will R have more glitches on one operating system as opposed to another, or is it pretty much the same? robert One important difference is that, if you are unsing large datasets and need memory, then windows is by far the worst. CRAN R

Re: [R] Letter-based representation of pairwise comparisons

2009-10-06 Thread hadley wickham
Please provide a reproducible example. I've had problems with multcompLetters in the past, because I was giving it slightly incorrect input. Hadley On Tue, Oct 6, 2009 at 7:41 AM, goz garbage.collec...@hotmail.fr wrote: hello, i try to use the multcomp letters, but i have problems with my

Re: [R] Plot

2009-10-06 Thread Ashta
Thanks Sara, Yes I did try. I could not get the Days on the X-axis blow is theerror message plot(Temp,Days) Error in plot.window(...) : need finite 'ylim' values In addition: Warning messages: 1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion 2: In min(x) : no non-missing

Re: [R] Plot

2009-10-06 Thread joris meys
Actually, it's a bit more complex than just plot(). First you have to make Days an ordered factor, otherwise you get indeed that error. days - c(Mon, Tue, Wed, Thu, Fri, Sat,Sun) Days - factor(days,levels=days,ordered=T) Then you want to make a plot with 2 axes, you should check :

[R] Is there a recent book on Q-Q plot and data visualization in general?

2009-10-06 Thread Peng Yu
Hi, I want to look for some detailed explanation on the properties of Q-Q plot and how the properties are derived. In R, there is the following reference. Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth Brooks/Cole. Somebody also mentioned the following

Re: [R] 'persp' query

2009-10-06 Thread Peter Ehlers
David Winsemius wrote: On Oct 6, 2009, at 4:46 AM, Geoffrey William Heard wrote: Hi All I'm creating some 3-D plots using the function 'persp', and have a query regarding the ability to make changes to the label of the z-axis. There are two things I would like to do. First, the default

Re: [R] Is there a recent book on Q-Q plot and data visualization in general?

2009-10-06 Thread Paul Hiemstra
Hi Peng Yu, Chapter 13 of the following book provides a good description of the assumption done when using regression and other techniques. It also discusses the QQplot. @BOOK{Christensen1996, title = {Plane Answers to Complex Questions: The Theory of Linear Models}, publisher = {Springer,

[R] RES: Plot

2009-10-06 Thread Rodrigo Aluizio
This may work for you. Then you can custom your graphics with ?par. Data-as.data.frame(matrix(c(Monday, Tuesday, Wed, Thu, Fri, Sat,Sun,56,57,60,75,62,67,70,76,77,81,95,82,77,83),ncol=3,nrow=7,list(pa ste('Row',1:7,sep=''),c('Days','Hum','Temp')),byrow=F)) plot(Data$Days,Data$Temp)

Re: [R] GLM quasipoisson error

2009-10-06 Thread Alain Zuur
atorso wrote: Hello, I'm having an error when trying to fit the next GLM: model-glm(response ~ CLONE_M + CLONE_F + HATCHING +(CLONE_M*CLONE_F) + (CLONE_M*HATCHING) + (CLONE_F*HATCHING) + (CLONE_M*CLONE_F*HATCHING), family=quasipoisson) anova(model, test=Chi) I guess that

Re: [R] Plot

2009-10-06 Thread Petr PIKAL
Hi beside other options if you do not want to learn how to order factor levels Days - c(Monday, Tuesday, Wed, Thu, Fri, Sat,Sun) Hum -c(56,57,60,75,62,67,70) Temp-c(76,77,81,95,82,77,83) limits-range(c(Hum, Temp)) limits [1] 56 95 plot(1:7, Hum, ylim=limits) points(1:7, Temp, col=2)

Re: [R] how to fit time varying coefficient regression model?

2009-10-06 Thread Alain Zuur
R_help Help wrote: Hi - I read through dse package manual a bit. I'm not quite certain how I can use it to estimate a time varying coefficient regression model? I might pick up an inappropriate package. Any suggestion would be greatly appreciated. Thank you. Just rewrite the linear

Re: [R] Letter-based representation of pairwise comparisons

2009-10-06 Thread goz
Ok, thanks for all your responses, i was thinking, after reading the firsts messages that use only the $p.value was good. By using a symetric matrix results are ok. It's also good with a pvalue vector (just like exemples in the help ...). many thanks for your help -- View this message in

Re: [R] ggplot cumsum refined question (?)

2009-10-06 Thread stephen sefick
The date time stamp is not the same? data.frame(as.chron(Cumul[,date_time]), DF[,date_time]) On Tue, Oct 6, 2009 at 9:31 AM, hadley wickham h.wick...@gmail.com wrote: It is much easier to do you data preparation before plotting. Cummul - ddply(subset(DF, precipitation!=NA), gauge_name,

[R] RES: RES: Plot

2009-10-06 Thread Rodrigo Aluizio
Oh yeah, I forgot that, just correct this by: Data-as.data.frame(matrix(c(Monday, Tuesday, Wed, Thu, Fri,Sat,Sun,56,57,60,75,62,67,70,76,77,81,95,82,77,83),ncol=3,nrow=7,l ist(paste('Row',1:7,sep=''),c('Days','Hum','Temp')),byrow=F)) Data$Hum-as.numeric(Data$Hum) Data$Temp-as.numeric(Data$Temp)

Re: [R] linear model with coefficient constraints

2009-10-06 Thread Dieter Menne
Rnewb wrote: I would like to perform a regression like the one below: lm(x ~ 0 + a1 + a2 + a3 + b1 + b2 + b3 + c1 + c2 + c3, data=data) However, the data has the property that a1+a2+a3 = A, b1+b2+b3 = B, and c1+c2+c3 = C, where A, B, Ravi Varadhan has an example how this could be

Re: [R] R on Linux, and R on Windows , any difference in maturity+stability?

2009-10-06 Thread Duncan Murdoch
On 10/6/2009 10:34 AM, Jose Quesada wrote: Robert Wilkins iwritecode2 at gmail.com writes: Will R have more glitches on one operating system as opposed to another, or is it pretty much the same? robert One important difference is that, if you are unsing large datasets and need memory,

Re: [R] else if statement error

2009-10-06 Thread Gabor Grothendieck
2009/10/6 Uwe Ligges lig...@statistik.tu-dortmund.de: Gabor Grothendieck wrote: 2009/10/6 Uwe Ligges lig...@statistik.tu-dortmund.de: The first rule is easy: As long as you are using scalar valued (i.e. length 1 vectors in R) cond, you should prefer  if(cond) cons.expr  else  alt.expr

Re: [R] Linear mixed effects model ?

2009-10-06 Thread Dieter Menne
Daniel Perkins wrote: Ideally we would do an ANCOVA to test for differences in slope or intercepts for the different streams. However as there were repeated measures and unequal n and unbalanced design, I have used a linear mixed effect model (from nlme package in R) in the form:

[R] tkProgressBar usage

2009-10-06 Thread deepthi c
I have a frame and I want to fix the progress bar onto it.I do not want progress bar to display as another GUI.how do i embed progress bar onto a frame ? -- Dipti [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] IRLS or other iteratively re weighted optimization algorithms with constraints in R

2009-10-06 Thread Corrado
Dear list, is there an iterative re weighted least square based algorithm or any or other iteratively re weighted optimisation algorithms for non linear (and possibly non parametric) optimisation problems with constraints available in R? Regards -- Corrado

[R] ggplot2: mapping categorical variable to color aesthetic with faceting

2009-10-06 Thread Bryan Hanson
Hello Again... I¹m making a faceted plot of a response on two categorical variables using ggplot2 and having troubles with the coloring. Here is a sample that produces the desired plot: compareCats - function(data, res, fac1, fac2, colors) { require(ggplot2) p - ggplot(data, aes(fac1,

Re: [R] IRLS or other iteratively re weighted optimization algorithms with constraints in R

2009-10-06 Thread David Winsemius
On Oct 6, 2009, at 12:14 PM, Corrado wrote: Dear list, is there an iterative re weighted least square based algorithm or any or other iteratively re weighted optimisation algorithms for non linear (and possibly non parametric) optimisation problems with constraints available in R? Have

Re: [R] Date-Time-Stamp input method for user-specific formats

2009-10-06 Thread esp
esp wrote: For the function as defined above using 'sapply' spot[,1] 01/09/2009 01/09/2009 00:00:01 01/09/2009 00:00:02 01/09/2009 00:00:03 1251759600 1251759601 1251759602 1251759603 This was unexpected - it seems to have displayed the

[R] Text editors for Sweave (rnw) files

2009-10-06 Thread Gregory Gentlemen
Hi fellow R-users, Are there any text editors that recognize sweave (.rnw) files? I am running Windows Vista and in the past I used Tinn-R for R files but it (surprisingly) doesn't recognize rnw files and does not do any syntax highlighting for them. Thanks in advance, Greg

Re: [R] Text editors for Sweave (rnw) files

2009-10-06 Thread Erik Iverson
Emacs with ESS would be one way to go. When editing a RNW file in ESS, you can use a key combination to go from RNW directly to PS or PDF, which is nice. Erik -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Gregory Gentlemen

Re: [R] Text editors for Sweave (rnw) files

2009-10-06 Thread Gabor Grothendieck
vim/gvim does syntax highlighting of R, Sweave and latex. On Tue, Oct 6, 2009 at 12:30 PM, Gregory Gentlemen gregory_gentle...@yahoo.ca wrote: Hi fellow R-users, Are there any text editors that recognize sweave (.rnw) files? I am running Windows Vista and in the past I used Tinn-R for R

Re: [R] ggplot2: mapping categorical variable to color aesthetic with faceting

2009-10-06 Thread baptiste auguie
Hi, I may be missing an important design decision, but could you not have only a single data.frame as an argument of your function? From your example, it seems that the colour can be mapped to the fac1 variable of data, compareCats - function(data) { require(ggplot2) p - ggplot(data,

[R] Way of handling empty value when reading in CSV

2009-10-06 Thread Jason Rupert
I believe I may be overlooking something simple in order address this, but I have searched RSeek.org and using ?, but cannot seem to find anything discussing this one. I am using read.csv to read in a csv file. Evidently in places there is nothing between the commas, so that when the data is

[R] mle from stats4

2009-10-06 Thread Stephen Collins
I am using mle as a wrapper from optim( ). How would I extract the convergence code, to know that optim( ) converged properly? Thanks, Stephen Collins, MPP | Analyst Global Strategy | Aon Benfield [[alternative HTML version deleted]] __

Re: [R] Date-Time-Stamp input method for user-specific formats

2009-10-06 Thread esp
Another solution, as a fix to my original algorithm, was found by a colleague (Matthew Roberts). While he claims not too much for its elegance, it does seem to work. This fix is based on the use of the 'pmax' function. This function is a variant of the 'max' (maximum) function to return a

Re: [R] Text editors for Sweave (rnw) files

2009-10-06 Thread Liviu Andronic
On 10/6/09, Gregory Gentlemen gregory_gentle...@yahoo.ca wrote: Are there any text editors that recognize sweave (.rnw) files? I am running Windows Vista and in the past I used Tinn-R for R files but it (surprisingly) doesn't recognize rnw files and does not do any syntax highlighting for

[R] linear model with coefficient constraints

2009-10-06 Thread Rnewb
I would like to perform a regression like the one below: lm(x ~ 0 + a1 + a2 + a3 + b1 + b2 + b3 + c1 + c2 + c3, data=data) However, the data has the property that a1+a2+a3 = A, b1+b2+b3 = B, and c1+c2+c3 = C, where A, B, and C are positive constants. So there are two extra degrees of freedom,

Re: [R] Letter-based representation of pairwise comparisons

2009-10-06 Thread retama
Hello: That's because the required input should be a symmetric matrix with all the comparisons, e.g., it should have the self-comparisons diagonal. In an hypotetical case with two treatments, the pairwise-comparison test output is something like that: A B B 0.80- but

Re: [R] Way of handling empty value when reading in CSV

2009-10-06 Thread Erik Iverson
I saved your data as test.csv, and read.csv(~/test.csv, header = TRUE) home sqr_footage cost 111500 15 222000 20 33 NA 30 443500 35 554000 45 I am using R 2.8.1, old I know... but maybe something else is going

Re: [R] Fwd: Long for Loop- calling C from R - Parallel Computing

2009-10-06 Thread jim holtman
It would help to understand the problem you are trying to solve and the constraints that you have to live under. I routinely process files with millions of rows of data, do a lot of processing and create graphics/reports from them in what I think is reasonable time (a couple of minutes at most

Re: [R] Text editors for Sweave (rnw) files

2009-10-06 Thread Steve Lianoglou
Hi, On Oct 6, 2009, at 12:30 PM, Gregory Gentlemen wrote: Hi fellow R-users, Are there any text editors that recognize sweave (.rnw) files? I am running Windows Vista and in the past I used Tinn-R for R files but it (surprisingly) doesn't recognize rnw files and does not do any syntax

Re: [R] mle from stats4

2009-10-06 Thread Peter Dalgaard
Stephen Collins wrote: I am using mle as a wrapper from optim( ). How would I extract the convergence code, to know that optim( ) converged properly? The return value from optim is contained in the details slot, so f...@details$convergence [1] 0 -- O__ Peter Dalgaard

Re: [R] mle from stats4

2009-10-06 Thread Ben Bolker
Stephen Collins-6 wrote: I am using mle as a wrapper from optim( ). How would I extract the convergence code, to know that optim( ) converged properly? library(stats4) example(mle) slotNames(fit1) f...@details f...@details$convergence -- View this message in context:

Re: [R] ggplot2: mapping categorical variable to color aesthetic with faceting

2009-10-06 Thread baptiste auguie
Further to my previous reply, it occurred to me that ggplot2 would only ever use data and colors in your calls to compareCats(): res = res, fac1 = fac1, fac2 = fac2 have no effect whatsoever. If you want the user to be able to specify the variables used in the ggplot2 call, you probably want to

Re: [R] Spatial Autocorrelation

2009-10-06 Thread spencerg
In addition to the taskview (below), you might consider using the sos package, something like the following: sa - ???'spatial autocorrelation' # 58 matches sc - ???'spatial correlation' # 181 matches s. - sa|sc # union of the to 'findFn' objects summary(s.) # 224 links in 57 packages

Re: [R] Way of handling empty value when reading in CSV

2009-10-06 Thread Jason Rupert
Well, I guess I posted a poor example. This example is a little closer: home,sqr_footage,cost,color,exterior 1,1500,15,,Siding 2,2000,20,Red,Brick 3,,30,Grey,Brick 4,3500,35,Blue, 5,4000,45,Red,Brick This one actually shows the presence of the null fields that are loaded.

Re: [R] R on Linux, and R on Windows , any difference in maturity+stability?

2009-10-06 Thread Kjetil Halvorsen
On Tue, Oct 6, 2009 at 11:23 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 10/6/2009 10:34 AM, Jose Quesada wrote: Robert Wilkins iwritecode2 at gmail.com writes: Will R have more glitches on one operating system as opposed to another, or is it pretty much the same? robert One

Re: [R] ggplot2: mapping categorical variable to color aesthetic with faceting

2009-10-06 Thread Bryan Hanson
Hi Baptiste: Thanks for the suggestion. It will work perfectly. I would have never considered assigning a color to a variable that contained no colors at all! I guess this is part of the aesthetic concept, which I haven't had time to reflect on much. Then later, specify a manual color scale

Re: [R] Way of handling empty value when reading in CSV

2009-10-06 Thread jim holtman
Does this do what you want: ) x - read.csv(textConnection(home,sqr_footage,cost,color,exterior + 1,1500,15,,Siding + 2,2000,20,Red,Brick + 3,,30,Grey,Brick + 4,3500,35,Blue, + 5,4000,45,Red,Brick), na.strings='') closeAllConnections() x home sqr_footage cost color

Re: [R] R on Linux, and R on Windows , any difference in maturity+stability?

2009-10-06 Thread Duncan Murdoch
On 10/6/2009 1:17 PM, Kjetil Halvorsen wrote: On Tue, Oct 6, 2009 at 11:23 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 10/6/2009 10:34 AM, Jose Quesada wrote: Robert Wilkins iwritecode2 at gmail.com writes: Will R have more glitches on one operating system as opposed to another, or

Re: [R] R on Linux, and R on Windows , any difference in maturity+stability?

2009-10-06 Thread David M Smith
On Tue, Oct 6, 2009 at 10:30 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: When running a 32 bit program, 64 bit Windows hides most of itself outside the address space visible to the program, so almost all of the 4 Gb address space is available to the user.  But no more: no matter how much RAM

Re: [R] Robust ANOVA with variance heterogeneity

2009-10-06 Thread Kjetil Halvorsen
Hola! see below. On Sat, Oct 3, 2009 at 2:45 PM, David Winsemius dwinsem...@comcast.net wrote: Do you have a citation for that statement? I cannot convince myself that it should be true. OK. that took some time, since I have no nonparametrics book with me, but it is a fairly standard

[R] how to output profile plots for groups using lattice package

2009-10-06 Thread George Kalema
Dear R users, I am trying to have an xyplot of a data set which has the following variables: case (n=10,20,30) parameter (parm=a,b) group (grp=g1,g2) y (y values) x (x=2,4,8) My plot should be parameter by case such that I have 2 rows (each row= each parameter) and 3 columns (each column=each

[R] How to extract names from a vector

2009-10-06 Thread kayj
Hi All, I have a character vector of length=700. The vector contains names and I want to extract the names that contain the number 101. The number 101 could be anywhere within the name. what is the best way to do this? -- View this message in context:

Re: [R] How to extract names from a vector

2009-10-06 Thread Henrique Dallazuanna
See ?grep On Tue, Oct 6, 2009 at 2:48 PM, kayj kjaj...@yahoo.com wrote: Hi All, I have a character vector of length=700.  The vector contains names and I want to extract the names that contain the number 101.  The number 101 could be anywhere within the name. what is the best way to do

Re: [R] Robust ANOVA with variance heterogeneity

2009-10-06 Thread David Winsemius
On Oct 6, 2009, at 1:51 PM, Kjetil Halvorsen wrote: On Sat, Oct 3, 2009 at 2:45 PM, David Winsemius dwinsem...@comcast.net wrote: Do you have a citation for that statement? I cannot convince myself that it should be true. OK. that took some time, since I have no nonparametrics book

Re: [R] R on Linux, and R on Windows , any difference in maturity+stability?

2009-10-06 Thread Duncan Murdoch
On 10/6/2009 1:43 PM, David M Smith wrote: On Tue, Oct 6, 2009 at 10:30 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: When running a 32 bit program, 64 bit Windows hides most of itself outside the address space visible to the program, so almost all of the 4 Gb address space is available to the

Re: [R] How to extract names from a vector

2009-10-06 Thread Erik Iverson
vec - 1:700 names(vec) - 700:1 names(vec)[grep(101, names(vec))] -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of kayj Sent: Tuesday, October 06, 2009 12:49 PM To: r-help@r-project.org Subject: [R] How to extract names from a

[R] Export to Excel

2009-10-06 Thread johannes rara
I spotted quite nice blog post by learning r blog http://learnr.wordpress.com/2009/10/06/export-data-frames-to-multi-worksheet-excel-file/ very good summary how to export data from R to multiple Excel sheets. - Johannes __ R-help@r-project.org

  1   2   >