d_score: d_score function

Description Usage Arguments Examples

Description

This function takes dataframe and appends the results of analyses at the left end of the original dataframe.

Usage

1
d_score(df, var, file_type = "csv")

Arguments

df

Dataframe that is not formatted, downloaded from Qualtrics.

var

Name of the column serves as unique identifier in dataset.

file_type

csv or xml

Examples

1
2
3
4
csvdata <- read_csv("data/raw_data/DOSPERT_test.csv")
csvScore <- d_score(csvdata, "uid", file_type = "csv")
xmldata <- xmlToDataFrame("data/raw_data/DOSPERT_test.xml", stringsAsFactors = F)
xmlScore <- d_score(xmldata, "uid", file_type = "xml")

decision-sciences/cds_dospert_package documentation built on May 15, 2019, 1:55 a.m.