#' determine the column number that has the column name
#' @export
getcol=function(mymat,coln){
#given a data.frame mymat, determine the column number that has the column name = coln
#helpful for going between column names and actual column numbers
#example getcol(mydata,"age") would give the # of column that contains age in mydata
return(which(names(mymat)==coln))}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.