We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
text
int
The text was updated successfully, but these errors were encountered:
filter() -> filter summarise() -> dataframes are Foldable
filter
Foldable
Sorry, something went wrong.
mutate() is interesting; in the current implementation, we are lacking a typesafe way to re-insert values into a row.
@adamConnerSax shows this workaround for a row function :
let add_nwnh_dem r = K.knitMaybe "Missing column when computing nwnh_dem" $ do vocT <- r ^? Heidi.double (BR.heidiColKey "VOC Total") wnhT <- r ^? Heidi.double (BR.heidiColKey "WNH Total") voc <- r ^? Heidi.int (BR.heidiColKey "NWNH VEP") wnh <- r ^? Heidi.int (BR.heidiColKey "WNH VEP") vocSST <- r ^? Heidi.double (BR.heidiColKey "State-Specific") let turnout = ((vocT * realToFrac voc) + (wnhT * realToFrac wnh))/realToFrac (voc + wnh) voc_dem = vocT - turnout - vocSST return $ Heidi.insert (BR.heidiColKey "Demographic") (Heidi.VPDouble voc_dem) $ Heidi.insert (BR.heidiColKey "VOC - State Average") (Heidi.VPDouble $ voc_dem + vocSST) r
No branches or pull requests
text
,int
etc. lenses- [ ] arrange() changes the ordering of the rows.not neededThe text was updated successfully, but these errors were encountered: