[datatable-help] Replace missings by dates in data table

Martin Watts martin.dunelm at gmail.com
Fri Sep 19 09:32:02 CEST 2014


You can also try:

DT[,start:=as.Date(start)][,end:=as.Date(replace(end,is.na(end),
"2000-01-01"))]

If you want to modify the original data table.

On 17 September 2014 08:58, Frank S. <f_j_rod at hotmail.com> wrote:

> Gabor, many thanks for your answer!!
>
> _______________________________________________
> datatable-help mailing list
> datatable-help at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20140919/23058667/attachment-0001.html>


More information about the datatable-help mailing list