[R] Root Dir for OpenCpu files

2017-04-27 Thread Jake Stone
I have opencpu (single server) up and functioning. My first function will open a dataset from a csv file stored on my hard drive. Where should I deploy the csv file? (I tried my apps www directory, but it doesn't work) In sum: within an opencpu app, where do I deploy a file so that this line of

Re: [R] Problem in conversion of regulate time series and forecasting using Date Time [Timestamp values]:R

2017-04-27 Thread Jeff Newmiller
gg$timestamps <- as.POSIXct(as.character( gg$timestamps ) ) Factors are integers with the appearance of character data, so you are converting the integers to POSIXct. I usually try to avoid letting R automatically convert character data to factors, e.g. using stringsAsFactors=FALSE in read.csv

Re: [R] Error with installed.packages with R 3.4.0 on Windows

2017-04-27 Thread Thierry Onkelinx
We have several computers with the same problem. Op 28 apr. 2017 7:25 a.m. schreef "Jean-Claude Arbaut" : Hello, I am currently getting a strange error when I call installed.packages(): Error in if (file.exists(dest) && file.mtime(dest) > file.mtime(lib) && : missing

Re: [R] Problem in conversion of regulate time series and forecasting using Date Time [Timestamp values]:R

2017-04-27 Thread Dhivya Narayanasamy
Hi Jim, Thank you for the reply. 'gg.ts' is actually the object name of the time series I am using here. Also I have changed my timestamp class from factor to POSIXct (gg$timestamps <- as.POSIXct(gg$timestamps, format = "%Y-%m-%d %H-%M-%S") . When i plot this time series on graph, the x axis

Re: [R] survival package can't find Ccoxfit6

2017-04-27 Thread SeshanV
Since my coding philosophy is "why compute something that is not needed" I don't have timing data comparing coxph.fit to the stripped down version. I will try to come up with a test suite. I do work under Linux (the initial Windows output was because I had both 3.3.1 and 3.4.0 on that

[R] Error with installed.packages with R 3.4.0 on Windows

2017-04-27 Thread Jean-Claude Arbaut
Hello, I am currently getting a strange error when I call installed.packages(): Error in if (file.exists(dest) && file.mtime(dest) > file.mtime(lib) && : missing value where TRUE/FALSE needed Calls: installed.packages I am working with R 3.4.0 on Windows. I didn't get this error with R

Re: [R] survival package can't find Ccoxfit6

2017-04-27 Thread SeshanV
Thank you Drs. Therneau and Murdoch. "Why not use coxph.fit?" -- My use case scenario is that I needed the Cox model coefficients for resampled data. I was trying to reduce the computational overhead of coxph.fit (since it will repeated a large number of times) by stripping all the parts that

Re: [R] Problem in conversion of regulate time series and forecasting using Date Time [Timestamp values]:R

2017-04-27 Thread Jim Lemon
Hi Dhivya, I'm not that familiar with the "gg.ts" function, but you are passing character values to the "frequency" and "start" arguments. If there is no automatic conversion to numeric values, that would cause the error. Similarly, your "timestamps" variable may have been read in as a factor,

Re: [R-es] Analisis de una muestra via distribución no normal

2017-04-27 Thread Javier Marcuzzi
Estimado Wilmer De una búsqueda con las palabras claves “r prueba de hipotesis weibull” aparecen varios apuntes universitarios sobre el tema estadístico (no los leí pero esta la información). Sería más simple para esta lista preguntar en R tal función está con este problema, o una pregunta

[R-es] RStudio en Ubuntu 17.10

2017-04-27 Thread Manuel Máquez
Carlos: Muchas gracias por tu inmediata respuesta, sólo que el sistema me responde: El paquete libgstreamer0.10-0 no está disponible, pero algún otro paquete hace referencia a él. Esto puede significar que el paquete falta, está obsoleto o sólo se encuentra disponible desde alguna otra fuente E:

Re: [R-es] RStudio en Ubuntu 17.10

2017-04-27 Thread Javier Marcuzzi
Estimado Manuel Máquez Puede ser que falte alguna otra cosa, pienso que podría intentar verificar el sistema completo desde cero con lo siguiente (no olvide -f luego del install). sudo apt-get clean sudo apt-get update sudo apt-get install -f Javier Rubén Marcuzzi De: Carlos J. Gil Bellosta

Re: [R-es] Que modelo Utilizar para una proyección, soy nueva en R

2017-04-27 Thread Elkin Tabares
Si deseas realizar pronóstico de series de tiempo un modelo arima podrías ajustar, para ello te recomiendo el paquete forecast. El 27 de abril de 2017, 14:55, MISELLY LOPEZ escribió: > buenas tardes, soy estudiante de zoootecnia y necesito realizar una > comparacion de

[R-es] unsuscribe

2017-04-27 Thread Jose Canihuante
Dear R-proyect people: Hello, my name i José Miguel and for this way i want to unsuscribe of R-proyect and letf to recibe mails of this community. Thanks you. José Miguel Canihuante Banda. [[alternative HTML version deleted]] ___ R-help-es

[R-es] Que modelo Utilizar para una proyección, soy nueva en R

2017-04-27 Thread MISELLY LOPEZ
buenas tardes, soy estudiante de zoootecnia y necesito realizar una comparacion de precios de huevo en dos paises, colombia y brasil. ademas de hacer como una estimacion de precios a futuro. LA pregunta es que modelo estadisitco puedo utilizar para relaizar esta actividad Muchas gracias

Re: [R-es] RStudio en Ubuntu 17.10

2017-04-27 Thread Carlos J. Gil Bellosta
Hola, ¿qué tal? Si libgstreamer0.10-0 es una dependencia de RStudio, instálala primero con sudo apt-get install libgstreamer0.10-0 Una vez instalada, podrás correr sudo dpkg -i rstudio_blablabla.deb Un saludo, Carlos J. Gil Bellosta http://www.datanalytics.com El 27 de abril de 2017, 21:46,

[R-es] RStudio en Ubuntu 17.10

2017-04-27 Thread Manuel Máquez
Estimados Colegas: Como antecedentes les informo: a).-Traté de actualizar mi sistema de Ubuntu 16.10 a 17.04; sin embargo una falla de electricidad me cortó la instalación. b).- Me vi en la necesidad de reinstalar, pero formateando lo que tenía instalado, entre otros RStudio. Ahora que he estado

Re: [R] survival package can't find Ccoxfit6

2017-04-27 Thread Duncan Murdoch
On 27/04/2017 10:53 AM, sesh...@mskcc.org wrote: Thank you Drs. Therneau and Murdoch. "Why not use coxph.fit?" -- My use case scenario is that I needed the Cox model coefficients for resampled data. I was trying to reduce the computational overhead of coxph.fit (since it will repeated a large

Re: [R] survival package can't find Ccoxfit6

2017-04-27 Thread Therneau, Terry M., Ph.D.
On 04/27/2017 09:53 AM, sesh...@mskcc.org wrote: Thank you Drs. Therneau and Murdoch. "Why not use coxph.fit?" -- My use case scenario is that I needed the Cox model coefficients for resampled data. I was trying to reduce the computational overhead of coxph.fit (since it will repeated a

Re: [R] Reading XML attriutes in R

2017-04-27 Thread Ben Tupper
Hi, There might be an easy solution out there already, but I suspect that you will need to parse the XML yourself. The example below uses package xml2 not XML but you could do this with either. The example simply shows how to get values out of the XML hierarchy. Once you have the attributes

Re: [R] survival package can't find Ccoxfit6

2017-04-27 Thread Therneau, Terry M., Ph.D.
Let me summarize rather than repeat the entire thread: An error report from a user (seshan) stumped me, and I asked for help here. Duncan Murdoch picked up on fine details of the error message, i.e., that the error did NOT come from within the survival package. That changes the whole tenor

Re: [R] missing and replace

2017-04-27 Thread Fraser D. Neiman
Dear All, Replacing missing values with means is generally not a good idea: "Perhaps the easiest way to impute is to replace each missing value with the mean of the observed values for that variable. Unfortunately, this strategy can severely distort the distribution for this variable, leading

[R] Reading XML attriutes in R

2017-04-27 Thread Archit Soni
Hi All, I have a XML file like : GB I want to create a data frame out of this XML but obviously xmlToDataFrame() is not working. It has dynamic attributes like for node precipitation , it could have attributes like value and mode both if there is ppt in some city. My basic

[R] Problem in conversion of regulate time series and forecasting using Date Time [Timestamp values]:R

2017-04-27 Thread Dhivya Narayanasamy
Hi, I am new to R. Kindly help me with the plot that gives wrong x-axis values. I have a data frame "gg", that looks like this: > head(gg) timestamps value 1 2017-04-25 16:52:00 -0.412 2 2017-04-25 16:53:00 -0.4526667 3 2017-04-25 16:54:00 -0.4586667 4 2017-04-25 16:55:00

[R] Problem in conversion of regulate time series and forecasting using Date Time [Timestamp values]:R

2017-04-27 Thread Dhivya Narayanasamy
Hi, I have a data frame "gg", that looks like this: > head(gg) timestamps value 1 2017-04-25 16:52:00 -0.412 2 2017-04-25 16:53:00 -0.4526667 3 2017-04-25 16:54:00 -0.4586667 4 2017-04-25 16:55:00 -0.4606667 5 2017-04-25 16:56:00 -0.505 6 2017-04-25 16:57:00 -0.507 I

Re: [R] [FORGED] missing and replace

2017-04-27 Thread PIKAL Petr
Hi not sure if sexiest but zoo package has several functions for replacing missing values. as.data.frame(lapply(DF1, function(x) na.aggregate(x, FUN=function(y) round(mean(y) Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Rolf