I have a data frame of different states over time for >50,000 different individuals. The states are a mix of whole numbers, decimals, NULLs, and chars. I would like to apply the ceiling()
function to the data frame but only change the numeric values while keeping everything else the same.
structure(list(`11/1/2014` = c("0", "NULL", "NULL", "NULL", "NULL",
"NULL"), `12/1/2014` = c("0", "0", "0", "0", "0", "0"), `1/1/2015` = c("0",
"0", "0", "0", "S", "0"), `2/1/2015` = c("0", "0", "1.72", "0",
"S", "0")), row.names = c(NA, 6L), class = "data.frame")