library(Ecdat)
library(dplyr)
Housing %>%
# Add an index column
mutate(id = row_number()) %>%
# Put this at the front of the data frame
select(id, everything())
head(Housing)
head(housing)
housing <- Housing %>%
# Add an index column
mutate(id = row_number()) %>%
# Put this at the front of the data frame
select(id, everything())
head(housing)
library(writexl)
write_xlsx("housing.xlsx")
write_xlsx(housing,"housing.xlsx")
