Jak zmienić nazwy kolumn w R
colnames(dataset) <- c('name1','name2',..)
Bewildered Barracuda
colnames(dataset) <- c('name1','name2',..)
# This works well if you need an empty dataframe with n known columns
df <- data.frame(matrix(ncol = 3, nrow = 0))
x <- c("name", "age", "gender")
colnames(df) <- x
R> colnames(X)[2] <- "superduper"