Get the App
SLTechnology News&Howtos  ›  Development  › 

How to customize the functions of R language

Shulou Source: shulou.com Published: 2022-06-02 01:13:00 11月17日 Update

This article introduces the knowledge of "how to customize the functions of R language". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

A function is a set of statements that are grouped together to perform specific tasks. R language has a large number of built-in functions, users can create their own functions. In R language, a function is an object, so the R language interpreter can pass control to the function and the parameters needed by the function to complete the action. This function performs its tasks in turn and returns control to the interpreter and any results that can be stored in other objects.

Function definition

Use keyword functions to create functions in the R language. The basic syntax of the R language function definition is as follows:

Function_name

Tags: Function parameter language result code name user faceted object different task content actual more knowledge program interpreter statement order storage Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL OPPO Reno Linux macOS NVidia