Categories
Education
General
Credit
Health
Insurance
Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Suppose that I want to convert factor to number. I write the following code:
asked
Oct 16, 2020
in
Technology
by
JackTerrance
(
1.8m
points)
Suppose that I want to convert factor to number. I write the following code:
interview-question-answer
technology-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 16, 2020
by
JackTerrance
(
1.8m
points)
fac <- factor(c(2.3, 1.5, 3, 4.9))
as.numeric(fac)
Please
log in
or
register
to add a comment.
Related questions
0
votes
Q: Suppose, without using a line/bar chart, I want to design a view to show the region-wise profit and sales. How should I go about doing it? Explain
asked
Oct 30, 2020
in
Technology
by
JackTerrance
(
1.8m
points)
interview-question-answer
technology-questions-answers
0
votes
Q: Suppose you have designed a Big Data batch using the MapReduce framework. Now you want to execute it on a cluster using Map Reduce. Which configurations are mandatory in the Hadoop Configuration tab of the Run view?
asked
Mar 23, 2021
in
Technology
by
JackTerrance
(
1.8m
points)
interview-question-answer
technology-questions-answers
0
votes
Q: Write pseudo code to count occurrence of a given number in the list. For example, consider the following list, if user enters 5 then display “2 times” because “5” occurs 2 times in the list.
asked
Nov 27, 2021
in
Education
by
JackTerrance
(
1.8m
points)
computer-science-interview-questions
computer-science-questions
0
votes
Q: If I want to save a plot to a PDF file, which of the following is a correct way of doing that?
asked
Feb 8
in
Education
by
JackTerrance
(
1.8m
points)
r
programming
profiling
simulation
and
data
analysis
exploratory
0
votes
Q: write the statement to convert a number stored in a string variable ‘num’ to a double data type.
asked
Dec 22, 2021
in
Education
by
JackTerrance
(
1.8m
points)
computer-science-interview-questions
computer-science-questions
...