[R] Reading file from remote location or network drive.

2009-01-01 Thread Harsh
Hello, I'm trying to pull data from a network drive on a windows machine. The location is read into a string and then used later with a data input command. > rem<- "\\192.192.192.3\Shared\iris1.csv" Warning messages: 1: '\S' is an unrecognized escape in a character string 2: '\i' is an unrecogni

[R] "registering" a generic method for a class

2009-01-01 Thread m.u.r.
Sorry in advance if this is too simple a question, but I'm stuck with some odd behavior and I can't find the text to rid myself of this (admittedly somewhat trivial) problem. Note that I've done generic programming with S3 "objects" in the past, but I've never really dabbled in creating S4 objects

[R] Orthogonal contrasts for unbalanced ANOVA

2009-01-01 Thread David Cooper
I have unbalanced sets of data for a 3-way ANOVA. Factor A has 37 elements, Factor B has 6 and Factor C has 2 with 4 repetions for the first and 3 for the second, so that there are 888 and 666 = 1554 sets of numbers. My attempts to perform contrast tests with the base package (2.8.1) have resulte

Re: [R] WinBUGS posterior samples (via R2WinBUGS)?

2009-01-01 Thread Gregor Gorjanc
Anny Huang gmail.com> writes: > I did some analysis using package R2WinBUGS to call WinBUGS. I set the > iterations to 5 (fairly a large number, I think), but after the program > was done, the effective posterior samples contained only 7 draws. I don't > know why. This indicates that you ha

[R] Computing/Interpreting Odds Ratios for 3-way interactions from lmer

2009-01-01 Thread Owen, Amanda J
Hello, I am a relative novice at both using regression analysis and at using R in general (and at object oriented programing). A colleague convinced me that binary logistic regression is the most appropriate analysis for the data that I have though, so I've been trying to muddle through. I

Re: [R] Suggestions for inputting a date via a dialog box?

2009-01-01 Thread Gabor Grothendieck
Try this: library(fgui) gui(function(year, month, day) as.Date(paste(year, month, day, sep = "-"))) On Thu, Jan 1, 2009 at 3:33 PM, Tubin wrote: > > For this particular situation, a dialog box with separate entry for month, > day, and year might be the best solution. Thanks. > > The user is on

Re: [R] Suggestions for inputting a date via a dialog box?

2009-01-01 Thread Tubin
For this particular situation, a dialog box with separate entry for month, day, and year might be the best solution. Thanks. The user is on a unix-based machine (a Mac with OS 10.4x) but I am expecting him to upgrade to Leopard before long. So I'm already struggling with TclTk issues with him.

Re: [R] finding yap.exe with Sweave

2009-01-01 Thread Duncan Murdoch
On 01/01/2009 3:07 PM, Felipe Carrillo wrote: Problem solved. I reinstalled R and MikTex. Don't know why it didn't happen before, but now Sweave is able to find MikTex and creates the pdf file. It is kind of strange though, when I run texi2dvi it gives an error message saying that it cannot cr

Re: [R] finding yap.exe with Sweave

2009-01-01 Thread Felipe Carrillo
Problem solved. I reinstalled R and MikTex. Don't know why it didn't happen before, but now Sweave is able to find MikTex and creates the pdf file. It is kind of strange though, when I run texi2dvi it gives an error message saying that it cannot create the pdf but it still creates one. --- On

Re: [R] interpretation of conf.type in predict.Design {Design}

2009-01-01 Thread Kingsford Jones
Hi Dylan, I haven't looked at the code for predict.Design or predict.lm, but I think it's safe to assume that "mean" and "confidence" refer to the same concept, as do "individual" and "prediction". Here's my logic: In general, confidence intervals refer to parameter estimates and prediction int

Re: [R] Instalación de WinEdt para R

2009-01-01 Thread Uwe Ligges
Well, I really cannot understand everything in your message, but I hope I got the essential points: The current version of RWinEdt is 1.8-0 and you do not need to follow any manual any more, because for the installation you can simply type: install.packages("RWinEdt") To start up RWinEdt in

[R] RES: How do I plot multiple XY plots on the same graph

2009-01-01 Thread Rodrigo Aluizio
Also, you can take a look at ?matplot function, depending on the type of data and graphic output you want, it may b useful. Best Wishes ___ MSc. Rodrigo Aluizio Centro de Estudos do Mar/UFPR Laboratório de Micropaleontologia Avenida Beira Mar s/n - CEP 83255-000 Pon

Re: [R] Downloading data from Economagic

2009-01-01 Thread Gabor Grothendieck
I was only addressing the part about converting it to a zoo object. Contact the fImport maintainer directly to sort out problems with that package. On Thu, Jan 1, 2009 at 2:06 AM, RON70 wrote: > > Thanks Gabor for your reply. However it seems that data is not downloaded > properly. Please take a

Re: [R] sdate<-as.POSIXct(strptime(date,format="%m/%d/%Y %H:%M"))

2009-01-01 Thread Gabor Grothendieck
See last line of every message to r-help or read R News 4/1 which gives info on this. On Wed, Dec 31, 2008 at 2:20 PM, Graves, Gregory wrote: > Newbie here~ > > I've spent a ton of time on this, but have to admit I am stuck. I've tried > various combinations of strptime and the package CHRON, b

Re: [R] How do I plot multiple XY plots on the same graph

2009-01-01 Thread Carlos J. Gil Bellosta
Hello, You can use plot for the first plot and points for the subsequent ones. Points will add new points to the existing plot reusing the axes, labels, etc. Best regards, Carlos J. Gil Bellosta http://www.datanalytics.com On Wed, 2008-12-31 at 15:36 -0800, George Chen wrote: > Hello, > I hav

Re: [R] Is there some way to append to a pdf after its device has been closed?

2009-01-01 Thread Patrick Connolly
On Tue, 30-Dec-2008 at 11:21AM -0500, Alex Pine wrote: |> Patrick, |> |> The reason I'm having a problem is because R only allows a maximum of 64 |> devices to be open at one time. If it allowed more than that, I wouldn't |> have a problem. One way to get around that problem would be if I could c

Re: [R] sdate<-as.POSIXct(strptime(date,format="%m/%d/%Y %H:%M"))

2009-01-01 Thread Prof Brian Ripley
Please do read the posting guide and supply the information asked for. There is nothing here I can reproduce: Sys.setenv(TZ="EST5EDT") date <- c("11/19/2006 00:00", "11/19/2006 00:10") as.POSIXct(strptime(date,format="%m/%d/%Y %H:%M")) gives [1] "2006-11-19 00:00:00 EST" "2006-11-19 00:10:00 ES

[R] How do I plot multiple XY plots on the same graph

2009-01-01 Thread George Chen
Hello, I have multiple data sets I would like to plot on the same XY scatterplot. The data sets have in common the same Y values. Could somebody tell me how to do this? I tried par(T=new) (I think this was it) but it literally overlays plots on each other. Thanks in advance. George __

[R] sdate<-as.POSIXct(strptime(date,format="%m/%d/%Y %H:%M"))

2009-01-01 Thread Graves, Gregory
Newbie here~ I've spent a ton of time on this, but have to admit I am stuck. I've tried various combinations of strptime and the package CHRON, but still can't get there. My simple task is that I want to plot salinity (S1 or S2) on y-axis and time on x-axis, but I want to use a lay-understa