Releases: iNZightVIT/iNZightTools
Releases · iNZightVIT/iNZightTools
2.0.1
2.0.0
Breaking changes
- major code rework for all data-wrangling and variable manipulation functions with tidyverse libraries and development conventions
- renamed most data-wrangling and variable manipulation functions such that their functionality are more name-intuitive (see below)
Minor changes
- Default code of generated data from all data-wrangling and variable manipulation functions now uses native R pipe
|>
. An option is added to use themagrittr
pipe%>%
instead. - The
code()
accessor function now returns a string with classinzcode
that has a print method which formats the code nicely.
New features
- The following functions are reworked and added new features:
- renamed
aggregatedt()
toaggregate_dt()
andaggregate_dt()
is now a wrapper ofaggregate_data()
with date component extraction and aggregation functionality built in, and added an option to allow aggregation with additional variables - combined
unite()
andcombineCatVars()
intocombine_vars()
and added options to remove empty factor combinations and turn missing values into an explicit factor level - combined
reshape_data()
andstackVars()
intoreshape_data()
and reworked the arguments - renamed
rankVars()
torank_vars()
and included more ranking methods (integer ranking by density and percentage ranking) - renamed
reorderLevels()
toreorder_levels
and included more auto-reordering methods (by first appearance and numeric order) - added an option to specify time zone in
convert_to_datetime()
- renamed
joindata()
tojoin_data()
, included right-join method, and reworked its arguments
- renamed
- pull
%||%
operator from 'iNZight'
Other changes
- The following functions have changed names and with renamed/reworked arguments (see code documentation for more details)
- renamed
aggregateData()
toaggregate_data()
- renamed
appendrows()
toappend_rows()
- renamed
collapseLevels()
tocollapse_cat()
- renamed
convertToCat()
toconvert_to_cat()
- renamed
createNewVar()
tocreate_vars()
- renamed
deleteVars()
todelete_vars()
- renamed
extract_part()
toextract_dt_comp()
- renamed
filterLevels()
tofilter_cat()
- renamed
filterNumeric()
tofilter_num()
- renamed
filterRandom()
torandom_sample()
- renamed
filterRows()
toremove_rows()
- renamed
missingToCat()
tomissing_to_cat()
- renamed
renameLevels()
torename_levels()
- renamed
renameVars()
torename_vars()
- renamed
selectVars()
toselect_vars()
- renamed
separate()
toseparate_var()
- renamed
sortVars()
tosort_vars()
- renamed
standardizeVars()
tostandardize_vars()
- renamed
transformVar()
totransform_vars()
- renamed
- removed
countMissing()
1.13.4
read_text()
function handles all invalid characters (assmart_read()
does)read_text()
applies string to factor conversion
1.13.3
read_text()
function replaces spaces with underscores in column names
1.13.2
- add global options to set/override default comment character
1.13.1
- add global options to set/override default comment character (this will allow Lite to change the default without changing the package's default behaviour; default set as # at load time)
1.13.0
New features
Data 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.
Other changes
- relocate survey specification reading files to new package
surveyspec
- add survival analysis as an option for
fitModel
viafamily = "cox"
- initial implementation of (basic) database connectivity - this is in early alpha stage
- various bug fixes/changes
- fix some issues occuring when column names have spaces (in the CSV) (#200)
1.12.3
- allow 'readr' to use automatic delimiter guessing (csv files) instead of forcing
,
(#187) - fix Windows bug in
url_to_temp()
adding extra lines, causing importing files with more than one line of comments to fail delimiter-guessing - fix bug where extension guess failed if file extension was not lower case (e.g.,
file.CSV
)
1.12.2
- add new function
print_code()
to extract, tidy, and print code attached to an object - allow more than one character as 'sep' argument to
combineCatVars()
1.12.1
- fix bug in
smart_read()
where parsing column types (numeric -> categorical) failed ifNA
s in column - fix test failing in new version of survey (2.4)