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

The question is very clear in the title.

1 Answer

0 votes
by (23.2k points)
edited ago 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: