For example, I want to assign 1 to a, b, c, ..., z. I have to type,
a <- 1
b <- 1
c <- 1
...
z <- 1
How can I type one line and assign all values to variables?
You might try simply:
for (x in letters) assign(x,1)
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