myApply: A simple homemade apply function

Description Usage Arguments Value

View source: R/myApply.R

Description

Changes a user supplied matrix by a user supplied function on the dimension that the user chooses with 1 being the first dimension and 2 being the seconnd It also allows user to insert ther own further parameters

Usage

1
myApply(X, MARGIN, FUN, ...)

Arguments

X

a matrix to be applied on

MARGIN

for which dimension will be applied on

FUN

the function that will change the matrix by

...

additional paramerters for the function if neccessary

Value

the results of the permutated matrix in simple array form


JWooll/Homework3 documentation built on March 19, 2018, 4:15 a.m.