Q:

Write a R program to create a list of heterogeneous data, which include character, numeric and logical vectors. Print the lists

0

Write a R program to create a list of heterogeneous data, which include character, numeric and logical vectors. Print the lists.

All Answers

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

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

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