PDS2CS01 Locf
PDS2CS01 Locf
1
b) What does the cbind() function do in R when applied to matrices?
(i). Combines matrix by columns
(ii). Combines matrix by rows
(iii). Transposes the matrix
(iv). Deletes a column from the matrix
c) What is the function used to create a contingency table in R?
(i). table()
(ii). contingency_table()
(iii). create_table()
(iv). cross_table()
d) What function is used to capture user input from the console in R?
(i). input()
(ii). console_input()
(iii). read_console()
(iv). scan()
e) Which component in ggplot2 is used to map values in the data space to values in the aesthetic space?
(i). Coordinates
(ii). Facets
(iii). Scales
(iv). Themes
SECTION B – K3 (CO2)