Skip to contents

Coerce to a distributional-data object

Usage

as_dd(x, ...)

# S3 method for class 'list'
as_dd(x, full_sample = unlist(x), mc.cores = NULL, ...)

# S3 method for class 'xts'
as_dd(x, ...)

# S3 method for class 'dd'
as_dd(x, ...)

# S3 method for class 'fd'
as_dd(x, ...)

# S3 method for class 'numeric'
as_dd(x, ...)

Arguments

x

Object to coerce: a numeric sample, an fd, dd, list, or xts time series.

...

Further arguments forwarded to dd().

full_sample

Pooled reference sample used to set common breakpoints across list elements. Defaults to unlist(x).

mc.cores

Optional integer; if non-NULL, list elements are processed in parallel via parallel::mclapply().

Value

A dd object, or a list of them with class c("ddl", "fdl", "list") for list / xts input.