[R-SIG-Mac] How to add variables to a vector

Thomas Hopper tomhopper @end|ng |rom gm@||@com
Sat Mar 28 21:22:03 CET 2020


Add elements to the vector x?

x <- c(x, 4, 10, 8)

Sent from my iPhone

> On Mar 28, 2020, at 16:17, David <parkhurs using indiana.edu> wrote:
> 
> If I have a vector created like x <- c(5,1,9,3), how can I add values to it later?  That seems simple, but I don't find the answer in either of my Dalgaard or Crawley books, or in the help functions.  Thanks.
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac



More information about the R-SIG-Mac mailing list