Skip to content
Back to formatted view

Raw Message

Message-ID: <8f75d250812101654s69732c56h5afdf1785130ede5@mail.gmail.com>
Date: 2008-12-11T00:54:21Z
From: Viktor Nagy
Subject: how to force years as.numeric?

Hi,

My next problem is that I have a data frame with an years column. This
column for some reason is recognised as factor instead of being
numeric. The years go from 1970 to 2007. When I convert it to numeric
with as.numeric then it goes from 1 to 38. Is there a way to convert
it with saving its "levels"?

This would be actually important as I am affraid of converting my real
values that are recognised as factors as well.

Thanks, Viktor