gravatar

Sandya_M8

Sandya

Recently Published

Document
Vectorization and functionals USE OF CONDITIONALS IN FUNCTIONALS Although for-loops are an important concept to understand, in R we rarely use them. As you learn more R, you will realize that vectorization is preferred over for-loops since it results in shorter and clearer code. We already saw examples in the Vector Arithmetic section. A vectorized function is a function that will apply the same operation on each of the vectors.