I'm working with the mtcars dataset. I'm trying to create a new dataset which contains only the columns that are non-integer. To do this, I've tried several things, mainly trying to use lapply like so:
> newdata <- lapply(mtcars, Negate(is.integer))
But this doesn't return what I need. In the exercise, it was told that which() can help us do this, so I ask - how?
Thanks