<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 列表 ### 利用 list 建立列表 列表跟向量很相似,但最大的不同在於列表可以包含不同資料屬性的資料。 ~~~ > x <- list(a = 1, b = TRUE, c = "test", d = c(1, 2, 3)) > x $a [1] 1 $b [1] TRUE $c [1] "test" $d [1] 1 2 3 ~~~ ### 透過指標與名稱提取資料 ~~~ > x <- list(a = 1, b = TRUE, c = "test", d = c(1, 2, 3)) > x[1] $a [1] 1 > x[[1]] [1] 1 > x$b # 是利用 % 加上名稱提取資料 [1] TRUE > x[[4]][1] # x[[4]] 取出第四個值,因為第四個值是向量,所以可以在取一次指標,取出向量的元素值。 [1] 1 ~~~ ### 基本相關函數 - as.list:建立列表 - is.list:判斷是否為列表 - attributes:查看所有元素的名稱,names 也有相同功能。 ~~~ > x <- list(a = 1, b = TRUE, c = "test", d = c(1, 2, 3)) > as.list(c(1,2,3)) [[1]] [1] 1 [[2]] [1] 2 [[3]] [1] 3 > is.list(x) [1] TRUE > attributes(x) $names [1] "a" "b" "c" "d" > names(x) [1] "a" "b" "c" "d" ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看