Displaying 1 result from an estimated 1 matches for "acf_wal".
Did you mean:
ac_val
2009 Dec 22
2
Nested For loops
...orrelation function of the sample data. I have tried to get rid of for loops but since I am touching R after such a long time that I need to practice more but I need help to revive my skills. I know that apply() or sapply() would be beneficial. I need help...
Best Wishes,
Baloo
R code
----------
acf_wal <- function (infile) {
data<-read.table(infile)
data_value <- data[,-1]
data_value_mean <- mean(data_value)
data_value_square <- (data_value - data_value_mean) ^ 2
square_sum<-sum(data_value_square)
entry<-NROW(data_value)
deno<-square_sum/entry...