Skip to content

The expressiveness of the API w.r.t. SQL #13

Answered by snunez1
xor-xor asked this question in Q&A
Discussion options

You must be logged in to vote

Hi xor-xor,

I'm glad you asked, as this is something I've been thinking about for the last few months. I have become frustrated with both the current sqldf and using the data-frame API. So, I'm going to give a somewhat longer answer than is strictly necessary because it will give you some background, but also serve as a record of the thinking that went into the future design. I'm glad you open this as a discussion, because I would like to hear what others think.

First, let me answer your basic question. You can slice multiple columns with the slice function (which can also be accessed with select). This will return a data frame of Cartesian selections. For example, using mtcars, we can say:

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@xor-xor
Comment options

@snunez1
Comment options

@xor-xor
Comment options

Answer selected by xor-xor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants