Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Zelazny7
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
Zelazny7
6y ago
fraud detection
2.
▲
by
Zelazny7
6y ago
Have you figured out a way to add columns to DuckDB from R vectors? I'm not sure this is possible yet without using inefficient insert operations. Ideally, I'd like to pull in some columns from the DB, generate a new column vector
3.
▲
by
Zelazny7
7y ago
when indexing you can always pass `drop=FALSE` to prevent returning a vector. It will always return a matrix or data.frame.
4.
▲
by
Zelazny7
7y ago
Base R is fine. I would much rather not include the tidyverse and all of its transitive dependencies.
5.
▲
by
Zelazny7
7y ago
options(error=recover)
6.
▲
by
Zelazny7
7y ago
Yeah, that's a valid point. And it took me a couple years to internalize these differences -- mostly by being burned on numerous occasions. Base R has a lot of idiosyncrasies and they have to be memorized, unfortunately. I develop R pa
7.
▲
by
Zelazny7
7y ago
I use a simply device to keep these straight: - (l)apply: List apply always returns a list - (s)apply: simplify apply tries to return simplified result - (v)apply: verify apply checks the return type conforms to user supplied example - (m)a