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.
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.