Resolved: assigning Operators <- vs =
can I use <- or = to assign variables?
Are they the same? can I use them interchangeably without running into problems ?
thanks for reaching out and for the great question! I personally always use <- to assign a value of a variable in R, and tend to keep it that way for consistency. Technically both commands are valid in R and you should be able to use them interchangeably. But for the sense of continuity and clean code, you should choose one option and stick with it throughout.