Re: [R] xvfb? cron job updates R packages, fails on some requiring X11

2017-01-20 Thread Berwin A Turlach
G'day Paul, On Thu, 19 Jan 2017 10:52:16 -0600 Paul Johnson wrote: > In Centos 7 systems, I wrote a script that runs on the cron and I > notice some package updates and installs fail like this: > > [] > > I understand I need something like xvfb to simulate an X11

Re: [R] Coverting HTML data into CSV

2017-01-20 Thread Mark Sharp
An example of your data will be very helpful. Saying that you have contents of an HTML file is not sufficiently descriptive. Note that the instructions recommend commented, minimal, self-contained, reproducible code. In leu of the HTML data file and code used to read it, you can use dput() with

Re: [R] Chi-square test

2017-01-20 Thread David Winsemius
> On Jan 20, 2017, at 7:36 AM, Sergio Ferreira Cardoso > wrote: > > Dear all, > > Anova() for .car package retrieves Chi-square statistics when I'm testing a > model the significance of a multivariate .gls model >

Re: [R] Subset()

2017-01-20 Thread David Winsemius
How are we supposed to help you if you don’t read the Posting Guide and don’t provide any information about the classes of columns in `data`.? — David. > On Jan 20, 2017, at 10:02 AM, Elise LIKILIKI wrote: > > Hello, > > I have a dataset containing Date Time, Air

Re: [R] order list of date (bug?)

2017-01-20 Thread William Dunlap via R-help
When did the switch between 'summer time'/'winter time' (or 'daylight savings'/'standard') happen in CET last year? (Did 2:35 exist on March 27, 2016?) At the R level, what is as.numeric(strptime(df$DateTime, format='%Y-%m-%d %H:%M:%S')) with your time zone settings? Bill Dunlap TIBCO Software

Re: [R] Chi-square test

2017-01-20 Thread Fox, John
Dear Sergio, You appear to have asked this question twice on r-help. Anova() has no specific method for “gls” models (I assume, though you don’t say so, that the model is fit by gls() in the nlme package), but the default method works and provides Wald chi-square tests for terms in the model.

Re: [R] non-numeric argument to binary operator

2017-01-20 Thread Richard M. Heiberger
It looks like you are attempting to divide a number by a formula. > 5 / (a ~ b) Error in 5/(a ~ b) : non-numeric argument to binary operator On Fri, Jan 20, 2017 at 12:18 PM, Zeki ÇATAV wrote: > Hi, > I'm working on following dataset. > > > > dput(uu5) > structure(list(grup

[R] Estimated Marginal Means from PSCL Object

