How to join 2 vector variables with each element in 2nd vector?. In other words, I want to have a cross join of both vectors into a new variable. Jul 2, 2019 40 views

## 1 answer to this question.

A small trick that you can do is to create a matrix of either of those 2 vectors and then paste the matrices like below.

Just a small trick,

Suppose the matrices where letters = c ("a","b","c","d") and  numbers = c (1,2,3,4,5).

Now create a matrix of any 1 vector and then paste matrix with the vector this will fetch you combined vector as you wanted. Pasting 2 vectors directly will give result as below  answered Jul 4, 2019 by anonymous
• 32,420 points

## R programming: Finding the difference between 2 vectors

Try this function, it worked for me: f ...READ MORE

## Difference between list(1:5) and list(1,2 ...5) in R.

It's very simple. list(1:4) creates a single element(vector) whereas ...READ MORE

## Appending values to a vector - R

This is actually quite easy, all you ...READ MORE

## By using dpylr package sum of multiple columns

Basically here we are making an equation ...READ MORE

## How to convert a text mining termDocumentMatrix into excel or csv in R?

By assuming that all the values are ...READ MORE

## In a dpylr pipline how to use sample and seq?

For avoiding rowwise(), I prefer to use ...READ MORE