I'm trying to split a number with a decimal into 2 separate numbers (characters work as well).
a <- c(1241.3233, 5632.2344, 1313,8643)
I would like to return this
col1 col2
1241 3233
5632 2344
1313 8643
I've tried
strsplit(as.character(a), ".")
and
stringr::str_split(a,".")
with no success.