-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
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
0 proportion showing up as NA in props() with df_stats() #11
Comments
@rpruim I took care of this to some extent when I merged issue008 with beta. I didn't see an easy way to detect when In
Of course you can change this, but I'm not sure why your names by default correspond to
|
Thanks. I've been busy with other things and haven't had a chance to take a closer look at issue008. |
After merging stuff, I'm getting props(Empathy ~ Sex, data = CompassionateRats)
## Sex Empathy_prop_yes Empathy_prop_no
## 1 F 1.0000000 0.0000000
## 2 M 0.7083333 0.2916667
require(Lock5withR)
df_stats( Empathy ~ Sex, data = CompassionateRats, props)
## Sex props_Empathy_prop_yes props_Empathy_prop_no
## 1 F 1.0000000 NA
## 2 M 0.7083333 0.2916667 Note: the fix isn't working inside a call to Perhaps I misunderstood that this was ready to go and waiting for me to merge with master. In any case, this issue is definitely still open. |
I've reset master back to before this whole process began. I think we should start from scratch to fix this since (a) I messed things up in the repo and (b) the proposed fix was not a complete solution anyway. Certainly we can look back at what was done for ideas/code as needed. |
I have a partial solution -- it works for factors (since it can use the levels to know to compute the 0's). So the original example works because options(digits = 3)
require(Lock5withR)
df_stats( Empathy ~ Sex, data = CompassionateRats, props)
## Sex prop_no prop_yes
## 1 F 0.000 1.000
## 2 M 0.292 0.708 The current implementation of |
The text was updated successfully, but these errors were encountered: