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
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.

#Case_Sensitivity_in_r_language #Case_Sensitivity_in_r_programming #_sum()_function_in_r_language

(New page will open, for Comment)

Not yet commented...