This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Startup and benchmarking script for reading in Witec files | |
file <- "Witec_TrueMatch.txt" | |
read_Witec_TrueMatch_scan() | |
read_Witec_TrueMatch_read_csv() | |
read_Witec_TrueMatch_read_table() | |
read_Witec_TrueMatch_fread() | |
# Scan | |
read_Witec_TrueMatch_scan <- function(file, keys_2header = "all") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' mutate and transmute for hyperSpec objects | |
#' | |
#' @description dplyr::mutate() adds new variables and preserves all the existing variables. | |
#' Special column `$spc` contains the spectra matrix. | |
#' | |
#' @inheritParams dplyr::mutate | |
#' @inheritParams dplyr::transmute | |
#' @seealso [dplyr::mutate()] | |
#' @return hyperSpec object. | |
#' @include unittest.R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##' Update data sets for hyperSpec package | |
##' | |
##' | |
##' @return directory of edited R files and associated test logs | |
##' | |
##' @author Erick Oduniyi | |
##' | |
##' @keywords programming utilities | |
##' @examples | |
##' @export |