str_iterate: str_iterate

Description Usage Arguments Value

Description

recursive function for going through a string and finding commas which indicate new arguments will not locate commas if they are contained by (),,” or "" will ignore escaped characters for this purpose

Usage

1
2
3
str_iterate(stringin, location = 1, bracket_count = 0, curlbrackets = 0,
  singlespeech = 0, doublespeech = 0, specialspeech = 0,
  squarebrackets = 0, comma_loc = c())

Arguments

stringin

string to explore. Note that this is the only argument that should normally be provided

location

starting location to explore. Should normally be set to 1

bracket_count

number of open brackets

curlbrackets

number of open curly brackets

singlespeech

number of open single speech marks

doublespeech

number of open double speech marks

specialspeech

number of open “ marks

comma_loc

vector containing the location of all commas

squarebreackets

number of square brackets

Value

comma_loc, a numeric vector with the location of commas in the inputted vector


kieranjmartin/getfunctionargs documentation built on May 23, 2019, 7:03 p.m.