Posts

Showing posts with the label raw

Vector Data Type in R Programming

Image
 Data Type: Graphical Representation of Data Types in R is shown as below: VECTOR Vector Data Type is the Simplest Form of all other data types. Vector is Single Dimensional. It has 6 atomic data types. Graphical View on Vector Data Type is as below Vector is classified as below based on the number of the element it can store. NOTE: Pink font Color indicates "Code". Blue font Color indicates "Output from R Console". Light Green Font Color indicates "Comment" SINGLE ELEMENT VECTOR #A.Logical    v1 <- TRUE    print(v1) [1] TRUE    print(class(v1)) [1] "logical" #B.Numeric     v2<-45   print(v2) [1] 45   print(class(v2)) [1] "numeric" #C.Integer Integer in R is recognized with suffix L.     v3<-67L   print(v3) [1] 67   print(class(v3)) [1] "integer" #D.Complex     v4<-2+3i   print(v4) [1] 2+3i    print(cl...