R: Variables and Math

Example: Variables and Math


	x = 2
	y = x * 3
	y
	is.character(y)
	z = 7
	avg = (x + y + z) / 3
	avg
	

Output:

  6
  False
  5