Brian Diggs

Portland, Oregon

I am a biostatistician, data analyst, and theoretical physicist in the Portland, Oregon area.

2d
awarded Informed
Feb
22
awarded Enlightened
Feb
22
awarded Nice Answer
Feb
15
comment Hmisc installation in R 3.1.2
The first warning needs to be resolved first. R was not able to access the CRAN mirror, and so nothing could proceed from there.
Feb
15
revised Hmisc installation in R 3.1.2
Formatting
Feb
15
comment Paste multiple columns together in R
@roschu Either will work. Indexing a data.frame with a single character vector will be a column indexing, despite the first argument usually being the row index.
Feb
10
awarded Good Answer
Feb
4
comment Add legend to ggplot2 line plot
@DaveRGP Thanks for that information. I've added it to my answer.
Feb
4
revised Add legend to ggplot2 line plot
Updated answer based on @DaveRGP's comments; transitioned from deprecated opts to labs/theme
Feb
4
comment grep in R with a list of patterns
@user1987097 It should work the same way, with or without any other regex operators. Did you have a specific example this didn't work for?
Jan
25
awarded Necromancer
Jan
25
awarded Popular Question
Jan
23
answered Each xtable produced in R-loops should have \begin{table}..\end{table} environment in Sweave
Jan
20
awarded Enlightened
Jan
20
awarded Nice Answer
Jan
18
revised How to get a reversed, log10 scale in ggplot2?
Explicit inclusion of library("scales")
Jan
18
comment How to get a reversed, log10 scale in ggplot2?
@Richard I just checked it and it works, but the scales package must be attached to the search path (library("scales")). That is not clear in the answer (and may not have been necessary at the time). Updating.
Jan
12
comment How to write unit tests for suggested packages?
This would only work with some setup ahead of time, and would fail on a standard installation (so should probably be used in conjunction with skip_on_cran), but you can put the suggested packages in a separate library and as part of the test setup make sure that library is/is not on the search path to test the two different cases.
Jan
12
answered Switch statement matching any of a set of cases
Jan
12
awarded Revival
1 2 3 4 5