Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

How do you do this problem in R? (coding language). I\'m using rstudio. Problem

ID: 3071713 • Letter: H

Question

How do you do this problem in R? (coding language). I'm using rstudio.

Problem 3: Create, store, and print the following sequences. You may use the concatenate function to combine two sequences, but not as the only mechanism to yield the answer. (a) [1] "Q1" "Q1" "Q1" "Q1" () [1] 50.0 52.5 55.0 57.5 60.0 62.5 65 . 67.5 70.0 72.5 75.0 121 77.5 80.0 82.5 85.0 87.5 90.0 92.5 95.0 97.5 100.0 (c) [1] 2010 2010 2010 2010 2011 2011 2011 2011 2012 2012 2012 2012 2013 [14] 2013 2013 2013 2014 2014 2014 2014 2015 2015 2015 2015 2016 2016 [271 2016 2016 2017 2017 2017 2017 (d) [1] 2016 2016 2016 2016 2017 2017 2017 (e) [1] 1295 1296 1297 1298 1299 1300 1299 1298 1297 1296 1295 1294 1293 [14] 1292 1291 1290 (f) [11 4160 4055 3950 3845 3740 3635 3530

Explanation / Answer

These are the R codes to produce these series:

1.

a<-rep('Q1',4)

print(a)


2.

b<-seq(50,100,2.5)
print(b)

3.

a1<-rep(2010,4)
a2<-rep(2011,4)
a3<-rep(2012,4)
a4<-rep(2013,4)
a5<-rep(2014,4)
a6<-rep(2015,4)
a7<-rep(2016,4)
a8<-rep(2017,4)
d<-c(a1,a2,a3,a4,a5,a6,a7,a8)
print(d)


4.

g<-c(rep(2016,4),rep(2017,3))
print(g)


5.

b1<-seq(1295,1300,1)
b2<-seq(1299,1290,-1)
b<-c(b1,b2)
print(b)


6.

h<-seq(4160,3530,-105)

print(h)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote