Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Collapse all of the lines in jane.vector into one big string, separating each line by a space in doing so, using the paste() command.

image text in transcribed
2. Collapse all of the lines in jane.vector into one big string, separating each line by a space in doing so, using the paste() command. Call the resulting string jane.string. In the following problems, be sure you are using string commands such as substr, gsub/sub, strsplit, etc. a. How many characters does jane.string have? b. Display the 120 th 170 th characters in jane.string. c. Display the last 50 characters of jane.string.3.Split up jane.string into words, using the strsplit() command, and save the result as jane.all. Be absolutely sure you understand the structure of the object that strsplit returns! Note: pay attention to how you should split the strings in questions-look at the syntax for strsplit for this! d. What type of object is jane.all? Is it easy to work with? e. How many components does jane.all have

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

101 Database Exercises Text Workbook

Authors: McGraw-Hill

2nd Edition

0028007484, 978-0028007489

More Books

Students also viewed these Databases questions