Learn R Programming

popdemo (version 0.1-2)

minCS: Calculate the mininum column sum of a matrix

Description

Calculate the minimum column sum of a matrix.

Usage

minCS(A)

Arguments

A
a numeric matrix of any dimension.

Value

  • The minimum colmn sum of A.

Details

minCS finds the smallest column sum of any numeric matrix.

Examples

Run this code
# Create a 3x3 PPM
    A <- matrix(c(0,1,2,0.5,0.1,0,0,0.6,0.6), byrow=TRUE, ncol=3)
    A

    # Find the minimum column sum of A
    minCS(A)

Run the code above in your browser using DataLab