stringr: Simple, Consistent Wrappers for Common String Operations

A consistent, simple and easy to use set of wrappers around the fantastic 'stringi' package. All function and argument names (and positions) are consistent, all functions deal with "NA"'s and zero length vectors in the same way, and the output from one function is easy to feed into the input of another.

Version: 1.4.0
Depends: R (≥ 3.1)
Imports: glue (≥ 1.2.0), magrittr, stringi (≥ 1.1.7)
Suggests: covr, htmltools, htmlwidgets, knitr, rmarkdown, testthat
Published: 2019-02-10
Author: Hadley Wickham [aut, cre, cph], RStudio [cph, fnd]
Maintainer: Hadley Wickham <hadley at rstudio.com>
BugReports: https://github.com/tidyverse/stringr/issues
License: GPL-2 | file LICENSE
URL: http://stringr.tidyverse.org, https://github.com/tidyverse/stringr
NeedsCompilation: no
Materials: README NEWS
CRAN checks: stringr results

Downloads:

Reference manual: stringr.pdf
Vignettes: Regular expressions
Introduction to stringr
Package source: stringr_1.4.0.tar.gz
Windows binaries: r-devel: stringr_1.4.0.zip, r-release: stringr_1.4.0.zip, r-oldrel: stringr_1.4.0.zip
macOS binaries: r-release (arm64): stringr_1.4.0.tgz, r-release (x86_64): stringr_1.4.0.tgz, r-oldrel: stringr_1.4.0.tgz
Old sources: stringr archive

Reverse dependencies:

