show_rounds_country: Return countries that participated in *all* of the specified...

Description Usage Arguments Details Value Examples

View source: R/show_any_rounds.R

Description

Return countries that participated in all of the specified rounds.

Usage

1
show_rounds_country(rounds, participate = TRUE)

Arguments

rounds

A numeric vector specifying the rounds from which to return the countries. Use show_roundsfor a list of available rounds.

participate

A logical that controls whether to show participating countries in that/those rounds or countries that didn't participate. Set to TRUE by default.

Details

show_rounds_country returns the countries that participated in all of the specified rounds. That is, show_rounds_country(1:2) will return countries that participated both in round 1 and round 2. Conversely, if participate = FALSE it will return the countries that did not participate in both round 1 and round 2.

Value

A character vector with the country names

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 

# Return countries that participated in round 2

show_rounds_country(2)

# Return countries that participated in all rounds

show_rounds_country(1:8)

# Return countries that didn't participate in the first three rounds

show_rounds_country(1:3, participate = FALSE)


## End(Not run)

ropensci/essurvey documentation built on Jan. 10, 2022, 3:20 p.m.