parent
ec4140a9e5
commit
f2d7e6a921
|
@ -238,8 +238,6 @@ Sometimes you want to do different things based on the type of vector. One optio
|
|||
| `is_list()` | | | | | x |
|
||||
| `is_vector()` | x | x | x | x | x |
|
||||
|
||||
Each predicate also comes with a "scalar" version, like `is_scalar_atomic()`, which checks that the length is 1. This is useful, for example, if you want to check that an argument to your function is a single logical value.
|
||||
|
||||
### Scalars and recycling rules
|
||||
|
||||
As well as implicitly coercing the types of vectors to be compatible, R will also implicitly coerce the length of vectors. This is called vector __recycling__, because the shorter vector is repeated, or recycled, to the same length as the longer vector.
|
||||
|
|
Loading…
Reference in New Issue