R Programming: Create an Ordered Factor From Data Consisting of the Names of Months

R Programming: Create an ordered factor from data consisting of the names of months mons_v = c("March","April","January","November","January", "September","October","September","November","August","February", "January","November","November","February","May","August","February", "July","December","August","August","September","November","September", "February","April") print("Original vector:") print(mons_v) f = factor(mons_v) print("Ordered factors of…

0 Comments