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

  • برمجة R

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
هل كان المحتوى مفيد؟

معلومات ذات صلة

تبحث عن مدرس اونلاين؟

محتاج مساعدة باختيار المدرس الافضل؟ تواصل مع فريقنا الان لمساعدتك بتأمين افضل مدرس
ماهو التخصص الذي تبحث عنه؟
اكتب هنا...