powered by
Tests if an object is a single decimal number
is_single_decimal(x)
an R object
is_single
is_single_decimal(0.01) # TRUE is_single_decimal(-3/4) # TRUE is_single_decimal("hoskdflksfd") # FALSE is_single_decimal("1.0") # FALSE is_single_decimal(1:5) # FALSE
Run the code above in your browser using DataLab