Nothing
#' @title Structuring a matrix
#' @description Fixes an ID shift in the flow matrix (to bo use with \link{flowjointure} if necessary and \link{flowtabmat})
#' @param z The input flow dataset in the matrice format where the first column is filled with the ID
#' @return A flow dataset with an usable format
#' @export
#' @examples
#' library(cartograflow)
#' data(flowdata)
#'
#' dim(mat_ex) # dimension for the original matrice
#' ### 10 11 # first colum is fill with the ID
#'
#' tab <- flowstructmat(mat_ex)
#' dim(tab)
#' ## 10 10 # dimension fo the resulting matrice
flowstructmat <- function(z) {
m <- as.matrix(z[, -1])
row.names(m) <- z[, 1]
return(m)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.