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

What Random walk in data frames can do for you

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.

Inputs

NameTypeDescription
initialX, initialYfloat (numeric)initial position x and y coordinates.

Outputs

NameTypeDescription
trajectorydata frameA 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.
Language
  • R
Modelling
  • agent behaviour (self)
Module type
  • Algorithm
Programming
  • Functional
  • Nondeterministic
Subject
  • random walk
Keywords
No keywords available
License
</>Source code

Contributors

JG
Jose M. Galan

Member of community

NASSA