[R] converting string vector to integer/numeric vector

Ista Zahn izahn at psych.rochester.edu
Sun Sep 5 14:59:02 CEST 2010


See
?numeric
?integer
and possible the colClasses argument of
read.table

-Ista

On Sun, Sep 5, 2010 at 12:48 PM, rajesh j <akshay.rajesh at gmail.com> wrote:
> Hi,
>
> Is it possible to convert a string vector to integer or numeric vector? In
> my situation I receive data in a string vector and have to convert it based
> on a given type.
> --
> Rajesh.J
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org



More information about the R-help mailing list