search for: tp4332254p4332344

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

2012 Jan 27
1
Conditional cumulative sum
Dear List, I'll appreciate your help on this. I'm trying to create a variable as in "cumsum_y.cond1" below, which should compute the cumulative sum of "y" conditional on the value of cond==1. set.seed(1) d <- data.frame(y= sample(c(0,1), 10, replace= T), cond= sample(c(0,1), 10, replace= T)) y cond cumsum_y.cond1 1 0 0 0 2 0 0
2012 Jan 18
4
R-Help
I am trying to create a frequency distribution and I am a bit confused. Here are the commands I have entered: > data <- read.csv(file="40609_sortedfinal.csv",head=TRUE,sep=",") > NumberOfActionsByStatus = data$STATUS > NumberOfActionsByUser = data$ETS_LOGIN > NumberOfBidOffer = data$BID_OFFER > NumberOfActionsByUser.freq = table(NumberOfActionsByUser) >