quitar_0.data.frame | R Documentation |
Elimina las filas de un data.frame que tienen cero en todas las columnas de modo numeric, excepto en las columnas indicadas.
## S3 method for class 'data.frame'
quitar_0(df, excepto = character())
df |
data.frame |
excepto |
nombre (character) o posición (numeric) de las columnas de modo numeric que serán ignoradas |
data.frame
eddy castellón
aa <- data.frame(
x = 1:5, y = c(0, 0, 0, 1, 1),
z = c(5, 0, 0, 2, 0)
)
(quitar_0(aa, excepto = "x"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.