Filtering rows

The vote column in the dataset has a number that represents that country’s vote:

One step of data cleaning is removing observations (rows) that you’re not interested in. In this case, you want to remove “Not present” and “Not a member”.

开始练习:

提示:

You’ll want to pipe (%>%) the votes table into a filter() step. Note that the condition vote <= 3 will keep the observations you want.

eyJsYW5ndWFnZSI6InIiLCJwcmVfZXhlcmNpc2VfY29kZSI6ImxpYnJhcnkoZHBseXIpXG5saWJyYXJ5KHVudm90ZXMpIiwic2FtcGxlIjoiIyBnZ3Bsb3QoKSIsInNvbHV0aW9uIjoiIyBMb2FkIHRoZSBkcGx5ciBwYWNrYWdlXG5saWJyYXJ5KGRwbHlyKVxuXG4jIFByaW50IHRoZSB2b3RlcyBkYXRhc2V0XG52b3Rlc1xuXG4jIEZpbHRlciBmb3Igdm90ZXMgdGhhdCBhcmUgXCJ5ZXNcIiwgXCJhYnN0YWluXCIsIG9yIFwibm9cIlxudm90ZXMgJT4lXG4gIGZpbHRlcih2b3RlIDw9IDMpIn0=

plot relationship between expense on radio and sales: