

Supplied, this overrides the common type of the RHS inputs.sizeĪn optional size declaring the desired output size. If NULL, the default, a missing value will be used.ptypeĪn optional prototype declaring the desired output type.

This typically involves some variation of is.na(x) ~ value

Handle missing values in the conditions differently, you must explicitlyĬatch them with another condition before they fall through to the The result at those locations will be assigned the. NA values in the LHS conditions are treated like FALSE, meaning that default participates in the computation of the common type with the RHS default must be size 1 or the same size as the common size computed The value used when all of the LHS inputs return either Inputs, where you might supply a size 1 input that will be recycled to the That said, we encourageĪll LHS inputs to be the same size. The RHS inputs will be coerced to their common type.Īll inputs will be recycled to their common size. The LHS inputs must evaluate to logical vectors. The right hand side (RHS) provides the replacement value. The left hand side (LHS) determines which values match this case.
