---
title: "Introduction to numspellR"
author: "Joko Nursiyono"
output: rmarkdown::html_vignette
vignette: >
  %\VignetteIndexEntry{numspellR Introduction}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
---

# Overview

`numspellR` is a tool to detect numeric persistence ("spells") and rigidity patterns in numeric data. It works with numeric vectors and data frames.

# Installation

```{r}
# Install from your local package
# install.packages("numspellR")
library(numspellR)
```

```{r}
# example
df <- data.frame(
  time = 1:8,
  value = c(5, 5, 5, 5, 6, 6, 6, 7)
)

numspellr(df, lang = "indonesia")
```

```{r}
# example
df <- data.frame(
  time = 1:8,
  value = c(5, 5, 5, 5, 6, 6, 6, 7)
)

numspellr(df, lang = "english")
```
