set_names function

Set names helper (base R doesn't export this in older versions)