Hi I have a vector of 100 elementos like this ones:

a <- c("SMART TV LCD FHD 70\" LC70LE660", "LED FULL HD 58'' LE58D3140")

I want to put just the (70\") and (58'') in a vector b.

This is my try, but is not working:

b <- grepl('^[0-9]{2}""$',a)

Any hint is welcome, thanks.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to