identify_query: Identify the query type of the passed data frame

View source: R/identify_query.R

identify_queryR Documentation

Identify the query type of the passed data frame

Description

Pass an advanced insights query dataset and return the identified query type as a string. This function uses variable name string matching to 'guess' the query type of the data frame.

Usage

identify_query(data, threshold = 2)

Arguments

data

An advanced insights query dataset in the form of a data frame. If the data is not identified as a valid dataset, the function will return an error.

threshold

Debugging use only. Increase to raise the 'strictness' of the guessing algorithm. Defaults to 2.

Value

String. A diagnostic message is returned.

See Also

Other Data Validation: check_query(), extract_hr(), flag_ch_ratio(), flag_em_ratio(), flag_extreme(), flag_outlooktime(), hr_trend(), hrvar_count_all(), hrvar_count(), hrvar_trend(), identify_churn(), identify_holidayweeks(), identify_inactiveweeks(), identify_nkw(), identify_outlier(), identify_privacythreshold(), identify_shifts_wp(), identify_shifts(), identify_tenure(), remove_outliers(), standardise_pq(), subject_validate_report(), subject_validate(), track_HR_change(), validation_report()

Examples

identify_query(sq_data) # Standard query
identify_query(mt_data) # Meeting query
identify_query(em_data) # Hourly collaboration query
## Not run: 
identify_query(iris) # Will return an error
identify_query(mtcars) # Will return an error

## End(Not run)

wpa documentation built on Aug. 21, 2023, 5:11 p.m.