The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

under lecture “Data types in R – Integers and doubles”

under lecture “Data types in R – Integers and doubles”

0
Votes
1
Answer

under lecture “Data types in R – Integers and doubles”
when we declare vector as :
int <- c(4L,5,L,6L) , here int is the variable /object? and if so what is “c” ?

1 Answer

365 Team
0
Votes

Hi Manika — thanks for the question! 
You are  right – int is the object we’re creating. 
c() is the function we are using to create that object. This is a cornerstone function in R! It combine values into a vector or a list.
Whenever you want to combine several values into an object like a vector, use c()
Hope this helps! 
Best,
Simona