Reverse depends: acs, AnDE, BiGGR, cchsflow, dataPreparation, easyPSID, eqs2lavaan, EstimationTools, exsic, eyeTrackR, FCSlib, Fgmutils, filesstrings, FRESA.CAD, geotopbricks, goProfiles, kstIO, LindenmayeR, lmomPi, Maeswrap, MethTargetedNGS, microclass, micropan, microseq, mtk, muRL, neuroim, OmnibusFisher, orgR, pafdR, patchSynctex, PersomicsArray, PhysActBedRest, pmxTools, pxR, qqr, ReadDIM, recoder, RegParallel, repello, RGENERATEPREC, rsurfer, sangeranalyseR, SICtools, sim1000G, snpReady, sqlutils, ssh.utils, strex, String2AdjMatrix, SummarizedBenchmark, surveybootstrap, TBFmultinomial, tumblR, VarfromPDB, vfcp
Reverse imports: abcrf, abjutils, abseqR, accucor, ace2fastq, acroname, act, actel, ADAM, ADAMgui, addinsJoaoMelo, addinsOutline, admixr, adobeanalyticsr, adoptr, aemo, AFM, AGread, AgroR, AID, aire.zmvm, AirSensor, akc, ALA4R, alfr, allestimates, AlphaBeta, alphavantager, alpine, ALPS, AlpsNMR, altfuelr, amplican, anipaths, antaresRead, anyflights, apa, ApacheLogProcessor, APCI, appreci8R, aqp, aquodom, arabic2kansuji, aRbs, archetyper, aRchi, archiveRetriever, arcos, ARDL, arealDB, Arothron, artMS, asciiruler, asciiSetupReader, ASIP, aslib, asremlPlus, assignPOP, attachment, attrib, audrex, auk, autoharp, autota, autothresholdr, babette, BacArena, BAGofT, BallMapper, banocc, banxicoR, BARIS, basecallQC, basedosdados, BasketballAnalyzeR, BatchGetSymbols, BAwiR, bayesbr, BayesFactor, bayesmodels, baymedr, bbsBayes, Bchron, BCT, bea.R, beakr, beastier, beautier, BED, beepr, bestSDP, betalink, BETS, bggAnalytics, bib2df, bibliometrix, bibtex, bigPint, binomialMix, bioacoustics, biocompute, BiocPkgTools, BiocWorkflowTools, biodb, biogeo, biomaRt, biomartr, bioseq, BioTIP, bipartiteD3, BIRDS, bitmexr, BivRec, blaise, blandr, blastula, blscrapeR, BMRSr, bold, boostr, boxr, bpcs, bracer, branchpointer, BrazilMet, breathtestcore, breathteststan, brendaDb, bridgesampling, broom, broom.helpers, broom.mixed, brr, bsplus, BTLLasso, buildr, bupaR, burnr, BUSpaRse, cabinets, calpassapi, campfin, cansim, cape, carat, card, CARNIVAL, causact, CausalQueries, CB2, cder, celda, CellaRepertorium, CelliD, CellNOptR, cellscape, CEMiTool, censcyt, censusr, CGPfunctions, chartql, cheatsheet, checkLuhn, cheese, chilemapas, chipenrich, CHOIRBM, choroplethr, chorrrds, CIAAWconsensus, cicero, cimir, CINdex, circRNAprofiler, cleanUpdTSeq, clifro, climaemet, CLME, Cluster.OBeu, clusterExperiment, clustifyr, clustringr, CMapViz, cmaRs, cmcR, CNAIM, cnum, CNVPanelizer, CNVScope, coalitions, codebook, CoFRA, cogena, collidr, colorfindr, colorizer, colormap, combinedevents, commentr, compareDF, compcodeR, completejourney, ComPrAn, compstatr, conclus, concordance, configr, confoundr, Conigrave, conquestr, consensusSeekeR, convergEU, coRdon, corporaexplorer, correlationfunnel, cosinor2, cosmosR, covid19france, covid19us, CovidMutations, covidregionaldata, cpsvote, crandep, cranly, CRANsearcher, crimedata, crispRdesignR, cromwellDashboard, crossmeta, crosstable, crossword.r, crplyr, crtests, cruts, CruzPlot, CSGo, cspp, csvwr, CTDquerier, ctsGE, curatedMetagenomicData, customProDB, cvCovEst, cvms, cyclestreets, CytoGLMM, CytoTree, czso, d3Tree, dabestr, daiR, DAMEfinder, dampack, dann, DAPAR, daqapo, dartR, dasper, DatabaseConnector, datadogr, dataframeexplorer, datagovindia, dataone, datapackage.r, DataPackageR, dataspice, DatastreamDSWS2R, dcanr, DCEtool, decisionSupport, decoupleR, DeepBlueR, deepdive, DEGreport, DeLorean, depigner, describedata, DescrTab2, detector, detrendr, devFunc, DEXSeq, DGEobj, DGEobj.utils, DiagrammeR, diathor, diceR, DIDmultiplegt, difconet, diffEnrich, diffeqr, dipsaus, disk.frame, distcomp, distill, DistributionFitR, div, dkanr, dmai, dmdScheme, dMod, DNABarcodeCompatibility, doc2concrete, docxtools, DOPE, Doscheda, doseminer, dotwhisker, dPCP, dplR, dplyrAssist, dragon, DramaAnalysis, drawer, drumr, dscore, dsmisc, DSMolgenisArmadillo, DSpoty, DSSAT, dynparam, dynutils, dynwrap, easyalluvial, easyr, ebirdst, ecce, ech, eclust, ecocomDP, edbuildmapr, edbuildr, edeaR, edgar, eemR, EFAtools, efts, eiCompare, elementR, ELMER, emba, emuR, ensembleTax, entcn, EnvNJ, eph, EpiDISH, epitweetr, epos, erccdashboard, escalation, eurlex, eurostat, EventPointer, EventStudy, Evomorph, EWCE, exampletestr, exams.mylearn, exams2sakai, ExcelFunctionsR, explore, eye, eyelinker, ez, ezpickr, facerec, factorEx, famat, fastDummies, fastLink, fbar, fbRanks, fcaR, fcoex, feamiR, featuretoolsR, FedData, feedeR, ferrn, ffscrapr, fgdr, fgeo.plot, fhircrackr, finalfit, findR, fipe, fishualize, fitbitScraper, fitzRoy, flair, flattabler, FlickrAPI, flipbookr, flowGraph, fobitools, foieGras, foodingraph, foqat, forestecology, frenchdata, freqtables, FSK2R, fssemR, ftExtra, functiondepends, funModeling, futureheatwaves, fuzzyjoin, g3viz, GADMTools, galah, GALLO, games, ganalytics, garchmodels, gastempt, gbfs, GCalignR, GCSscore, gde, gen3sis, GeneBook, geneHummus, genemodel, genepop, GeneStructureTools, genius, geniusr, GenomeAdmixR, GenomicInteractions, GenomicTools, genscore, geocacheR, GEOfastq, geogenr, geomander, geomultistar, geouy, geoviz, gesisdata, GetBCBData, GetDFPData, GetDFPData2, GetFREData, GetLattesData, GetQuandlData, GetTDData, gfcanalysis, gfoRmula, ggasym, ggdag, ggetho, ggformula, ggfortify, gginnards, ggiraphExtra, ggmap, ggmsa, ggpage, ggplotAssist, ggplotgui, ggpmisc, ggPMX, ggpp, ggquickeda, ggResidpanel, ggthemes, ggVennDiagram, GIFTr, GillespieSSA2, gitear, gitlabr, GladiaTOX, GlmSimulatoR, glmSparseNet, gm, gmgm, Gmisc, gms, GOexpress, googlesheets, gpuMagic, graph4lg, gravitas, greekLetters, Greg, gridtext, grobblR, GroupBN, gscaLCA, GSEAmining, gsheet, gt, gtsummary, gunit, gutenbergr, GWENA, HaDeX, hadron, HCD, hdpGLM, healthcareai, healthforum, healthyR, healthyR.ts, helda, hereR, hergm, heuristicsmineR, hgutils, HiCBricks, highcharter, HiLDA, HistogramTools, hlaR, hlidacr, HLMdiag, HMP16SData, hoardeR, HPAStainR, htmldf, htmlTable, htsr, HTSSIP, hurricaneexposure, huxtable, hybridModels, HydeNet, hydroscoper, hypeR, hypercube, i2dash, iai, IATscores, ibawds, icdpicr, IDCard, ideal, ideamdb, idmodelr, idr2d, igate, ijtiff, imager, imdbapi, immuneSIM, immunotation, implicitMeasures, insee, installr, insurancerating, inti, intmed, iNZightTools, io, IONiseR, ip2location, ip2proxy, IRISMustangMetrics, IRISSeismic, ISAnalytics, ISAT, IsoCorrectoR, IsoformSwitchAnalyzeR, isomiRs, isoreader, ISOweek, janitor, JBrowseR, jcext, JCRImpactFactor, journalabbr, jrc, jstor, JumpeR, kableExtra, kayadata, kehra, keyATM, keyringr, keyToEnglish, kgschart, kibior, kindisperse, kittyR, knitr, KnowSeq, kntnr, kokudosuuchi, labelled, lacrmr, LAGOSNE, lambdaTS, lares, latex2exp, latte, lazytrade, lcsm, LDAShiny, leaflet.extras, ledger, lefko3, levitate, libbib, LifeInsuranceContracts, lifelogr, liftr, lilikoi, linear.tools, linguisticsdown, link2GI, lipidomeR, litteR, LLM, lmem.qtler, LOGAN, LoomExperiment, LowMACA, m2r, madrat, mailR, managelocalrepo, MaOEA, mapbayr, Mapinguari, mapping, mapscape, MarginalMediation, MARVEL, MAST, materialmodifier, matlabr, mau, mauricer, MazamaCoreUtils, MazamaLocationUtils, MazamaSpatialUtils, mboxr, mdsr, MDTS, MEAT, medExtractR, medrxivr, memapp, memoria, messaging, MetaboCoreUtils, metabolic, metacoder, MetaDBparse, metagam, metagear, metagene, MetaIntegrator, metajam, metaprotr, metaseqR2, MetaUtility, MethReg, methylGSA, MetID, metools, metR, metsyn, mgm, mhcnuggetsr, microbiomeExplorer, micromapST, microsamplingDesign, MicroSEC, migest, migraph, migrate, migrbc, miloR, MIMSunit, mina, mipplot, miRLAB, miRNAtap, missMethyl, mistyR, mitre, mixl, mlbstatsR, mlergm, mlr3shiny, MMAPPR2, mmaqshiny, modeltime, modeltime.ensemble, modeltime.gluonts, modeltime.h2o, modeltime.resample, moderndive, MODIStsp, Modstrings, moexer, MOGAMUN, mojson, MOMA, monocle, monoClust, moodleR, moonBook, MOSim, motifbreakR, mpcmp, mpoly, MQmetrics, mRpostman, MSbox, MSnID, MSPrep, msPurity, msSPChelpR, MSstatsPTM, MSstatsTMTPTM, mtconnectR, mudata2, muir, multibridge, multicolor, multifear, multinma, multiSight, mumm, musicatk, MutationalPatterns, nandb, NanoMethViz, nanotatoR, narray, nationwider, nCopula, needmining, neonUtilities, netchain, netgen, netmhc2pan, networkreporting, NeuralSens, nfl4th, nflfastR, NFP, ngramr, ngsReports, nhanesA, nhdR, NHSDataDictionaRy, nichevol, njtr1, nlstac, NMF, Nmisc, NNS, NNTbiomarker, noaastormevents, noah, nparACT, nucim, numbersBR, nzffdr, nzilbb.labbcat, oai, obfuscatoR, occCite, oceanis, omicRexposome, Omixer, OmnipathR, omu, OncoSimulR, onemapsgapi, ontoFAST, openCR, openPrimeR, OpenRepGrid, OpenRepGrid.ic, opitools, optim.functions, OptimaRegion, optiRum, optiSel, optiSolve, ORFhunteR, oRus, osmose, osrmr, outreg, oxcAAR, oxcgrt, oysteR, packagefinder, packDAMipd, pafr, PAMmisc, PAMpal, panelr, parcats, parseRPDR, partition, pathviewr, patientProfilesVis, pbixr, pdi, peacesciencer, peakPantheR, pepr, PerseusR, peRspective, PesticideLoadIndicator, pewdata, phantasus, pharmaRTF, phenofit, phenomap, phenopix, photobiology, photobiologyInOut, photosynthesis, piecepackr, pingers, pipefittr, piwikproR, pixelpuzzle, pkgmaker, PL94171, places, PlaneGeometry, Plasmidprofiler, plot3logit, plotGrouper, plotKML, pm4py, pmetar, pmml, podr, pointr, polished, politeness, pollster, polywog, pomcheckr, PoolTestR, PopED, postGIStools, postpack, povcalnetR, powerbydesign, pre, precautionary, pRecipe, PrecisionTrialDrawer, predict3d, PriceIndices, priceR, primerTree, primirTSS, prism, prisonbrief, processanimateR, processcheckR, processmapR, processR, profr, profvis, projects, promote, promotionImpact, proPubBills, ProPublicaR, protti, proustr, provExplainR, prozor, pryr, psfmi, psichomics, psycho, psycModel, psygenet2r, ptspotter, PubMedMining, PubMedWordcloud, pureseqtmr, PWFSLSmoke, QAIG, QCAtools, qMRI, qPLEXanalyzer, qrcode, qsub, QTL.gCIMapping, QTL.gCIMapping.GUI, qtl2ggplot, qualtRics, quantable, quantoptr, r2dictionary, r2mlm, r2shortcode, R2ucare, r6methods, R6P, rADA, radiant.model, radix, radlibs, radsafer, RAINBOWR, rainette, ralger, RALSA, rAmCharts4, RAMClustR, randomcoloR, rapport, rappsflyer, RAQSAPI, ratios, ratPASTA, rattle, raveio, rAvis, rawr, raws.profile, RBaseX, rbenvo, rcellminer, RClimacell, rClinicalCodes, RclusTool, rcompendium, rcrossref, RCT, Rcurvep, rdi, RDML, rdnb, reactablefmtr, readJDX, readrba, readsdr, readtextgrid, recodeflow, recoup, redcapAPI, redist, RefManageR, regexTestR, regions, regressoR, regrrr, relSim, reproducer, reshape2, retrosheet, RevEcoR, revengc, ReviewR, rexposome, rfacebookstat, rFIA, rfishbase, RFishBC, rgenius, rgeopat2, rheroicons, Riex, Rilostat, RInno, RIPAT, riskclustr, RJafroc, rkeops, rKolada, rKOMICS, rlc, rlme, RLogicalOps, rmarkdown, RmecabKo, rmweather, rmytarget, RNASeqR, RNeXML, rNOMADS, robotstxt, ROMDB, RonFHIR, ropenblas, ropercenter, roxygen2, rpcdsearch, Rpolyhedra, rPraat, rpredictit, rprime, Rprofet, RPyGeo, rrtable, RSAGA, Rsagacmd, rScudo, RSDA, rsemmed, RSentiment, rsinaica, RSiteCatalyst, rslp, rsnps, rsppfp, RSqlParser, rSQM, rt, RTCGAToolbox, rticulate, RTL, rtmpt, rubias, rules, rusda, RVA, rvkstat, rwebstat, Rwhois, Rwtss, ryandexdirect, rym, ryouready, safetyGraphics, salty, sapfluxnetr, saqgetr, sasMap, satscanMapper, sbm, sbtools, schemr, scholar, schrute, scientoText, scINSIGHT, scipub, scopr, scorecardModelUtils, scPCA, scPipe, scRepertoire, ScriptMapR, SCtools, sdcTable, SDMtune, searchConsoleR, secr, secrettext, secuTrialR, seecolor, seedreg, seer, SEERaBomb, SeerMapper, selectr, semtree, sendgridr, sensobol, sentryR, sesame, sevenbridges, sfcr, sgat, shiny.i18n, shinyfilter, ShinyItemAnalysis, shinyloadtest, shinyMolBio, shinyNotes, shinyobjects, ShinyQuickStarter, shinyrecipes, ShinyTester, shinyTree, ShortForm, SIAMCAT, sidrar, sigInt, simPH, simplecolors, simplevis, SimplyAgree, simr, SingleCellSignalR, SIRE, sismonr, sistec, siteymlgen, sketcher, SkeweDF, skimr, skynet, SleepCycles, SLEMI, smpic, snakecase, snap, snapcount, sobir, socialmixr, sociome, SoilTaxonomy, sovereign, spAddins, spant, sparklyr, SPARTAAS, spatialTIME, spatPomp, spatsurv, speakr, spectacles, speech, spellcheckr, sperrorest, spind, SPLINTER, spsComps, spsUtil, sqliter, squashinformr, SSBtools, SSHAARP, ssimparser, SSRA, ssrn, standardize, staplr, staRdom, starvz, statar, stationaRy, statnipokladna, statquotes, stickr, stlcsb, stm, stminsights, stplanr, strandCheckR, StratigrapheR, stringformattr, striprtf, STRMPS, Structstrings, StructuralVariantAnnotation, subspace, suddengains, SunsVoc, supernova, supraHex, survivalAnalysis, survivoR, survtmle, svgtools, swatches, sweidnumbr, swfscAirDAS, SwimmeR, swirl, swirlify, swissparl, syllabifyr, synergyfinder, SynMut, synoptReg, systemPipeR, systemPipeShiny, tableschema.r, tabshiftr, tabulator, tangram, taxa, taxotools, TCGAbiolinks, TCGAbiolinksGUI, TCGAutils, TcGSA, tealeaves, telefit, telemac, templates, tenispolaR, TestGardener, TexExamRandomizer, text, textmineR, textrecipes, textreuse, TFARM, thinkr, threeBrain, ThreeWiseMonkeys, tidybulk, tidycat, tidycensus, tidycomm, tidyfst, tidyft, tidygate, tidygeoRSS, tidyMicro, TidyMultiqc, tidypaleo, tidypmc, tidypredict, tidyquant, tidyquery, tidyqwi, tidyREDCap, tidyrules, tidyseurat, tidySingleCellExperiment, tidystats, tidySummarizedExperiment, tidytext, tidytidbits, tidyverse, tidywikidatar, tigris, timelineR, timeOmics, timescape, timetk, TimiRGeN, TIN, tinyscholar, tipitaka, tktdjl2r, TLBC, tmhmm, todor, tongfen, torchdatasets, tosca, totalcensus, Tplyr, TPP, TPP2D, tracktables, traineR, trainR, TreeDiagram, treeman, trendyy, trialr, tRNA, tRNAdbImport, tRNAscanImport, troopdata, tspmeta, TSTr, twn, TwoWayFEWeights, txshift, ubiquity, ucbthesis, UCSCXenaShiny, ukbtools, UMI4Cats, uncoverappLib, unheadr, UniprotR, Uniquorn, unstruwwel, upstartr, uptasticsearch, urlshorteneR, utilsIPEA, vagalumeR, valhallr, valr, VarBundle, vardpoor, varitas, varsExplore, vcfR, VDAP, vembedr, vennplot, vetools, vhcub, viafr, ViSiElse, vizdraws, vortexR, voson.tcn, vosonSML, votesmart, vows, vpc, vprr, walmartAPI, wavClusteR, waves, wbstats, weathercan, webchem, webr, webTRISr, weed, wiesbaden, WikidataR, wikilake, wikipediatrend, wordbankr, wordpredictor, workflowr, wpm, wrappedtools, wsjplot, wux, wyz.code.offensiveProgramming, wyz.code.rdoc, x.ent, x12, x12GUI, xesreadR, xgxr, xml2relational, xmlconvert, XNAString, Xplortext, xpose, xpose.nlmixr, xROI, yatah, yhatr, ymlthis, youtubecaption, Z10, zipangu, zipcodeR, zoomGroupStats, ztable, ztype
Reverse suggests: altair, amapGeocode, Andromeda, anomalize, arcpullr, arrow, autoTS, babsim.hospital, BayesMallows, bayestestR, bdpar, beadplexr, blogdown, brickr, bruceR, ClimClass, CluMSID, clusterPower, composits, covid19jp, cummeRbund, cxr, cyanoFilter, cytominer, datplot, dccvalidator, deepredeff, depmap, diffdf, docknitr, dtree, eeptools, emtdata, envDocument, epigraphdb, ethnobotanyR, eudract, exuber, fec16, fgeo.tool, fivethirtyeight, flexpolyline, fontMPlus, frequencyConnectedness, GDINA, ggenealogy, ggmulti, ggrepel, glue, gluedown, golem, hal9001, heemod, himach, httk, implyr, industRial, infer, legislatoR, lemon, MARSS, mcbette, metaboliteIDmapping, mia, miscset, modelplotr, msigdb, multiverse, mvrsquared, natstrat, NBAloveR, newsanchor, nima, nseval, oolong, optparse, origami, outcomerate, PhosR, plotROC, ppitables, pqsfinder, proDA, ProjectTemplate, pspline.inference, purgeR, qCBA, QTOCen, ragtop, raw, RcmdrPlugin.WorldFlora, RCzechia, ReactomeGraph4R, regmedint, regsem, repr, rex, rfordummies, rminizinc, rmonad, Rnits, robservable, Rpoet, RVerbalExpressions, scaffolder, SeqVarTools, shinymeta, simPop, simstandard, sincell, singleCellTK, SmartMeterAnalytics, SoundexBR, spatialEco, states, stats19, sweep, swfscDAS, syuzhet, taRifx, tfdeploy, tidylo, tidySEM, tikzDevice, TKCat, torchaudio, tracerer, transplantr, TreeAndLeaf, tvthemes, uavRmp, unpivotr, unusualprofile, usmap, valaddin, vegdata, vindecodr, vitae, vkR, wingui, WorldFlora, wsrf, zFPKM, ZIprop

Linking:

Please use the canonical form https://CRAN.R-project.org/package=stringr to link to this page.