Skip to content

Commit

Permalink
GLM formulas do not have to be escaped anymore
Browse files Browse the repository at this point in the history
Forward port of 1149448
ref: #8143
  • Loading branch information
scheidan authored and ivarne committed Aug 26, 2014
1 parent 9106112 commit cef9123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/manual/noteworthy-differences.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ One of Julia's goals is to provide an effective language for data analysis and s
functionality for Julia is found in `packages <http://pkg.julialang.org/>`_ like the
DataFrames and Distributions packages:

- Distributions functions are found in the `Distributions package <https://github.com/JuliaStats/Distributions.jl>`_
- Distributions functions are found in the `Distributions package <https://github.com/JuliaStats/Distributions.jl>`_.
- The `DataFrames package <https://github.com/JuliaStats/DataFrames.jl>`_ provides data frames.
- Formulas for GLM's must be escaped: use ``:(y ~ x)`` instead of ``y ~ x``.
- Generalized linear models are provided by the `GLM package <https://github.com/JuliaStats/GLM.jl>`_.

- Julia provides tuples and real hash tables, but not R's lists. When returning multiple items, you should typically use a tuple: instead of ``list(a = 1, b = 2)``, use ``(1, 2)``.
- Julia encourages all users to write their own types. Julia's types are much easier to use than S3 or S4 objects in R. Julia's multiple dispatch system means that ``table(x::TypeA)`` and ``table(x::TypeB)`` act like R's ``table.TypeA(x)`` and ``table.TypeB(x)``.
Expand Down

0 comments on commit cef9123

Please sign in to comment.