[R] Date variable error

Kurt_Helf at nps.gov Kurt_Helf at nps.gov
Mon Dec 13 22:17:13 CET 2010

     In attempting to create a date variable based on month (e.g.,
February, April, etc.) and year (e.g., 2006) data, wherein I converted
Month to a factor with Jan=1...Dec=12, I used the following command:


however, I get a message "Error: trunc not meaningful for factors"
Any advice?

Kurt Lewis Helf, Ph.D.
EEO Counselor
National Park Service
Cumberland Piedmont Network
P.O. Box 8
Mammoth Cave, KY 42259
Ph: 270-758-2163
Lab: 270-758-2151
Fax: 270-758-2609
Science, in constantly seeking real explanations, reveals the true majesty
of our world in all its complexity.
-Richard Dawkins

The scientific tradition is distinguished from the pre-scientific tradition
in having two layers.  Like the latter it passes on its theories but it
also passes on a critical attitude towards them.  The theories are passed
on not as dogmas but rather with the challenge to discuss them and improve
upon them.
-Karl Popper

...consider yourself a guest in the home of other creatures as significant
as yourself.
-Wayside at Wilderness Threshold in McKittrick Canyon, Guadalupe Mountains
National Park, TX

Cumberland Piedmont Network (CUPN) Homepage:

CUPN Forest Pest Monitoring Website:

CUPN Cave Cricket Monitoring Website:

CUPN Cave Aquatic Biota Monitoring Website:

More information about the R-help mailing list