[R] From numeric vector to string vector

David Winsemius dwinsemius at comcast.net
Sun Feb 13 16:48:26 CET 2011


On Feb 13, 2011, at 10:43 AM, Bogaso Christofer wrote:

> Hi there, I have a numeric vector let say:
>
> Vect <- c(12.234, 234.5675, 1.5)
>
> Now I want a string vector like:
>
> changedVec <- c("012.234", "234.568", "001.500")
>

?sprintf
>




David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list