reading time series tables in R (WITH HEADERS)


/ Published in: R
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #
  2. # (assumes our first data point occurs in 1995 Q4)
  3. #
  4. # NOTE: putting dates in data file is UNNECESSARY
  5. #
  6. perf <- ts(read.table("perf_data.txt", header=TRUE), start=c(1995,4), frequency=4)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.