as.parental.character: Convert a character string to a parental.

Description Usage Arguments Value Examples

View source: R/convert.R

Description

Format required is one of two. Either standard or pretty. See examples.

Usage

1
2
  ## S3 method for class 'character'
 as.parental(x, pretty = F, ...)

Arguments

x

An character object

pretty

A logical indicating whether the supplied object is pretty

...

Further arguments (unused)

Value

A parental object.

Examples

1
2
3
4
5
x <- "[3][1][2][1][1,3]"
as.parental(x, pretty = TRUE)

x <- "3,1,2,1,c(1,3)"
as.parental(x)

rjbgoudie/parental documentation built on May 27, 2019, 9:11 a.m.