search for: dateofdeath1

Displaying 1 result from an estimated 1 matches for "dateofdeath1".

Did you mean: dateofdeath
2012 Jun 01
1
Missing times chron
...a .csv so I don't have a problem with the brackets, don't know how to show you the idea without the brackets... I want to be able to do calculations with the values in the column x$dateofdeath so use the chron-package for this: library(chron) x$dateofdeath<- as.character(x$dateofdeath) dateofdeath1 <- t(as.data.frame(strsplit(x$dateofdeath,' '))) row.names(dateofdeath1) <- NULL x$dateofdeath<- chron(dates=dateofdeath1[,1],times=dateofdeath1[,2],format=c('d-m-y','h:m:s')) When I run this script the database looks like this: > x ID dateofdeath 1...