Q:

Write a R program to create a list named s containing sequence of 15 capital letters, starting from ‘E’

0

Write a R program to create a list named s containing sequence of 15 capital letters, starting from ‘E’.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

l = LETTERS[match("E", LETTERS):(match("E", LETTERS)+15)]
print("Content of the list:")
print("Sequence of 15 capital letters, starting from ‘E’-")
print(l)

Sample Output:

[1] "Content of the list:"
[1] "Sequence of 15 capital letters, starting from ‘E’-"
 [1] "E" "F" "G" "H" "I" "J" "K" "L" "M" "N" "O" "P" "Q" "R" "S" "T"

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now