From tim.bates at ed.ac.uk  Sun Aug  7 17:12:54 2011
From: tim.bates at ed.ac.uk (Timothy Bates)
Date: Sun, 7 Aug 2011 16:12:54 +0100
Subject: [Rd] \example for replace.Rd
Message-ID: <DC1E6AB0-DF99-44D4-B3A2-659741748C0F@ed.ac.uk>

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.



[Rd] \example for replace.Rd
Timothy Bates