Skip to Content
R Cookbook
book

R Cookbook

by JD Long, Paul Titer, Jee -Won Lee
May 2022
Beginner to intermediate
667 pages
16h 17m
Korean
Insight
Content preview from R Cookbook
Cookbook
117
4.10 웹에서 테이블 혹은 CSV 데이터를 읽어오기
col_types = NULL
write_csv
가 맨 앞
1
,
000
개의 행(
guess_max
로 변경 가능)을 살펴보고 각 열에 어
떤 데이터 형식을 사용할지 추측한다. 열의 형식을 지정해 주려면
col_types
자에 열 형식을 원소로 넣은 벡터를 전달하면 된다.
na = c("", "NA")
결측값 또는
NA
를 나타내는 값
comment = ""
주석이나 메타데이터로 취급하여 무시할 라인의 형식
trim_ws = TRUE
필드의 시작/끝에서 공백을 없앨 것인지 여부
skip = 0
파일의 시작에서부터 건너뛸 행의 개수
guess_max = min(1000, n_max)
열의 형식을 추측할 때 고려할 행의 개수
󺠣󽴔󻨛󻨓󻇃󺋿
현재 작업 디렉터리에 대해서는 레시피
3
.
1
을, 데이터를 파일로 저장하는 다른 방법
에 대해서는 레시피
4
.
18
을 참고하라. 텍스트 파일을 읽고 쓰는 방법에 대한 정보는
readr
비네트인
vignette(readr)
을 찾아보자.
4.10
󻯈󻪟󻗫󽴔󼘛󻱃󻋣󽴔󼬈󻰏󽴔󽴔󺠿󻱃󼗿󺹋󽴔󻱌󻪃󻫳󺋿
󻀇󻳫
웹에서
R
의 작업공간으로 직접 데이터를 읽어오고 싶다.
󼩃󺅿󼄔
readr
패키지에 있는
read_csv
read_table2
함수를 사용하면서 파일 이름 대신에
URL
을 넣는다. 이 함수들이 원격 서버에서 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

R Cookbook

R Cookbook

Paul Teetor
R Graphics Cookbook

R Graphics Cookbook

Winston Chang
R Cookbook, 2nd Edition

R Cookbook, 2nd Edition

JD Long, Paul Teetor

Publisher Resources

ISBN: 9788966262984