Get started
Random walk in data frames
Collection of methods for producing random walks in two-dimensional space outputting position coordinates in data frames, including alternatives for grid and non-grid space. In R, it uses tidyverse "tibble" to construct the data frames that store trajectories.
2
contributors
Description

Code and demonstration in Rmarkdown
See full list of documentation resources in documentation.
Inputs
| Name | Type | Description |
|---|---|---|
| initialX, initialY | float (numeric) | initial position x and y coordinates. |
Outputs
| Name | Type | Description |
|---|---|---|
| trajectory | data frame | A dataframe (tibble in R) with three columns holding numeric variables (named "steps", "X", and "Y") where each row correspond to the index and xy coordinates of a step in a random walk. |
Keywords
No keywords availableLicense
Language
R
Modelling
agent behaviour (self)
Module type
Algorithm
Programming
Functional
Nondeterministic
Subject
random walk
Contributors
JG
Jose M. Galan
Author, Copyright Holder, Creator
AA
Andreas Angourakis
Contributor