Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 145459

R is a free, open source programming language and software environment for statistical computing and graphics.

2 votes

Correctness of newborn feeding data visualization

nit: Please use a formatter like styler when sharing code with others. Idiosyncratic spacing is just a distraction that makes code a little harder to read. timestamp library today = c("0800", "0645", …
J_H's user avatar
  • 34.9k
3 votes

Simulating people talking to each other in a network

sequence of node visits how do we reverse and start the communication in the other direction Picking each node at random will produce artifacts, as not every node will be visited the identical numbe …
J_H's user avatar
  • 34.9k
6 votes

Custom expectations: Reuse existing `testthat` functions

documentation comments In any language I expect a public function I'm calling to have some sort of a man page, describing inputs and outputs. expect_list_contains <- function(object, val, ...) { The …
J_H's user avatar
  • 34.9k
2 votes

R function for Dynamic Ordinary Least Squares regression

Nice package, looks pretty solid. The choice of k, half the cube root, is not obvious. Please cite http://www.ssc.wisc.edu/~kwest/publications/1990/ Automatic Lag Selection eqn. 2.1 (though I still f …
J_H's user avatar
  • 34.9k
1 vote

Calculating parking and charging statistics for a car-sharing service

Right now you have nearly 300 rows per day for a given car. You'll be happier if you can identify a small number of Events that will break the day into trip segments, with fuel levels and lat/long at …
J_H's user avatar
  • 34.9k