2017-01-20 Thread Patzelt, Edward
Hi R-Help, I have a pscl zero-inflated poisson regression object from which I am trying to extract the estimated marginal means by category (e.g. GROUPA), I can't figure out what I'm doing wrong with the lsmeans package: FU1NSSI<-zeroinfl(W8_PAST4WEEKS_NSSI ~ GROUPA,

[R] Zip Files

2017-01-20 Thread Glenn Schultz
All, I have a zip that was downloaded with HTTR.   I had to use HTTR because I need to login and post to the website.  The files download and by double clicking the file on my MAC the .zip file is inflated and a .txt is appears which I can then parse as needed.  However, when I use unzip

[R] non-numeric argument to binary operator

2017-01-20 Thread Zeki ÇATAV
Hi, I'm working on following dataset. > dput(uu5) structure(list(grup = structure(c(1L, 1L, 2L, 2L), .Label = c("1", "2"), class = "factor"), bw_grp = structure(c(1L, 2L, 1L, 2L), .Label = c("0-999", "1000+"), class = "factor"), deaths = c(6L, 13L, 1L, 2L), pop = c(26L, 67L, 41L, 93L), bw =

[R] Subset()

2017-01-20 Thread Elise LIKILIKI
Hello, I have a dataset containing Date Time, Air Temperature, PPFD, Sol Temperature... The first data are false so I would like to extract the other ones. I've tried : >data1<-subset(data,DateTime>=as.POSIXct("2017-01-10 11:00:00",format="%Y-%m-%d

[R] Chi-square test

2017-01-20 Thread Sergio Ferreira Cardoso
Dear all, Anova() for .car package retrieves Chi-square statistics when I'm testing a model the significance of a multivariate .gls model gls(x~1+2+3+x,corBrownian(phy=tree), ...). Is this Chi-square a two-sided test? Thank you. Best, Sérgio. [[alternative HTML version

Re: [R] No reply from CRAN Task View: Graphic Displays & Dynamic Graphics & Graphic Devices & Visualization

2017-01-20 Thread Joseph Gama
It's already Winter and nothing has changed. Maybe you should let someone else be in charge of something that you can't handle. On Tue, Jun 21, 2016 at 12:20 AM, Nicholas Lewin-Koh wrote: > Yes, it needs a major re-write, and yes I got the suggestion, and it > actually fits

[R] order list of date (bug?)

2017-01-20 Thread rob vech
Hi list, I'd like to submit the following problem that seems a bug but it is so strange that it could be my mind ... so I would like to sort a list of date time items like in this script: df = data.frame(DateTime = c( '2016-12-21 10:34:54', '2016-12-21 11:04:54', '2016-12-21 11:34:54',

[R] Anova() Chi-square test

2017-01-20 Thread Sergio Ferreira Cardoso
Dear all, Anova() for .car package retrieves Chi-square statistics when I'm testing a model the significance of a multivariate .gls model gls(x~1+2+3+x,corBrownian(phy=tree), ...). Is this Chi-square a two-sided test? Thank you. Best, Sérgio. -- Com os melhores cumprimentos, Sérgio Ferreira

Re: [R-es] problema con grafico lattice ....

2017-01-20 Thread Carlos Ortega
Hola, Este es el código que produce el gráfico que envié... #--- library(data.table) library(lattice) dat <- read.table("pba.csv", header=TRUE, dec=",", as.is=TRUE) row.names(dat) <- NULL dat <- as.data.table(dat) #trellis.device(color=FALSE) dat[con!=0, xyplot(mean ~

Re: [R] Current Terminal (console) width

2017-01-20 Thread Jeff Newmiller
For clarity, maintenance of the COLUMNS environment variable is a feature of certain terminal drivers, and is therefore an operating system feature, not an R feature. -- Sent from my phone. Please excuse my brevity. On January 20, 2017 1:40:38 PM PST, Ista Zahn wrote: >Hi

Re: [R] [FORGED] Fitting arima Models with Exogenous Variables

2017-01-20 Thread Rolf Turner
On 21/01/17 02:29, Paul Bernal wrote: Dear friends, I have 5 exogenous variables which I´d like to incorporate into my auto.arima model. I was able to incorporate the xreg, and I understand that newxreg should be the forecast of my exogenous variables, but I have not been able to get it to

Re: [R] Current Terminal (console) width

2017-01-20 Thread Ista Zahn
Hi Jared, On Jan 20, 2017 1:36 PM, "Jared Studyvin" wrote: Ista, I use R through Emacs. I'm trying to get this to work there. Here is how ESS calculates the width of the comint buffer:

[R-es] Grupo de R Madrid en Blog de RStudio...

2017-01-20 Thread Carlos Ortega
Hola, propusimos a Joseph Rickert (RStudio) hacer una entrada en su blog en RStudio sobre la reciente participación de Javier Laruschi en el grupo presentando "sparklyr" y aceptaron sin problemas. Hoy finalmente ha aparecido. Por si es de vuestro interés:

Re: [R] Current Terminal (console) width

2017-01-20 Thread Jared Studyvin
Ista, I use R through Emacs. I'm trying to get this to work there. At a more basic level I'm disappointed that when I use R on my Mac I can get this information but when I use R on Windows I can not. Thanks, *Jared Studyvin, PhD * *Statistician* Environmental & Statistical Consultants 200 S.

Re: [R] Current Terminal (console) width

2017-01-20 Thread Ista Zahn
On Fri, Jan 20, 2017 at 11:52 AM, Jared Studyvin wrot: > David, > > When using native R GUI that does work because the option is checked to do > that. See Edit -> GUI Preferences... > > I'm looking for the R code that will do that same thing so when R is not > being run in

Re: [R] Current Terminal (console) width

2017-01-20 Thread William Dunlap via R-help
The answer is UI-specific. In the supplied-by-R-core Windows GUI for R, options("width") is the current width of the command window. If you run R in a cmd.exe window instead of the GUI you can get the width of the cmd window by doing some string manipulations on the output of shell("mode con",

Re: [R] Current Terminal (console) width

2017-01-20 Thread Bert Gunter
David et al: from ?options "width: controls the maximum number of columns on a line used in printing vectors, matrices and arrays, and when filling by cat. [as Jared said] ... Some R consoles automatically change the value when they are resized." So this behavior depends on the unstated by

Re: [R] Current Terminal (console) width

2017-01-20 Thread Jared Studyvin
David, When using native R GUI that does work because the option is checked to do that. See Edit -> GUI Preferences... I'm looking for the R code that will do that same thing so when R is not being run in the native GUI I can ensure that same behavior. Thanks, *Jared Studyvin, PhD *

Re: [R] Current Terminal (console) width

2017-01-20 Thread David L Carlson
I cannot replicate that on Windows 8 (64 bit or 32 bit): > options('width') $width [1] 90 # Drag the window to resize, then: > options('width') $width [1] 124 - David L Carlson Department of Anthropology Texas A University College Station, TX 77840-4352

Re: [R] Current Terminal (console) width

2017-01-20 Thread Jared Studyvin
Ben, That options control is about the size of what is printed. I'm looking for the actual size of the window in real time. options('width') ## returns 80 resize the terminal window options('width') ## returns 80 Sys.getenv('COLUMNS') ## returns current window width resize the terminal window

Re: [R] Current Terminal (console) width

2017-01-20 Thread Ben Tupper
Hi, Have you looked at > > options("width") > $width > [1] 80 and does that get at what you need? Ben > On Jan 20, 2017, at 9:58 AM, Jared Studyvin wrote: > > Hello, > > On a non Windows OS the following command: Sys.getenv("COLUMNS") > Will return the current

[R] Current Terminal (console) width

2017-01-20 Thread Jared Studyvin
Hello, On a non Windows OS the following command: Sys.getenv("COLUMNS") Will return the current width of the R terminal (console) but this does not work on a Windows OS. Does anyone know equivelant R code when install on a Windows OS? I'm using WIndows 10 Pro Version: 1607; R 3.3.2 Thanks,

Re: [R-es] Error en loop anidado con data.table

2017-01-20 Thread Carlos Ortega
Hola, Por entender el problema: id anio t_8a t_10a t_12a rankf8 rankf10 rankf12 1 1 100 220 220 *1* *1 1* 2 1 140 350 350 2 3 3 3 2 55 165 165 1 1 1 4 2 60 200 200 2 2 2 5 2 100 NA NA 3 4 4 6 3 NA 350 350 NA 2 2 - Entiendo bien que el "1" de rankf8 (en negrita negro) corresponde al 100

[R-es] Prueba: no leer

2017-01-20 Thread Marcelino de la Cruz Rot
-- Marcelino de la Cruz Rot Depto. de Biología y Geología Física y Química Inorgánica Universidad Rey Juan Carlos Móstoles España ___ R-help-es mailing list R-help-es@r-project.org https://stat.ethz.ch/mailman/listinfo/r-help-es

[R] Fitting arima Models with Exogenous Variables

2017-01-20 Thread Paul Bernal
Dear friends, I have 5 exogenous variables which I´d like to incorporate into my auto.arima model. I was able to incorporate the xreg, and I understand that newxreg should be the forecast of my exogenous variables, but I have not been able to get it to work. Newxreg should only have one column?

Re: [R-es] Problema con un xml demasiado Grande

2017-01-20 Thread Marcelino de la Cruz Rot
Es posible que con la funci�n xmlEventParse() del paquete XML lo puedas conseguir. A ver si tienes suerte. Un saludo, Marcelino El 20/01/2017 a las 13:04, Carlos J. Gil Bellosta escribi�: > Trocea o desiste. > > Nunca vas a poder procesar 10GB de XML con una m�quina de las > habituales. Si

Re: [R-es] Problema con un xml demasiado Grande

2017-01-20 Thread Carlos J. Gil Bellosta
Trocea o desiste. Nunca vas a poder procesar 10GB de XML con una máquina de las habituales. Si tienes 64GB de RAM o más, es otra historia. Un saludo, Carlos J. Gil Bellosta http://www.datanalytics.com El día 20 de enero de 2017, 10:59, Milagros Camacho Bellido