Description Usage Arguments Value See Also Examples
Raise an error if one to several given R objects do not have the specified length. This is mainly used to easily generate meaningful error messages related to function arguments.
1 2 3 4 5 6 7 |
x |
R object to test. |
... |
Any R objects to test. |
.wanted |
Integer scalar giving the desired length.
Note that this can not be a scalar with
‘double’ as |
.msg |
Error message passed to |
.domain |
Passed to |
If successful, L
returns x
, but an error
message is raised if length(x)
is not identical to
wanted
. LL
yields the names of the
arguments contained in ...
, returned invisibly,
if successful. Otherwise an error is raised.
base::stop
Other coding-functions: assert
,
case
, check
, collect
,
contains
, flatten
,
listing
, map_names
,
map_values
, must
,
set
, sql
,
unnest
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.