scoreAalsma: A function that scores Aalsma & Fortenberry's Childhood...

Description Usage Arguments Value Examples

View source: R/scoreAalsma.R

Description

Calculates total CSAS scores based on a data frame. Users specify first column with relevant data, and function seeks out the rest automatically.

Usage

1
scoreAalsma(dat, firstq)

Arguments

dat

data frame

firstq

input character for the name of the column for the first CSAS variable (e.g., "CSAS_1")

Value

data frame with new "CSAS" vector of total scores

Examples

1
dat = scoreAalsma(dat, firstq = "CSAS_1")

jsakaluk/sexscales documentation built on Nov. 4, 2019, 3:24 p.m.