[R] any quick way to write this label

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Sun Mar 28 11:46:40 CEST 2010

On Sun, Mar 28, 2010 at 8:56 AM, Roslina Zakaria <zroslina at yahoo.com> wrote:
> Hi r-users,
> Is there any quick way to write this label?
> c("0","50","100","150","200","250","300","350","400","450",
> "500","550","600","650","700","750","800","850","900")

Not sure what you mean by 'write this label'. But to generate that
vector, yes there is a quick way...

 Use 'seq' to generate the numeric sequence and then use as.character
to make it into character values.


More information about the R-help mailing list