# R program to illustrate# typeof function# Specifying "Biochemical oxygen demand"# data set
x <- BOD
x
# Calling typeof() functiontypeof(x)
R
输出
Time demand
118.32210.33319.04416.05515.66719.8[1]"list"
R
例2 :
# R program to illustrate# typeof function# Calling typeof() function # over different types of data typeof(2)typeof(2.8)typeof("3")typeof("gfg")typeof(1+2i)