as_named_vector function

Converts a single row data.table into a named vector