Convert ordinal word string to ordinal number string? Suppose I have a vector containing ordinal number words as strings in R: