mergeVectors: Merging two vectors

View source: R/mergeVectors.R

mergeVectorsR Documentation

Merging two vectors

Description

This function merges two vectors to a data.fram, using the names as key.

Usage

  mergeVectors(x,y)

Arguments

x

The first vector.

y

The second vector.

Details

Just a basic merging of vectors, in case that the order of the vector differs, but the names intersect.

Value

A merged data.frame with the two vectors.

Author(s)

Daniel Fischer

Examples

x <- 1:10
names(x) <- letters[1:10]
y <- 1:10
names(y) <- sample(letters[1:10])
mergeVectors(x,y)

fischuu/Luke documentation built on Aug. 30, 2022, 10:07 a.m.