# Double- no.s with decimal - 1.3, -8.5, 3.0
# Complex - square root of a negative no. - -2-i, 3.4+23.li
#Logical- Has two values 0 or 1, produced as a result of logical test
#Date and Time - can take multiple formats
#Character -"This is a car", "42"

#Check data type of an object
# typeof()

x=23 
y=-3+4i

typeof(x)
typeof(y)

is.integer(x)
is.double(x)
is.complex(x)

#Creating an object of specific data type as.xxxx()
z=4.7
 as.integer(z)
 as.character(z)
 as.double(z)
 as.logical(z)
 
 #Date
 today <- Sys.Date()
format(today, format="%B %d %Y")


https://[Log in to view URL]


Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: