Re: [R] return value of {....}

2023-01-10 Thread Richard O'Keefe
I am more than a little puzzled by your question. In the construct {expr1; expr2; expr3} all of the expressions expr1, expr2, and expr3 are evaluated, in that order. That's what curly braces are FOR. When you want some expressions evaluated in a specific order, that's why and when you use curly br

Re: [R] My forest plot is not fit to windows in R software

2023-01-10 Thread Fahimeh Alizadeh via R-help
Dear Prof.Thank you for your kind response. I have only used: install.packages("tidyverse") install.packages("meta") install.packages("metafor") library(tidyverse) library(meta) library(metafor)and then,forest.meta(hidemeta, layout="RevMan5", xlab="Proportion", comb.r=T, comb.f=F, xlim = c(0,1

Re: [R] My forest plot is not fit to windows in R software

2023-01-10 Thread Michael Dewey
Dear Fahimeh It would help if you also told us what package you are using as there are several which perform forest plots. I assume it is meta. Your plot is cropped on three side as far as I can see. What parameters did you give to the call of the graphics device? What happens if you use a d

Re: [R] MLE Estimation of Gamma Distribution Parameters for data with 'zeros'

2023-01-10 Thread Bert Gunter
Is this homework? This list has a no-homework policy. -- Bert On Tue, Jan 10, 2023 at 8:13 AM Nyasha wrote: > > Please how can one go about this one? I don't know how to go about it. > > [[alternative HTML version deleted]] > > __ > R-help@r-p

Re: [R] return value of {....}

2023-01-10 Thread akshay kulkarni
Dear Avi, THanks a lot..much of the "rationale" is explained ! Thanking you, Yours sincerely AKSHAY M KULKARNI From: avi.e.gr...@gmail.com Sent: Tuesday, January 10, 2023 10:23 PM To: 'akshay kulkarni' Cc: 'R help Mailing list' Subject: RE:

Re: [R] return value of {....}

2023-01-10 Thread avi.e.gross
Fair enough, Akshay. Wondering why a design was chosen is reasonable. There are languages like python that allow unpacking multiple values and it is not uncommon to return multiple things from some constructs as in this: >>> a,b,c = { 4, 5, 6 } >>> a 4 >>> b 5 >>> c 6 But that is

[R] My forest plot is not fit to windows in R software

2023-01-10 Thread Fahimeh Alizadeh via R-help
Dear Prof. My forest plot is not fit to windows in R software, I have 49 studies but forest plot only show from 9 to 42.  forest.meta(hidemeta, layout="RevMan5", xlab="Proportion", comb.r=T, comb.f=F, xlim = c(0,1), fontsize=10, digits=3) Whould you please help me to access full forest plot? Th

Re: [R] MLE Estimation of Gamma Distribution Parameters for data with 'zeros'

2023-01-10 Thread Nyasha
Please how can one go about this one? I don't know how to go about it. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the post

Re: [R] return value of {....}

2023-01-10 Thread akshay kulkarni
Dear Avi, Thanks for your reply...your exhortations are indeed justified...! But one caveat: I was not complaining about anything...just was curious of the rationale of a particular designThanks again... Thanking you, Yours sincerely, AKSHAY M KULKARNI __

Re: [R] return value of {....}

2023-01-10 Thread Valentin Petzel
Hello Akshai, I think you are confusing {...} with local({...}). This one will evaluate the expression in a separate environment, returning the last expression. {...} simply evaluates multiple expressions as one and returns the result of the last line, but it still evaluates each expression. A