coerceRev: Convert RevBayes Output into R Objects

View source: R/CoerceRev.R

coerceRevR Documentation

Convert RevBayes Output into R Objects

Description

Coerces a RevBayes output string into an equivalent R object. Automatically determines R object type based on the structure of the string, and returns the original string if R object equivalent cannot be determined.

Usage

coerceRev(revString)

Arguments

revString

character - Output from RevBayes

Value

rObject: Type varies depending on Rev object type. R object-formatted output coerced from a RevBayes output string.

Examples

## Not run: 
coerceRev("[1, 2, 3, 4]")

## End(Not run)

Revticulate documentation built on March 18, 2022, 6:47 p.m.