Master's programme data science 7th march 2020

Discussion in 'Masters Program - Customers only' started by M V Ramachandra Rao, Mar 9, 2020.

  1. #Assignment
    names = c("Dutta Mrs. Samridhi", "Chopra Mrs. Priyanka", "Bachhan Mr. Abhishek", "Chawla Miss. Ruhi", "Samrihdi Dutta", "Rohin Sharma")
    grep(x=names,pattern = "[Miss}[Mr][Mrs]",value=T)
    in console
    [1] "Dutta Mrs. Samridhi" "Chopra Mrs. Priyanka" "Bachhan Mr. Abhishek"
    [4] "Chawla Miss. Ruhi
     
    #1

Share This Page