convertNamedVectorToMetricDF: Convert a named vector to a metric data.frame

Description Usage Arguments Value Examples

View source: R/convertNamedVectorToMetricDF.R

Description

Converts a named vector to a metric data.frame. The names should be the site identifiers, and the deparsed name of the the argument x, becomes the metric name.

Usage

1
2
3

Arguments

x

a named vector

Value

a 'metric' data.frame

Examples

1
2
my_metric <- c('uid1' = 0.1, 'uid2' = 0.2, 'uid3' = 0.3)
convertNamedVectorToMetricDF(my_metric)

jasonelaw/nrsa documentation built on Nov. 8, 2019, 11:34 a.m.