How to construct a data frame from vectors in the R programming language. More details: https://statisticsglobe.com/create-da...
R code of this video:
x1 <- 1:5 # Create first example vector
x1 # Print first example vector
x2 <- letters[1:5] # Create second example vector
x2 # Print second example vector
x3 <- c(4, 1, 7, 7, 5) # Create third example vector
x3 # Print third example vector
data <- data.frame(x1, x2, x3) # Create data frame
data # Print data frame
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
Смотрите видео Create Data Frame from Vectors in R (Example) | How to Construct, Define, Make | data.frame Function онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Statistics Globe 13 Ноябрь 2022. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 262 раз и оно понравилось 10 посетителям.