> For the complete documentation index, see [llms.txt](https://jirlong.gitbook.io/r/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jirlong.gitbook.io/r/section-basic/vector.md).

# Vector

{% hint style="info" %}

#### 四項基本的資料結構 vector、data.frame、list、factor

* data.frame 幾乎等同於 list of vectors
* list很像list但可以容納多類、多層的資料
* factor相當於因素分析中的因素，指的是統計中的類別變項如性別，
* 很像vector但用起來一點都不像

#### 常見的變數、物件型態 character, numeric, and POSIX time

* 文字（character）和數字（numeric）是基本型態
* &#x20;時間是一種稍微複雜的物件型態

#### 資料的基本操作

* 初始化Creating
* 存取accessing
* 刪除deleting
* 插入inserting data of vector and data.frame
* Accessing data by index or TRUE/FALSE vector.
  {% endhint %}

## Slides and Videos

{% embed url="<https://docs.google.com/presentation/d/e/2PACX-1vRjb_W1Vo9-zD9F4FmWOiB6K4ezkF6W64OKcX7bZD6ordKvOT-6LFoGi0le-HzT2ABKudDNhr_qKt2x/pub?start=false&loop=false&delayms=3000>" %}
