How to I make MI, ID, FL, into "MI", "ID", "FL" without having to type every single double quote?
You may want to check out the datapasta package!
If you follow directions under "Pasting a list as a horizontal vector with vector_paste()" of the linked vignette, you'll be able to type something like MI, ID, FL
cut it and then use an assigned keyboard shortcut, say shift + cmd + v
, to paste it into c("MI", "ID", "FL")
.
The Hmisc package has a function Cs(), it will evaluate comma separated text as having quotes.
Cs(MI, ID, FL)
#becomes:
"MI", "ID", "FL"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With