Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R - Concatenate integer arrays

Tags:

r

How can I join 1:3 and 7:8 to 1 2 3 7 8?

Where is a good resource to pick up peculiars like this?

like image 612
Skylar Saveland Avatar asked Dec 27 '22 19:12

Skylar Saveland


1 Answers

c(1:3, 7:8)
[1] 1 2 3 7 8

The help page indicates this is a generic function which combines its arguments.

like image 156
Chase Avatar answered Jan 06 '23 09:01

Chase