0% found this document useful (0 votes)
31 views

Digital Assignment-1 Name: Ayachitula Sankar Sudheer Reg No: 18BCE0556

This document contains a digital assignment submitted by Ayachitula Sankar Sudheer with registration number 18BCE0556. The assignment includes examples of using the rep() function in R to repeat vectors and sequences, as well as blank responses for other questions. It focuses on repeating values and sequences a given number of times or for a specified number of elements in a vector.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Digital Assignment-1 Name: Ayachitula Sankar Sudheer Reg No: 18BCE0556

This document contains a digital assignment submitted by Ayachitula Sankar Sudheer with registration number 18BCE0556. The assignment includes examples of using the rep() function in R to repeat vectors and sequences, as well as blank responses for other questions. It focuses on repeating values and sequences a given number of times or for a specified number of elements in a vector.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Digital Assignment-1

Name: Ayachitula Sankar Sudheer


Reg No: 18BCE0556

1.
a. seq( 1 , 9 , by=1)
b. x=[ “m”,”w” ]
rep( x, 5)
c. x=[ 1,2,3,4]
rep(x,3)
d. rep(4:1,each=3)
e. rep(seq (1 ,5, by=1), (1:10))

f. rep(seq(1,11, by=2,each=2))

2.
a.

b.
c.

d.

e&f
3.

4.
5.

6.
7.

8.

9
.

10.

You might also like