R - match(): identify elements in vector

26 Aug 2017

used within other functions to specify a command to be run when exiting the parent function (e.g. using to restore settings for plotting parameters)

scatterBox <- function(x, y, ...){
   opar <- par("mfrow", "mar")
   on.exit(par(opar))
	...
}

viewed on http://www.rfunction.com

[ R  function  logic  vector  ]