MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
sum(c(TRUE, FALSE, TRUE, TRUE))> 3 This is known as ____
A
Vectorisation
B
Recycling
C
Implicit coercion
D
Attributes
Explanation: 

Detailed explanation-1: -The c() function in R is used to combine or concatenate its argument.

Detailed explanation-2: -Applied to a logical vector v, sum() tells us how many elements in v are TRUE .

Detailed explanation-3: -In R, true values are designated with TRUE, and false values with FALSE. When you index a vector with a logical vector, R will return values of the vector for which the indexing vector is TRUE.

There is 1 question to complete.