Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # install.packages("xlsx")
- library(xlsx) # to write the excel file
- # Write as an excel file
- write.xlsx2( as.data.frame(data1) , "106老人狀況調查-recode.xlsx", row.names = F)
- # Write as a csv file
- write.csv( data1, "106老人狀況調查-recode.csv", row.names = F)
Add Comment
Please, Sign In to add comment