create_stan_data: Create stan data

Description Usage Arguments Examples

View source: R/wrangle-data.R

Description

This function creates a data object to be used in Stan

Usage

1

Arguments

data

tibble or data.frame object

...

index

Examples

1
2
3
df <- data.frame(test = c(rep("dog", 5), rep("cat", 6)))
df <- create_index(df, k = test)
df <- create_stan_data(df, k)

duarteguilherme/stanutils documentation built on Dec. 23, 2019, 6:30 p.m.