pukRhelpers is a collection of helper functions designed to streamline and simplify workflows in R. This package compiles useful utilities that I've used across various projects, providing convenience for data manipulation, analysis, and visualization tasks.
You can install the pukRhelpers package from GitHub using one of the following methods, depending on the package manager you prefer.
# install.packages("devtools")
devtools::install_github("ar-puuk/pukRhelpers")
# install.packages("remotes")
remotes::install_github("ar-puuk/pukRhelpers")
# install.packages("pak")
pak::pak("ar-puuk/pukRhelpers")
After installation, load the package with:
library(pukRhelpers)
Once you’ve installed the package, you can start using its functions immediately.
Here is an example of using one of the functions in pukRhelpers:
# Work in progress
For a full list of functions and examples, check out the package documentation.
convert_fgb_to_gdb()
: Convert FlatGeoBuf (FGB) Files to Geodatabase (GDB) Layersconvert_xml_html()
: Convert XML to HTML using XSLTextract_html_table()
: Extract table following a specific anchor tag by name attributegeo_split_lines()
: Split Lines by Maximum Length (Credit: dblodgett-usgs)load_esri()
: Load and Query an ESRI Feature Service Layerload_kml_sf()
: Convert KML to Simple Features (sf) Object with Preserved Attributes (Credit: mdsumner)load_packages()
: Load and Install R Packagesload_ugrc_data()
: Load Dataset from UGRC SGIDload_ugrc_vars()
: Load List of Datasets from UGRC SGIDst_aggregate()
: Aggregate sf objects (Credit: rCarto)st_split_lines()
: Split Lines by Maximum Length (Credit: dblodgett-usgs)
Contributions are welcome! If you have any suggestions or improvements, feel free to open an issue or submit a pull request.
- Fork this repository.
- Create a new branch for your feature or fix.
- Submit a pull request with a detailed description of your changes.
Please ensure that your code adheres to the Tidyverse style guide and passes any unit tests if applicable.
This package is licensed under the GPL-3 License. See the LICENSE file for more details.
Thanks to the R community and contributors for inspiring and building great packages that made the development of pukRhelpers possible.