search for: imydata

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

Did you mean: mydata
2011 Aug 31
1
formatting a 6 million row data set; creating a censoring variable
...", "3", "3", "3", "3", "3", "3", "4")), .Names = c("gender", "mygroup", "id"), class = "data.frame", row.names = c(NA, -20L)) # here is plyr solution with idata.frame library(plyr) imyData <- idata.frame(myData) timeData <- idata.frame(ddply(imyData, .(id,mygroup), summarize, mytime = length(mygroup))) makeCensor <- function(x) { myvec <- rep(0,length(x)) lastInd <- length(myvec) myvec[lastInd] = 1 myvec } plyrSolution <- ddply(timeData, "id&quo...
2007 Mar 23
4
Conversion from string to date type
Hi, I'm on my very first steps to R and so I hope that I do not ask a really stupid questions but I did not found it via R-Search, in the FAQ or Google (BTW, the name "R" is not a really good seekiong criterion ;-) ). I have a data file containing a table that containes dates and values like date\t value1\t value2, ... 01.03.2007\t 17\t 42\t ... 02.03.2007\t 2\t 3\t ...