R Extract Just Number from Named Numeric Vector (3 Examples) | Remove Name Using unname & as.numeric
Автор: Statistics Globe
Загружено: 28 сент. 2020 г.
Просмотров: 808 просмотров
How to remove names from a named vector in the R programming language. More details: https://statisticsglobe.com/extract-j...
R code of this video:
x <- 1:5 # Create named vector
names(x) <- letters[1:5]
x # Print named vector
x_new1 <- unname(x) # Apply unname
x_new1 # Return updated vector
x_new2 <- as.numeric(x) # Apply as.numeric
x_new2 # Return updated vector
x_new3 <- x # Replicate vector
names(x_new3) <- NULL # Apply names
x_new3 # Return updated vector
Follow me on Social Media:
Twitter: / joachimschork
Facebook: / statisticsglobecom
Reddit: / joachimschork
Pinterest: https://www.pinterest.de/JoachimSchork

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: