# NOT RUN {
# Inputs with 1 observation are recycled
vec_recycle_common(1:5, 5)
# }
# NOT RUN {
vec_recycle_common(1:5, 1:2)
# }
# NOT RUN {
# Inputs with 0 observations
vec_recycle_common(1:5, integer())
# Data frames and matrices are recycled along their rows
vec_recycle_common(data.frame(x = 1), 1:5)
vec_recycle_common(array(1:2, c(1, 2)), 1:5)
vec_recycle_common(array(1:3, c(1, 3, 1)), 1:5)
# }
Run the code above in your browser using DataLab