View source: R/algebraic_to_coordinates.R
algebraic_to_coordinates | R Documentation |
This function converts a square's algebraic notation (e.g., "e5") to a pair of coordinates (e.g., c(5, 5)).
algebraic_to_coordinates(square)
square |
A character string giving the algebraic notation of the square. |
A numeric vector of length 2 giving the coordinates of the square. The first element is the row number and the second element is the column number.
algebraic_to_coordinates("e5") # Returns c(5, 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.