Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.6k users

Browse Categories

...