powered by
Compute the percentage of each cells of a matrix or data.frame by row
pclig(matr)
a matrix or a data.frame
Return a matrix with percentages in each cell
Compute the percentage of each cells of a matrix by row. NA are removed.
prop.table
# NOT RUN { 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