Skip to contents

The goal of newpack is to make splitting a string easier.Based on R Packages (2e) by Hadley Wickham and Jennifer Bryan.

Installation

You can install the development version of newpack from GitHub with:

# install.packages("devtools")
devtools::install_github("hookoop/newpack")

Example

This is a basic example which shows you how to solve a common problem:

library(newpack)
x<-"alfa,bravo,charlie,delta"
str_split_one(x, pattern=",")
#> [1] "alfa"    "bravo"   "charlie" "delta"