Skip to main content
edited title
Link
user438383
  • 6.3k
  • 10
  • 32
  • 51

What are the differences between "=" and "<-" assignment operators in R?

make it clearer
Link
smci
  • 34.2k
  • 21
  • 118
  • 152

What are the differences between "=" and "<-" assignment operators in R?

added 5 characters in body
Source Link
nbro
  • 16.1k
  • 34
  • 122
  • 219

Assignment operators in R: '=' What are the differences between "=" and '<"<-'" in R?

What are the differences inbetween the assignment operators '='= and '<-'<- in R? 

I know that operators are slightly different, as this example shows

x <- y <- 5 x = y = 5 x = y <- 5 x <- y = 5 # Error in (x <- y) = 5 : could not find function "<-<-" 

But is this the only difference?

Assignment operators in R: '=' and '<-'

What are differences in the assignment operators '=' and '<-' in R? I know that operators are slightly different as this example shows

x <- y <- 5 x = y = 5 x = y <- 5 x <- y = 5 # Error in (x <- y) = 5 : could not find function "<-<-" 

But is this the only difference?

What are the differences between "=" and "<-" in R?

What are the differences between the assignment operators = and <- in R? 

I know that operators are slightly different, as this example shows

x <- y <- 5 x = y = 5 x = y <- 5 x <- y = 5 # Error in (x <- y) = 5 : could not find function "<-<-" 

But is this the only difference?

Question Protected by Hong Ooi
deleted 6 characters in body
Source Link
MichaelChirico
  • 34.9k
  • 17
  • 122
  • 209
Loading
edited tags
Link
Joris Meys
  • 109k
  • 31
  • 228
  • 266
Loading
added assignment-operator tag
Link
Mark Byers
  • 843.6k
  • 202
  • 1.6k
  • 1.5k
Loading
added 16 characters in body
Source Link
csgillespie
  • 60.8k
  • 15
  • 160
  • 188
Loading
Source Link
csgillespie
  • 60.8k
  • 15
  • 160
  • 188
Loading