Brian Diggs

Portland, Oregon

I am a biostatistician working in the Department of Surgery at Oregon Health and Science University in Portland, Oregon.

13h
awarded Necromancer
2d
awarded Enlightened
Aug
27
awarded Nice Answer
Aug
26
awarded Nice Answer
Aug
25
reviewed Close R function to calculate values at different time point and plot a graph
Aug
25
reviewed Close R and Reporting connection
Aug
25
reviewed Approve suggested edit on Java using API for Arrays
Aug
18
awarded Yearling
Aug
18
awarded Yearling
Aug
12
awarded Yearling
Aug
12
awarded Yearling
Aug
12
comment How can I view the source code for a function?
The downsides of this method compared to the ones given in the accepted answer are that you need a working function call (all necessary parameters specified, acceptably); and that, in addition to the initial block of code, you also get each block at the time it is run. This is great for debugging, but not optimal for just getting the source.
Aug
9
awarded data.frame
Aug
7
comment R code style guide by Richie Cotton
This is likely an instance of fortune(128).
Aug
6
comment read.xlsx reading dates wrong if non-date in column
It is almost certainly a bug in xlxs::read.xlsx. Note that if you specify as.data.frame=FALSE to read.xlsx, the in all 4 cases (with and without the third row and with specification of "Date" or "integer"), the numerical values are 41819 or 41820. I'd file an issue with the maintainer.
Jul
24
comment ggplot2 - is there a way to override global aesthetic mappings while reusing geom layers
@daj Not without respecifying the plot. Adding a direct aes call like in the answer overwrites all of the aesthetics for all the layers. If you want finer control, then the approach given by Justin of wrapping the creation of the plot in a function would be more appropriate.
Jul
16
answered ggplot bar chart with two dataframes
Jul
15
answered Disable plot display in R
Jul
11
awarded Good Answer
Jul
10
revised preserve old (pre 3.1.0) type.convert behavior
3.1.1 released
1 2 3 4 5