Explain how to repeat vectors in r?
Answer / Anurag Pal
In R, you can repeat a vector using the rep() function. The syntax is: `rep(x, times)`, where x is the vector to be repeated and times is the number of repetitions for each element.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is length function in r?
What is data structure in r?
Explain bor function?
What is the difference between a bar-chart and a histogram?
Give the syntax for creating scatterplot matrices?
What is the difference between rnorm and runif functions ?
How to call c function from r?
What is tcp/ip variable smc-r storage allocations?
How do I sort in descending order in r?
What is the reshaping of data in R?
give examples of while and for loop in r.
Explain what is transpose?