d_score: d_score function

Description Usage Arguments Examples

View source: R/d_score.R

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")

schafik/dospert documentation built on May 29, 2019, 3:26 p.m.