Regular Expressions in R

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

Комментарии • 25

  • @mkj256
    @mkj256 2 года назад

    That is AWESOME. I have been struggling with regex for so long. Thank you

  • @dangerousangel777
    @dangerousangel777 Год назад

    for anyone who wanted to know what the hell the attr(, match.length) thing does, it can be used define the vector that describes the length of the matches.
    In case you have many matches and you wanna display each of them in a string you can label your gregexpr(blabla)
    as "matches". And that will give you the first vector (the one that tells you where each of your matches begins).
    matches

  • @tochukwuokeke4000
    @tochukwuokeke4000 2 года назад

    Very good presentation. I was your student in R programming course in coursera, and have always enjoyed your class.

  • @claramedeiros3998
    @claramedeiros3998 5 лет назад +3

    Is it possible to do a similar video but about mining data on DF? Like columns and row manipulation. Im having trouble for example when trying to match patterns of strings within rows of specific columns. Like considering only words starting with _ , ending with _ and starting with an empty space...
    Ive tried: filas = grep( df_diccionario$Palabra[i], df_busqueda$String) where Palabra is a column from my df_diccionario data frame and String is a Column of my df_busqueda dataframe.
    I want to find all the occurrences within Palabra, that matches the String, but with the condition that these occurrences are only words between the underscore _ , or that start with an underscore and ends with the empty space or that ends with an underscore ..
    Found you in coursera a while ago, you are great Mr Peng. :)

  • @evoshindi
    @evoshindi 4 года назад +1

    where can I download the data? There does not seem to be a link anywhere

  • @s.a.Tawhid
    @s.a.Tawhid 4 года назад

    To get the file you can use this R command
    download.file("raw.githubusercontent.com/ahawker/data-analysis-coursera/master/HW4/homicides.txt","homicides.txt")

  • @MusicNow08
    @MusicNow08 8 лет назад +5

    Excuse me, may i get the slide?

    • @evoshindi
      @evoshindi 4 года назад +2

      and use it for your own classes here?

  • @marcofumagalli8147
    @marcofumagalli8147 8 лет назад

    Any slides available? good tutorial anyway

  • @dnbhatt14
    @dnbhatt14 7 лет назад

    a very good tutorial.

  • @chilukuridinesh5975
    @chilukuridinesh5975 6 лет назад

    very well explained

  • @Branxification
    @Branxification 6 лет назад

    regexpr = reg expression..