Skip to content
Prev 86726 / 398513 Next

(Newbie) Functions on vectors

Something like

Qs <- c("30/6", "30/9", "31/12", "31/3")
paste(Qs[quarter], year + (quarter==4), sep="")

(no trailing semicolons are necessary)
On Fri, 17 Feb 2006, Vivek Satsangi wrote: