Learn R Programming

fishRman (version 1.2.3)

df.type: Check the type of dataframe in relation to fishRman

Description

Function to check the type of dataframe in relation to fishRman. Most of the times the user will not call this function directly, but it can be useful for debug.

Usage

df.type(df)

Value

A string explaining how the input dataframe is treated by fishRman.

Arguments

df

The dataframe to check.

Examples

Run this code

dated <- c("2020-01-01", "2020-01-02")
lat <- c(40, 41)
lon <- c(12,13)
mmsi <- c("34534555", "25634555")
hours <- c(0, 5)
fishing_hours <- c(1,9)

df <- data.frame(dated, lat, lon, mmsi, hours, fishing_hours)

what.type <- df.type(df)

print(what.type)

# "GFW Fishing Effort By Vessel"

Run the code above in your browser using DataLab