Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
paulocanas committed Mar 15, 2024
1 parent 569bc18 commit 33af01f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!-- badges: end -->

The goal of the ssa.hts package is to use singular spectrum analysis to
forecast hierarchical time series...
forecast hierarchical time series.

## Installation

Expand All @@ -16,18 +16,28 @@ 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

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`?
Expand Down

0 comments on commit 33af01f

Please sign in to comment.