see ?toupper
On 10/2/07, Michael Sun <[EMAIL PROTECTED]> wrote:
> Dear list,
>
> x <- c("year","date","time","starting price","end price","max","min")
>
> how can I change all these lower-case letter to capital letter?
>
> how can I use sub or gsub function???
>
> sub("year","YEAR",x)
> will only
Dear list,
x <- c("year","date","time","starting price","end price","max","min")
how can I change all these lower-case letter to capital letter?
how can I use sub or gsub function???
sub("year","YEAR",x)
will only change one each time...
Appreciate for any helps
Cheers
mam
[[alterna
2 matches
Mail list logo