Advertisement
obernardovieira

Simple xlsx ( Excel ) write

Jan 8th, 2015
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.16 KB | None | 0 0
  1. require(xlsx)
  2.      
  3. L3 <- LETTERS[1:3]
  4. fac <- sample(L3, 10, replace = TRUE)
  5. dataToXlsx <- data.frame(x=1, y=1:10, fac=fac)
  6. write.xlsx(dataToXlsx, "file2.xlsx")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement