Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in R Programming by (7.3k points)

The question is very clear in the title.

1 Answer

0 votes
by
edited

Yes, the base package in R includes the functions startsWith() and endsWith().

Usage:

> startsWith("Hello World", "Hello")

[1] TRUE

> endsWith("Hello World", "World")

[1] TRUE

If you want to explore more in R programming then watch this R programming tutorial for beginner:

Related questions

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...