What is R?
Example:
print('Hello, R!')
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
WithoutBook 将分主题面试题、在线练习测试、教程和对比指南整合到一个响应式学习空间中。
了解热门 R Language 面试题与答案,帮助应届生和有经验的候选人为求职面试做好准备。
了解热门 R Language 面试题与答案,帮助应届生和有经验的候选人为求职面试做好准备。
搜索问题以查看答案。
Example:
print('Hello, R!')
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
x <- 10
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
df <- data.frame(Name=c('John', 'Jane'), Age=c(25, 30))
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
attach(df)
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
install.packages('packageName')
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
str(my_data)
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
exists('my_variable')
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
library(ggplot2)
ggplot(data = my_data, aes(x = variable1, y = variable2)) + geom_point()
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
ls()
# or
objects()
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
my_data <- read.csv('file.csv')
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
setwd('/path/to/directory')
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
install.packages('my_package'); library('my_package')
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
summary(my_data)
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
apply(matrix, 1, sum)
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
merged_data <- merge(df1, df2, by='common_column')
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
gender <- factor(c('Male', 'Female', 'Male'), levels=c('Male', 'Female'))
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
cleaned_data <- na.omit(df)
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
library(dplyr)
filtered_data <- filter(df, Age > 25)
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
library(purrr)
map(my_list, my_function)
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
library(reshape2)
melted_data <- melt(my_data, id.vars=c('id', 'name'))
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
tryCatch({
# code that might cause an error
}, error = function(e) {
# code to handle the error
})
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
library(caret)
model <- train(y ~ ., data = my_data, method = 'lm')
收藏此条目、标记为困难题,或将其加入复习集合。
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 }
}
收藏此条目、标记为困难题,或将其加入复习集合。