# if you're data are in the form of a factor
a.factor<-factor(a.vector)
levels(a.factor)<-gsub("\\.", "", a.vector)
a.factor
HTH,
STG
--
Stefan Th. Gries
-----------------------------------------------
University of California, Santa Barbara
http://www.linguistics.ucsb.edu/faculty/stgries
-----------------------------------------------
On 4/8/08 10:21 AM, "kris" <math...@gmail.com> wrote:
>
> I have data in the form of a column such as
> 1234.
> 2345.
> 3435.
> 4343.
> I want to have the data in this form ..i.e to remove the "dot" at the
> end of each number above.
> 1234
> 2345
> 3435
> 4343
If they're all in that format, you can just use as.numeric() :
> as.numeric("1234.")
[1] 1234
--
Ken Williams
Research Scientist
The Thomson Corporation
Eagan, MN