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”?
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 |
Explain how to generate lists in r?
What is the difference between the data frame and a matrix in R?
What are prerequisites for r’s c interface?
Explain how to manipulate list elements in r?
How would you write a custom function in r? Give an example.
Explain statistical functions performed by R?
R programming language has several packages for data science which are meant to solve a specific problem, how do you decide which one to use?
What is recursion in r?
Define Cluster.stats() ?
What makes a valid variable name in R?
What is Predictive Analysis in R?
Which function in r language is used to find out whether the means of 2 groups are equal to each other or not?