R/rowMaxs.R

Defines functions rowMaxs colMaxs rowMins colMins

Documented in colMaxs colMins rowMaxs rowMins

rowMaxs <- function(x)
{
	if(class(x) == "matrix")
	{
		.Call(.C_rowMaxs, x)
	}
	else
	{
		.Call(.C_rowMaxs, as.matrix(x))
	}
}

colMaxs <- function(x)
{
	if(class(x) == "matrix")
	{
		.Call(.C_colMaxs, x)
	}
	else
	{
		.Call(.C_colMaxs, as.matrix(x))
	}
}


rowMins <- function(x)
{
	if(class(x) == "matrix")
	{
		.Call(.C_rowMins, x)
	}
	else
	{
		.Call(.C_rowMins, as.matrix(x))
	}
}

colMins <- function(x)
{
	if(class(x) == "matrix")
	{
		.Call(.C_colMins, x)
	}
	else
	{
		.Call(.C_colMins, as.matrix(x))
	}
}

Try the rpgm package in your browser

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

rpgm documentation built on March 18, 2018, 2:24 p.m.