reducir | R Documentation |
Reduce the matrix, ftable o data.frame suppressing rows or columns whose elements are all equal to one of the values of valores.
reducir(x,valores=NA,filas=TRUE,columnas=TRUE)
x |
Matrix, ftable or data.frame |
valores |
Vector values to compare |
filas |
If TRUE (default) the rows with all values in valores will be deleted |
columnas |
If TRUE (default) the columns with all values in valores will be deleted |
Returns a matrix or data.frame without the rows o columns with all values equals to a value from the valores. If x is a ftable returns an array with two attributes, cabColumna and cabFila which contain an array of header rows and columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.