[R] Is it possible to get the first letter of a word?

Liaw, Andy andy_liaw at merck.com
Wed Jun 22 16:52:29 CEST 2005


Use substring() or substr().

Andy

> From: Navarre Sabine
> 
> Hi,
> I would to get the first letter of a word like:
> 
> > title_cat
>        TitleCat
> 1     Training
>  
> I would like T from Training!
> 
> Thnaks a lot for your help
>  
> Sabine
> 
> 		
> ---------------------------------
> 
>  Téléchargez le ici !  
> 	[[alternative HTML version deleted]]
> 
>




More information about the R-help mailing list