search for: eightnocalls

Displaying 2 results from an estimated 2 matches for "eightnocalls".

2011 Jul 12
1
What's wrong with my code? (Edited version-added my data)
...t 233 de My command to deal with this simple file would be: eight <- read.csv(file="8.csv", header=TRUE, sep=",") eightout <- subset(eight, inout=="out" & o_duration>0, select=c(inout, enc_callee, o_duration)) f <- function(eightoutf) nrow(eightoutf) eightnocalls <- ddply(eightout,.(enc_callee),f) colnames(eightnocalls)[2] <- "nocalls" eightout$nocalls <- eightnocalls$nocalls [match(eightout$enc_callee, eightnocalls$enc_callee)] eightout=data.frame(eightout,"time"=c(1:nrow(eightout))) plot(eightout$time,eightout$nocalls) write.c...
2011 Jul 12
1
What's wrong with my code?
...es)) { temp.dat <- read.csv(my.files[i]) eight <- read.csv(file="8.csv", header=TRUE, sep=",") eightout <- subset(eight, inout=="Outgoing from panel hh" & o_duration>0, select=c(inout, enc_callee, o_duration)) f <- function(eightoutf) nrow(eightoutf) eightnocalls <- ddply(eightout,.(enc_callee),f) colnames(eightnocalls)[2] <- "nocalls" eightout$nocalls <- eightnocalls$nocalls [match(eightout$enc_callee, eightnocalls$enc_callee)] eightout=data.frame(eightout,"time"=c(1:nrow(eightout))) plot(eightout$time,eightout$nocalls) write.c...