What should be the command if we want to get help about "apply" function
Answers
Answer:
If you want to get out of help console, type quit . We can also get the help documentation directly from the python console by passing a parameter to help() function.
Explanation:
Answer:
1 What are apply functions?
Apply functions are a family of functions in base R which allow you to repetitively perform an action on multiple chunks of data. An apply function is essentially a loop, but run faster than loops and often require less code.
The apply functions that this chapter will address are apply, lapply, sapply, vapply, tapply, and mapply. There are so many different apply functions because they are meant to operate on different types of data.
2 The apply function
First, let’s go over the basic apply function. You can use the help section to get a description of this function.
?apply
the apply function looks like this: apply(X, MARGIN, FUN).
X is an array or matrix (this is the data that you will be performing the function on)
Margin specifies whether you want to apply the function across rows (1) or columns (2)
FUN is the function you want to use