R data.table: turn a vector into a one row data.table

Viewed 5270

I have a character vector x which I want to turn into a one row data.table in a speedy way. The command data.table(x) returns a one column data.table. Now, data.table(t(x)) gets the job done but I'm wondering if there's a faster way.

1 Answers
Related