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)
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