29.4k views
5 votes
in R Programming, Create a vector with 10 numbers (3, 12, 6, -5, 0, 8, 15, 1, -10, 7) and assign it to x

User Amarnasan
by
7.9k points

1 Answer

3 votes

Answer:

x <- c(3,12,6,-5,0,8,15,1,-10,7)

Step-by-step explanation:

A vector is a data structure in R language. A vector is a collection of data elements of same type.

Components are the member of the vector.

c() :- It is a function known as concatenate.It is used to combine vectors.It does not create vectors.

In the above a vector a vector with values mentioned in the question is created and assigned to x.

User Sookie J
by
8.9k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.