Re: [R] grep

2024-08-01 Thread Steven Yen
Thanks! On 8/2/2024 12:28 PM, Rui Barradas wrote: Às 02:10 de 02/08/2024, Steven Yen escreveu: Good Morning. Below I like statement like j<-grep(".r\\b",colnames(mydata),value=TRUE); j with the \\b option which I read long time ago which Ive found useful. Are there more or these options, oth

Re: [R] grep

2024-08-01 Thread Rui Barradas
Às 02:10 de 02/08/2024, Steven Yen escreveu: Good Morning. Below I like statement like j<-grep(".r\\b",colnames(mydata),value=TRUE); j with the \\b option which I read long time ago which Ive found useful. Are there more or these options, other than ? grep? Thanks. dstat is just my own descri

Re: [R] grep

2024-08-01 Thread Iris Simmons
You can find more by reading through ?regex as well as Perl documentation (which you can find online). On Thu, Aug 1, 2024, 21:11 Steven Yen wrote: > Good Morning. Below I like statement like > > j<-grep(".r\\b",colnames(mydata),value=TRUE); j > > with the \\b option which I read long time ago w

[R] grep

2024-08-01 Thread Steven Yen
Good Morning. Below I like statement like j<-grep(".r\\b",colnames(mydata),value=TRUE); j with the \\b option which I read long time ago which Ive found useful. Are there more or these options, other than ? grep? Thanks. dstat is just my own descriptive routine. > x  [1] "age"  "sleep

Re: [R] R facets including two kinds of charts

2024-08-01 Thread phil
Thank you. That approach could work and I might use it, but a complication is that the 100 facets must be in a specified order and that order mixes charts of type A and B/C in an unsystematic way. I suppose I could write two functions, use them to create all the plots and then join them togethe

Re: [R] R facets including two kinds of charts

2024-08-01 Thread Rui Barradas
Hello, I hadn't understood the problem, sorry. The problem are the bar plots, ggplot is plotting one in the "A" facet. And since there is nothing to plot, the bars start at 0. A hack is to plot facet "A" separately and then combine the plots with one of several ways to combine ggplot plots. B

Re: [R] R facets including two kinds of charts

2024-08-01 Thread phil
Thanks for the suggestion, but this does not give me what I want. Each chart needs its own unique scale on the y-axis. Philip On 2024-08-01 15:08, Rui Barradas wrote: Às 19:01 de 01/08/2024, p...@philipsmith.ca escreveu: I am asking for help with a ggplot2 program that has facets. There are

Re: [R] R facets including two kinds of charts

2024-08-01 Thread Rui Barradas
Às 19:01 de 01/08/2024, p...@philipsmith.ca escreveu: I am asking for help with a ggplot2 program that has facets. There are actually 100 facets in my program, but in the example below I have limited the number to 3. There are two kinds of charts among the facets. One kind is a simple line plot

[R] R facets including two kinds of charts

2024-08-01 Thread phil
I am asking for help with a ggplot2 program that has facets. There are actually 100 facets in my program, but in the example below I have limited the number to 3. There are two kinds of charts among the facets. One kind is a simple line plot with all of the y-values greater than zero. The facet

Re: [R] Difference between stats.steps() and MuMIn.dredge() to select best fit model

2024-08-01 Thread Ivan Krylov via R-help
В Wed, 31 Jul 2024 11:56:55 + c.bu...@posteo.jp пишет: > step() explore the model space with a step wise approach. > And dredge() try out all possible combinations of the variables. > > But isn't that the same? I might have a mental block on this. > > Which model (formula) would dredge() "tes

[R] Difference between stats.steps() and MuMIn.dredge() to select best fit model

2024-08-01 Thread c . buhtz
Hello, I try to understand the different approaches how to select the best fit regression model. This is not about AIC, BIC, etc. It is about the difference between the steps() function (in stats package) and the dredge() function (in MuMIn) package. I see several examples on the internet. st