Question: & and | Before you work your way through the next exercises, have a look at the following R expressions. All of them will evaluate

& and |
Before you work your way through the next exercises, have a look at the following R expressions. All of them will evaluate to TRUE:
TRUE & TRUE
FALSE | TRUE
5<=5 & 2<3
3<4|7<6
Watch out: 3< x <7 to check if x is between 3 and 7 will not work; you'll need 3< x & x <7 for that.
In this exercise, you'll be working with the last variable. This variable equals the last value of the linkedin vector that you've worked with previously. The linkedin vector represents the number of LinkedIn views your profile had in the last seven days, remember? Both the variables linkedin and last have been pre-defined for you.
Instructions
100 XP
Write R expressions to solve the following questions concerning the variable last:
Is last under 5 or above 10?
Is last between 15 and 20, excluding 15 but including 20?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!