-
Notifications
You must be signed in to change notification settings - Fork 7
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
Set values to missing #38
Comments
Thanks for catching this issue. This is totally fixable. The issue is that TidierData.jl thinks you are referring to a column named For now, you can use This should work, but I haven't tested it.
However, for common keywords like |
I have tried Neither work |
Thanks. We will look and get this fixed. |
This is now fixed in #69. Both of these should now work: julia> df = DataFrame(a = 1:5)
5×1 DataFrame
Row │ a
│ Int64
─────┼───────
1 │ 1
2 │ 2
3 │ 3
4 │ 4
5 │ 5
julia> @chain df @mutate(b = missing, c = !!missing)
5×3 DataFrame
Row │ a b c
│ Int64 Missing Missing
─────┼─────────────────────────
1 │ 1 missing missing
2 │ 2 missing missing
3 │ 3 missing missing
4 │ 4 missing missing
5 │ 5 missing missing |
In standard Julia, I can set a column to missing in this way:
df.year .= missing
In Tidyverse I can set a column to missing like this:
mutate(df, year = NA)
The Tidier equivalent would be:
@mutate(df, year = missing)
However, this does not work.
The text was updated successfully, but these errors were encountered: