Which native R function or which function in any other library would I be able to make a column listed with the one in the image below?