% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/S3_correlation.R
\name{cor}
\alias{cor}
\title{Correlation (generic)}
\usage{
cor(x, y = NULL, use = "everything", method = "pearson", ...)
}
\arguments{
\item{x}{A matrix or \code{HDF5Matrix} object.}

\item{y}{Optional second matrix.}

\item{use}{Character. Method for handling missing values.}

\item{method}{Character. Correlation method: \code{"pearson"} or \code{"spearman"}.}

\item{...}{Additional arguments passed to the method.}
}
\value{
Correlation matrix.
}
\description{
S3 generic for \code{cor()}. Dispatches to \code{\link{cor.HDF5Matrix}}
for \code{HDF5Matrix} objects, and to \code{stats::cor()} for all others.
}
