Q:

Write a R program to create a list containing strings, numbers, vectors and a logical values

0

Write a R program to create a list containing strings, numbers, vectors and a logical values.

All Answers

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

list_data = list("Python", "PHP", c(5, 7, 9, 11), TRUE, 125.17, 75.83)
print("Data of the list:")
print(list_data)

Sample Output:

[1] "Data of the list:"
[[1]]
[1] "Python"

[[2]]
[1] "PHP"

[[3]]
[1]  5  7  9 11

[[4]]
[1] TRUE

[[5]]
[1] 125.17

[[6]]
[1] 75.83

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