Crunch-io / rcrunch

R package for interacting with the Crunch API
https://crunch.io/r/crunch/
GNU Lesser General Public License v3.0
9 stars 15 forks source link

Stop relying on n_missing in cube results #622

Closed gergness closed 1 year ago

gergness commented 1 year ago

1) Changes how R figures out na.rm for the direct numeric functions like mean, sd, etc.

2) Open up the possibility of using na.rm in crtabs() like crtabs(mean(ds$age, na.rm = FALSE) ~ 1, ds) though don't change the default here even though this isn't consistent with base R, preserve backwards compatibility even though it means that na.rm defaults to TRUE in crtabs() (and decks and tabbooks).