Advertisement
Guest User

stupidPieceOfCrap

a guest
Mar 14th, 2012
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.49 KB | None | 0 0
  1. #load packages zoo and chron
  2.    require(zoo)
  3.    require(chron)
  4.  
  5. #set working directory
  6.    setwd("/home/knavero/Desktop")
  7.  
  8. #read in data text file to create zoo series object
  9.    rawData = read.zoo("dataout_2471_843.csv", header = TRUE,  
  10.       FUN = as.chron, format = "%m/%d/%Y %H:%M", index.column = 2,
  11.       sep = ",", aggregate = function(x) tail(x, 1))
  12.  
  13. #removal of any garbage columns
  14.    rawData$Meter.ID = NULL  
  15.  
  16. #outlier removal
  17.    rawData = rawData[rawData$KW.ch..1..set.0. > 0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement