Open AhmedRashwanASU opened 2 years ago
I'm not sure if I completely understand your question.
But you have constructed a new group. We can do lots with groups.
group <- logical statement
sum( group ) # number of members
mean( group ) # proportion of total
d$group <- group
d %>%
group_by( group ) %>%
summary( ave=mean( x ) )
Note, you want to check your titles to make sure they don't include cases that don't begin with "how to" - you might refine your expression a little more with regular expression anchors.
Yup this is helpful thanks, Prof, one more question
I was trying to find a pattern in the Power Lists titles that can help to gather more accurate results any idea what can be the pattern, can be a specific word or expression?
Power Lists: “Six Recommendations for Aspiring Data Scientists” “13 Essential Newsletters for Data Scientists: Remastered” “7 Machine Learning lessons that stuck with me this year
Power lists are usually short lists of the most important ideas or tools they recommend.
Always start by writing down pseudocode! What is the recipe here?
Lists that start with a small set of numbers then are followed by text.
Anything else?
Then work to translate that to a regular expression search term.
Hero !! yes, that makes sense.
@lecy I'm not making the jump here. I'm able to get the Power list of those with numbers in the title, but i'm stuck on getting both character numbers and numerical values for the Power list.
This might help you out: https://github.com/Watts-College/cpp-527-fall-2021/issues/24#issuecomment-916539015
It might be easier to user multiple clean regular expressions, then combine the results using logical operators rather than trying to write one complicated expression.
Using the data provided in Lab 3 as below
below code produce a logical expression that matches all the titles with mentioned expressions, so how the same can be analyzed and compared to each expression?