Skip to content
Prev 202073 / 398503 Next

sequence of commands in R

Manuel,

You will need to print the results you want, or return all your results as a list.  Something like:

resumen<-function(x) {
	print(apply(x,2,sd,na.rm=TRUE))
	print(summary(x))
	}

Or

resumen<-function(x) {
	return(list(apply(x,2,sd,na.rm=TRUE),
	            summary(x)))
	}

Hope this is helpful,

Dan

Daniel Nordlund
Bothell, WA  USA