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

(string)
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 Sept. 30, 2024, 9:32 a.m.