setNames(data.frame(matrix(ncol = 3, nrow = 0)), c("name", "age", "gender")) #[1] name age gender #<0 rows> (or 0-length row.names)