interpolate() triggering an error|>. An option is added to use the magrittr pipe %>% instead.code() accessor function now returns a string with class inzcode that has a print method which formats the code nicely.aggregatedt() to aggregate_dt() and aggregate_dt() is now a wrapper of aggregate_data() with date component extraction and aggregation functionality built in, and added an option to allow aggregation with additional variablesunite() and combineCatVars() into combine_vars() and added options to remove empty factor combinations and turn missing values into an explicit factor levelreshape_data() and stackVars() into reshape_data() and reworked the argumentsrankVars() to rank_vars() and included more ranking methods (integer ranking by density and percentage ranking)reorderLevels() to reorder_levels and included more auto-reordering methods (by first appearance and numeric order)convert_to_datetime()joindata() to join_data(), included right-join method, and reworked its arguments%||% operator from 'iNZight'aggregateData() to aggregate_data()appendrows() to append_rows()collapseLevels() to collapse_cat()convertToCat() to convert_to_cat()createNewVar() to create_vars()deleteVars() to delete_vars()extract_part() to extract_dt_comp()filterLevels() to filter_cat()filterNumeric() to filter_num()filterRandom() to random_sample()filterRows() to remove_rows()missingToCat() to missing_to_cat()renameLevels() to rename_levels()renameVars() to rename_vars()selectVars() to select_vars()separate() to separate_var()sortVars() to sort_vars()standardizeVars() to standardize_vars()transformVar() to transform_vars()countMissing()read_text() function handles all invalid characters (as smart_read() does)read_text() applies string to factor conversionread_text() function replaces spaces with underscores in column namesData dictionaries
Users can now import a data dictionary and apply it to a dataset. This will apply text labels to numerically coded variables and set labels for variables with human-friendly names.
Linked data
New functions to load linked datasets from a .inzlnk file, where the file linkage is specified. Optionally users can include a data dictionary in this file, which will also be applied to the data.
surveyspecfitModel via family = "cox", (#187)url_to_temp() adding extra lines, causing importing files with more than one line of comments to fail delimiter-guessingfile.CSV)fix bug in converting times with missing seconds (e.g., '08:30')
read_dictionary() and apply_dictionary() functions to import a data dictionary from a rectangular data file and apply it to a datasetprint_code() to extract, tidy, and print code attached to an objectcombineCatVars()smart_read() where parsing column types (numeric -> categorical) failed if NAs in column@multi)@numeric x na=99)renameLevels())extract_part()as_survey() method for inzsvyspec objects (#178)read_text()lazy = FALSE to readr::read_delim() to prevent lazy loading of datasurvey::svrepdesign() default)aggregateData() if summary_vars is not specified and there are factor columns in the dataset not showing up in varsform_class_intervals to work with survey designs (count not yet working)survey_IQR (and some tests) to work with 'survey' 4.1 (new svyquantile function)srvyr package to handle survey designs using dplyr-like syntax
aggregateData(), filterNumeric(), filterLevels(), filterRows(), ...filterLevels() to make it more concise (using droplevels())inzsvyspec formatcollapseLevels() cause errorform_class_intervals() functionimport_survey() to handle URL as the data argumentreorderLevels(..., freq = TRUE) (#165, @tmelliott)aggregateData function to improve flexibilityimport_survey() function for importing a survey design (and data) from a specification file (in TOML format)NA, the column was read as logical instead of character (this is a fixed behaviour of readr, so cannot be overridden)Minor version bump to align with release of iNZight 4.0.
selectVars functionfamily in fitModel%notin% operator to more easily/readably check ! x %in% yfitModel can now fit Cox PH modelsread_text()keep_emptyadd_suffix() function to smartly add suffixes to object names and append counter if suffix is already presentread_text() function to read from text string/clipboardsmart_read() now supports URLs by downloading to a temporary file, with the same name2010M01, etc. so it works correctly with iNZightTSRelease date: 11 November 2019
col_types = cols() to suppress the col spec messagesload_rda() function which loads all data frames in an rda file into a listsave_rda()) function allows saving of a data set to a file, optionally with a different name (i.e., the actual object name can be changed)smart_read() now handles RDS filesRelease date: 2 September 2019
Release date: 26 August 2019
Release date: 15 July 2019
Release date: 30 April 2019
*_join()Release date: 15 November 2018
survey:: namespace to function callsRelease date: 10 September 2018
Release date: 04 September 2018
Release date: 14 August 2018
smart_read() functionRelease date: 23 January 2018
Release date: 25 August 2017
Release date: 23 March 2017
Release date: 5 September, 2016
type = "nbcairo" as macOS fallback in newdevice()svydesign function. Temporary fix
until package gets a more significant revamp.Initial release.