Re: [R] splitting data frame into fixed rows depending on column rep

2015-12-06 Thread Jim Lemon
Hi Ragia, Perhaps the easiest way is to split the data frame into a list by the values of v1: sdf<-split(df,df$v1) Then rename the elements of sdf for convenience: names(sdf)<-paste("v1",1:5,sep="_") Now you can extract whatever you like" sdf$v1_1$v2 [1] 3 4 8 Of course if you only want the

[R] splitting data frame into fixed rows depending on column rep

2015-12-06 Thread Ragia Ibrahim
Dear group, I have the following data frame             v1 v2  v3 v4 v5 1           1  3 1   3.5    1 2           1  4 3   3.5    1 3           1  8 3   3.5    1 4           2  9 8   2.5    1 5           2 10 9   2.5    1 6           2  6 3   1.5    1 7           3  4 3   2.0    1 8           3  

Re: [R] help using SED

2015-12-06 Thread peter dalgaard
> On 06 Dec 2015, at 04:53 , David Winsemius wrote: > >> >> On Dec 5, 2015, at 4:49 PM, Glenn Schultz wrote: >> >> All, >> >> I have not used SED in the past so I am continuing to read its documentation >> but I need some help with R >> >>

Re: [R] tcltk TK table : Is it possible to block the cell? [Question in 2003, but TK changes the interfaces functions]

2015-12-06 Thread Cleber N.Borges
thanks by the help but I do not understand how to set a tag in cell table. cleber Em 05/12/2015 18:57, peter dalgaard escreveu: On 05 Dec 2015, at 20:15 , Cleber N.Borges wrote: in 2003 [1] someone asked for: "Is it possible to" block "the cell?" but the solution

Re: [R] Dense time series

2015-12-06 Thread William Dunlap
I cannot see either your data or your picture. Does the following dataset along with your ggplot command give a similar picture? TS <- data.frame(Well=paste0("Well",rep(1:21,each=3)), LOCATION=paste0("Loc",rep(LETTERS[1:7],each=9)), Date=as.POSIXct(paste(sep="-", 2015, 10, rep(c(11,18,25),21))),

[R] metafor package

2015-12-06 Thread John Peterson
Hi Everyone, I am conducting a meta-analysis using the metafor package. I am interested in obtaining an estimate by subgroup only without showing an overall effect. This is directly from the metafor website. How would i modify this code to only show subgroup effects? Further, I want to show

Re: [R] Dense time series

2015-12-06 Thread DJ L
Hello, Thank you for the reply. I ran the code with your added code. The code itself works however I am unable to see how the graphs actually plot because the plot area is so small and it produces lots of separate graphs. What I mean by dense is that some lines plot well, then there is a group

[R] Simple DLNM in R

2015-12-06 Thread Dan Vecellio
Hello, first time poster so forgive any mistakes. I have limited familiarity with R, but am working on a project to find the relative risk of mortality due to changes in diurnal temperature range. What I am trying to do is find the relative risk of mortality at the 10th, 50th and 90th percentiles

Re: [R] tcltk TK table : Is it possible to block the cell? [Question in 2003, but TK changes the interfaces functions]

2015-12-06 Thread peter dalgaard
Well, if it was _my_ problem (and it isn't...), I'd get hold of the documentation for TkTable and figure out how you are supposed to do it with Tcl/Tk, then figure out how to do the same thing(s) from R. You should have the building blocks by now. -pd > On 06 Dec 2015, at 11:57 , Cleber

[R] choropleth packages (US)

2015-12-06 Thread Benjamin Tyner
Hi I wish to draw a basic choropleth (US, by state) and am wondering if anyone has any recommendations? I've tried the following thus far: 1. choroplethr: this works, but required installation of 30+ dependencies. I would prefer something with fewer dependencies. 2. tmap: this also seems

[R] Dense time series

2015-12-06 Thread DJ L
Hello R users! Any idea why this looks so dense? Should be line graphs. Looks fine in excel. The csv file is four columns, first date, second well number, 3 well location (ditch or interior), and then the last column is hydraulic head. Thank you! I have attached a photo and the R code I am