Re: [R] Simple lme/lmer random effects questions

2008-08-12 Thread Mark Difford
Hi Brandon, >> ...is it sufficient to leave the values as they are or should I generate >> unique names for all >> combinations of sleeve number and temperature, using something like >> > data$sleeve.in.temp <- factor(with(data, temp:sleeve)[drop=TRUE]) You might be luckier posting this on htt

Re: [R] FastICA

2008-08-12 Thread Prof Brian Ripley
On Tue, 12 Aug 2008, someone with no signature wrote: Maura E Monville gmail.com> writes: Is the FastICA R implementation as good as the MatLab Implementation ? I would appreciate talking to someone who has used FastICA for R. The fastICA packages for Matlab and R (and there is even a vers

Re: [R] help.search warning?

2008-08-12 Thread Prof Brian Ripley
On Tue, 12 Aug 2008, Prof Brian Ripley wrote: On Mon, 11 Aug 2008, Dong-hyun Oh wrote: Dear useRs, When I executed help.search(), I got nothing other than the following warning message. R> help.search("print") Error in help.search("print") : (converted from warning) removing all entries wi

Re: [R] Unexpected parameter problem using rsaga.geoprocessor() {RSAGA}

2008-08-12 Thread Alexander Brenning
Dear Amelie, > Le service Beep n'est pas lanc‚. this can be fixed by passing an additional argument beep.off = FALSE to the rsaga.geoprocessor function; the most recent RSAGA release on CRAN does not cause this problem any more, I recommend you to update the package in your installation. The

[R] Maximum likelihood estimation

2008-08-12 Thread Jurica Brajković
Hello, I am struggling for some time now to estimate AR(1) process for commodity price time series. I did it in STATA but cannot get a result in R. The equation I want to estimate is: p(t)=a+b*p(t-1)+error Using STATA I get 0.92 for a, and 0.73 for b. Code that I use in R is: p<-matrix(data

Re: [R] problem to load the RGrace package

2008-08-12 Thread Tomas Lanczos
Hello everybody, it looks that there is probably a problem with the libglade. I installed the rattle package and after start I got the following errormessage: library(rattle) Rattle, Graphical interface for data mining using R, Version 2.3.65. Copyright (C) 2008 Togaware Pty Ltd Type "rattle()

Re: [R] FastICA

2008-08-12 Thread Hans W. Borchers
Prof Brian Ripley stats.ox.ac.uk> writes: > > On Tue, 12 Aug 2008, someone with no signature wrote: > > > Maura E Monville gmail.com> writes: > > > >> > >> Is the FastICA R implementation as good as the MatLab Implementation ? > >> I would appreciate talking to someone who has used FastICA for

Re: [R] ANOVA tables - storing F values

2008-08-12 Thread bartjoosen
Hi, lets look at an example: fit <- lm(sr ~ ., data = LifeCycleSavings) fit.anova <- anova(fit) you can see the structure from the anova: str(fit.anova) Classes ‘anova’ and 'data.frame': 5 obs. of 5 variables: $ Df : int 1 1 1 1 45 $ Sum Sq : num 204.1 53.3 12.4 63.1 650.7 $

[R] Quickly calculating the mean results over a collection of data sets?

2008-08-12 Thread Michael R. Head
I have a collection of datasets in separate data frames which have 3 independent test parameters (w, x, y) and one dependent variable (z) , together with some additional static test data on each row. What I want is a data frame which contains the test data, the parameters (w, x, y) and the mean val

[R] gap.plot() and axes=F

2008-08-12 Thread Verena Hoffmann
Hello! Using the package Plotrix I want to do a plot with a broken axis. So far it's working fine but now I want only the x and y axis plotted (the x-axis with a gap in it), but not the axes that are reffered to as axis 3 and 4, and not the lines that additionally mark the gap in the axis. I tho

Re: [R] ANOVA help

2008-08-12 Thread Gareth Campbell
Hmm, I have my elements (as in chemical elements) as columns and my samples as rows. This is the normal way round for all my other analyses. I think I figured it out... I have 6 groups, all of about 10-12 samples and each with 31 elements. So for each group there are many more elements than sam

[R] [RODBC] date attribute in sqlQuery

2008-08-12 Thread Abderrazzak MANY
Hello R users, I would like to use an integer and a date as attributes in sqlQuery, and these arguments are defined in my function. Here is my function: GetReturn<-function(code,date) { channel<-odbcConnect("db","user1","password") ssql<-paste("select * from TABLE Where PF_CODE =",code,"and

Re: [R] Frequency vector

2008-08-12 Thread David Carslaw
how about: a <- c(1,1,1,1,2,3,4,5,5) b <- as.data.frame(table(a)) b a Freq 1 14 2 21 3 31 4 41 5 52 which you can then select the bits you want from. David dennis11 wrote: > > I want to create a vecor with frequencies. > > I have tried this: > > a <- c(1,1,1,1,2,3,

[R] [RODBC] sqlQuery with date attribute

2008-08-12 Thread Abderrazzak MANY
Hello R users, I would like to use an integer and a date as attributes in sqlQuery, and these arguments are defined in my function. Here is my function: GetReturn<-function(code,date) { channel<-odbcConnect("db","user1","password") ssql<-paste("select * from TABLE Where PF_CODE =",code,"and

[R] dixon test

2008-08-12 Thread giov
Hi, I need some help using the R outliers package. I would like to perform a Q-test (Dixon test) on my data set. I used the dixon.test function, but I cannot understand what is the confidence level used to perform the test. I have n=101 (n= number of data). So, can I use directly dixon.test ? What

[R] Frequency vector

2008-08-12 Thread dennis11
I want to create a vecor with frequencies. I have tried this: a <- c(1,1,1,1,2,3,4,5,5) b <- table(a) print (b[1]) which results in: > print (b[1]) 1 4 The only thing I want is the 4. So this seems obvious: print (b[1,2]) but it does not work: Error in b[1, 2] : incorrect number of dimens

Re: [R] FastICA

2008-08-12 Thread Hans W. Borchers
I may not have been as wrong as Prof. Ripley suggested when I wrote "The fastICA packages for Matlab and R (...) have a common origin at the Helsinki University of Technology." Please consider the following lines from the 'fastICA' help page (?fastICA): FastICA algorithm Description:

Re: [R] ANOVA help

2008-08-12 Thread Prof Brian Ripley
On Tue, 12 Aug 2008, Gareth Campbell wrote: Hmm, I have my elements (as in chemical elements) as columns and my samples as rows. This is the normal way round for all my other analyses. I think I figured it out... I have 6 groups, all of about 10-12 samples and each with 31 elements. So for e

Re: [R] [RODBC] date attribute in sqlQuery

2008-08-12 Thread Prof Brian Ripley
On Tue, 12 Aug 2008, Abderrazzak MANY wrote: Hello R users, I would like to use an integer and a date as attributes in sqlQuery, and these arguments are defined in my function. Here is my function: GetReturn<-function(code,date) { channel<-odbcConnect("db","user1","password") ssql<-paste("

[R] tilde on a spanish keyboard?

2008-08-12 Thread Martin Henry H. Stevens
I was trying to help someone who used a spanish keyboard on a PC running Windows. he discovered that he had no tilde key. Does anyone know of any simple work-arounds? Thanks, Hank Dr. Hank Stevens, Associate Professor 338 Pearson Hall Botany Department Miami University Oxford, OH 45056 Offic

Re: [R] How to repress the annoying complains from X window system

2008-08-12 Thread Marc Schwartz
on 08/09/2008 06:06 PM dusa.adrian wrote: Dear Marc, Marc Schwartz wrote: On Fri, 2007-05-18 at 11:25 -0400, Hao Liu wrote: Dear All: I am running some GUI functions in linux environment, they runs fine, however I constantly get this kind of message in R console: Warning: X11 protocol err

Re: [R] Frequency vector

2008-08-12 Thread Michael R. Head
On Tue, 2008-08-12 at 01:21 -0700, dennis11 wrote: > I want to create a vecor with frequencies. > > I have tried this: > > a <- c(1,1,1,1,2,3,4,5,5) > b <- table(a) > print (b[1]) > > which results in: > > print (b[1]) > 1 > 4 > The only thing I want is the 4. Isn't this one if the situation

[R] Senging commands to the GUI in Windows through a script

2008-08-12 Thread tolga . i . uzuner
Dear R Users, How can I send commands to the R GUI from within a R script in Microsoft Windows ? I am trying to get the windows within the R GUI to Tile after I draw a graph. Thanks in advance, Tolga Generally, this communication is for informational purposes only and it is not intended as an

Re: [R] Quickly calculating the mean results over a collection of data sets?

2008-08-12 Thread Dan Davison
On Tue, Aug 12, 2008 at 04:47:14AM -0400, Michael R. Head wrote: > I have a collection of datasets in separate data frames which have 3 > independent test parameters (w, x, y) and one dependent variable (z) , > together with some additional static test data on each row. What I want > is a data fram

Re: [R] tilde on a spanish keyboard?

2008-08-12 Thread Henrique Dallazuanna
You want the tilde on R? If yes, you want do this: plot(1, xlab = "\u0303") plot(1, xlab = "\u00c3") plot(1, xlab = "\u00D1") On 8/12/08, Martin Henry H. Stevens <[EMAIL PROTECTED]> wrote: > I was trying to help someone who used a spanish keyboard on a PC running > Windows. he discovered that

[R] Threshold vector error correction models

2008-08-12 Thread Werner Wernersen
Hi, is anyone aware of estimation functions for threshold vector error correction / threshold cointegration models? I didn't find anything for R using RSeek or Google. Thanks a lot for any pointers, Werner __ Do You Yahoo!? hutz gegen Massenmai

Re: [R] Frequency vector

2008-08-12 Thread Dan Davison
On Tue, Aug 12, 2008 at 01:21:29AM -0700, dennis11 wrote: > > I want to create a vecor with frequencies. > > I have tried this: > > a <- c(1,1,1,1,2,3,4,5,5) > b <- table(a) > print (b[1]) > > which results in: > > print (b[1]) > 1 > 4 > > The only thing I want is the 4. > > So this seems

Re: [R] tilde on a spanish keyboard?

2008-08-12 Thread Henrique Dallazuanna
The try this: form <- as.formula('x\u007ey') lm(form) On 8/12/08, Martin Henry H. Stevens <[EMAIL PROTECTED]> wrote: > Thanks Henrique. We need to use the tilde in formula statements as in, > lm(y ~ x) > > Any ideas? > > On Aug 12, 2008, at 7:02 AM, Henrique Dallazuanna wrote: > > You want the ti

Re: [R] Hello,

2008-08-12 Thread Richard Pearson
Kiran exonmap is a bioconductor package - I'd suggest trying the bioconductor mailing list. Also, you're more likely to get a response if you include an informative subject line. Regards Richard. Kiran Annaiah wrote: Hello, A newbie to R. I am trying to use the exonmap package in R. Acc

Re: [R] tilde on a spanish keyboard?

2008-08-12 Thread Martin Henry H. Stevens
Thanks Henrique. We need to use the tilde in formula statements as in, lm(y ~ x) Any ideas? On Aug 12, 2008, at 7:02 AM, Henrique Dallazuanna wrote: You want the tilde on R? If yes, you want do this: plot(1, xlab = "\u0303") plot(1, xlab = "\u00c3") plot(1, xlab = "\u00D1") On 8/12/08, Mar

Re: [R] generating a random signal with a known correlation

2008-08-12 Thread stephen sefick
sowas package by douglas mauran. Type sowas into google. On Tue, Aug 12, 2008 at 12:14 AM, Yasir Kaheil <[EMAIL PROTECTED]> wrote: > > OK, here is the code for those who are interested: > x<-rnorm(1000, mean=20, sd=100); > x.s<-scale(x) > xp<-pnorm(x.s); > xix<- sort(xp,index.return=TRUE)$ix > no

[R] Odp: biplot_group_colours_and_point_symbols

2008-08-12 Thread Petr PIKAL
Hi [EMAIL PROTECTED] napsal dne 29.07.2008 17:28:15: > hi, > i am seeking for a solution to create a biplot that shows: > a) data points instead of labels and that > b) shows two different groups (field: site with two factor levels: forest/ > corridor) in different colours > > i tried to inclu

Re: [R] tilde on a spanish keyboard?

2008-08-12 Thread Martin Henry H. Stevens
Sweet - works like a charm. Thanks! Hank On Aug 12, 2008, at 7:19 AM, Henrique Dallazuanna wrote: The try this: form <- as.formula('x\u007ey') lm(form) On 8/12/08, Martin Henry H. Stevens <[EMAIL PROTECTED]> wrote: Thanks Henrique. We need to use the tilde in formula statements as in, lm(y ~

Re: [R] How to repress the annoying complains from X window system

2008-08-12 Thread John Fox
Dear Mark and Adrian, I was under the impression that these errors were fixed in R 2.4.0; you could try setting the Rcmdr option suppress.X11.warnings=TRUE and see whether that helps (but first read the information on the option in ?Commander). As Mark mentioned, I'm currently at the useR confere

Re: [R] Making shadowed plot of individual profile from Longitudinal data

2008-08-12 Thread Jim Lemon
On Mon, 2008-08-11 at 01:25 -0700, john james wrote: > Dear R-help, > > I have a longitudinal dataset with about 5,000 subjects. To avoid overly > cluttered plot of the individual profile, I want the plot to be shadowed and > to randomly select say 100 subjects which will be depicted using darke

Re: [R] gap.plot() and axes=F

2008-08-12 Thread Jim Lemon
On Tue, 2008-08-12 at 11:27 +0200, Verena Hoffmann wrote: > Hello! > Using the package Plotrix I want to do a plot with a broken axis. > So far it's working fine but now I want only the x and y axis plotted > (the x-axis with a gap in it), but not the axes that are reffered to as > axis 3 and 4,

Re: [R] tilde on a spanish keyboard?

2008-08-12 Thread Prof Brian Ripley
On Windows you can get any character by Alt+0126 for the decimal code (which for tilde I think is 126, but I am not on Windows to check it). On Tue, 12 Aug 2008, Henrique Dallazuanna wrote: The try this: form <- as.formula('x\u007ey') \x73 would be a more compact form. lm(form) On 8/12/0

Re: [R] How to repress the annoying complains from X window system

2008-08-12 Thread Prof Brian Ripley
On Tue, 12 Aug 2008, John Fox wrote: Dear Mark and Adrian, I was under the impression that these errors were fixed in R 2.4.0; you could try setting the Rcmdr option suppress.X11.warnings=TRUE and see whether that helps (but first read the information on the option in ?Commander). The X11() w

Re: [R] FastICA

2008-08-12 Thread Prof Brian Ripley
On Tue, 12 Aug 2008, someone with no credentials wrote: I may not have been as wrong as Prof. Ripley suggested when I wrote "The fastICA packages for Matlab and R (...) have a common origin at the Helsinki University of Technology." Please consider the following lines from the 'fastICA' help pa

Re: [R] Senging commands to the GUI in Windows through a script

2008-08-12 Thread tolga . i . uzuner
OK thanks, Tolga Prof Brian Ripley <[EMAIL PROTECTED]> 12/08/2008 12:46 To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] Senging commands to the GUI in Windows through a script On Tue, 12 Aug 2008, [EMAIL PROTECTED] wrote: > Dear R Users, > > How can I send commands to the R

Re: [R] Quickly calculating the mean results over a collection of data sets?

2008-08-12 Thread Michael R. Head
On Tue, 2008-08-12 at 12:04 +0100, Dan Davison wrote: > > testRuns <- lapply(inputFiles, > > function(x) { > > read.table(x, header=TRUE)}) > > (Just BTW lapply(inputFiles, read.table, header=TRUE) is slightly nicer to > look at) Yes, that does look much nicer :-

Re: [R] Senging commands to the GUI in Windows through a script

2008-08-12 Thread Prof Brian Ripley
On Tue, 12 Aug 2008, [EMAIL PROTECTED] wrote: Dear R Users, How can I send commands to the R GUI from within a R script in Microsoft Windows ? I am trying to get the windows within the R GUI to Tile after I draw a graph. Not directly (it's possible you can via COM, but there is no R function

[R] Between the values

2008-08-12 Thread Shubha Vishwanath Karanth
Hi R, This is a very trivial one C=0.1 I want to check whether my value of C is between 0 and 1 exclusively I don't want to use (C>0 & C<1). And I can't use a single statement like (0https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-proje

Re: [R] tilde on a spanish keyboard?

2008-08-12 Thread Prof Brian Ripley
On Tue, 12 Aug 2008, Prof Brian Ripley wrote: On Windows you can get any character by Alt+0126 for the decimal code (which for tilde I think is 126, but I am not on Windows to check it). On Tue, 12 Aug 2008, Henrique Dallazuanna wrote: The try this: form <- as.formula('x\u007ey') \x73 wou

Re: [R] tilde on a spanish keyboard?

2008-08-12 Thread Michael R. Head
On Tue, 2008-08-12 at 07:15 -0400, Martin Henry H. Stevens wrote: > Thanks Henrique. We need to use the tilde in formula statements as in, > lm(y ~ x) > > Any ideas? Does windows still let you hold down the right alt-key and type ascii character codes on the number pad? If so, you should be abl

Re: [R] number of an element in a matrix

2008-08-12 Thread Petr PIKAL
Hi [EMAIL PROTECTED] napsal dne 11.08.2008 22:50:08: > You can use the length() and which() functions for that: > > > length(which(m == 2)) Or simply sum(m == 2) Regards Petr > > cheers, > brandon > > > rostam shahname wrote: > > Hi, I wonder if there is any function which gives the numb

Re: [R] Between the values

2008-08-12 Thread Dan Davison
On Tue, Aug 12, 2008 at 05:16:01PM +0530, Shubha Vishwanath Karanth wrote: > Hi R, > > > > This is a very trivial one > > > > C=0.1 > > > > I want to check whether my value of C is between 0 and 1 exclusively > I don't want to use (C>0 & C<1). And I can't use a single statement

[R] Eclipse and R

2008-08-12 Thread Sergey Goriatchev
Hello, I am running R in Eclipse, and when I start Eclipse or when I get error messages, they are in German. (My computer's regional language settings are German.) Is there a way to switch to English in Eclipse without changing my global regional language settings? In basic R GUI this is possible

Re: [R] tilde on a spanish keyboard?

2008-08-12 Thread Prof Brian Ripley
On Tue, 12 Aug 2008, Michael R. Head wrote: On Tue, 2008-08-12 at 07:15 -0400, Martin Henry H. Stevens wrote: Thanks Henrique. We need to use the tilde in formula statements as in, lm(y ~ x) Any ideas? Does windows still let you hold down the right alt-key and type ascii character codes on t

[R] separate maps in one figure

2008-08-12 Thread John P. Burkett
My aim is to create a figure consisting of three maps: Alaska in the upper left corner, the 48 contiguous US states in the center right, and Hawaii in the lower left corner. In some ways the figure I'm trying to create is analogous to figure 1.5 in Paul Murrell's excellent "R Graphics", which

Re: [R] Between the values

2008-08-12 Thread Shubha Vishwanath Karanth
Or at least anyways of defining a vector/(or something like that) which has all values between 0 and 1? For example: C(0,1) is incorrect, seq(0,1,0.2) is also incorrect, seq(0,1,0.1) is also incorrect How does one specify this? Thanks, Shubha -Original Message- From: Dan Davis

Re: [R] How to repress the annoying complains from X window system

2008-08-12 Thread Adrian Dusa
On Tuesday 12 August 2008, Prof Brian Ripley wrote: > On Tue, 12 Aug 2008, John Fox wrote: > > Dear Mark and Adrian, > > > > I was under the impression that these errors were fixed in R 2.4.0; you > > could try setting the Rcmdr option suppress.X11.warnings=TRUE and see > > whether that helps (but

Re: [R] How to repress the annoying complains from X window system

2008-08-12 Thread John Fox
Dear Brian and Adrian, Brian: Thanks for pointing out that the messages are not the same as the warnings that were produced prior to R 2.4.0. Adrian: If the problem reoccurs with a predictable error message, please let me know; I'll then alter the Rcmdr code to intercept the Tk messages as well.

Re: [R] Between the values

2008-08-12 Thread Ravi Varadhan
Hi Shubaa, Here is one way to do this: is.between <- function(x, a, b) { x > a & x < b } set.seed(123) x <- rnorm(5) is.between(x, -1, 1) > is.between(x, -1, 1) [1] TRUE TRUE FALSE TRUE TRUE > Ravi. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behal

Re: [R] Between the values

2008-08-12 Thread Shubha Vishwanath Karanth
Thanks Ravi... But was just wondering if there existed a simple tricky command for that without using the & condition Also was thinking on my second question that how do we define an interval between 0 and 1 which contains all the values between 0 and 1. Thanks, Shubha Shubha Karanth | Amba

Re: [R] Between the values

2008-08-12 Thread Dan Davison
Shubha Vishwanath Karanth wrote: > > Or at least anyways of defining a vector/(or something like that) which > has all values between 0 and 1? > > For example: > C(0,1) is incorrect, seq(0,1,0.2) is also incorrect, seq(0,1,0.1) is > also incorrect How does one specify this? > > Hi

Re: [R] Between the values

2008-08-12 Thread Ravi Varadhan
Here is how you check whether a < x < b "without" using the `&' condition: is.between <- function(x, a, b) { (x - a) * (b - x) > 0 } Ravi. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shubha Vishwanath Karanth Sent: Tuesday, August 12, 2008 9:46 A

Re: [R] How to repress the annoying complains from X window system

2008-08-12 Thread Prof Brian Ripley
On Tue, 12 Aug 2008, John Fox wrote: Dear Brian and Adrian, Brian: Thanks for pointing out that the messages are not the same as the warnings that were produced prior to R 2.4.0. Adrian: If the problem reoccurs with a predictable error message, please let me know; I'll then alter the Rcmdr cod

[R] Memory allocation problem

2008-08-12 Thread Jamie Ledingham
Dear R users, I am running a large loop over about 400 files. To outline generally, the code reads in the initial data file, then uses lookup text files to obtain more information before connecting to a SQL database using RODBC and extracting more data. Finally all this is polar plotted. My proble

Re: [R] Between the values

2008-08-12 Thread Shubha Vishwanath Karanth
ThanksDidn't mean actually using '&', but not bigger than that too... I usually see something done much better in R-help by a code which I don't know at all. So, wanted to know if I am missing somewhere in using some codes which I am not aware of...so, posted the query... Thanks for your h

Re: [R] Between the values

2008-08-12 Thread David Hajage
But is there a way to construct a S4 method with this syntax : 0 < C < 1 ? Apparently, it's not possible with S4 group generics "Compare(e1, e2)". 2008/8/12 Ravi Varadhan <[EMAIL PROTECTED]> > Here is how you check whether a < x < b "without" using the `&' condition: > > is.between <- function(

Re: [R] Memory allocation problem

2008-08-12 Thread Kerpel, John
See ?gc - it may help. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jamie Ledingham Sent: Tuesday, August 12, 2008 9:16 AM To: r-help@r-project.org Subject: [R] Memory allocation problem Dear R users, I am running a large loop over about 400 files. To

Re: [R] Between the values

2008-08-12 Thread Shubha Vishwanath Karanth
Not to define a vector of all infinite values... But if I have some object (may not be a vector) which has this interval, then I can apply whatever function I need to on this interval apart from 'between' function... Is there something like that... Hope I am clear with the idea... Thanks, Shubh

Re: [R] panel.arrows problem in custom panel function

2008-08-12 Thread Gavin Simpson
On Thu, 2008-08-07 at 14:11 -0700, Deepayan Sarkar wrote: > On Thu, Aug 7, 2008 at 7:55 AM, Gavin Simpson <[EMAIL PROTECTED]> wrote: > > Dear List, > > You need to use the proper subset of rows of X: [Apologies for the delay in responding --- I have been offline for several days] Thank you very

Re: [R] dynamically extract data from a list

2008-08-12 Thread Dries Knapen
Hi, Thanks for your reply. However, this didn't work exactly as I needed it to since the expression is dynamically built as a character vector i.e. not executed as e <- expression(Sepal.Width > 4) but as e <- expression("Sepal.Width > 4") in which case subset() throws an error (must evaluat

Re: [R] Eclipse and R

2008-08-12 Thread Prof Brian Ripley
Most internationalized programs (including R) respond to the LANGUAGE environent variable: have you tried setting it to "en"? We would need to know your OS to help more (it looks like it might be Windows or possibly Mac OS: the terms used are not right for either). On Tue, 12 Aug 2008, Sergey

Re: [R] Larger Fonts for x/y-axis

2008-08-12 Thread Mike Prager
Andreas Tille <[EMAIL PROTECTED]> wrote: > what is the trick to get larger fonts for Graphs to make a good > slide for presentations? Generally I use something like cex = 2 in the plot function, as well as lwd = 3 -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not

[R] sqlQuery with date attribute

2008-08-12 Thread Abderrazzak MANY
Hello R users, I would like to use an integer and a date as attributes in sqlQuery, and these arguments are defined in my function. I guess this is clearer comparing to my first post. Here is my function: GetReturn<-function(code,date) { db<-"C:/Test.mdb" channel<-odbcConnectAccess(db) ssql<

[R] fPortfolio constraints, maxsumW

2008-08-12 Thread John P. Burkett
Running R version 2.6.1 under Gentoo Linux and using the fPortfolio package, I am having trouble specifying a sector constraint. One of the constraints to be imposed is that assets 1 and 2 together account for no more than 13.63% of the portfolio. My attempt at coding that constraint, "maxsumW

Re: [R] unable to start device JPEG in linux

2008-08-12 Thread Bachas
I have the same problem. I am using R on our bioinformatics server. From what I have read jpeg() needs to use a widows graphics device like X11 to be able to generate a jpeg file. I am also very curious to see if anyone knows a solution, now I need to use pdf() of ps() which is more time consuming

[R] produce variable on the fly

2008-08-12 Thread jimineep
Hi guys, I want to create variable on the fly: for example for (i in 1:10) { cat(paste("VAR",i,sep="")) } Will print VAR1, VAR2 etc up to VAR10. However I want to make these into variables, and then give them a value, for example: vect = c(10:20) for (i in 1:10) { cat(paste("VAR",i,sep

[R] gls and memory allocation

2008-08-12 Thread Dave Depew
Hi all, A two part quick question regarding gls 1) I'd like to pass a formula to gnls from a gam(mgcv package). Is there a quick way to do this? I tried using >gnls(gam$call$formula, data=df, correlation=AC1) but it keeps outputting a message to the effect that I need x ~ y etc as the formula

Re: [R] Eclipse and R

2008-08-12 Thread Sergey Goriatchev
I tried with Sys.setenv() in Eclipse environment in the following manner: > Sys.getenv("LANGUAGE") LANGUAGE "" > Sys.setenv(LANGUAGE="en") > Sys.getenv("LANGUAGE") LANGUAGE "en" Once I've done this at the beginning of the session, warnings are in English. When I exit Eclipse and then re

Re: [R] biplot_group_colours_and_point_symbols

2008-08-12 Thread Indermaur Lukas
thanks petr, i try it out and get back to you in case of problems. cheers, lukas Von: Petr PIKAL [mailto:[EMAIL PROTECTED] Gesendet: Di 12.08.2008 13:18 An: Indermaur Lukas Cc: [EMAIL PROTECTED] Betreff: Odp: [R] biplot_group_colours_and_point_symbols Hi [EMAI

Re: [R] unable to start device JPEG in linux

2008-08-12 Thread Bachas
I have half a solution: bitmap(file="filename.jpg",type="jpeg"); works to generate a jpeg file. However, I want my plots to be stored in single jpeg files and I can't get this to work: bitmap(file="Rplot%03d.jpg",onefile=FALSE,type="jpeg"); it overwrites my Rplot001.jpg file. Any one additional

Re: [R] dynamically extract data from a list

2008-08-12 Thread Dries Knapen
On 12 Aug 2008, at 17:00, Gabor Grothendieck wrote: Executing strings is probably not a very R-ish thing to do I know - but as far as I can see there was no other way around in this case... but if that's your aim use eval and parse: s <- "iris["iris$Sepal.Width > 4,]" eval(parse(text = s

[R] Geodata object border

2008-08-12 Thread imicola
Sorry, this is probably quite an easy question, but I'm new to R and couldn't find the answer anywhere. I'm using geoR and geoRglm, but can't figure out how to get a border in my geodata object. Does this need to be defined when I'm importing my data, or afterwards, and how do I go about doing t

Re: [R] produce variable on the fly

2008-08-12 Thread Erik Iverson
?assign , or consider a named vector/list. jimineep wrote: Hi guys, I want to create variable on the fly: for example for (i in 1:10) { cat(paste("VAR",i,sep="")) } Will print VAR1, VAR2 etc up to VAR10. However I want to make these into variables, and then give them a value, for example:

Re: [R] produce variable on the fly

2008-08-12 Thread David Hajage
> vect = c(10:20) > for (i in 1:10) { + assign(paste("VAR",i,sep=""), vect[i]) + } > VAR1 [1] 10 > VAR2 [1] 11 2008/8/12 jimineep <[EMAIL PROTECTED]> > > Hi guys, > > I want to create variable on the fly: for example > > for (i in 1:10) { >cat(paste("VAR",i,sep="")) > } > Will print VAR1,

Re: [R] dynamically extract data from a list

2008-08-12 Thread Dan Davison
Dries Knapen-2 wrote: > > Hi, > > Thanks for your reply. However, this didn't work exactly as I needed > it to since the expression is dynamically built as a character vector > > i.e. not executed as > e <- expression(Sepal.Width > 4) > > but as > e <- expression("Sepal.Width > 4") > > in

Re: [R] Eclipse and R

2008-08-12 Thread Prof Brian Ripley
You should set environment variables in the environment, not from a program. See rw-FAQ Q2.15 (and you may be able to set them in Eclipse before it starts R). On Tue, 12 Aug 2008, Sergey Goriatchev wrote: I tried with Sys.setenv() in Eclipse environment in the following manner: Sys.getenv(

Re: [R] dynamically extract data from a list

2008-08-12 Thread Gabor Grothendieck
The code I posted does work if you use it as I explained, not as you changed it. Executing strings is probably not a very R-ish thing to do but if that's your aim use eval and parse: s <- "iris["iris$Sepal.Width > 4,]" eval(parse(text = s)) On Tue, Aug 12, 2008 at 10:35 AM, Dries Knapen <[EMAIL

Re: [R] Between the values

2008-08-12 Thread Charles C. Berry
On Tue, 12 Aug 2008, Shubha Vishwanath Karanth wrote: ThanksDidn't mean actually using '&', but not bigger than that too... I usually see something done much better in R-help by a code which I don't know at all. So, wanted to know if I am missing somewhere in using some codes which I am n

Re: [R] Memory allocation problem

2008-08-12 Thread Roland Rau
Jamie Ledingham wrote: becomes too much to handle by the time the loop reaches 170. Has anyone had any experience of this problem before? Is it possible to 'wipe' R's memory at the end of each loop - all results are plotted and saved or written to text file at the end of each loop so this may b

Re: [R] produce variable on the fly

2008-08-12 Thread Charles C. Berry
On Tue, 12 Aug 2008, jimineep wrote: Hi guys, I want to create variable on the fly: for example See ?assign HTH, Chuck for (i in 1:10) { cat(paste("VAR",i,sep="")) } Will print VAR1, VAR2 etc up to VAR10. However I want to make these into variables, and then give them a val

Re: [R] dynamically extract data from a list

2008-08-12 Thread Gabor Grothendieck
> eval(parse(text = "iris[iris$Sepal.Width > 4,]")) Sepal.Length Sepal.Width Petal.Length Petal.Width Species 16 5.7 4.4 1.5 0.4 setosa 33 5.2 4.1 1.5 0.1 setosa 34 5.5 4.2 1.4 0.2 setosa >

Re: [R] X11 png jpeg cledit false when running from script

2008-08-12 Thread Bachas
I had the same problem and my conclusion was also that the problem was that our server was not running an X server. I also found that bitmap(file="filename.jpg",type="jpeg"); works.. However I want to store my plots in single jpeg files.. Unfortunately bitmap(file="Rplot%03d.jpeg",onefile=FALSE,t

[R] VAR question

2008-08-12 Thread Zhang Yanwei - Princeton-MRAm
Hi all, I got another VAR question here and really appreciate if somebody would help me out :) I have five time series, say A,B,C,D,E. My objective is to predict the series A using the rest, that is, B, C, D and E. A Vector Autoregression Model should work here. But first of all, I should select

Re: [R] produce variable on the fly

2008-08-12 Thread Ben Bolker
jimineep hotmail.com> writes: > > > Hi guys, > > I want to create variable on the fly: for example > > for (i in 1:10) { > cat(paste("VAR",i,sep="")) > } > Will print VAR1, VAR2 etc up to VAR10. However I want to make these into > variables, and then give them a value, for example: > > v

Re: [R] unable to start device JPEG in linux

2008-08-12 Thread Prof Brian Ripley
On Tue, 12 Aug 2008, Bachas wrote: I have half a solution: bitmap(file="filename.jpg",type="jpeg"); works to generate a jpeg file. However, I want my plots to be stored in single jpeg files and I can't get this to work: bitmap(file="Rplot%03d.jpg",onefile=FALSE,type="jpeg"); it overwrites my R

Re: [R] Geodata object border

2008-08-12 Thread Rubén Roa-Ureta
imicola wrote: Sorry, this is probably quite an easy question, but I'm new to R and couldn't find the answer anywhere. I'm using geoR and geoRglm, but can't figure out how to get a border in my geodata object. Does this need to be defined when I'm importing my data, or afterwards, and how do I

Re: [R] Between the values

2008-08-12 Thread Gabor Grothendieck
SQL has a between operator and via sqldf you can do this using the built in data frame BOD as an example: > library(sqldf) > BOD Time demand 118.3 22 10.3 33 19.0 44 16.0 55 15.6 67 19.8 > sqldf("select demand between 15 and 17 from BOD") demand between 15

Re: [R] No answer in anova.nls

2008-08-12 Thread Nazareno Andrade
(sorry if this arrives multiple times, I sent it from the wrong email address to the r-help the first time) Thanks for both answers. I'll look into that. I understand I can take do a qualitative evaluation of the fits using visual tests, but a problem I have is that I'd like to quantify in how ma

Re: [R] No answer in anova.nls

2008-08-12 Thread Bert Gunter
To add to Brian's points (which you should heed!) -- you **may** find it also useful to look at (possibly smoothed) residuals to compare lack of fit from your alternative models. If any shows up, some subject matter knowledge might lead you to choose one or the other of your models -- or neither.

Re: [R] tilde on a spanish keyboard?

2008-08-12 Thread Michael R. Head
On Tue, 2008-08-12 at 14:11 +0100, Prof Brian Ripley wrote: > On Tue, 12 Aug 2008, Michael R. Head wrote: > > > On Tue, 2008-08-12 at 07:15 -0400, Martin Henry H. Stevens wrote: > >> Thanks Henrique. We need to use the tilde in formula statements as in, > >> lm(y ~ x) > >> > >> Any ideas? > > > >

[R] Finishing details of dotplot

2008-08-12 Thread John Poulsen
Hello, I am trying to create a dotplot, and have run into a couple of snags with the finishing details. The below code creates the dotplot, but I cannot figure out how to: 1) change the color of the CI bars to black, not blue, 2) delete the horizontal dotplot lines, and 3) arrange the parame

Re: [R] tilde on a spanish keyboard?

2008-08-12 Thread Prof Brian Ripley
On Tue, 12 Aug 2008, Michael R. Head wrote: On Tue, 2008-08-12 at 14:11 +0100, Prof Brian Ripley wrote: On Tue, 12 Aug 2008, Michael R. Head wrote: On Tue, 2008-08-12 at 07:15 -0400, Martin Henry H. Stevens wrote: Thanks Henrique. We need to use the tilde in formula statements as in, lm(y ~

[R] Possible buglet (wart ?) of odfWeave 0.7.6 (with workaround)

2008-08-12 Thread Emmanuel Charpentier
Dear List, I have had problems inserting some (not all !) figures via odfWeave (using print(someLatticeFunction)...). The figure was correctly displayed in a R device window but the resulting ODF document displayed the correct space for the figure and an empty frame with a "broken image" icon and

[R] Parsing array data

2008-08-12 Thread Altaweel, Mark R.
Hi, I read in csv files with the following code: res <- vector(mode="list",length=3) for(i in 1: length(res)) res[[i]]<-read.csv(file=paste("/Users/markaltaweel/Desktop/Output/HydroDataOutput",i,".csv",sep=""),header=T,sep=",") This allows me to load the data into an array of length 3, with the

[R] Possible buglet (wart ?) of odfWeave 0.7.6 (with workaround)

2008-08-12 Thread Emmanuel Charpentier
Dear List, I have had problems inserting some (not all !) figures via odfWeave (using print(someLatticeFunction)...). The figure was correctly displayed in a R device window but the resulting ODF document displayed the correct space for the figure and an empty frame with a "broken image" icon and

  1   2   >