Skip to content

Commit

Permalink
Improve noteworthy differences from R on ismissing (#29332)
Browse files Browse the repository at this point in the history
The R function is called is.na, and automatically works element-wise.

(cherry picked from commit 8484f97)
  • Loading branch information
nalimilan authored and KristofferC committed Sep 30, 2018
1 parent e931f98 commit 10d8327
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/src/manual/noteworthy-differences.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ For users coming to Julia from R, these are some noteworthy differences:
* Julia does not support the `NULL` type. The closest equivalent is [`nothing`](@ref), but it
behaves like a scalar value rather than like a list. Use `x === nothing` instead of `is.null(x)`.
* In Julia, missing values are represented by the [`missing`](@ref) object rather than by `NA`.
Use [`ismissing(x)`](@ref) instead of `isna(x)`. The [`skipmissing`](@ref) function is generally
Use [`ismissing(x)`](@ref) (or `ismissing.(x)` for element-wise operation on vectors) instead of
`is.na(x)`. The [`skipmissing`](@ref) function is generally
used instead of `na.rm=TRUE` (though in some particular cases functions take a `skipmissing`
argument).
* Julia lacks the equivalent of R's `assign` or `get`.
Expand Down

0 comments on commit 10d8327

Please sign in to comment.