Login
Remember
Register
Q&A
Questions
Ask a Question
What does the following code denote about index updation?
Home
>
Technology
>
What does the following code denote about index updation?
0
votes
asked
Oct 16, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
What does the following code denote about index updation?
for
(
index
in
1
:
3
)
{
index
<
- index
*
2
print
(
index
)
}
interview-question-answer
technology-questions-answers
Facebook
Twitter
LinkedIn
Email
Add Answer
1
Answer
0
votes
answered
Oct 16, 2020
by
JackTerrance
(
1.7m
points)
In a for-loop the index is updated at the beginning of each iteration. Therefore, reassigning the index symbol during one iteration doesn’t affect the following iterations.
Related questions
0
votes
1
answer
Why do we obtain five missing values from the following lines of code? x <- 1:5 x[NA]
asked
Oct 16, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
interview-question-answer
technology-questions-answers
0
votes
1
answer
Suppose that I want to convert factor to number. I write the following code:
asked
Oct 16, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
interview-question-answer
technology-questions-answers
0
votes
1
answer
writing the R code that consists of multiple functions. While executing the code, there is an error within one of the functions present in the code.
asked
Oct 16, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
interview-question-answer
technology-questions-answers
0
votes
1
answer
What are the differences between t.test() and t.data.frame()? When do you use these two functions?
asked
Oct 16, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
interview-question-answer
technology-questions-answers
0
votes
1
answer
You want to clean the data before fitting your model. What would you do to replace these missing values? Develop your own function.
asked
Oct 16, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
interview-question-answer
technology-questions-answers
...