1.

Which function is used to create a histogram for visualisation in R programming language?(a) Library(b) Hist(c) Data(d) ReferI got this question at a job interview.I'm obligated to ask this question of Functions topic in chapter Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming

Answer»

Correct answer is (b) Hist

For explanation: Hist function is used to create a HISTOGRAM for visualisation in R programming LANGUAGE. The GENERIC function hist computes a histogram of the given data values. This function takes a VECTOR as the input and also uses some more parameters to PLOT histograms.



Discussion

No Comment Found

Related InterviewSolutions