Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Blend it all together With the things you've learned by now, you're able to solve pretty cool problems. Instead of recording the number of views
Blend it all together With the things you've learned by now, you're able to solve pretty cool problems. Instead of recording the number of views for your own LinkedIn profile, suppose you conducted a survey inside the company you're working for. You've asked every employee with a LinkedIn profile how many visits their profile has had over the past seven days. You stored the results in a data frame called lidf This data frame is available in the workspace; type lidf in the console to check it out. Instructions XP Select the entire second column, named day from the lidf data frame as a vector and assign it to second. Use second to create a logical vector, that contains TRUE if the corresponding number of views is strictly greater than or strictly lower than and FALSE otherwise. Store this logical vector as extremes. Use sum on the extremes vector to calculate the number of TRUEs in extremes ie to calculate the number of employees that are either very popular or very lowprofile Simply print this number to the console.
Blend it all together
With the things you've learned by now, you're able to solve pretty cool problems.
Instead of recording the number of views for your own LinkedIn profile, suppose you conducted a survey inside the company you're working for. You've asked every employee with a LinkedIn profile how many visits their profile has had over the past seven days. You stored the results in a data frame called lidf This data frame is available in the workspace; type lidf in the console to check it out.
Instructions
XP
Select the entire second column, named day from the lidf data frame as a vector and assign it to second.
Use second to create a logical vector, that contains TRUE if the corresponding number of views is strictly greater than or strictly lower than and FALSE otherwise. Store this logical vector as extremes.
Use sum on the extremes vector to calculate the number of TRUEs in extremes ie to calculate the number of employees that are either very popular or very lowprofile Simply print this number to the console.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started