Learn R Programming

FlywayNet (version 0.1.0)

read_migration: Read a migration structure in a text file.

Description

Read a migration structure in a text file.

Usage

read_migration(file_name)

Arguments

file_name

A file name.

Value

A migration structure or NULL if file does not exist.

Examples

Run this code
# NOT RUN {
migr <- generate_toy_migration()
write_migration( migr, "toy_migration.txt")
read_migration("toy_migration.txt")
unlink("toy_migration.txt") # delete the file to pass package check
# }

Run the code above in your browser using DataLab