in Education by
In the expression x <- 4 in R, what is the class of ‘x’ as determined by the `class()’ function? (a) Character (b) Numeric (c) Integer (d) Word I have been asked this question at a job interview. My question is based upon Basics in chapter History, Overview and Getting Started of R Programming Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Correct answer is (c) Integer Easiest explanation: In R, there is an extension of the numeric or character vectors. They are not a separate type of object but simply an atomic vector with dimensions.

Related questions

0 votes
    Which of the following command is used to print an object x in R? (a) printf(x) (b) print(x) ... Getting Started of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    The entities that R creates and manipulates are known as ________ (a) objects (b) task (c) container (d) ... Started of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    In 1991, R was created by Ross Ihaka and Robert Gentleman in the Department of Statistics at the University of ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    If a command is not complete at the end of a line, R will give a different prompt, by default it is ... Started of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    The primary source code copyright for R is held by the ___________ (a) R Foundation (b) S Foundation (c) ... Started of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    In which year R-Core group was formed? (a) 1993 (b) 1996 (c) 1997 (d) 1998 This question was ... Getting Started of R Programming Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    Version of R released to the public in 2000 was_________ (a) 1.0.0 (b) 1.0.3 (c) 2.0.1 (d) ... and Getting Started of R Programming Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    How do you create an integer suppose 5 in R? (a) 5L (b) 5l (c) 5i (d) 5d I got this question ... and Getting Started of R Programming Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    You can download base R system from _________ (a) A (b) B (c) CRAN (d) D This question was ... Getting Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    They primary R system is available from the ______ (a) CRAN (b) CRWO (c) GNU (d) CRDO This question ... Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    The most convenient way to use R is at a graphics workstation running a ________ system. (a) windowing (b) ... Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Is It possible to inspect the source code of R? (a) Yes (b) No (c) Can't say (d) Some times ... and Getting Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    R is mostly used in ______________ (a) Problem solving (b) Statistics (c) Probability (d) All of the ... Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    What is the output of getOption( defaultPackages ) in R studio? (a) Installs a new package (b) Shows ... Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    In R language, a vector is defined that it can only contain objects of the ________ (a) Same class (b) ... Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
...