Learn R Programming

iNZightTools (version 2.0.3)

Tools for 'iNZight'

Description

Provides a collection of wrapper functions for common variable and dataset manipulation workflows primarily used by 'iNZight', a graphical user interface providing easy exploration and visualisation of data for students of statistics, available in both desktop and online versions. Additionally, many of the functions return the 'tidyverse' code used to obtain the result in an effort to bridge the gap between GUI and coding.

Copy Link

Version

Install

install.packages('iNZightTools')

Monthly Downloads

507

Version

2.0.3

License

GPL-3

Maintainer

Tom M. Elliott

Last Published

July 29th, 2025

Functions in iNZightTools (2.0.3)

create_vars

Create new variables
extract_part

Extract part of a datetimes variable (DEPRECATED)
extract_dt_comp

Extract date component from a date-time variable
filter

Filter
inzdf

iNZight data frame object
create_varname

Create variable name
is_cat

Is factor check
newdevice

Open a New Graphics Device
form_class_intervals

Form Class Intervals
fitModel

Fit models
missing_to_cat

Convert missing values to categorical variables
make_names

Make unique variable names
random_sample

Random sampling without replacement
Not In operator

Anti value matching
is_dt

Is datetime check
Or NULL operator

NULL or operator
load_rda

Load object(s) from an Rdata file
is_num

Is numeric check
save_rda

Save an object with, optionally, a (valid) name
reshape_data

Reshaping dataset from wide to long or from long to wide
rename_vars

Rename column names
%>%

Pipe operator
is_svydesign

Check if object is a survey object (created by svydesign())
is_svyrep

Check if object is a replicate survey object (created by svrepdesign())
rank_vars

Rank the data of numeric variables
sort_vars

Sort data by variables
print_code

Tidy-printing of the code attached to an object
smart_read

Read a data file
transform_vars

Transform data of numeric variables
validation_details

Details of Validation Rule Results
remove_rows

Remove rows from data by row numbers
read_dictionary

Data Dictionaries
select

Select
reorder_levels

Reorder the levels of a categorical variable
validation_summary

Validation Confrontation Summary
select_vars

Select variables from a dataset
vartype

Get variable type name
read_text

Read text as data
read_meta

Read CSV with iNZight metadata
delete_vars

Delete variables
is_preview

Is Preview
is_survey

Check if object is a survey object (either standard or replicate design)
load_linked

Import linked data into an inzdf object
tidy_all_code

iNZight Tidy Code
rename_levels

Rename the levels of a categorical variable
sheets

List available sheets within a file
survey_IQR

Interquartile range function for surveys
join_data

Join data with another dataset
standardize_vars

Standardize the data of a numeric variable
separate_var

Separate columns
str_c

str_c operator
vartypes

Get all variable types from data object
code

Get Data's Code
convert_to_date

Convert variables to dates
add_suffix

Add suffix to string
as_tibble

as_tibble
append_rows

Append rows to a dataset
collapse_cat

Collapse data by values of a categorical variable
combine_vars

Combine variables into one categorical variable
convert_to_cat

Convert variables to categorical variables
filter_num

Filter data by levels of numeric variables
convert_to_datetime

Convert variables to date-time
fitDesign

Fit a survey design
aggregate_data

Aggregate data by categorical variables
filter_cat

Filter data by levels of categorical variables