Q. Body of lapply function is?

  • (A) function (X, FUN, ...) { FUN <- match.fun(FUN) if (!is.vector(X) || is.object(X)) X <- as.list(X) .Internal(lapply(X, FUN)) }
  • (B) function (X, FUN, ...) { FUN <- match.fun(FUN) if (!is.vector(X) | is.object(X)) X <- as.list(X) .Internal(lapply(X, FUN)) }
  • (C) function (X, FUN, ...) { FUN <- match.fun(FUN) if (is.vector(X) || is.object(X)) X <- as.list(X) .Internal(lapply(X, FUN)) }
  • (D) function (X, FUN, ...) { FUN <- match.fun(FUN) if (is.vector(X) || is.object(X)) }
πŸ’¬ Discuss
βœ… Correct Answer: (A) function (X, FUN, ...) { FUN <- match.fun(FUN) if (!is.vector(X) || is.object(X)) X <- as.list(X) .Internal(lapply(X, FUN)) }

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
107
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
88%
Success Rate