#' @export
FreeListTable.MaxSal <-
function(mydata,CODE="CODE",Order="Order",Salience="Salience", Subj="Subj",subjNum,CODEnum){
if(any(mydata[,Subj]==subjNum & mydata[,CODE]==CODEnum) ){
ret<- max(mydata[which(mydata[,Subj]==subjNum & mydata[,CODE]==CODEnum),Salience])
return(ret)
}else{
return(0)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.