Hello, I have a problem with using replace() to convert a vector of dates from yyyy-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 existing columns If I can successfully convert, I have a script that will convert all of the dates in the vector (i.e., the same line repeated with the next yyyy-mm-dd and corresponding julian day). Any help would be much appreciated. Thank you, Kirsten Kirsten Barrett Mendenhall Postdoctoral Fellow, USGS Alaska Science Center 4210 University Drive Anchorage, AK [[alternative HTML version deleted]] ______________________________________________ R-help@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.