Last answered:

23 Mar 2020

Posted on:

20 Mar 2020

0

under lecture "Data types in R - Integers and doubles"

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 answers ( 0 marked as helpful)
Instructor
Posted on:

23 Mar 2020

0
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

Submit an answer