Giter VIP home page Giter VIP logo

modern_r's Introduction

modern_r's People

Contributors

b-rodrigues avatar krlmlr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

modern_r's Issues

map_at() usage in the Chapter 8.3.1

Hi,

According to the book:

map_at(numbers, c(1, 3), sqrt)

will generate the following output.

## [[1]]
## [1] 2.645751
## 
## [[2]]
## [1] 8
## 
## [[3]]
## [1] 4.358899
## 
## [[4]]
## [1] 64

However, the numbers vector takes values numbers <- c(0, 5, 8, 3, 2, 1)
and the output I get is:

## [[1]]
## [1] 0
## 
## [[2]]
## [1] 5
## 
## [[3]]
## [1] 2.828427
## 
## [[4]]
## [1] 3
## 
## [[5]]
## [1] 2
## 
## [[6]]
## [1] 1

This does make sense since the square root of 0 is 0 and the square root of 8 is 2.828427.

Looking forward to your response.
Thanks,
Leyla

Wrong link

@b-rodrigues Just to let you know the link for ggplot2 extensions here links to an adult website.
Other than that, brilliant website thank you.

Typo

In the preface section, there's a command to install packages

install.packages(c("tidyverse", "rsample", "recipes", "blogdown" ,"yardstick", "parsnip", "plm", "pwt9", "checkpoint", "Ecdat", "ggthemes", "ggfortify", "margins", "janitor", "rio", "colourpicker", "glmnet", "lhs", "mrlMBO", "mlbench", "ranger"))

Did you mean "mlrMBO"? As I couldn't find the package "mrlMBO".

Thanks

everything()

`everything()` is a helper function, and there's also `starts_with()`,

everything() documentation seems thin on the ground. It perhaps means everything_else()? But there are dark allusions to non-intuitive behaviour in the presence of minus-excluded column references??

No backslash worries in Windows 10

paths in Windows use the `\` symbol whereas R uses `/` (just like on Linux or macOS).

Windows 10 RStudio seems to work just fine with UNIX-style forward slashes (/////) in file and setwd() references. It SEEMS to interpret \ as the UNIX-style escape character.

gitbash yields a terminal window for Windows 10 that understands UNIX commands ls, ln, vi, cd, mv, cp, mkdir... With / as understood in UNIX.

Briefly, what does everything() do.

`everything()` is a helper function, and there's also `starts_with()`,

everything() documentation seems thin on the ground. It perhaps means everything_else()? But there are dark allusions to non-intuitive behaviour in the presence of minus-excluded column references??

Toy Examples?

Perhaps an example such as your here-present "toy" data.frame/tibble/tribble would play well in section 2.8, where you mention data.frames for the first time. Maybe give a newbie a chance to interact with the data.frame construct.

This "toy" example has few rows or columns, so, whatever you do to/with it will entirely fit on a screen as you write about group_by(), and its dplyr associates. The larger mtcars, starwars, iris, etc, can come later after some confidence is built.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.