Share r source code .internal

## r mã nguồn:. Biến đổi

Hàm `.Internal` trong r được sử dụng để truy cập các hàm và biến bên trong.Nó không được sử dụng để sử dụng bởi người dùng R thông thường và chỉ nên được sử dụng bởi các lập trình viên R có kinh nghiệm, những người biết họ đang làm gì.

Hàm `.Inalal` có thể được sử dụng để gọi các chức năng không được xuất từ các gói R.Điều này có thể hữu ích cho việc gỡ lỗi hoặc truy cập các chức năng không dành cho sử dụng công cộng.

Hàm `.Inalal` cũng có thể được sử dụng để truy cập các biến không được xuất từ các gói R.Điều này có thể hữu ích cho việc đọc hoặc ghi dữ liệu không nhằm mục đích truy cập bởi người dùng R thông thường.

**Cách sử dụng**

Hàm `.Internal` có một hoặc nhiều đối số.Đối số đầu tiên là tên của hàm hoặc biến mà bạn muốn truy cập.Các đối số còn lại là các đối số mà bạn muốn chuyển đến hàm hoặc biến.

** Ví dụ **

Ví dụ sau đây gọi hàm `sum ()` bằng hàm `.Inalal`:

`` `
SUM <- .INTERNAL (SUM)
tổng (1, 2, 3)
`` `

Ví dụ sau đây truy cập vào biến `pi` bằng cách sử dụng hàm` .Inalal`:

`` `
pi <- .Inal (pi)
số Pi
`` `

** Cảnh báo **

Hàm `.Inalal` chỉ nên được sử dụng bởi các lập trình viên r có kinh nghiệm, những người biết những gì họ đang làm.Nó không được sử dụng để sử dụng bởi người dùng R thông thường.

Hàm `.Inalal` có thể nguy hiểm nếu được sử dụng không chính xác.Nó có thể truy cập các chức năng và biến không dành cho sử dụng công cộng và nó có thể gây ra lỗi nếu được sử dụng không chính xác.

**Người giới thiệu**

* [Tài liệu r:
* [Stack Overflow: Sự khác biệt giữa .Inalal () và .primitive ()?] (How to determine if a parameter has been "posted" or "geted" from Java?)

## hashtags

* #R
* #rprogramming
* #rstats
* #khoa học dữ liệu
* #Machinelearning
=======================================
## R source code: .Internal

The `.Internal` function in R is used to access internal functions and variables. It is not intended for use by ordinary R users, and should only be used by experienced R programmers who know what they are doing.

The `.Internal` function can be used to call functions that are not exported from R packages. This can be useful for debugging or for accessing functions that are not intended for public use.

The `.Internal` function can also be used to access variables that are not exported from R packages. This can be useful for reading or writing data that is not intended to be accessed by ordinary R users.

**Usage**

The `.Internal` function takes one or more arguments. The first argument is the name of the function or variable that you want to access. The remaining arguments are the arguments that you want to pass to the function or variable.

**Examples**

The following example calls the `sum()` function using the `.Internal` function:

```
sum <- .Internal(sum)
sum(1, 2, 3)
```

The following example accesses the `pi` variable using the `.Internal` function:

```
pi <- .Internal(pi)
pi
```

**Warnings**

The `.Internal` function should only be used by experienced R programmers who know what they are doing. It is not intended for use by ordinary R users.

The `.Internal` function can be dangerous if used incorrectly. It can access functions and variables that are not intended for public use, and it can cause errors if used incorrectly.

**References**

* [R Documentation: .Internal](https://www.rdocumentation.org/packages/base/versions/3.6.3/topics/.Internal)
* [Stack Overflow: What is the difference between .Internal() and .Primitive()?](https://stackoverflow.com/questions/1009856/what-is-the-difference-between-internal-and-primitive)

## Hashtags

* #R
* #rprogramming
* #rstats
* #datascience
* #Machinelearning
 
Join Telegram ToolsKiemTrieuDoGroup
Back
Top