tibble
Inputting NA where there are missing values when scraping with rvest
The simplest way is to select a node that encloses both of the nodes you want for each row, then iterate over them, pulling out both of the nodes you want at once. purrr::map_df is handy for not only iterating, but even combining the results into a nice tibble: library(rvest) library(purrr) url <- “https://channel9.msdn.com/Events/useR-international-R-User-conferences/useR-International-R-User-2017-Conference?sort=status&direction=desc&page=14” page … Read more
How to make tibbles display significant digits
you can set the option pillar.sigfig options(pillar.sigfig = 1) as_tibble(iris) # # A tibble: 150 x 5 # Sepal.Length Sepal.Width Petal.Length Petal.Width Species # <dbl> <dbl> <dbl> <dbl> <fct> # 1 5. 4. 1. 0.2 setosa # 2 5. 3 1. 0.2 setosa # 3 5. 3. 1. 0.2 setosa # 4 5. 3. 2. … Read more