[datatable-help] create empty data.table

statquant3 statquant at outlook.com
Thu Jul 23 11:51:14 CEST 2015


I wanted to create a function that creates an empty data.table with specified
column types.
emptyDT <- function(colNames,colTypes){...}
I would call
emptyDT(c('date','id','value'),c('Date','Character','Numeric'))

Is there something available for this already ?




--
View this message in context: http://r.789695.n4.nabble.com/create-empty-data-table-tp4710237.html
Sent from the datatable-help mailing list archive at Nabble.com.


More information about the datatable-help mailing list