Rev Language Reference


structure - The structure of a variable

Shows all the information about a given variable.

Aliases

  • str

Usage

structure(RevObject x, Bool verbose)

Arguments

x : RevObject (pass by const reference)
The variable.
verbose : Bool (pass by value)
Do you want all the information?
Default : FALSE

Return Type

Example

# create a variable
a <- 1
b := exp(a)
# now create a deterministic variable which will be a child of 'b'
c := ln(b)
# now create a constant variable which will not be a child of 'b'
d <- ln(b)

str(b)

See Also