Re: [R] How to create 10 minute time series from hourly data

2017-02-01 Thread PIKAL Petr
Hi You maybe could try ?splinefun or ?approxfun Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Mary Ann > Middleton > Sent: Wednesday, February 1, 2017 5:42 PM > To: r-help@r-project.org > Subject: [R] How to create 10 minute time

Re: [R] How to create 10 minute time series from hourly data

2017-02-01 Thread Bert Gunter
1. Always cc the list. 2. Assuming all you want to to do is produce a regular sequence 6 times as long, ?seq Please go through an R tutorial or two to learn basic R functionality like this. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things

Re: [R] Export Forecasted output to a table (excel)

2017-02-01 Thread Lal Prasad
Thanks all for the information provided. Is there any way I could convert an object of type mforecast (output of forecast()) to dataframe? On Thu, Feb 2, 2017 at 12:33 AM, Lal Prasad wrote: > Hi All, > > Is there any way to > > 1) Convert the below forecast to a datafram >

Re: [R] need help in trying out sparklyr - spark_connect will not work on local copy of Spark

2017-02-01 Thread David Winsemius
> On Feb 1, 2017, at 3:23 PM, Taylor, Ronald C wrote: > > Hello R-help list, > > I am a new list member. My first question: I was trying out sparklyr (in R > ver 3.3.2) on my Red Hat Linux workstation, following the instructions at > spark.rstudio.com as to how to

Re: [R] Challenge extracting months

2017-02-01 Thread Jim Lemon
Hi Kwesi, I can get a plot out of your code without the colors (I don't have RColorBrewer installed), but it doesn't look like the one you attached. It is displaying: prop.table(freqyears,margin=2)*100/365 which contains 20 rows and 37 columns. There are a lot of commands in the file that don't

Re: [R] Using a mock of an S4 class

2017-02-01 Thread David Winsemius
> On Feb 1, 2017, at 11:46 AM, Ramiro Barrantes > wrote: > > Hello, > > I have a function that applies to an S4 object which contains a slot called > @analysis: > > function calculation(myObject) { > tmp <- myObjects@analysis > result <- ...operations on

[R] need help in trying out sparklyr - spark_connect will not work on local copy of Spark

2017-02-01 Thread Taylor, Ronald C
Hello R-help list, I am a new list member. My first question: I was trying out sparklyr (in R ver 3.3.2) on my Red Hat Linux workstation, following the instructions at spark.rstudio.com as to how to download and use a local copy of Spark. The Spark download appears to work. However, when I try

Re: [R] Save a generated .txt (or .csv) file on the desktop

2017-02-01 Thread varin sacha via R-help
Mark, Many thanks for your response. Best, S De : Mark Sharp Cc : R-help Mailing List Envoyé le : Lundi 30 janvier 2017 23h04 Objet : Re: [R] Save a generated .txt (or .csv) file on the desktop You can define

Re: [R] Challenge extracting months

2017-02-01 Thread Jim Lemon
Hi Kwesi, It looks to me as though you have plotted the output of your data. What you have used to plot it is a mystery. Maybe a stacked barplot with horizontal=TRUE? I don't suppose that the matrix of input values is available. Let's see, you have 20 rectangles in each bar and 36 bars. Suppose we

Re: [R] [FORGED] Export Forecasted output to a table (excel)

2017-02-01 Thread Marc Schwartz
> On Feb 1, 2017, at 4:30 PM, David Winsemius wrote: > > >> On Feb 1, 2017, at 2:25 PM, Daniel Nordlund wrote: >> >> On 2/1/2017 2:05 PM, Rolf Turner wrote: >>> On 02/02/17 08:03, Lal Prasad wrote: Hi All, Is there any way to

Re: [R] [FORGED] Re: [FORGED] Export Forecasted output to a table (excel)

2017-02-01 Thread Rolf Turner
On 02/02/17 11:25, Daniel Nordlund wrote: On 2/1/2017 2:05 PM, Rolf Turner wrote: On 02/02/17 08:03, Lal Prasad wrote: Hi All, Is there any way to 1) Convert the below forecast to a datafram 2) Any way to write it to an excel table? library(vars) library(fpp)VARselect(usconsumption,

Re: [R] [FORGED] Export Forecasted output to a table (excel)

2017-02-01 Thread David Winsemius
> On Feb 1, 2017, at 2:30 PM, David Winsemius wrote: > > >> On Feb 1, 2017, at 2:25 PM, Daniel Nordlund wrote: >> >> On 2/1/2017 2:05 PM, Rolf Turner wrote: >>> On 02/02/17 08:03, Lal Prasad wrote: Hi All, Is there any way to

Re: [R] [FORGED] Export Forecasted output to a table (excel)

2017-02-01 Thread David Winsemius
> On Feb 1, 2017, at 2:25 PM, Daniel Nordlund wrote: > > On 2/1/2017 2:05 PM, Rolf Turner wrote: >> On 02/02/17 08:03, Lal Prasad wrote: >>> Hi All, >>> >>> Is there any way to >>> >>> 1) Convert the below forecast to a datafram >>> 2) Any way to write it to an excel

