search for: cvd_basestudy

Displaying 2 results from an estimated 2 matches for "cvd_basestudy".

2011 Apr 28
1
Extract complete rows by group and maximum
Hi I'm trying to extract complete rows from a dataframe by group based on the maximum in a column within that group. Thus I have a dataframe: cvd_basestudy ... es_time ... _____________ study1 ... 0.3091667 study2 ... 0.3091667 study2 ... 0.2625000 study3 ... 0.3033333 study3 ... 0.2625000 __________ etc I can extract the basestudy and the max(es_time) using ddply ddply(datares_sinus_variable, .(cvd_basestudy), func...
2011 Jan 18
2
ggplot2, geom_hline and facet_grid
...which I want to do Bland-Altman style plots for each rhythm type Using ggplot2, when I use geom_hline with facet_grid I get an extra set of empty panels. I can't get it to do it with the "Diamonds" data supplied with the package so here is a (much abbreviated) example: > lvexs cvd_basestudy ecd_rhythm fixed_time variable_time 1 CBP05J02 AF 30.9000 29.4225 2 CBP05J02 AF 33.1700 32.0350 3 CBP05J02 AF 32.5700 30.2775 4 CBP05J02 AF 32.0550 33.7275 5 CBP05J02 SINUS 30.9175 28.347...