[R] Build a data.table via two string lists

John RF Staples john@@t@p|e@ @end|ng |rom me@com
Mon Jun 6 15:05:29 CEST 2022


Hello everyone,

I have the following two structures:

# str(cl)
# chr [1:5] "timestamp" "assess" "catheter" "service" "ref"

# str(rw)
# chr [1:5] "1654508112" "3" "gel" "2785" “16545081121a8d8f956cb871053a3f56b782b70a76"

From which I would like to generate a 5 col x 1 row data.table; the question is ‘how’?

‘cl’ represents the column names; ‘rw’ the row values.

With anticipatory thanks …
John


More information about the R-help mailing list