R Case Sensitivity
Case Sensitivity
- R is Case Sensitive, hence one must ensure the Case Sensitivity of the Objects that are defined when writing code in R
- In the following example, an attempt to perform the summation of individual vectors, to obtain the total marks, failed due to case sensitivity
CODE/PROGRAM/EXAMPLE
math <- 80
science <- 85
social <- 76
english <- 94
#Total marks obtained
totalmarks <- sum(math, science, social, English)
ERROR: object ‘English’ not found
Reason for Error: While passing parameters to sum() function, 'E' is in uppercase.