0 votes
1 view
in R Programming by (7.3k points)

The question is very clear in the title.

1 Answer

0 votes
by (25.4k points)
edited by

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


> 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 !