Starting from:
$30

$24

Question 2


The Statistical Society of Canada (the SSC) is the professional society for statisticians in academics and industry in Canada. The Board of Directors for the Society is made up of an elected executive committee and elected regional representatives. Below is a partial list of the members of the Board of Directors of the SSC, along with their roles and the dates of the ends of their elected terms.


board_of_directors <- list(

Exec = tibble(

Name=c("Grace Yi","Bruno Rémillard"),

Position=c("President","President-Elect"),

Term_End=c("2022-06-30","2022-06-30")

),

Regional_Reps = list(

Atlantic_Region = tibble(

Name=c("Michael McIsaac","Wilson Lu"),

Term_End=c("2022-06-30","2023-06-30")

),

Quebec = tibble(

Name=c("Paramita Saha Chaudhuri","Cody Hyndman",

"Johanna Neslehova","Denis Talbot"),

Term_End=c("2022-06-30","2022-06-30","2023-06-30","2023-06-30")

)

)

)

a. What objects (or values) are returned by the following lines of R code?


board_of_directors$Exec[1,2]

board_of_directors[[2]][1,]

board_of_directors[[2]][1]

board_of_directors[2][[1]][[1]]

b. Using R code, write statements which yield the following three results:


Result 1:



    • A tibble: 1 x 1 Name
<chr>

1 Johanna Neslehova



Result 2:
    • A tibble: 2 x 1 Position <chr>

    1 President

    2 President-Elect



Result 3:



# A tibble: 1 x 2

Name    Term_End

<chr>    <chr>

    1 Paramita Saha Chaudhuri 2022-06-30 Result 4:

# A tibble: 2 x
2


Name

Term_End

<chr>

<chr>
1
Paramita Saha
Chaudhuri
2022-06-30
2
Johanna Neslehova
2023-06-30

More products