matthieugomez / statar

R package for data manipulation — inspired by Stata's API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sum_up() error message (minor issue)

ziahydari opened this issue · comments

Thanks for providing this package. When using sum_up() without any numeric variable, the error message says:

Error: Please select at least one non-numeric variable

Should be "numeric" not "non-numeric"

require(tidyverse)
require(statar)
df <- tibble(Name1=c("Smith, Peter", "Wozoski, Mike"), Name3=c("Smith, Mike", "Wozoski, Mike"))
df <- df %>% add_column(Name13=stri_c(df$Name1, df$Name3))
df %>% select(Name13)
sum_up(df)
sum_up(df, Name1)
df <- df %>% add_column(gpa=c(4, 3.75))
sum_up(df)
sum_up(df, gpa)

Thanks!