nlSignatureStat: Convert a signature into an nlStat

Description Usage Arguments Value Examples

View source: R/stats.R

Description

Convert a signature into an nlStat

Usage

1

Arguments

nlStatSignature

character The signature of an nlStat

Value

named character An nlStat

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
nlSignature <- "sum(na.rm=T)"

Rnightlights:::nlSignatureStat(nlStatSignature = nlSignature)

#returns an nlStat list
#[[1]]
#[[1]][[1]]
#[1] "sum"
#
#[[1]][[2]]
#[1] "na.rm=TRUE"
#
#list structure
#List of 1
#$ :List of 2
#..$ : chr "sum"
#..$ : chr "na.rm=TRUE"

chrisvwn/Rnightlights documentation built on Sept. 7, 2021, 1:44 a.m.