Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use subscript and subset of R language Vector

Shulou Source: shulou.com Published: 2022-06-01 08:20:46 10月26日 Update

This article will explain in detail how to use the subscript and subset of R language vector. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

1. Positive integer subscript

First define an x, then for the vector x, followed by square brackets and subscripts to access the elements and subsets of the vector, such as:

Define an x:

X

Tags: Element vector subscript result subset integer function character missing logic program Liu Ying Li Ming different variable string length character type position practice Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Docker OPPO Reno Microsoft Shulou Information