<p dir="ltr"><br>
There is nothing already written that I'm aware of, but you can create an<br>
empty dt easily by edt = data.table (a = numeric(0), b = character(0)),<br>
that is, by providing arguments of 0 length as column.<br>
Writing a function that wraps that isn't difficult.</p>
<br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 23, 2015, 07:00 <<a href="mailto:datatable-help-request@lists.r-forge.r-project.org">datatable-help-request@lists.r-forge.r-project.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send datatable-help mailing list submissions to<br>
<a href="mailto:datatable-help@lists.r-forge.r-project.org" target="_blank">datatable-help@lists.r-forge.r-project.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</a><br>
<br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:datatable-help-request@lists.r-forge.r-project.org" target="_blank">datatable-help-request@lists.r-forge.r-project.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:datatable-help-owner@lists.r-forge.r-project.org" target="_blank">datatable-help-owner@lists.r-forge.r-project.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of datatable-help digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Any date for 1.9.6 push to CRAN? (Damian Betebenner)<br>
2. create empty data.table (statquant3)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 22 Jul 2015 10:10:31 +0000<br>
From: Damian Betebenner <<a href="mailto:DBetebenner@nciea.org" target="_blank">DBetebenner@nciea.org</a>><br>
To: "<a href="mailto:datatable-help@lists.r-forge.r-project.org" target="_blank">datatable-help@lists.r-forge.r-project.org</a>"<br>
<<a href="mailto:datatable-help@lists.r-forge.r-project.org" target="_blank">datatable-help@lists.r-forge.r-project.org</a>><br>
Subject: [datatable-help] Any date for 1.9.6 push to CRAN?<br>
Message-ID: <<a href="mailto:FC68AD47-F30E-4FC4-B3D6-90321CB30D4F@nciea.org" target="_blank">FC68AD47-F30E-4FC4-B3D6-90321CB30D4F@nciea.org</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hi all,<br>
<br>
It was mentioned recently that 1.9.6 would be pushed to CRAN soon. Any rough dates when that might occur?<br>
<br>
Alway appreciative for the great work!<br>
<br>
Damian<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 23 Jul 2015 02:51:14 -0700 (PDT)<br>
From: statquant3 <<a href="mailto:statquant@outlook.com" target="_blank">statquant@outlook.com</a>><br>
To: <a href="mailto:datatable-help@lists.r-forge.r-project.org" target="_blank">datatable-help@lists.r-forge.r-project.org</a><br>
Subject: [datatable-help] create empty data.table<br>
Message-ID: <<a href="mailto:1437645074911-4710237.post@n4.nabble.com" target="_blank">1437645074911-4710237.post@n4.nabble.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
I wanted to create a function that creates an empty data.table with specified<br>
column types.<br>
emptyDT <- function(colNames,colTypes){...}<br>
I would call<br>
emptyDT(c('date','id','value'),c('Date','Character','Numeric'))<br>
<br>
Is there something available for this already ?<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://r.789695.n4.nabble.com/create-empty-data-table-tp4710237.html" rel="noreferrer" target="_blank">http://r.789695.n4.nabble.com/create-empty-data-table-tp4710237.html</a><br>
Sent from the datatable-help mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
datatable-help mailing list<br>
<a href="mailto:datatable-help@lists.r-forge.r-project.org" target="_blank">datatable-help@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</a><br>
<br>
End of datatable-help Digest, Vol 65, Issue 5<br>
*********************************************<br>
</blockquote></div>