is.complex() function in R Language is used to check if the object passed to it as argument is of complex data type.
x: Object to be checked
 TRUE  TRUE  TRUE
 1+4i 2+3i 3+2i 4+1i  TRUE
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.