R Programming Advanced

Course Description

A vector is simply a list of items that are of the same type.
To combine the list of items to a vector, use the

c()

function and separate the items by a comma.
In the example below, we create a vector variable called fruits, that combine strings:

Example


# Vector of strings
fruits <- c("banana", "apple", "orange")

# Print fruits
fruits

...
  • Artificial Intelligence
  • Lessons
    18

Latest Courses

Related Courses

Discover your perfect program in our courses.