I have a vector:
x <- c(0.0, 0.5, 1.000, 1.5, 1.6, 1.7, 1.75, 2.0, 2.4, 2.5, 3.0, 74.0)
How can I extract only x values โโthat contain non-zero values โโafter the decimal point? For example, the resulting vector will look like this:
c(0.5, 1.5, 1.6, 1.7, 1.75, 2.4, 2.5)
Which removed 0.0 , 1.000 , 2.0 , 3.0 and 74.0 .
source share