convert_VLE {ouladFormat}R Documentation

Converts the VLE data format

Description

Converts the data format of the Virtual Learning Environment (VLE) data set from total view counts to binary, standardised or logarithmic view count data.

Usage

convert_VLE(
  data,
  conversion = c("binary", "standardise1", "standardise2", "logarithmic")
)

Arguments

data

VLE data set to be converted. The VLE data set should consist of student_id as the first column followed by total view counts per time period/activity in each of the remaining columns.

conversion

type of conversion to implement, either "binary", "standardise1" (standardises each variable individually by using the scale function), "standardise2" (performs global standardisation of the data set), or "logarithmic" (where 1 is added first to the data).

Value

Two tibbles are returned: 1) original_data, and 2) converted_data.

original_data tibble

A tibble of the original data inputted into the function.

converted_data tibble

A tibble where all columns, except the first column, have been changed from total view counts to either binary, standardised, globally standardised or logarithmic view count data.

See Also

dataset_VLE_time() or dataset_VLE_activity() for obtaining the VLE data set needed for the input data.

Examples

VLE_data = dataset_VLE_activity(example_data = TRUE)$resource_data
convert_VLE(VLE_data, conversion = "standardise1")

VLE_data = dataset_VLE_time(example_data = TRUE)$weekly_data
convert_VLE(VLE_data, conversion = "logarithmic")

[Package ouladFormat version 1.1.2 Index]