Test if Data Object is a Vector in R (2 Examples) | is.vector & is.atomic Functions | Apply to List
Автор: Statistics Globe
Загружено: 2023-01-31
Просмотров: 103
How to check whether a data object is a vector in the R programming language. More details: https://statisticsglobe.com/test-if-d...
R code of this video:
my_vec <- 1:5 # Create example vector
my_vec # Print example vector
is.vector(my_vec) # Apply is.vector function to vector
my_list <- list(1:3, # Create example list
"x")
my_list # Print example list
is.vector(my_list) # Apply is.vector function to list
is.vector(my_list) && is.atomic(my_list) # Apply is.vector & is.atomic
is.vector(my_vec) && is.atomic(my_vec)
Follow me on Social Media:
Facebook – Statistics Globe Page: / statisticsglobecom
Facebook – R Programming Group for Discussions & Questions: / statisticsglobe
Facebook – Python Programming Group for Discussions & Questions: / statisticsglobepython
LinkedIn – Statistics Globe Page: / statisticsglobe
LinkedIn – R Programming Group for Discussions & Questions: / 12555223
LinkedIn – Python Programming Group for Discussions & Questions: / 12673534
Twitter: / joachimschork
Music by bensound.com
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: