Getting type of different data types in R Programming - typeof() Function Last Updated : 12 Jun, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report typeof() function in R Language is used to return the types of data used as the arguments. Syntax: typeof(x) Parameters: x: specified data Example 1: Python3 # R program to illustrate # typeof function # Specifying "Biochemical oxygen demand" # data set x <- BOD x # Calling typeof() function typeof(x) Output: Time demand 1 1 8.3 2 2 10.3 3 3 19.0 4 4 16.0 5 5 15.6 6 7 19.8 [1] "list" Example 2: Python3 # 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) Output: [1] "double" [1] "double" [1] "character" [1] "character" [1] "complex" Comment More infoAdvertise with us Next Article Get or Set the Type of an Object in R Programming - mode() Function K Kanchan_Ray Follow Improve Article Tags : R Language R Data-types R Object-Function Similar Reads Getting class of different data types in R Programming - class() Function class() function in R Language is used to return the class of data used as the arguments. Syntax: class(x) Parameters: x: specified data Example 1: Python3 # R program to illustrate # class function # Specifying "Biochemical oxygen demand" # data set x <- BOD x # Calling class() functio 1 min read Get or Set the Type of an Object in R Programming - mode() Function mode() function in R Language is used to get or set the type or storage mode of an object. Syntax: mode(x) mode(x) <- value Here "value" is the desired mode or âstorage modeâ (type) of the object Parameters: x: R object Example 1: Python3 # R program to illustrate # mode function # Init 1 min read Convert type of data object in R Programming - type.convert() Function type.convert() function in R Language is used to compute the data type of a particular data object. It can convert data object to logical, integer, numeric, or factor. Syntax: type.convert(x) Parameter: x: It can be a vector matrix or an array Example 1: Apply type.convert to vector of numbers Pytho 2 min read Display the internal Structure of an Object in R Programming - str() Function str() function in R Language is used for compactly displaying the internal structure of a R object. It can display even the internal structure of large lists which are nested. It provides one liner output for the basic R objects letting the user know about the object and its constituents. It can be 3 min read Convert an Object to List in R Programming - as.list() Function as.list() function in R Programming Language is used to convert an object to a list. These objects can be Vectors, Matrices, Factors, and dataframes. Syntax: as.list(object) Parameters: object: Vector, Matrix, factor, or data frame R - as.list() Function ExampleExample 1: Converting Vector to list 2 min read Check if Object is of the Character Data type in R Programming - is.character() Function is.character() Function in R Language is used to check if the object is of the form of a string/character or not. It will return true if any element of the object is of the character data type. Syntax: is.character(Object) Parameter: Object: It could be an array, list, vector, etc. Example 1: Python 1 min read Like