check6 <-
BDdata %>%
group_by(Cal_Level, Raceethnicity_cd)%>%
count(Raceethnicity_cd)
## Warning: Factor `Raceethnicity_cd` contains implicit NA, consider using
## `forcats::fct_explicit_na`
## Warning: Factor `Raceethnicity_cd` contains implicit NA, consider using
## `forcats::fct_explicit_na`
## Warning: Factor `Raceethnicity_cd` contains implicit NA, consider using
## `forcats::fct_explicit_na`
#View(check6)
head(check6)
## Warning: Factor `Raceethnicity_cd` contains implicit NA, consider using
## `forcats::fct_explicit_na`
## Warning: Factor `Raceethnicity_cd` contains implicit NA, consider using
## `forcats::fct_explicit_na`
## # A tibble: 6 x 3
## # Groups: Cal_Level, Raceethnicity_cd [6]
## Cal_Level Raceethnicity_cd n
## <fct> <fct> <int>
## 1 S_C_Y <NA> 499422
## 2 S_C_Y_A <NA> 1687824
## 3 S_C_Y_RE B 499422
## 4 S_C_Y_RE H 499422
## 5 S_C_Y_RE O 499422
## 6 S_C_Y_RE W 499422