?as.Date On Wed, Mar 9, 2016 at 10:14 AM, KMNanus <kmna...@gmail.com> wrote:
> I have a series of dates in format 3-Oct, 10-Oct, 20-Oct, etc. > > I want to create a variable of just the month. If I convert the date to a > character string, substr is ineffective because some of the dates have 5 > characters (3-Oct) and some have 6 (10-Oct). > > Is there a date function that accomplishes this easily? > > Ken > kmna...@gmail.com > 914-450-0816 (tel) > 347-730-4813 (fax) > > > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. > -- Dan Dalthorp, PhD USGS Forest and Rangeland Ecosystem Science Center Forest Sciences Lab, Rm 189 3200 SW Jefferson Way Corvallis, OR 97331 ph: 541-750-0953 ddalth...@usgs.gov [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.