%0%

0th

Percentile

Default value for empty vectors

Use this inline operator when you need to provide a default value for empty (as defined by vec_empty()) vectors.

Usage
x %0% y
Arguments
x

A vector

y

Value to use to x is empty. To preserve type-stability, should be the same type as x.

Aliases
  • %0%
Examples
# NOT RUN {
1:10 %0% 5
integer() %0% 5
# }
Documentation reproduced from package vctrs, version 0.1.0, License: GPL-3

Community examples

Looks like there are no examples yet.