Try this:
append(a, 5)
see ?append for more detail
On Thu, Aug 7, 2008 at 1:38 PM, <rkevinburton at charter.net>
wrote:> This is probably an extemly easy operation I just could not find out how to
do it.
>
> I simple want to append to a vector.
>
> a <- c(1,2,3,4)
> a <- union(a, c(5))
>
> I want to append the value 5 or even another vector. Or is the a
"better" way?
>
> Kevin
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Henrique Dallazuanna
Curitiba-Paran?-Brasil
25? 25' 40" S 49? 16' 22" O