FreelistTable.freq: FreeListTable._______

FreeListTable.freqR Documentation

FreeListTable._______

Description

This is a collection of helper functions for the function FreeListTable, that determine the relationship between a particular subject, and a particular code. For example, FreeListTable.freq counts how often an individual has responded with the specified Code. They are not intended for individual use.

Usage

FreeListTable.freq(mydata, CODE = "CODE", Salience = "Salience", Subj = "Subj", subjNum, CODEnum)

Arguments

mydata

Your data, as a data frame, with rows for each response gathered. For each response, you are expected to have the CODE, salience and Subj.

CODE

The Column of "mydata" that the CODE of the response can be found in.

Salience

The column of "mydata" that the calculated Salience is to be found in. Note that this will have been determined earlier using "CalculateSalience"

Subj

The column of "mydata" in which the subject number can be found.

subjNum

The subject number of interest.

CODEnum

The code you desire information about.

Value

A number, representing either: The presence/absence of the given code in the individuals responses (if "presence" was used), the total number of times the code was given in response (for "freq") The total Salience of a given code (summed over all responses with that code) The Maximum Salience (effectively the Salience levels when the Code was first used) or the highest rank the code recieved for the given individual.

Note

If you are using these functions directly yourself, something has probably gone wrong.

Author(s)

Alastair Jamieson Lane. <aja107@math.ubc.ca>

Benjamin Grant Purzycki. <bgpurzycki@alumni.ubc.ca>

Examples

data(FruitList)
test<- FruitList
FreeListTable.freq(test,subjNum=7,CODEnum="apple") 

alastair-JL/AnthroTools documentation built on March 7, 2024, 11:59 p.m.