inst/doc/model.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  dpi = 300
)

## ----setup, echo=FALSE--------------------------------------------------------
library(melt, warn.conflicts = FALSE)

## ---- eval = TRUE-------------------------------------------------------------
data("faithful")
str(faithful)
summary(faithful)

## -----------------------------------------------------------------------------
fit <- el_mean(faithful, par = c(3.5, 70))
class(fit)
showClass("EL")

## -----------------------------------------------------------------------------
fit

## -----------------------------------------------------------------------------
w <- faithful$waiting
(wfit <- el_mean(faithful, par = c(3.5, 70), weights = w))

Try the melt package in your browser

Any scripts or data that you put into this service are public.

melt documentation built on May 31, 2023, 7:12 p.m.