Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notes from regex #4

Open
chendaniely opened this issue Jun 6, 2018 · 2 comments
Open

Notes from regex #4

chendaniely opened this issue Jun 6, 2018 · 2 comments

Comments

@chendaniely
Copy link
Member

@icrandell

my notes from the lesson today:

Some of these should probably be changed in the actual lesson material, as it's current written, it is making too many forward references

\d becomes \\d


grep.... not using str_find/detect
you switched from tidyverse to baser

you did lists and subsetting list elements before it was covered


look ahead/behind the same as NAME: .* NAICS



gsub ... not using str_replace




string_extract_all vs string_extract


switch between vectors and individual strings

@chendaniely
Copy link
Member Author

if you fix it, can you rename the regex file to 060-strings.Rmd?

@chendaniely
Copy link
Member Author

chendaniely commented Jun 6, 2018

per conversation earlier:

  • Move the vectorized/list/webscraping specific examples/code into a new rmd file in save_for_later.
    We'll put this in the chapter after web scraping as a 'case study' example of sorts. You can even use your original loaded dataset examples here too.
  • Convert examples into single string examples and put them in a regular expression subsection under the strings chapter (060-strings.Rmd)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant