R/indexing.R

Defines functions `[.semforest` `[.semtree`

#' @exportS3Method "[" semtree
`[.semtree` <- function(x, i, ...) 
{
	getNodeById(x, i)
}

#' @exportS3Method "[" semforest
`[.semforest` <- function(x, i, ...) 
{
  x$forest[[i]]
}

Try the semtree package in your browser

Any scripts or data that you put into this service are public.

semtree documentation built on Nov. 26, 2023, 5:07 p.m.