Re: [R] [FORGED] Export Forecasted output to a table (excel)

2017-02-01 Thread Daniel Nordlund
On 2/1/2017 2:05 PM, Rolf Turner wrote: On 02/02/17 08:03, Lal Prasad wrote: Hi All, Is there any way to 1) Convert the below forecast to a datafram 2) Any way to write it to an excel table? library(vars) library(fpp)VARselect(usconsumption, lag.max = 3, type="const")$selectionvar <-

Re: [R] [FORGED] Export Forecasted output to a table (excel)

2017-02-01 Thread Rolf Turner
On 02/02/17 08:03, Lal Prasad wrote: Hi All, Is there any way to 1) Convert the below forecast to a datafram 2) Any way to write it to an excel table? library(vars) library(fpp)VARselect(usconsumption, lag.max = 3, type="const")$selectionvar <- VAR(usconsumption, p=1,type = "both",lag.max =

Re: [R] looping problem

2017-02-01 Thread greg holly
Hi Rui; I do appreciate for this. Thanks so much. I will try ASAP. Regards, Greg On Wed, Feb 1, 2017 at 1:32 PM, Rui Barradas wrote: > Hello, > > If what you want is to combine the files into one data.frame then there > are 2 things you should see: > > 1) You create a

[R] Using a mock of an S4 class

2017-02-01 Thread Ramiro Barrantes
Hello, I have a function that applies to an S4 object which contains a slot called @analysis: function calculation(myObject) { tmp <- myObjects@analysis result <- ...operations on analysis... return result } I am writing a unit test for this function. So I was hoping to create a mock

[R] Export Forecasted output to a table (excel)

2017-02-01 Thread Lal Prasad
Hi All, Is there any way to 1) Convert the below forecast to a datafram 2) Any way to write it to an excel table? library(vars) library(fpp)VARselect(usconsumption, lag.max = 3, type="const")$selectionvar <- VAR(usconsumption, p=1,type = "both",lag.max = 3) serial.test(var, lags.pt = 3,type =

Re: [R] How to create 10 minute time series from hourly data

2017-02-01 Thread Bert Gunter
Perhaps: ?approx Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, Feb 1, 2017 at 8:41 AM, Mary Ann Middleton wrote: > Hello,

Re: [R] looping problem

2017-02-01 Thread Rui Barradas
Hello, If what you want is to combine the files into one data.frame then there are 2 things you should see: 1) You create a variable named 'temp' and don't ever use it. 2) You never combine the data.frames you read in. Try instead the following. temp <- data.frame() for(i in 1:22) {

Re: [R] Challenge extracting months

2017-02-01 Thread Kwesi Quagraine
Hello Jim, Hello everyone, does anyone know why this is happening? Any suggestions what might be causing it? I will be grateful for any help. Kwesi On Wed, Feb 1, 2017 at 1:12 AM, Jim Lemon wrote: > Hi Kwesi, > I worked through your code below, and I think that when you

[R] How to create 10 minute time series from hourly data

2017-02-01 Thread Mary Ann Middleton
Hello, Apologies if this is a duplicate. I think I sent it to the wrong list yesterday. I would appreciate some direction/suggestions with a problem with a time series. I have a regular time series dataframe with hourly data. I need to create a time series with a 10 minute interval for

Re: [R] Help Installing RODBC with custom header locations

2017-02-01 Thread Ivan Gomez
Hi Marc, Thank you so much for your response. I'll keep in mind R-SIG-DB for future reference. Just to close this loop, what ultimately did the trick was: 1. Setting the following environment variables LD_LIBRARY_PATH=/gpfs/grid/progress/lib:$LD_LIBRARY_PATH

