Solution: Calculate String Length

See one of several solutions to the "Calculate String Length" challenge and compare your solution to it.

We'll cover the following

Compare solutions

Please compare your code to the one given below. R is a flexible programming language. We can find the solution using extra functions or by following the steps in a different order. Please keep in mind that this solution is only one of many. Feel free to play with the code and try various methods. Here is our solution to the challenge in the previous lesson:

Get hands-on with 1400+ tech skills courses.