Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

R dplyr select

library(dplyr)

# Return columns by name
select(data, year, month, day)

# A tibble:
#>    year month   day
#>   <int> <int> <int>
#> 1  2013     1     1
#> 2  2013     1     1
#> 3  2013     1     1
#> 4  2013     1     1
#> 5  2013     1     1
#> 6  2013     1     1

Source by r4ds.had.co.nz #
 
PREVIOUS NEXT
Tagged: #R #dplyr #select
ADD COMMENT
Topic
Name
7+5 =