Re: [R] How to threshold point in time series

2018-06-08 Thread John Kane via R-help
Homework? On Friday, June 8, 2018, 4:20:40 p.m. EDT, Rama shankar wrote: Hi All, I am having very high-frequency data, captured  between 3 to 7 seconds by sensor for liquid tank and capacity of tank is 50k dm3. When tank capacity reduce to 1k dm3, than tank refilling need to call. How

Re: [R] Calculating AIC and BIC for Time Series Models

2018-06-08 Thread Bert Gunter
... Or have you looked here? https://cran.r-project.org/web/views/TimeSeries.html Bert On Fri, Jun 8, 2018, 1:29 PM David Winsemius wrote: > > > On Jun 8, 2018, at 12:43 PM, David Winsemius > wrote: > > > > > >> On Jun 8, 2018, at 12:26 PM, Paul Bernal > wrote: > >> > >> Dear friends, > >> >

Re: [R] Calculating AIC and BIC for Time Series Models

2018-06-08 Thread David Winsemius
> On Jun 8, 2018, at 12:43 PM, David Winsemius wrote: > > >> On Jun 8, 2018, at 12:26 PM, Paul Bernal wrote: >> >> Dear friends, >> >> I have been fitting some TS models from the forecast package like ets(), >> ses(), hw(), HoltWinters(), stlf(), bats() and tbats(), however, when >> trying

[R] How to threshold point in time series

2018-06-08 Thread Rama shankar
Hi All, I am having very high-frequency data, captured between 3 to 7 seconds by sensor for liquid tank and capacity of tank is 50k dm3. When tank capacity reduce to 1k dm3, than tank refilling need to call. How in time series we can perform, refilling can call when tank capacity reduce to 1k dm3,

Re: [R] Calculating AIC and BIC for Time Series Models

2018-06-08 Thread David Winsemius
> On Jun 8, 2018, at 12:26 PM, Paul Bernal wrote: > > Dear friends, > > I have been fitting some TS models from the forecast package like ets(), > ses(), hw(), HoltWinters(), stlf(), bats() and tbats(), however, when > trying to use the AIC and BIC functions, I receive the following error > me

[R] Calculating AIC and BIC for Time Series Models

2018-06-08 Thread Paul Bernal
Dear friends, I have been fitting some TS models from the forecast package like ets(), ses(), hw(), HoltWinters(), stlf(), bats() and tbats(), however, when trying to use the AIC and BIC functions, I receive the following error message: Error in UseMethod("logLik") : no applicable method for 'l

Re: [R] Calculate focal values for neighboring cells that are located at the raster edge from the function "focal" in the R package "raster"

2018-06-08 Thread Bert Gunter
The r-sig-geo list is often a better place to post for such "geographically" related questions, especially if you don't get a helpful response here. But R is open source, so typing raster:::focal at the command line prompt will show you the function code if it is written in R. Whether that is

[R] Calculate focal values for neighboring cells that are located at the raster edge from the function "focal" in the R package "raster"

2018-06-08 Thread Marine Regis
Hello All, I am using the function "focal" in the R package "raster" but I don�t understand how the function calculates values for neighboring cells that are located at the raster edge. Here is an example reproducible: f <- matrix(1, nrow=3, ncol=3) f[c(1,3,7,9)]=1/sqrt(2) f[5]=0 func <- funct

Re: [R] verInd= and HorInd= arguments to pairs() function

2018-06-08 Thread Martin Maechler
> Gerrit Eichner > on Fri, 8 Jun 2018 12:55:31 +0200 writes: > Am 08.06.2018 um 12:02 schrieb Martin Maechler: >>> Martin Maechler >>> on Fri, 8 Jun 2018 11:13:24 +0200 writes: >> >> [..] >> >> >> Thank you, Chris, for the report and >

Re: [R] open help files from Terminal

2018-06-08 Thread Alex Zarebski
While we are on the topic, if you wanted to go the other way (open help in terminal without a whole R session) you can do R --no-init-file --slave -e "?sd" I suspect this does start an R session in the background, but makes for a clean way to view docs through terminal if you use an alias. Cheer

Re: [R] verInd= and HorInd= arguments to pairs() function

2018-06-08 Thread Gerrit Eichner
Am 08.06.2018 um 12:02 schrieb Martin Maechler: Martin Maechler on Fri, 8 Jun 2018 11:13:24 +0200 writes: [..] >> Thank you, Chris, for the report and >> Gerrit for your proposed fix !! >> >> It looks good to me, but I will test some more (also with >> 'r

Re: [R] internet routines cannot be loaded, R 3.5.0

2018-06-08 Thread S Ellison
> If I select > "packages > install packages" in the R console, I get a message, "no > packages were specified". I thought this command gave me a list of packages > available to install. You are thinking of the command line function "installed.packages", not the menu function or the package insta

Re: [R] verInd= and HorInd= arguments to pairs() function

2018-06-08 Thread Martin Maechler
> Martin Maechler > on Fri, 8 Jun 2018 11:13:24 +0200 writes: [..] >> Thank you, Chris, for the report and >> Gerrit for your proposed fix !! >> >> It looks good to me, but I will test some more (also with >> 'row1attop=FALSE') before committing the bug

Re: [R] verInd= and HorInd= arguments to pairs() function

2018-06-08 Thread Martin Maechler
> Martin Maechler > on Thu, 7 Jun 2018 18:35:48 +0200 writes: > Gerrit Eichner > on Thu, 7 Jun 2018 09:03:46 +0200 writes: >> Hi, Chris, had the same problem (and first thought it was >> my fault), but there seems to be a typo in the code of >> pairs.default.

Re: [R] aggregate and list elements of variables in data.frame

2018-06-08 Thread Eik Vettorazzi
Hi, if you are willing to use dplyr, you can do all in one line of code: library(dplyr) df<-data.frame(id=1:10,A=c(123,345,123,678,345,123,789,345,123,789)) df%>%group_by(unique_A=A)%>%summarise(list_id=paste(id,collapse=", "))->r cheers Am 06.06.2018 um 10:13 schrieb Massimo Bressan: > #given

Re: [R] problems in converting numeric to character

2018-06-08 Thread Sigbert Klinke
sprintf("%.1f", x) sprintf("%.2f", x) Am 07.06.2018 um 17:12 schrieb 刘瑞阳: Hi, I am having trouble converting numeric to characters in the format I desire. To be more specific, I have a number of numeric as follows: x<-c(1.0,2.0,2.00,2.1) I want to convert them to characters so that the out put