Learn R Programming

rfishbase (version 0.2-2)

clean_data: clean the fish.base data into pure ASCII

Description

clean the fish.base data into pure ASCII

Usage

clean_data(fish.data)

Arguments

a
list item with fishbase data

Value

  • the item scrubbed of non-ASCII characters

Examples

Run this code
updateCache()  # Update the entire database, takes hour or so
 readCache(".") # Read in the new data
 fish.data <- clean_data(fish.data) # clean the new data of non-ascii
 save(fish.data, "data/fishbase.rda") # Save over the old data
 tools:::resaveRdaFiles("data/fishbase.rda") # Compress the data file
 # Update documentation of the data in R/fishbase.R

Run the code above in your browser using DataLab