Describe substr() in r string manipulation?



Describe substr() in r string manipulation?..

Answer / Reeturaj Pandey

substr() is a function in R used for extracting substrings from characters. The syntax is substr(string, start, stop). It returns the part of the string starting from 'start' and ending before 'stop', both indexes being 1-based.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

What are statistical software and data analysis in r?

1 Answers  


What are packages in r?

1 Answers  


How to create the s3 class?

1 Answers  


How would you fit a linear model over a scatter-plot?

1 Answers  


What is expected from running the command – strsplit(x,”e”)?

1 Answers  


How would you measure correlation in r?

1 Answers  


What is the of use Matrix package?

1 Answers  


In r how missing values are represented?

1 Answers  


What is the use of subset() function and sample() function in R ?

1 Answers  


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

1 Answers  


Which packages are used to store and restore R objects to and from a file in R language?

1 Answers  


Explain advantages of density-based clustering in R?

1 Answers  


Categories