[R] apply two functions to column

2015-02-12 Thread arnaud gaboury
I am little lost between all the possibilities to apply a function to a data.frame or data.table. Here is mine: structure(list(name = c(poisonivy, poisonivy, poisonivy, poisonivy, poisonivy, poisonivy, poisonivy, poisonivy, cruzecontrol, agreenmamba, agreenmamba, vairis, vairis, vairis, vairis,

Re: [R] apply two functions to column

2015-02-12 Thread Jeff Newmiller
You don't need to do these operations in pieces so the mapply is unnecessary. Neither dplyr nor data.table can go faster than (assuming your data frame is called DF): DF$dtm - as.POSIXct( as.numeric( DF$ts ), tz=GMT, origin=1970-01-01 ) They can in this case save you from having to retype DF