Write the r programming code for an array of words so that the output is displayed in decreasing frequency order?



Write the r programming code for an array of words so that the output is displayed in decreasing fre..

Answer / Tushit Kumar

word_freq <- table(words); word_freq_sorted <- sort(word_freq, decreasing = TRUE); print(word_freq_sorted)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

Differentiate between library() and require()?

1 Answers  


How you can create a table in r without external file?

1 Answers  


What is with () and by () function in r is used for?

1 Answers  


How would you do a cross-product of two tables in r?

1 Answers  


How to construct a new s3 class?

1 Answers  


Explain how to manipulate list elements in r?

1 Answers  


How would you create a box-plot using “plotly”?

1 Answers  


What do you understand by a workspace in r programming language?

1 Answers  


What is a random walk model and how can you simulate it using r?

1 Answers  


What is r’s c interface?

1 Answers  


Why the stepaic()?

1 Answers  


Write a custom function in R?

1 Answers  


Categories