[R] looping problem

2017-02-01 Thread greg holly
Hi all; I have 22 directories named chr1, chr2,,chr22. Each directory has a file named "Z-score.imputed". I would like to combine Z-score.imputed files into one. I wrote the following loop but did not get any results. Your helps are highly appreciated. regards, Greg temp<-c() for(i in

Re: [R] GLM HELP NEEDED!

2017-02-01 Thread David Winsemius
> On Feb 1, 2017, at 5:28 AM, CHIRIBOGA Xavier > wrote: > > Dear colleagues, > > > I am trying to perform a GLM. I tried again without using attach()...but > still is not working. > > Do you have any idea to help me? > > > Thank you again, > > > Xavier > >

Re: [R] Help Installing RODBC with custom header locations

2017-02-01 Thread Marc Schwartz
> On Feb 1, 2017, at 8:11 AM, Ivan Gomez wrote: > > Hi all, > > I'm trying to install.packages("RODBC") , but it is failing because it cannot > find certain required header files: > > > "configure: error: "ODBC headers sql.h and sqlext.h not found" > > I believe this

[R] Help Installing RODBC with custom header locations

2017-02-01 Thread Ivan Gomez
Hi all, I'm trying to install.packages("RODBC") , but it is failing because it cannot find certain required header files: "configure: error: "ODBC headers sql.h and sqlext.h not found" I believe this is because my header files are in a custom location instead of the standard system

[R] Cost effective Laser and IPL servicing. Alma, Cynosure, Candela, Fotona, Lumenis…

2017-02-01 Thread Laser Warehouse
If you are not able to see this mail, click http://rcwo.r.ca.d.sendibm2.com/9jn26am01xff.html[ ]( http://rcwo.r.ca.d.sendibm2.com/126k8p65a01xfd.html ) [ ]( http://rcwo.r.ca.d.sendibm2.com/126k8p6xq01xfd.html ) The Laser Warehouse is the UK’s leading independent provider of on site,

[R] Cost effective Laser and IPL servicing. Alma, Cynosure, Candela, Fotona, Lumenis…

2017-02-01 Thread Laser Warehouse
If you are not able to see this mail, click http://rcwo.r.ca.d.sendibm2.com/9jdkuam01xff.html[ ]( http://rcwo.r.ca.d.sendibm2.com/125ibd65a01xfd.html ) [ ]( http://rcwo.r.ca.d.sendibm2.com/125ibd6xq01xfd.html ) The Laser Warehouse is the UK’s leading independent provider of on site,

[R] [R-pkgs] Announcing imputeTS 1.8

2017-02-01 Thread Steffen Moritz
imputeTS: Imputation (replacement) of missing values in univariate time series. Dear R users, I would like to announce version 1.8 of the imputeTS package. ( https://cran.r-project.org/package=imputeTS ) Since I did not introduce the package here before, let me give you a short wrap up: The

Re: [R] GLM HELP NEEDED!

2017-02-01 Thread Duncan Murdoch
On 01/02/2017 8:28 AM, CHIRIBOGA Xavier wrote: Dear colleagues, I am trying to perform a GLM. I tried again without using attach()...but still is not working. Do you have any idea to help me? Thank you again, Xavier a <- read.table(file.choose(), h<-T) The "h<-T" argument doesn't

[R] GLM HELP NEEDED!

2017-02-01 Thread CHIRIBOGA Xavier
Dear colleagues, I am trying to perform a GLM. I tried again without using attach()...but still is not working. Do you have any idea to help me? Thank you again, Xavier a <- read.table(file.choose(), h<-T) > head(a) time treatment transinduc 11 CHA0+Db 1,0768 21

Re: [R] HELP with GLM

2017-02-01 Thread PIKAL Petr
Hi see in line > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Bert > Gunter > Sent: Wednesday, February 1, 2017 6:11 AM > To: CHIRIBOGA Xavier > Cc: r-help@r-project.org > Subject: Re: [R] HELP with GLM > > Dear Xavier:

Re: [R] Error in mcp2matrix(model, linfct = linfct)

2017-02-01 Thread Jeff Newmiller
Looks like your data are not numeric. Examine your data with the str function and troubleshoot your process for reading in data. Step through the code one line at a time and see how the data looks at each step. Also, you really need to read the Posting Guide and follow the advice there. If