Describe regex() in r string manipulation?



Describe regex() in r string manipulation?..

Answer / Rahul Sajwan

regex() is a function in R used for regular expression matching and replacement. It can be used to find, extract or replace patterns in strings.nExample: `gsub('(.*?)“”, '1”, “data science in r programming”)` will remove all quotes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

How using rprof() to find slow spots in your code in r?

1 Answers  


Describe regex() in r string manipulation?

1 Answers  


What is R studio and how to use it?

1 Answers  


What is apply() function in r?

1 Answers  


What is power analysis ?

1 Answers  


Explain how to access list elements in r?

1 Answers  


What is a white noise model and how can you simulate it using r?

1 Answers  


Give examples of “select” and “filter” functions from “dplyr” package.

1 Answers  


What are co-relations in R?

1 Answers  


Who and When R discovered?

1 Answers  


What is a motivation behind data visualization in R?

1 Answers  


Compare R with other technologies.

1 Answers  


Categories