% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/S3_aggregations.R
\name{colVars}
\alias{colVars}
\alias{colVars.HDF5Matrix}
\alias{rowVars}
\alias{rowVars.HDF5Matrix}
\title{Column and row variances for HDF5Matrix}
\usage{
colVars(x, ...)

\method{colVars}{HDF5Matrix}(
  x,
  paral = NULL,
  wsize = NULL,
  threads = NULL,
  save_to = NULL,
  overwrite = TRUE,
  ...
)

rowVars(x, ...)

\method{rowVars}{HDF5Matrix}(
  x,
  paral = NULL,
  wsize = NULL,
  threads = NULL,
  save_to = NULL,
  overwrite = TRUE,
  ...
)
}
\arguments{
\item{x}{An \code{HDF5Matrix} object.}

\item{...}{Ignored.}

\item{paral}{Logical or NULL. Enable OpenMP parallelisation.}

\item{wsize}{Integer or NULL. Block size for HDF5 reads (NULL = auto).}

\item{threads}{Integer or NULL. Number of OpenMP threads (NULL = auto).}

\item{save_to}{Where to save the result (see Details).  NULL returns a
plain R vector; a character string \code{"group/dataset"}
saves in the same file as \code{x}; a named list
\code{list(file = "f.h5", path = "group/dataset")} saves in
a different file.  In both non-NULL cases an
\code{HDF5Matrix} handle is returned.}

\item{overwrite}{Logical.  Overwrite an existing dataset at \code{save_to}?
(Currently always TRUE when \code{save_to} is not NULL.)}
}
\value{
A numeric vector (when \code{save_to = NULL}) or an
\code{HDF5Matrix} handle to the persisted result.
}
\description{
Block-wise computation of column and row variances (Bessel's correction,
n-1).  Returns NaN for columns/rows with fewer than 2 observations,
matching base R behaviour.
}
