read_csv()
read_csv2()
read_delim()
read_fwf()
write_csv()
write_rds()
write_feather()
read_rds()
iris
apply()
factor()
Hmisc
describe()
NA
is.na()
sum(is.na())
na.rm = TRUE
na.omit()
dplyr
select()
a
n
filter()
,
|
arrange()
rename()
distinct()
mutate()
.keep
.after
.before
transmute()
summarise()
%>%
‘.’
rbind()
bind_rows()
nycflights13
inner_join()
left_join()
right_join()
full_join()
semi_join()
anti_join()
docid
pivot_longer()
gather()
melt()
pivot_wider()
spread()
dcast()
separate()
unite()
tidyverse
as.Date()
lubridate
Date
POSIXct
stringi
grep()
grepl()
regexpr()
gregexpr()
regexec()
sub()
gsub()
stringr
str_detect()
str_extract()
str_extract_all()
str_match()
str_match_all()
str_locate()
str_locate_all()
str_replace()
str_replace_all()
str_split()
str_split_fixed()
tidyr 패키지 사용법 :
cheat_sheet : data import
cheat_sheet : data wrangling
5 tidy data 개념과 dplyr+tidyr로 데이터 다루기
tidyr 연습문제
An Introduction to reshape2
tidyr 연습문제 - 예제가 좋음 (Python의 Pandas로 처리함)