Browse Source

Corregido error en ejemplo.

main
Costa 2 years ago
parent
commit
3c77771ccb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      man/perc.Rd

+ 2
- 2
man/perc.Rd

@ -18,8 +18,8 @@ perc(v)
# It can be used with dplyr tables
library(tidyverse)
df<-data.frame("X"=c("A","A","B","B"), "Y"=v)
df \%>\% group_by(X) \%>\% summarise(Y=perc(Y))
df \%>\% mutate(Y=perc(Y))
# Or it can be under 1
df \%>\% group_by(X) \%>\% summarise(Y=perc(Y, per100=F))
df \%>\% mutate(Y=perc(Y, per100=F))
}

Loading…
Cancel
Save