% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ComDim-classes.R
\name{blockNames}
\alias{blockNames}
\alias{blockNames,MultiBlock-method}
\title{blockNames}
\usage{
blockNames(x, ...)

\S4method{blockNames}{MultiBlock}(x, slot = "Data")
}
\arguments{
\item{x}{A MultiBlock object.}

\item{...}{Not used. Present for S4 generic dispatch compatibility.}

\item{slot}{A string: \code{"Data"} (default), \code{"Batch"}, or
\code{"Metadata"}, indicating which slot to retrieve names from.}
}
\value{
A character vector with the block names of the requested slot.
}
\description{
Return the block names of a MultiBlock object.
}
\examples{
b1 <- matrix(rnorm(500), 10, 50)
b2 <- matrix(rnorm(800), 10, 80)
mb <- MultiBlock(Data = list(b1 = b1, b2 = b2))
blockNames(mb) # c("b1", "b2")
blockNames(mb, "Data") # same
}
