Hi Kirsten,
The second argument of replace() is actually an index, so it's trying to
replace element number 2004-5-14 = 1985 with 134! See ?replace. I would
need more of your code to understand your error exactly.
I think you would be better off converting your dates to date format (?Date)
and
Hello, I have a problem with using replace() to convert a vector of dates
from -mm-dd to julian date.
For example, I type
replace(x,2004-05-14,134)
and I receive an error:
Error in `[<-.data.frame`(`*tmp*`, list, value = 134) :
new columns would leave holes after existi
2 matches
Mail list logo