I have a dataframe. I need to remove "href" and hence I am using str_match_all. But after removing "href", the class of new column is showing as list. Can anyone help me
asd <- data.frame(a = c("<a href=https://abc>Click Here</a>","sdsd","<a href=https://xvd>Click Here</a>"))
asd$ew <- str_match_all(asd$a, "http[s]{0,1}://[^ ]+")
asd
a ew
<a href=https://abc>Click Here</a> https://abc>Click
sdsd
<a href=https://xvd>Click Here</a> https://xvd>Click
class(asd$ew)
"list"
Expected output
class(asd$ew)
"character"