The matrix() function does not have a fill argument; this causes an error.
Step 2: Validate other arguments
nrow=3 and ncol=2 are valid, byrow=TRUE is allowed, and 1:6 perfectly fills a 3x2 matrix.
Final Answer:
The argument 'fill' is not valid in matrix() -> Option A
Quick Check:
Invalid argument 'fill' causes error = C [OK]
Hint: matrix() has no 'fill' argument [OK]
Common Mistakes:
Assuming 'fill' is a valid argument
Swapping nrow and ncol unnecessarily
Thinking byrow must be FALSE for certain sizes
5. You want to create a 4x4 matrix in R where the numbers 1 to 16 fill the matrix by rows, but every even number should be replaced by 0. Which code correctly achieves this?