Displaying 1 result from an estimated 1 matches for "shil3148".
2010 Jan 26
0
(list) object cannot be coerced to type 'double'
...The object, x, contain 32 files of 2x2 matrix.
Any guidance would be appreciated.
Muhammad
---------------------------------------------
# Cleans workspace
rm(list=ls())
# ---------- DATA ---------- #
# Load DATA[1]: Monthly anomalies
f <- list.files("C:/Documents and Settings/shil3148/Desktop/dsi",
"\\.txt$") # List files with pattern matching
x <- lapply(f, read.table) # DATA[1]: Monthly anomalies
# Prepare DATA[2]: Rolling Sum
nt <- 6
ed <- nt - 1
fl <- length(x)...