pclig {pgirmess}R Documentation

Compute the percentage of each cell of a matrix or data.frame by row

Description

Compute the percentage of each cells of a matrix or data.frame by row

Usage

pclig(matr)

Arguments

matr a matrix or a data.frame

Details

Compute the percentage of each cells of a matrix by row. NA are removed.

Value

Return a matrix with percentages in each cell

See Also

prop.table

Examples

x<-c(2,10,7,8,7) 
y<-c(56,22,7,20,5)
pclig(cbind(x,y))

[Package pgirmess version 1.3.8 Index]