Learn R Programming

chronicler (version 0.2.2)

fmap_record: Evaluate a non-chronicle function on a chronicle object.

Description

Evaluate a non-chronicle function on a chronicle object.

Usage

fmap_record(.c, .f, ...)

Value

Returns the result of `.f(.c$value)` as a new chronicle object.

Arguments

.c

A chronicle object.

.f

A non-chronicle function.

...

Further parameters to pass to `.f`.

Examples

Run this code
as_chronicle(3) |> fmap_record(sqrt)

Run the code above in your browser using DataLab