vector_ops.r

RAdvanced

Explorer

C40
C++40
C#40
Dart40
Go40
Java40
JavaScript40
Kotlin40
Objective-C40
Perl40
PHP40
Python40
R
Beginner10
Intermediate10
Advanced10
list_operations.r
data_analysis.r
vector_ops.r
matrix_calc.r
function_def.r
data_subset.r
apply_family.r
regex_extract.r
formula_model.r
environment_ops.r
Expert5
Master5
Ruby40
Rust40
Shell40
Swift40
TypeScript40
vector_ops.r
Click to focus
1
2
3
4
result <- sapply(1:10, function(x) {
 if (x %% 2 == 0) x^2 else x^3
})
names(result) <- paste0("val_", 1:10)
0WPM0%0:000/108(0%)|Ln 1, Col 1
UTF-8R

Related Exercises