as.bvsresponse.character: Convert character vector to 'bvsresponse'.

Description Usage Arguments Details Value

View source: R/convert.R

Description

Convert a character vector (a comma-separated string) specifying the parents of a response to a 'bvsresponse' object.

Usage

1
2
3
  ## S3 method for class 'character'
 as.bvsresponse(x, response, nNodes,
  ...)

Arguments

x

A character string (possibly vector), a comma-separated list of the parents of the response.

response

An integer of length 1 specifying which node is the response.

nNodes

An integer of length 1 specifying the number of nodes in the variable selection.

...

Further arguments (unused)

Details

For example, as.bvsresponse("1,2,3", 4, 5) returns a 'bvsresponse' object with 5 nodes, with node 4 as response, and nodes 1, 2 and 3 as its parents.

Value

If length(x) == 1: An object of class 'bvsresponse'. If length(x) > 1: A list of class "bvsresponse.list" containing a number of 'bvsresponse' objects


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