[R] how to get a numeric vector?

vod vos vodvo@ @end|ng |rom zoho@com
Mon Oct 5 00:47:19 CEST 2020


Hi,

a <- c(1, 4)
b <- c(5, 8)

a:b

[1] 1 2 3 4 5
Warning messages:
1: In a:b : numerical expression has 2 elements: only the first used
2: In a:b : numerical expression has 2 elements: only the first used

how to get:

c(1:5, 4:8)

Thanks.



More information about the R-help mailing list