parent
8101753650
commit
2d987544e9
|
@ -29,7 +29,7 @@ The idea of minimising the context needed to understand your code goes beyond ju
|
|||
|
||||
There are three common classes of surprises in R:
|
||||
|
||||
1. Unstable types: What what will `df[, x]` return? You can assume that `df`
|
||||
1. Unstable types: What will `df[, x]` return? You can assume that `df`
|
||||
is a data frame and `x` is a vector because of their names. But you don't
|
||||
know whether this code will return a data frame or a vector because the
|
||||
behaviour of `[` depends on the length of x.
|
||||
|
|
Loading…
Reference in New Issue