diff --git a/README.Rmd b/README.Rmd index 15009d4..8c072ba 100644 --- a/README.Rmd +++ b/README.Rmd @@ -26,7 +26,7 @@ You can install the development version of ssa.hts from [GitHub](https://github. ``` r # install.packages("devtools") -devtools::install_github("numbats/assignment-1-package-creation-paulocanas") +devtools::install_github("paulocanas/ssa.hts") ``` ## Example diff --git a/README.md b/README.md index c46dfa9..ada0867 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ The goal of the ssa.hts package is to use singular spectrum analysis to -forecast hierarchical time series... +forecast hierarchical time series. ## Installation @@ -16,7 +16,7 @@ You can install the development version of ssa.hts from ``` r # install.packages("devtools") -devtools::install_github("numbats/assignment-1-package-creation-paulocanas") +devtools::install_github("paulocanas/ssa.hts") ``` ## Example @@ -24,10 +24,20 @@ devtools::install_github("numbats/assignment-1-package-creation-paulocanas") This is a basic example which shows you how to solve a common problem: ``` r -library(ssa.hts) +#library(ssa.hts) ## basic example code x <- datasets::AirPassengers[1:15] L <- 8 +ssa.hts::hankel_matrix(x, L) +#> [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] +#> [1,] 112 118 132 129 121 135 148 148 +#> [2,] 118 132 129 121 135 148 148 136 +#> [3,] 132 129 121 135 148 148 136 119 +#> [4,] 129 121 135 148 148 136 119 104 +#> [5,] 121 135 148 148 136 119 104 118 +#> [6,] 135 148 148 136 119 104 118 115 +#> [7,] 148 148 136 119 104 118 115 126 +#> [8,] 148 136 119 104 118 115 126 141 ``` What is special about using `README.Rmd` instead of just `README.md`?