get_uci_data: Function to download and clean UCI data into a tibble

Description Usage Arguments Value

View source: R/utils-uci.R

Description

Function to download and clean UCI data into a tibble

Usage

1
get_uci_data(ucidurl, col_names_raw, col_types_raw)

Arguments

ucidurl

(character): the specific url subdirectory of the required UCI dataset e.g. for the UCI hepatitis dataset, is typically located in the https://archive.ics.uci.edu/ml/machine-learning-databases/hepatitis/hepatitis.data so user only needs to enter "hepatitis/hepatitis.data" here in this case

col_names_raw

(character): A vector of column names for the input dataset. These can be in any case. Spaces should be replaced by uncerscores for all values e.g. c("Body Temp") should be changed to c("Body_Temp")

col_types_raw

(character): A single string where each character corresponds to the readr shorthand for the column type (e.g. "f" for factor)#' for the corresponding column to be read in by readr

Value

tibble: required UCI dataset


shamindras/robustps documentation built on July 22, 2019, 12:09 a.m.