[R] i think i asked the wrong ?

Ott Toomet siim at obs.ee
Mon Feb 18 18:08:25 CET 2002


Hello,

1. Read ,,introduction to R''ä

2. What about vectors, use a construction similar to

> a <- c(1,2,3,4,5)
> a[-3]
[1] 1 2 4 5

e.g. you may write

a <- a[-3]

To remove a single row or column for a matrix you may do in the same way
(but remember to distringuis between rows and columns with comma).

To remove a single element from a matrix... I do not think you really mean
that.

Best wishes,

Ott Toomet


On Mon, 18 Feb 2002, jimi adams wrote:

> me again, new to R, haven't programmed in a long time at all
> sorry to ask what is probably basic
>
> a while ago i asked how to remove an element from a list
> apparently what i am using is not a list but a vector, didn't realize there
> was a list data type
> could also use a matrix for what i am doing, is there a way to remove
> single elements from either of those?
>
> thanks for any help, if i was actually using a list as i said last time,
> the answers i received would have cleared things right up
>
> jimi
> jimi adams
> Department of Sociology
> The Ohio State University
> 300 Bricker Hall
> 190 N. Oval Mall
> Columbus, OH 43210-1353
> 614-688-4261
>
> our mind has a remarkable ability to think of contents as being independent
> of the act of thinking
>                                              -georg simmel
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list