Open In App

Check if an Object is a Call in R Programming – is.call() Function

Last Updated : 19 Jun, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

is.call() function in R Language is used to determine whether x is a call or not.

Syntax: is.call(x)

Parameters:
x: an arbitrary R object

Example 1:




# R program to illustrate
# is.call function
  
# Calling is.call() function
is.call(call) 


Output:

[1] FALSE

Example 2:




# R program to illustrate
# is.call function
  
# Calling is.call() function
is.call(call("sin", 23))


Output:

[1] TRUE

Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads