asvec: convert to a vector

asvecR Documentation

convert to a vector

Description

Convert an rtables framework object into a vector, if possible. This is unlikely to be useful in realistic scenarios.

Usage

## S4 method for signature 'VTableTree'
as.vector(x, mode = "any")

Arguments

x

ANY. The object to be converted to a vector

mode

character(1). Passed on to as.vector

Value

a vector of the chosen mode (or an error is raised if more than one row was present).

Note

This only works for a table with a single row or a row object.


rtables documentation built on Aug. 30, 2023, 5:07 p.m.