is.data.frame() function in R Language is used to return TRUE if the specified data type is a data frame else return FALSE. R data.frame is a powerful data type, especially when processing table (.csv). It can store the data as row and columns according to the table.
Syntax: is.data.frame(x)
Parameters:
x: specified data.frame
Example 1:
# R program to illustrate # is.data.frame function # Specifying "Biochemical oxygen demand" # data set x <- BOD # Calling is.data.frame() function is.data.frame(x) |
chevron_right
filter_none
Output:
[1] TRUE
Example 2:
# R program to illustrate # is.data.frame function # Calling is.data.frame() function # over different data types is.data.frame(4) is.data.frame("34") is.data.frame("a") is.data.frame(2.7) |
chevron_right
filter_none
Output:
[1] FALSE [1] FALSE [1] FALSE [1] FALSE
Recommended Posts:
- Convert an Object to Data Frame in R Programming - as.data.frame() Function
- Convert a Data Frame into a Numeric Matrix in R Programming - data.matrix() Function
- Modify Data of a Data Frame with an Expression in R Programming - with() Function
- Accessing variables of a data frame in R Programming - attach() and detach() function
- Get Transpose of a Matrix or Data Frame in R Programming - t() Function
- Create a Data Frame of all the Combinations of Vectors passed as Argument in R Programming - expand.grid() Function
- Create Subsets of a Data frame in R Programming - subset() Function
- Convert a Data Frame into a Molten Form in R Programming - melt() Function
- Rename Columns of a Data Frame in R Programming - rename() Function
- Choose Specific Columns of a Data Frame in R Programming - select() Function
- Add new Variables to a Data Frame using Existing Variables in R Programming - mutate() Function
- Condense Column Values of a Data Frame in R Programming - summarise() Function
- Take Random Samples from a Data Frame in R Programming - sample_n() Function
- Create Matrix and Data Frame from Lists in R Programming
- Creating a Data Frame from Vectors in R Programming
- Check if Object is of the Character Data type in R Programming - is.character() Function
- Check if an Object is of Complex Data Type in R Programming - is.complex() Function
- Modify values of a Data Frame in R Language - transform() Function
- Binding rows and columns of a Data Frame in R - bind_rows() and bind_cols() Function
- Convert type of data object in R Programming - type.convert() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

