avidaR

avidaR is an R package for working with data sets generated by the Avida digital evolution platform.

Installation

The latest and greatest version of avidaR (as well as older versions) can be installed using devtools:

install.packages('devtools')
library(devtools)
install_github('briandconnelly/avidaR')

You'll also need the stringr package:

install.packages('stringr')

Functions

You'll first need to load avidaR:

library(avidaR)

read.avida

read.avida allows you to import Avida data files directly into R. The result is a data frame. Column names for the data frame are extracted from the data file.

mydata <- read.avida('time.dat')
head(mydata)

Invalid column names are cleaned up. In the previous example, the column names were update, avida time, average generation, and num_executed?.

Reading Compressed Files

Files compressed with bzip2 or gzip are automatically decompressed when loaded:

mydata <- read.avida('resource.dat.gz')


briandconnelly/avidaR documentation built on May 13, 2019, 5:13 a.m.