From b88375fb92195abbe73410b2b64d27ff69ff95c5 Mon Sep 17 00:00:00 2001 From: Andrea Gilardi Date: Sun, 22 Nov 2020 23:19:08 +0100 Subject: [PATCH] fix typo in docs and examples --- R/df.R | 8 ++++---- R/sfc.R | 2 +- man/sf_to_df.Rd | 6 +++--- man/sfc_linestring.Rd | 2 +- man/sfc_to_df.Rd | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/R/df.R b/R/df.R index 13a5863..fa153b6 100644 --- a/R/df.R +++ b/R/df.R @@ -19,7 +19,7 @@ sfg_to_df <- function( sfg ) return( rcpp_sfg_to_df( sfg ) ) #' sfc to df #' -#' Converts an sfc object a to data.frame +#' Converts an sfc object to a data.frame #' #' @param sfc sfc object #' @@ -47,12 +47,12 @@ sfc_to_df <- function( sfc ) return( rcpp_sfc_to_df( sfc ) ) #' sf to df #' -#' Converts an sf object ot a data.frame +#' Converts an sf object to a data.frame #' #' @param sf sf object #' @param fill logical indicating if the resulting data.frame should be filled #' with the data columns from the sf object. If \code{TRUE}, each row of data will -#' be replicated for every coordiante in every geometry. +#' be replicated for every coordinate in every geometry. #' @param unlist string vector of columns to unlist. Each list element is equivalent #' to a row of the input object, and is expected to be the same #' length as the number of coordinates in the geometry. @@ -77,7 +77,7 @@ sfc_to_df <- function( sfc ) return( rcpp_sfc_to_df( sfc ) ) #' #' df <- sf_to_df( sf, fill = TRUE ) #' -#' ## Unlisting lsit columns +#' ## Unlisting list columns #' #' df <- data.frame( #' l_id = c(1,1,1,2,2,2,3,3,3,3) diff --git a/R/sfc.R b/R/sfc.R index 2d4f407..3aed8e7 100644 --- a/R/sfc.R +++ b/R/sfc.R @@ -78,7 +78,7 @@ sfc_multipoint <- function( obj, x = NULL, y = NULL, z = NULL, m = NULL, multipo #' sfc LINESTRING #' -#' constructs sfc of MULTIPOINT objects +#' constructs sfc of LINESTRING objects #' #' @inheritParams sfc_multipoint #' @inheritSection sfc_point notes diff --git a/man/sf_to_df.Rd b/man/sf_to_df.Rd index d5333c5..767dbed 100644 --- a/man/sf_to_df.Rd +++ b/man/sf_to_df.Rd @@ -11,14 +11,14 @@ sf_to_df(sf, fill = FALSE, unlist = NULL) \item{fill}{logical indicating if the resulting data.frame should be filled with the data columns from the sf object. If \code{TRUE}, each row of data will -be replicated for every coordiante in every geometry.} +be replicated for every coordinate in every geometry.} \item{unlist}{string vector of columns to unlist. Each list element is equivalent to a row of the input object, and is expected to be the same length as the number of coordinates in the geometry.} } \description{ -Converts an sf object ot a data.frame +Converts an sf object to a data.frame } \examples{ @@ -40,7 +40,7 @@ sf$val2 <- c(1L, 2L) df <- sf_to_df( sf, fill = TRUE ) -## Unlisting lsit columns +## Unlisting list columns df <- data.frame( l_id = c(1,1,1,2,2,2,3,3,3,3) diff --git a/man/sfc_linestring.Rd b/man/sfc_linestring.Rd index ce32ee2..a8d5f18 100644 --- a/man/sfc_linestring.Rd +++ b/man/sfc_linestring.Rd @@ -30,7 +30,7 @@ sfc_linestring( \code{sfc} object of LINESTRING geometries } \description{ -constructs sfc of MULTIPOINT objects +constructs sfc of LINESTRING objects } \section{notes}{ diff --git a/man/sfc_to_df.Rd b/man/sfc_to_df.Rd index 89cd862..e21238f 100644 --- a/man/sfc_to_df.Rd +++ b/man/sfc_to_df.Rd @@ -10,7 +10,7 @@ sfc_to_df(sfc) \item{sfc}{sfc object} } \description{ -Converts an sfc object a to data.frame +Converts an sfc object to a data.frame } \examples{