Watts-College / cpp-527-fall-2021

A course shell for CPP 527 Foundations of Data Science II
https://watts-college.github.io/cpp-527-fall-2021/
2 stars 6 forks source link

Final Project -Step 8 #64

Closed AhmedRashwanASU closed 2 years ago

AhmedRashwanASU commented 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 )
lecy commented 2 years ago

Got it working? I'm guessing you dropped the pander() call from the function?