a) cp() b) c() c) concat() d) con() Answer: b Explanation: The simplest such structure is the numeric vector, which ...
View Question
What will be the output of the following R code?
> x <- vector(“numeric”, length = 10)
> x
What will be the output of the following R code? > x <- vector("numeric", length = 10) > ...
View QuestionWhich of the following can be considered as object attribute?
a) dimensions b) class c) length d) all of the mentioned Answer: d Explanation: All objects in R ...
View QuestionR objects can have attributes, which are like ________ for the object.
a) metadata b) features c) expression d) dimensions Answer: a Explanation: These metadata can be very useful in ...
View QuestionAttributes of an object (if any) can be accessed using the ______ function.
a) objects() b) attrib() c) attributes() d) obj() Answer: c Explanation: Not all R objects contain attributes, ...
View QuestionPoint out the correct statement?
a) The value NaN represents undefined value b) Number Inf represents infinity in R c) NaN can also be ...
View QuestionIf you explicitly want an integer, you need to specify the _____ suffix.
a) D b) R c) L d) K Answer: c Explanation: Entering 1 in R gives you a ...
View QuestionNumbers in R are generally treated as _______ precision real numbers.
a) single b) double c) real d) imaginary Answer: b Explanation: This means that even if you ...
View QuestionPoint out the correct statement?
a) Empty vectors can be created with the vector() function b) A sequence is represented as ...
View QuestionR has how many atomic classes of objects?
a) 1 b) 2 c) 3 d) 5 Answer: d Explanation: The most basic type of R object is a vector.
View Question