> x <- c(12,13,15,20,33)
> x
[1] 12 13 15 20 33> x[x != 15]
[1] 12 13 20 33> c(x,1,2,3,4)
[1] 12 13 15 20 33 1 2 3 4>
On Sat, Sep 20, 2008 at 10:19 PM, Severino Salmo III
<sgsalmoiii at yahoo.com> wrote:>
> hi,
>
> i have a simple question.
>
> if i have a set of numbers within a given list, how do i remove a number
> within that list.
>
> Like, if I have
>
> water(10, 15, 20, 25, 30)
>
> what is the command to remove 15?
> what is the command to add new numbers?
>
> thanks so much,
>
> sev
> --
> View this message in context:
http://www.nabble.com/how-to-remove-and-add-data-in-a-list-tp19591012p19591012.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem that you are trying to solve?