Try this:

append(a, 5)

see ?append for more detail

On Thu, Aug 7, 2008 at 1:38 PM,  <[EMAIL PROTECTED]> 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@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

______________________________________________
R-help@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.

Reply via email to