I am trying to use a code in R that I saw in a Udemy course about Logistic Regression. The code that I am trying to use is,
<code>gendesc = data %>% group_by(GENDER1) %>% descr(AGE)
</code>
<code>gendesc = data %>% group_by(GENDER1) %>% descr(AGE)
</code>
gendesc = data %>% group_by(GENDER1) %>% descr(AGE)
However, an error message keeps on prompting whenever I run it in R. The error message is,
Error in descr(., AGE) : unused argument (AGE)
I tried omitting the pipe “%>%” code before “descr(AGE)” but it did not work.
I also tried installing the “descr” package in R but upon running
<code>gendesc = data %>% group_by(GENDER1) %>% descr(AGE)
</code>
<code>gendesc = data %>% group_by(GENDER1) %>% descr(AGE)
</code>
gendesc = data %>% group_by(GENDER1) %>% descr(AGE)
again, it still did not work.
Recognized by R Language Collective
New contributor
Matthew Salang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.