I am trying to extract the first time stamp from the following character:
"WHENSEPTEMBER 14, 2015 @ 11:56 AM - 12:00 PM EDT"
I have a whole list of them and they are vectors, as required.
> is.vector(data$description)
[1] TRUE
> is.vector(data$info)
[1] TRUE
>str_extract(data$info, "\\@ [0-9]+:[0-9]{2}")
Error in stri_extract_first_regex(string, pattern, opts_regex = attr(pattern, :
argument `str` should be a character vector (or an object coercible to)
I realize that my regex is not entirely correct yet to extract only the first time. But at this point it won't extract anything. I am not sure what I am doing wrong here. Any help is appreciated.