Which three of the following actions attach labels to the vector elements?

Which three of the following actions attach labels to the vector elements?

  1. Define the labels by using the names() function.
  2. Define the labels inside the c() function by using the equal sign, leaving the names of the labels unquoted.
  3. Define the labels inside the c() function by using the equal sign, putting the names of the labels between quotes.
  4. Define the labels by using the labels() function.

 

Asked on September 22, 2017 in R.
Add Comment