Learn R Programming

pgirmess (version 1.4.0)

pclig: 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

Value

  • Return a matrix with percentages in each cell

Details

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

See Also

prop.table

Examples

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

Run the code above in your browser using DataLab