I currently have characters like "361:372" or "c(325, 326, 327, 344, 345, 346, 347, 348)", and I'm trying to use these as indices.
In other words, Is there a way to convert a character "361:372" to a vector c(361:372), or from "c(325, 326)" to c(325, 326)? I intend to use them as indices in a data frame, such as df[c(325, 326),].
Thank you so much for your time