I would like to map the first/second characters of the column ï..Order.Date to a new column called Order.Month.
ï..Order.Date is a column in the data frame with string dates in M/D/YY or MM/DD/YY format:
"12/1/17" "9/1/17" "9/19/17" "9/1/17" "9/29/17"
I need to create a new column which uses the substring containing the first 1 or 2 characters, and map it to the month:
months = c('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December')
Still new to r and not sure the best way to approach this.