What do you want to save?
Add Code snippet
New code examples in category R
-
Awgiedawgie 2022-03-19 19:30:13
r loops
# Basic syntax of for loop: for (i in sequence) { code to be repeated } # Example usage of for loop: for (i in 1:5) { print(i) } # Basic syntax of while loop: while (condition_is_true) { code to be repeated } # Example usage of while loop: i = 1... Add solution -
A-312 2022-03-16 11:05:16
ggplot box plot without outliers poins
p + geom_boxplot(outlier.shape=NA) Add solution -
Awgiedawgie 2022-03-06 02:50:06
create a dataframe with column names in r
R> X <- data.frame(bad=1:3, worse=rnorm(3)) R> X bad worse 1 1 -2.440467 2 2 1.320113 3 3 -0.306639 R> colnames(X) <- c("good", "better") R> X good better 1 1 -2.440467 2 2 1.320113 3 3 -0.... Add solution
Best helpers
Ranking is empty