Write a R program to create a list of heterogeneous data, which include character, numeric and logical vectors. Print the lists.
my_list = list(Chr="Python", nums = 1:15, flag=TRUE) print(my_list)
Sample Output:
$Chr [1] "Python" $nums [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 $flag [1] TRUE
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