Question: Choose the correct code ( s ) to create a vector consisting of months of the third quarter ( July - September ) of the

Choose the correct code(s) to create a vector consisting of months of the third quarter (July -September) of the Julian calendar where each month is represented as many times as its chronological order within the 12 month cycle. That is, July would be represented 7 times.
a.Q2.rep = rep(month.name[7:9],each = c(7,8,9))
b.Q2.1= rep(month.name[7:9],times = c(7,8,9))
c.Q2.2= factor(c(rep("August",times =8), rep("July",times =7),rep("September",9)))
d.Q2.3<- c(rep(month.name[7],times = which(month.name == "July")), rep(month.name[8],times = which(month.name == "August")),rep(month.name[9],times = which(month.name == "September")))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!