search for: eightoutf

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

Did you mean: eightout
2011 Jul 12
1
What's wrong with my code? (Edited version-added my data)
...H in 12 cf A in 153 cf C out 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$...
2011 Jul 12
1
What's wrong with my code?
...for (i in 1: length(my.files)) { 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$...