Vectors
Creating vectors with c(), 1-based indexing, length (length) and iterating with a loop.
Simple enough for a 5-year-old to understand
Create and access vector
The fundamental data structure in R is the vector. It is created with c(); it is 1-indexed.
languages <- c("R", "Python", "Julia")cat(languages[1], "\n", sep="")cat(length(languages), "\n", sep="")🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)