Skip to content

ARROW-13280: [R] Bindings for log and trig functions - #10689

Closed
thisisnic wants to merge 10 commits into
apache:masterfrom
thisisnic:ARROW-13280-log
Closed

ARROW-13280: [R] Bindings for log and trig functions#10689
thisisnic wants to merge 10 commits into
apache:masterfrom
thisisnic:ARROW-13280-log

Conversation

@thisisnic

Copy link
Copy Markdown
Member

No description provided.

@github-actions

Copy link
Copy Markdown

@thisisnic

Copy link
Copy Markdown
MemberAuthor

This PR will need rebasing off #10686 when it's merged

@lidavidm

Copy link
Copy Markdown
Member

Sorry for the delay, I've just merged #10686

@thisisnicthisisnic changed the title ARROW-13280: [R] Bindings for log and trig functions [WIP]ARROW-13280: [R] Bindings for log and trig functionsJul 14, 2021
@thisisnic

Copy link
Copy Markdown
MemberAuthor

Sorry for the delay, I've just merged #10686

All good, wasn't urgent! :)

@nealrichardsonnealrichardson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one request.

Comment threadr/R/expression.R Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that these exist, we should define the Math group generic for Arrow objects, like we have for Ops. I made https://issues.apache.org/jira/browse/ARROW-13337 for that.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, in R, log is not unary:

log <- function (x, base = exp(1))

So we should handle that correctly. If arrow doesn't support general log_baseN, (1) make sure there's a JIRA for that, and (2) map the cases that do exist (e, 10, 2, etc.) and for now error "not supported" for any other value of base.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment threadr/R/dplyr-functions.R Outdated
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@thisisnic@lidavidm@nealrichardson