colMin: Gives the minimum value of each column

View source: R/utils-DF.R

colMinR Documentation

Gives the minimum value of each column

Description

Gives the minimum value of each column

Usage

colMin(DF, type = "val")

Arguments

DF

data.frame or matrix

type

string to indicate how the result should be formatted "val" (default) returns the minimum values, "ind" returns the indices (as a named vector) of the minimum values, "all" returns a data.frame with the minimum value for each column and the indices.

Value

the minimum values and (or) their indices


barzine/barzinePhdR documentation built on Nov. 23, 2024, 8:54 p.m.