Closed AhmedRashwanASU closed 2 years ago
Turning below into create_salary_table() function produce error ,
**invalid (NULL) left side of assignment** t.salary <- d2 %>% group_by( title, gender ) %>% summarize( q25=quantile(salary,0.25), q50=quantile(salary,0.50), q75=quantile(salary,0.75), n=n(), p= round( n/nrow(d), 3) ) %>% ungroup() pander( t.salary )
Got it working? I'm guessing you dropped the pander() call from the function?
Turning below into create_salary_table() function produce error ,