Re: [R] abline with zoo series

2016-11-24 Thread Erin Hodgess
Nice! That's perfect! Thanks very much! Sincerely, Erin On Thu, Nov 24, 2016 at 11:27 PM, Gabor Grothendieck < ggrothendi...@gmail.com> wrote: > Recessions are typically shown by shading. The zoo package has > xblocks for this purpose. If app1 is your zoo object then: > > plot(app1) > tt <-

Re: [R] Variable

2016-11-24 Thread David Winsemius
> On Nov 24, 2016, at 8:50 PM, Val wrote: > > Hi all, > > I am trying to get shell variable(s) into my R script in Linux . How > do I get them? > > my shell script is > t1.sh > #!bin/bash > Name=Alex; export Name > Age=25; export Age > > > How do get the

Re: [R] abline with zoo series

2016-11-24 Thread Gabor Grothendieck
Recessions are typically shown by shading. The zoo package has xblocks for this purpose. If app1 is your zoo object then: plot(app1) tt <- time(app1) xblocks(tt, tt >= "1990-07-01" & tt <= "1991-03-31", col = rgb(0.7, 0.7, 0.7, 0.5)) # transparent grey See ?xblocks for more info. On Thu,

Re: [R] Variable

2016-11-24 Thread Jeff Newmiller
?commandArgs -- Sent from my phone. Please excuse my brevity. On November 24, 2016 8:50:29 PM PST, Val wrote: >Hi all, > >I am trying to get shell variable(s) into my R script in Linux . How >do I get them? > >my shell script is >t1.sh > #!bin/bash > Name=Alex; export

[R] Variable

2016-11-24 Thread Val
Hi all, I am trying to get shell variable(s) into my R script in Linux . How do I get them? my shell script is t1.sh #!bin/bash Name=Alex; export Name Age=25; export Age How do get the Name and Age variables in my R script? My R script is test.R print " Your Name is $Name and

Re: [R] abline with zoo series

2016-11-24 Thread Erin Hodgess
Awesome Thanks! Sincerely, Erin On Thu, Nov 24, 2016 at 10:14 PM, David Winsemius wrote: > > > On Nov 24, 2016, at 7:03 PM, Erin Hodgess > wrote: > > > > Hello! Happy Thanksgiving to those who are celebrating. > > > > I have a zoo

Re: [R] abline with zoo series

2016-11-24 Thread David Winsemius
> On Nov 24, 2016, at 7:03 PM, Erin Hodgess wrote: > > Hello! Happy Thanksgiving to those who are celebrating. > > I have a zoo series that I am plotting, and I would like to have some > vertical lines at certain points, to indicate US business cycles. Here is > an

Re: [R] abline with zoo series

2016-11-24 Thread Jim Lemon
Hi Erin, I would look at: par("usr") to see what the range of the abscissa might be. Jim On Fri, Nov 25, 2016 at 2:03 PM, Erin Hodgess wrote: > Hello! Happy Thanksgiving to those who are celebrating. > > I have a zoo series that I am plotting, and I would like to

[R] abline with zoo series

2016-11-24 Thread Erin Hodgess
Hello! Happy Thanksgiving to those who are celebrating. I have a zoo series that I am plotting, and I would like to have some vertical lines at certain points, to indicate US business cycles. Here is an example: app1 <- get.hist.quote(instrument="appl", start="1985-01-01",end="2016-08-31",

[R] [tcltk] tktable: bindings doesn't triggers the ValidationCommand and Command

2016-11-24 Thread Cleber N.Borges via R-help
Dears, I'm trying to create an Data Editor like Rgui.exe's FIX (windows)... The code is below. The problem is that I can not get the binds to trigger the validation commands and the main table command Control-C, Control-V, and Control-X work only in the visual without my R data being changed.

Re: [R] Datapoint tracking in scatterplot from plot() used on plsr() objects

2016-11-24 Thread David Winsemius
> On Nov 24, 2016, at 8:34 AM, CG Pettersson > wrote: > > Dear all, > I am working with PLS-regression using plsr() from the pls package. I have a > medium sized dataset with 223 rows, ten reference columns and 192 columns > with measurement data from an

Re: [R] Error occurring

2016-11-24 Thread Jeff Newmiller
If I was to make a totally wild leap, I would say it looks like someone using an inappropriate text editor such as Microsoft Word to edit R code. Stuti, please carefully read and follow the recommendations in the Posting Guide mentioned at the bottom of this and every post on this mailing list

Re: [R] Error occurring

2016-11-24 Thread Jim Lemon
`Hi Stuti, Your problem is that if you want to have more than one command on a single line, you must separate them with a semicolon. j <- function() { if(!exists ("a")){ a <- 1 } else{ a <- a+1 }; print(a)} The above will work, but is usually considered bad form. What follows is usually

Re: [R] Error occurring

2016-11-24 Thread Rui Barradas
Hello, I don't see the error you mention. j <- function() { if(!exists ("a")){ a <- 1 } else{ a <- a+1 } print(a) } j() [1] 1 sessionInfo() R version 3.3.2 (2016-10-31) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under:

Re: [R-es] Comando para ANOVAS con factores completamente aleatorios y Mixtos

2016-11-24 Thread Carlos Ortega
Hola, Mira esto: http://conjugateprior.org/2013/01/formulae-in-r-anova/ A mitad de la pĆ”gina: Random Effects in Classical ANOVA Saludos, Carlos Ortega www.qualityexcellence.es El 24 de noviembre de 2016, 20:49, Francisco Ruben Castaneda Rivero < fru...@cicese.edu.mx> escribiĆ³: > Muy buenos

[R] Datapoint tracking in scatterplot from plot() used on plsr() objects

2016-11-24 Thread CG Pettersson
Dear all, I am working with PLS-regression using plsr() from the pls package. I have a medium sized dataset with 223 rows, ten reference columns and 192 columns with measurement data from an "electronic nose". There is a convenient way of inspecting what you have done in the calls to plsr() by

[R] Error occurring

2016-11-24 Thread Stuti Verma
> j <- function() { + if(!exists ("a")){ + a <- 1 + } else{ + a <- a+1 + } print(a)} Error: unexpected symbol in: "a <- a+1 } print" > j <- function() { + if(!exists ("a")){ + a <- 1 + } else{ + a <- a+1 + } print("a")} Error: unexpected symbol in: "a <- a+1 } print" [[alternative HTML

Re: [R] Chi2 algorithm - R

2016-11-24 Thread Jeff Newmiller
As I understand it, you or I could write a package and if the automated testing designed to ferret out basic R language compatibility and operating system independence passes (and the maintainer accepts responsibility for it and releases the code as open source), then it will usually be

Re: [R] The code itself disappears after starting to execute the for loop

2016-11-24 Thread Jon Skoien
I don't have a solution to this problem, but as I have also struggled with what I think is the same problem, I tried to find a small reproducible example. The problem seems indeed to be with the progress bar, which will clear the console after x iterations when the progress bar is called in a

[R] Regarding socket exception when using Rserve

2016-11-24 Thread Ranjana Girish
Hi all, we are connecting to R language from Java using Rserve(). while doing so,Got one issue at hand Some of the command in R is taking more than 20 min. During this time we are receiving java.net.SocketException: Connection reset at