Questions tagged [forecastr]

Forecastr is a simple, asynchronous wrapper written in Objective-C for the Forecast.io API.

Forecastr is a simple, asynchronous wrapper written in Objective-C for the Forecast.io API.

For source code, usage examples, and more information: https://github.com/iwasrobbed/Forecastr

23 questions
2
votes
0 answers

create hierarchies of quarter, months / Argument y must be a multivariate time series. Traceback:

I have a time series dataframe A Time Series: 6 × 12 that can be generated by using following syntax library(hts) ts(rnorm(67), start=c(2015, 4), frequency=12) When I run aggregate(ts(rnorm(67), start=c(2015, 4), frequency=12), nfrequency=4) It…
lpt
  • 931
  • 16
  • 35
2
votes
0 answers

I've installed forecast package in R along with dependencies but still get error 'could not find function tsclean'

I m getting an error -> library('forecast') library('tseries') library('fpp') count_ts = ts(daily_data[, c('cnt')]) daily_data$clean_cnt = tsclean(count_ts) Error: could not find function "tsclean" please suggest a solution
2
votes
0 answers

R -forecast using a growth rate

I have what I think to be a very simple question - I have a dataframe: a <- c(1,2,3,4,5) b <- (a/lag(a))-1 combining the two gives me a data frame: df <- cbind(a,b) a b [1,] 1 NA [2,] 2 1.0000000 [3,] 3 0.5000000 [4,] 4…
Adam_123
  • 159
  • 9
2
votes
1 answer

Objective C how do I parse this NSString

I am working with the Forecastr wrapper library (https://github.com/iwasrobbed/Forecastr) to grab data from the website Forecast.io. Currently in the example project provided in the github project, the output spits out: { currently = { …
StevenTsooo
  • 498
  • 4
  • 13
1
vote
1 answer

Convert quarterly forecast r into annual ones

I am using library(forecast) to create quarterly forecasts based on quarterly data. My forecasts are saved in a forecast object. I am trying to find an elegant and simple way of transforming those to the corresponding annual values, taking the mean…
Niccola Tartaglia
  • 1,537
  • 2
  • 26
  • 40
1
vote
0 answers

Holt Winters Forecast with Multiple Input Variables

For context, I'm a novice R user, so please forgive any incorrect terminology/processes. I am actively trying to improve my coding ability, but recently have become stumped. I have the following data set where A * B * C = Output: Date          …
1
vote
1 answer

Issue executing closure block in swift

I am playing around with some APIs in swift. I came across the Forecast.io API for weather, downloaded an objective-c wrapper, and created a bridging header in my xcode project. The only issue I am having is that I have a closure (objective-c block)…
mjfish93
  • 95
  • 8
1
vote
2 answers

Unable to use JSON results from Forecastr wrapper

I'm getting started with Objective-C, and can't seem to extract the data being pulled by AFNetworking to use as label text, etc. I'm using it for a weather app backed by Forecast.io, and the Forecastr API wrapper. If the API is writing the JSON to a…
Luke Patton
  • 63
  • 1
  • 8
0
votes
0 answers

How to grid search ARIMA Model with forecast libary in R?

I am trying to tune the ARIMA Model using Arima() function with Box-Cox Transformation using grid search and I need a help. Here is my code: library(tidyverse) library(fpp2) library(lubridate) library(tsibble) data("AirPassengers") arima_gridsearch…
序主愛
  • 1
  • 1
0
votes
0 answers

How and why did I got the error with forecast.mlp with xreg?

I am fitting a neural network time series model with exogenous variables using mlp() function with its xreg parameter in nnfor library using the departure data in fpp2 library. Here is my code: data("departures",package = "fpp2") z =…
0
votes
2 answers

ggseasonplot from forecast package does not recognize ts object

I am trying to run a piece of code following strict instructions from https://otexts.com/fpp3/graphics-exercises.html I am using the following…
0
votes
1 answer

Replace NULL value from list in dataframe R

i have a dataframe with field as list(), but sometimes it have null values, i've tried replace(is.null(.), 0) in my query but nothing happened. i want to : replace train with list(date=exactly date in the rows, sales=0) displaying…
hartono -
  • 41
  • 6
0
votes
1 answer

Error when trying to apply forecasting methods on forecast object

I want to write my own forecasting function, assign forecast object and use use functions from forecast package on that object. I tried to replicate meanf function in the following way (using this approach How to create a forecast object in…
Mislav
  • 1,533
  • 16
  • 37
0
votes
0 answers

Getting error while installing forecast package version 8.2 in R

While installing forecast package older version 8.2 I am getting following error: I have followed below steps to install it: install.packages("devtools") require(devtools) install_version("forecast", version = "8.2") Error: * installing source…
user15051990
  • 1,835
  • 2
  • 28
  • 42
0
votes
0 answers

Data table to time series

I have a data table which I want to convert to a time series ts(). I am able to convert a single column one at a time but I have to convert entire table and then forecast the future values. Here is the sample data WeekNum 930000405 930000408…
Abhishek Singh
  • 187
  • 2
  • 13
1
2