Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
77 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ | ||
^README\.Rmd$ | ||
^README-.*\.png$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Version: 1.0 | ||
|
||
RestoreWorkspace: Default | ||
SaveWorkspace: Default | ||
AlwaysSaveHistory: Default | ||
|
||
EnableCodeIndexing: Yes | ||
UseSpacesForTab: Yes | ||
NumSpacesForTab: 2 | ||
Encoding: UTF-8 | ||
|
||
RnwWeave: Sweave | ||
LaTeX: pdfLaTeX | ||
|
||
BuildType: Package | ||
PackageUseDevtools: Yes | ||
PackageInstallArgs: --no-multiarch --with-keep.source |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
<!-- README.md is generated from README.Rmd. Please edit that file --> | ||
M4comp2018 | ||
========== | ||
|
||
The R package M4comp2018 contains the 100000 time series from the M4-competition. | ||
|
||
Installation | ||
------------ | ||
|
||
You can install M4comp2018 from github with: | ||
|
||
``` r | ||
# install.packages("devtools") | ||
devtools::install_github("carlanetto/M4comp2018") | ||
``` | ||
|
||
Example | ||
------- | ||
|
||
This is a basic example which shows you how to solve a common problem: | ||
|
||
``` r | ||
## basic example code | ||
library(M4comp2018) | ||
data(M4) | ||
names(M4[[1]]) | ||
#> [1] "x" "st" "type" "period" "h" "sn" | ||
#extract yearly series | ||
yearly_M4 <- Filter(function(l) l$period == "Yearly", M4) | ||
``` | ||
|
||
``` r | ||
library(ggplot2) | ||
library(forecast) | ||
autoplot(M4[[40773]]$x) | ||
``` | ||
|
||
![](README-unnamed-chunk-3-1.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters