% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parametrize.R
\name{as_bundle_set}
\alias{as_bundle_set}
\title{Coerce an object to a bundle_set}
\usage{
as_bundle_set(x, ...)
}
\arguments{
\item{x}{An object to coerce.}

\item{...}{Additional arguments passed to methods (e.g. \code{name} for bundles).}
}
\value{
A \link{bundle_set} object.
}
\description{
\code{as_bundle_set()} converts a supported object into a \link{bundle_set}.
}
\details{
Currently supported input classes:
\itemize{
\item \link{bundle_set}: returned unchanged.
\item \link{bundle}: wrapped in a single-element \link{bundle_set}. An optional \code{name}
argument sets the element name (defaults to \code{"bundle_1"}).
}
}
\examples{
pts <- matrix(runif(15), ncol = 3, dimnames = list(NULL, c("X", "Y", "Z")))
b <- bundle(streamlines = list(streamline(points = pts)))
bs <- as_bundle_set(b, name = "sub-01")
bs@n_bundles  # 1
}
\seealso{
\code{\link[=bundle_set]{bundle_set()}}, \code{\link[=bind_bundle_sets]{bind_bundle_sets()}}
}
