as_lkthr: Make a lkthr(abbr of lookthrough) object

Description Usage Arguments Value

View source: R/lkthr.R

Description

Make a lkthr(abbr of lookthrough) object

Usage

1
2
3
4
5
6
7
8
as_lkthr(x, ...)

## S3 method for class 'data.frame'
as_lkthr(x, mapping = c(ptf = "PTF", asset = "ASSET",
  exposure = "EXPOSURE"), ...)

## S3 method for class 'list'
as_lkthr(x, ...)

Arguments

x

A list or a data.frame contains position info. If x is a list, it should contain three levels of each represents the PTF, ASSET and EXPOSURE.

...

Other arguments being passed to the patched functions.

mapping

A named character vector whose names are ptf, asset and exposureused only when x is a data.frame, It's used to map the data.frame columns.

Value

A lkthr object. Essentially it's a data.tree::Node.


shrektan/lookthrough documentation built on March 29, 2021, 12:07 p.m.