R/getResponse.R

Defines functions getResponse

getResponse <- function(formula) {
  tt <- terms(formula)
  vars <- as.character(attr(tt, "variables"))[-1] 
  response <- attr(tt, "response")
  vars[response] 
}

Try the GWRM package in your browser

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

GWRM documentation built on July 26, 2021, 5:09 p.m.