Guest User

Untitled

a guest
Feb 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. > list_files
  2. [[1]]
  3. [1] "25.csv"
  4.  
  5. [[2]]
  6. [1] "21.csv"
  7.  
  8. [[3]]
  9. [1] "23.csv"
  10.  
  11. [[4]]
  12. [1] "24.csv"
  13.  
  14. [[5]]
  15. [1] "27.csv"
  16.  
  17. for (i in seq_along(list_files)) {
  18. df<-read.csv(list_files[[i]], sep="", stringsAsFactors=FALSE)
  19. time_series <- as.xts(df$SMS, order.by =as.POSIXct(df$TIME))
  20. final_list[[i]] <- time_series
  21. }
  22. final_list
  23. }
Add Comment
Please, Sign In to add comment