search for: eightout

Displaying 3 results from an estimated 3 matches for "eightout".

2011 Jul 12
1
What's wrong with my code? (Edited version-added my data)
...f B in 98.7 de H out 23 de C out 43 cf H in 567 cf I out 12 de E out 12 de K out 12 cf B in 1 cf A out 29 de D out 89 cf J in 302 de 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 [...
2011 Jul 12
1
What's wrong with my code?
...cked my codes so many times but still couldn't figure out what's wrong with it...would you please help me? Thanks! my.files <- list.files() 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 <- eig...
2011 Jul 11
1
How to generate same type of graphs using the previously written commands for a few hundred similar data sets?
...ave written out the commands for a particular subset as the following, and then I need to do the same thing for the rest of the data subsets, the only thing I need to change is to modify the subset names, for example, change "seven" into "eight", "seventout" into "eightout", etc. Is there a command in R that would do this for me? (So I don't need to repeat myself modifying the names, copying and pasting the same things into R.) Thank you very much! alldata <- read.csv(file="file.csv",header=T,sep=",") seven<- subset(alldata, asern...