15.071 | Spring 2017 | Graduate

The Analytics Edge

1.3 Working with Data: An Introduction to R

1.3 Working with Data: An Introduction to R

Quick Question

Which of the following are recommended variable names in R? (Select all that apply.)

 SquareRoot2  check
 
 Square Root2  close
 
 Square2.Root  check
 
 2SquareRoot  close
 
Check Show Solution

Explanation SquareRoot2 and Square2.Root are recommended variable names. The second option is not recommended because it has a space, and the fourth option is not recommended because it starts with a number.

Course Info

As Taught In
Spring 2017
Level
Learning Resource Types
Lecture Videos
Lecture Notes
Problem Sets with Solutions