R/FGFixDimnames.R

Defines functions FGFixDimnames

FGFixDimnames <-
function(x){
        if (is.null(rownames(x)))
        {   rownames(x) <- 1:dim(x)[1]
            warning("In barplot, missing row names were generated",
                call. = FALSE, immediate. = TRUE)
        }
        if (is.null(colnames(x)))
        {   colnames(x) <- 1:dim(x)[2]
            warning("In barplot, missing column names were generated",
                call. = FALSE, immediate. = TRUE)
        }
        return(x)
    }   # END OF FUNCTION FixDimnames
RobCheshire-NOAA/FishGraph documentation built on Aug. 14, 2024, 10:15 a.m.