butter: The butter function takes in a dataframe with 'words' and...

Description Usage Arguments Value Examples

View source: R/butter.R View source: R/butter.retention.R

Description

The butter function takes in a dataframe with 'words' and 'activation' columns, and calls the spread function for a specific number of times to simulate the spread of activation of a given initial activation space (specified in start_time) over time.

Usage

1
butter(start_run, retention = 0.5, network = gc.net, time = 10)

Arguments

start_run

A non-empty dataframe with 'words' and 'activation' columns. Must be specified.

retention

Proportion of activation that remains in the node, ranges from 0 to 1. Default is 0.5.

network

Network where the spreading occurs. Must be specified.

time

Number of time steps to run spread function for. Default is 10.

Value

A compiled dataframe with 'words', 'activation' and 'time' columns showing the spread of activation in the network over time.

Examples

1
See Vignette for examples.

csqsiew/samr documentation built on May 28, 2019, 7:49 p.m.