"R select()"의 두 판 사이의 차이

4번째 줄: 4번째 줄:


<source lang='r' run>
<source lang='r' run>
library(dplyr, quietly=TRUE)
select(iris, starts_with("Petal"))
select(iris, starts_with("Petal"))
select(iris, ends_with("Width"))
select(iris, ends_with("Width"))
</source>
</source>
<source lang='r' run>
<source lang='r' run>
library(dplyr, quietly=TRUE)
tb <- as_tibble(iris)
tb <- as_tibble(iris)
select(tb, starts_with("Petal"))
select(tb, starts_with("Petal"))

2020년 4월 16일 (목) 00:38 판

1 개요

R select()
  • "Select/rename variables by name"
library(dplyr, quietly=TRUE)
select(iris, starts_with("Petal"))
select(iris, ends_with("Width"))
library(dplyr, quietly=TRUE)
tb <- as_tibble(iris)
select(tb, starts_with("Petal"))
select(tb, ends_with("Width"))

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}