Create Data Frame with Column Names in R (4 Examples) | Construct & Make | From Scratch & Matrix

preview_player
Показать описание
R code of this video:

x2 = letters[1:6],
x3 = "x")
data1 # Print data frame

mat <- matrix(1:15, ncol = 5) # Create matrix
mat # Print matrix

data2 # Print data frame

data3 <- data2 # Duplicate data frame
colnames(data3) <- paste0("Col_", LETTERS[1:5]) # Create data frame
data3 # Print data frame

B = character(),
C = factor())
data4 # Print data frame

Follow me on Social Media:

Рекомендации по теме
Комментарии
Автор

Danke, Joachim!! Das Video ist sehr gut!

agsoutas
join shbcf.ru