[Rd] \example for replace.Rd

From: Timothy Bates <tim.bates_at_ed.ac.uk>
Date: Sun, 07 Aug 2011 16:12:54 +0100


The base help file replace.Rd has no usage example. Might this example be helpful?

\examples{

	foo <- c("Yes","n","no answer")
	foo <- replace(foo, list=c(2, 3), values=c("No”, NA))
	foo # "Yes" "No"  NA

}

Also, the Rd file doesn’t point to other relevant functions the user coming here might find useful. I’d suggest:

\seealso{

  \code{\link{rename} (reshape package)} }

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sun 07 Aug 2011 - 17:27:40 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 08 Aug 2011 - 01:00:15 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive