Skip to content

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
mem48 committed Sep 11, 2024
1 parent baf7b27 commit d841d95
Show file tree
Hide file tree
Showing 18 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion R/atoc_import.R
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ strip_whitespace <- function(df) {
#'
#' @param file Path to .mca file
#' @param silent logical, should messages be displayed
#' @param ncores number of cores to use when paralell processing
#' @param ncores number of cores to use when parallel processing
#' @param full_import import all data, default FALSE
#' @param working_timetable use rail industry scheduling times instead of public times
#' @export
Expand Down
2 changes: 1 addition & 1 deletion R/atoc_nr.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' Convert ATOC CIF files from Network Rail to GTFS
#'
#' @param path_in Character, path to Network Rail ATOC file e.g."C:/input/toc-full.CIF.gz"
#' @param silent Logical, should progress messages be surpressed (default TRUE)
#' @param silent Logical, should progress messages be suppressed (default TRUE)
#' @param ncores Numeric, When parallel processing how many cores to use
#' (default 1)
#' @param locations where to get tiploc locations (see details)
Expand Down
2 changes: 1 addition & 1 deletion R/extdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ check_data <- function(default_tag = "v0.1.2"){
#'
#' The ATOC data has inaccurate locations for many tiplocs, this is an improved dataset
#'
#' "naptan_missing" Bus Stop Locations missing from NapTAN
#' "naptan_missing" Bus Stop Locations missing from NaPTAN
#'
#' A database of bus stops that are missing from the NAPTAN but are known to
#' have been used. For some reason the official NAPTAN file is missing a small
Expand Down
2 changes: 1 addition & 1 deletion R/get_cal.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#' @return data frame
#' @details TransXchange records bank holidays by name (e.g. Christmas Day),
#' some UK bank holidays move around, so this function downloads the official
#' bank holiday calendar. The offical feed only covers a short period of time
#' bank holiday calendar. The official feed only covers a short period of time
#' so this may not be suitable for converting files from the past / future.
#' @export
#'
Expand Down
2 changes: 1 addition & 1 deletion R/get_naptan.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' @param naptan_extra data frame of missing stops default uses `naptan_missing`
#' @return data frame of stop locations
#' @details TransXchange does not store the location of bus stops, so this
#' functions downloads them from the offical DfT source. NaPTAN has some
#' functions downloads them from the official DfT source. NaPTAN has some
#' missing bus stops which are added by UK2GTFS. See `naptan_missing`
#'
#'
Expand Down
2 changes: 1 addition & 1 deletion R/gtfs_cleaning.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ gtfs_fast_trips <- function(gtfs, maxspeed = 83, routes = TRUE) {
}

#' Find fast stops
#' @description A varient of gtfs_fast_trips that can detect stops that may be in the wrong location
#' @description A variant of gtfs_fast_trips that can detect stops that may be in the wrong location
#' @param gtfs list of gtfs tables
#' @param maxspeed the maximum allowed speed in metres per second default 83 m/s
#' (about 185 mph the max speed of trains on HS1 line)
Expand Down
2 changes: 1 addition & 1 deletion R/nptdr.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ nptdr2gtfs <- function(path = "D:/OneDrive - University of Leeds/Data/UK2GTFS/NP
message(length(fls_cif)," CIF files found")
}

# Import the NapTAN
# Import the NaPTAN
stops <- nptdr_naptan_import(fls_naptan)


Expand Down
6 changes: 3 additions & 3 deletions R/transxchange.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#' @param cal Calendar object from get_bank_holidays()
#' @param naptan Naptan stop locations from get_naptan()
#' @param scotland character, should Scottish bank holidays be used? Can be
#' "auto" (defualt), "yes", "no". If "auto" and path_in ends with "S.zip"
#' "auto" (default), "yes", "no". If "auto" and path_in ends with "S.zip"
#' Scottish bank holidays will be used, otherwise England and Wales bank
#' holidays are used.
#' @param try_mode Logical, if TRUE import and conversion are wrapped in try
Expand All @@ -18,12 +18,12 @@
#' @return A GTFS named list
#' @details
#'
#' This is a meta fucntion which aids TransXchange to GTFS conversion. It simple
#' This is a meta function which aids TransXchange to GTFS conversion. It simple
#' runs transxchange_import(), transxchange_export(), gtfs_merge(), gtfs_write()
#'
#' Progress Bars
#'
#' To minimise overall processing when using mulitple cores the fucntion works
#' To minimise overall processing when using multiple cores the function works
#' from largest to smallest file.This can mean the progress bar sits a 0% for
#' quite some time, before starting to move rapidly.
#'
Expand Down
4 changes: 2 additions & 2 deletions R/write_gtfs.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Write GTFS
#'
#' Takes a list of data frames represneting the GTFS fromat and saves them as GTFS
#' Takes a list of data frames representing the GTFS format and saves them as GTFS
#' Zip file.
#'
#' @param gtfs named list of data.frames
Expand All @@ -9,7 +9,7 @@
#' @param stripComma logical, should commas be stripped from text, default = TRUE
#' @param stripTab logical, should tab be stripped from text, default = TRUE
#' @param stripNewline logical, should newline tag be stripped from text, default = TRUE
#' @param quote logical, should strings be quoted, default = FALSE, passed to data.table::fwrite
#' @param quote logical, should strings be quoted, default = FALSE, passed to `data.table::fwrite`
#' @export
#'
gtfs_write <- function(gtfs,
Expand Down
2 changes: 1 addition & 1 deletion R/xml_helper_functions.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TransXchange import fucntions
# TransXchange import functions

#' Import Simple
#' ????
Expand Down
2 changes: 1 addition & 1 deletion man/get_bank_holidays.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/get_naptan.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/gtfs_fast_stops.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/gtfs_write.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/importMCA.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/load_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/nr2gtfs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/transxchange2gtfs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d841d95

Please sign in to comment.