R/string_2_adjacency_matrix.R

Defines functions string_2_matrix

Documented in string_2_matrix

#Function
string_2_matrix <- function(new_matrix, supplied_string, self = 0){
    result.matrix = new_matrix
  for (i in 1:length(colnames(new_matrix))){
    result.matrix[,i] = string_2_matrix_x(new_matrix, supplied_string, coord_x = i, self = self)
  }
  return(result.matrix)
}

Try the String2AdjMatrix package in your browser

Any scripts or data that you put into this service are public.

String2AdjMatrix documentation built on May 1, 2019, 8:04 p.m.