@@ -15,9 +15,7 @@ may trip up Julia users accustomed to MATLAB:
15
15
can create the array ` a = [0 0 0 3.2] ` and ` a(5) = 7 ` can grow it into ` a = [0 0 0 3.2 7] ` , the
16
16
corresponding Julia statement ` a[5] = 7 ` throws an error if the length of ` a ` is less than 5 or
17
17
if this statement is the first use of the identifier ` a ` . Julia has [ ` push! ` ] ( @ref ) and [ ` append! ` ] ( @ref ) ,
18
- which grow ` Vector ` s much more efficiently than MATLAB's ` a(end+1) = val ` .
19
- * The imaginary unit ` sqrt(-1) ` is represented in Julia as [ ` im ` ] ( @ref ) , not ` i ` or ` j ` as in MATLAB.
20
- * In Julia, literal numbers without a decimal point (such as ` 42 ` ) create integers instead of floating
18
+ which grow ` Vector ` s much more efficiently than * In Julia, literal numbers without a decimal point (such as ` 42 ` ) create integers instead of floating
21
19
point numbers. Arbitrarily large integer literals are supported. As a result, some operations
22
20
such as ` 2^-1 ` will throw a domain error as the result is not an integer (see [ the FAQ entry on domain errors] (@ref faq-domain-errors)
23
21
for details).
@@ -180,7 +178,10 @@ For users coming to Julia from R, these are some noteworthy differences:
180
178
code is often achieved by using devectorized loops.
181
179
* Julia is eagerly evaluated and does not support R-style lazy evaluation. For most users, this
182
180
means that there are very few unquoted expressions or column names.
183
- * Julia does not support the ` NULL ` type.
181
+ * Julia does not support the ` NULL ` type. The closest equivalent is [ ` nothing ` ] ( @ref ) , but it
182
+ behaves like a scalar value rather than like a list. Use ` x == nothing ` instead of ` is.null(x) ` .
183
+ * In Julia, missing values are represented by the [ ` missing ` ] ( @ref ) object rather than by ` NA ` .
184
+ Use [ ` ismissing(x) ` ] ( @ref ) instead of ` isna(x) ` .
184
185
* Julia lacks the equivalent of R's ` assign ` or ` get ` .
185
186
* In Julia, ` return ` does not require parentheses.
186
187
* In R, an idiomatic way to remove unwanted values is to use logical indexing, like in the expression
0 commit comments