I have a string “contact@dataflair.com”. Which string function can be used to split the string into two different strings “contact@dataflair” and “com”?



I have a string “contact@dataflair.com”. Which string function can be used to split the ..

Answer / Santosh Kumar Singh

You can use the strsplit() function in R to split the string. For example: `strsplit("contact@dataflair.com", split = "@")[[1]]` will return `["contact@dataflair", "com"]`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

Explain different types of atomic vectors in R?

1 Answers  


What is Predictive analysis process in R?

1 Answers  


What is the function used for adding datasets in R?

1 Answers  


What is Visualization in R?

1 Answers  


How will you list all the datasets available in all R packages?

1 Answers  


What is data mining and what data miners do in R?

1 Answers  


What do you understand by R cluster analysis?

1 Answers  


What is white noise model in r?

1 Answers  


How can you merge two data frames in R language?

1 Answers  


Name all control statements present in r?

1 Answers  


Explain how to name the list elements in r?

1 Answers  


How many ways are there to read and write files?

1 Answers  


Categories