[R] data manipulation function descriptions

kjetil brinchmann halvorsen kjetil at entelnet.bo
Fri Feb 14 04:00:03 CET 2003


On 13 Feb 2003 at 17:09, Jason Bond wrote:

As lisp-stat user, I tried to compile a short dictionary within your 
answer below:

> Hello,
> 
>    I'm a recovering xlispstat user, and am trying to become a good R 
> user.  I've looked around on the CRAN doc website and have found quite a 
> few sets of documentation with various level of data manipulation function 
> descriptions (of what I've seen, most relatively low levels), and many with 
> examples of Rs use in statistical analyses.  Although I don't expect to get 
> my wish, ideally, it would be nice to have some sort of data manipulation 
> function guide for programmers.  I guess I'm somewhat of a different case, 
> as I know which functions that I want to use...I just don't know their 
> names...for example, all those great xlispstat functions like:
> 
> remove-duplicates                more or less    unique()
> sort-data                                  "                 sort()
> combine                                                     c()
> remove
                               x <- c(1,2,3,5,7,9,12,15, 18, 22)
                                x[-which(x==15)]
> reverse                                                      rev
> butlast
                                    n <- length(x)
                                    x[-n]
> first                           x[1] or for a list x[[1]]
> case                          switch
                                    [R-core : switch should be better 
                                               announced. It is for   
                                                instance not     
                                                 mentioned in "An 
                                                  introduction to R"]
> which                           which
> mapcar                         apply, lapply, sapply
> map-elements                     nothing better than the ones above
> all the string functions             paste, strwidth, strwrap, substr, toString
> and many many more,\

Kjetil Halvorsen

> 
> descriptions of a few of which are spread out in various documents.  Part 
> of my problem is clinging to that which I know.  Anyway, any general advice 
> would be greatly appreciated.
> 
>    Jason
> 
> At 03:57 PM 2/13/03 -0600, you wrote:
> 
> >?which
> >
> >On Thursday 13 February 2003 03:40 pm, Jason Bond wrote:
> > > Hello.  Sorry for the elementary post.  I've looked through the
> > > documentation, but can't seem to find a function which allows one to
> > > extract the position of an element within a list...for example the position
> > > of the element 4 in the vector c(1,2,4,3,6) is 3.  Thanks much for any
> > > help.
> > >
> > >    Jason
> > >
> > > ______________________________________________
> > > R-help at stat.math.ethz.ch mailing list
> > > http://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list