mirror of https://gitlab.com/hrbrmstr/tdigest.git
boB Rudis
5 years ago
13 changed files with 419 additions and 79 deletions
@ -0,0 +1,28 @@ |
|||
% Generated by roxygen2: do not edit by hand |
|||
% Please edit documentation in R/create.R |
|||
\name{as.list.tdigest} |
|||
\alias{as.list.tdigest} |
|||
\alias{as_tdigest} |
|||
\title{Serialize a tdigest object to an R list or unserialize a serialized tdigest |
|||
list back into a tdigest object} |
|||
\usage{ |
|||
\method{as.list}{tdigest}(x, ...) |
|||
|
|||
as_tdigest(x) |
|||
} |
|||
\arguments{ |
|||
\item{x}{a tdigest object or a tdigest_list object} |
|||
|
|||
\item{...}{unused} |
|||
} |
|||
\description{ |
|||
These functions make it possible to create & populate a tdigest, serialize it out, |
|||
read it in at a later time and continue populating it enabling compact |
|||
distribution accumulation & storage for large, "continuous" datasets. |
|||
} |
|||
\examples{ |
|||
set.seed(1492) |
|||
x <- sample(0:100, 1000000, replace = TRUE) |
|||
td <- tdigest(x, 1000) |
|||
as_tdigest(as.list(td)) |
|||
} |
Loading…
Reference in new issue