Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 205372

Changing many column types in r with purrr

$
0
0

str(mtcars)

How do I make a list of some column names and change them to numeric or character. For example say I want to change c("am", "gear") into character columns.

I am looking for a solution e.g. with purrr; I know how to do it manually.


Viewing all articles
Browse latest Browse all 205372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>