Element-wise combination of two vectors
Arguments
- x
(vector
)
first vector to combine.
- y
(vector
)
second vector to combine.
Value
A list
where each element combines corresponding elements of x
and y
.
Examples
combine_vectors(1:3, 4:6)
#> [[1]]
#> [1] 1 4
#>
#> [[2]]
#> [1] 2 5
#>
#> [[3]]
#> [1] 3 6
#>