Learn R Programming

Revticulate (version 1.0.0)

coerceRev: 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

Run this code
# NOT RUN {
coerceRev("[1, 2, 3, 4]")
# }

Run the code above in your browser using DataLab