Write a R program to create a list containing strings, numbers, vectors and a logical values.
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
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer