What is vectorization in R, and why is it important?
Example:
vector1 <- c(1, 2, 3)
vector2 <- c(4, 5, 6)
result <- vector1 + vector2
복습용 저장
복습용 저장
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.
Know the top R Language interview questions and answers for freshers and experienced candidates to prepare for job interviews.
Know the top R Language interview questions and answers for freshers and experienced candidates to prepare for job interviews.
Search a question to view the answer.
Example:
vector1 <- c(1, 2, 3)
vector2 <- c(4, 5, 6)
result <- vector1 + vector2
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
lazy_function <- function() { print('Lazy function') }
# The function is not executed until called: lazy_function()
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
random_numbers <- runif(5)
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
library(shiny)
shinyApp(ui, server)
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
#include
// C++ code with Rcpp
// ...
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
library(dtplyr)
large_data %>% filter(Age > 30) %>% summarise(mean(Salary))
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
library(memoise)
my_function <- memoise(function(x) { # function body })
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
closure_function <- function() {
x <- 10
function() { x + 1 }
}
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.