Re: [R] Question about Date Object and time zones

2024-09-25 Thread Kimmo Elo
Hi, I might have misunderstood your point, but why should a Date object store a timezone, since timezone is an attribute of time, not date? Your tz-examples force R to present a timezone, resulting - this is my assumption - to default (=UTC) as there is no other information available. Best, Ki

Re: [R] Question about Date Object and time zones

2024-09-25 Thread Ivan Krylov via R-help
24 сентября 2024 г. 17:10:13 GMT+03:00, Luca Brinkmann via R-help пишет: > My current > understanding is, that a Date object does only save the days from the > origin and no more information about timezones or other information > (please correct me if I am wrong). You are correct. > the date o

Re: [R] Question regarding reservoir volume and water level

2024-04-10 Thread javad bayat
;>> solution, such as in places like California where they had a tad more > rain > >>> than usual and some reservoirs may overflow. Someone else provided what > >>> sounds like a mathematical algorithm but my guess is what is needed > here is > >>> per

Re: [R] Question regarding reservoir volume and water level

2024-04-09 Thread David Stevens via R-help
mate way to calculate >>> incremental volumes for each horizontal "slice" and keep adding or >>> subtracting them till you reach a target and then read off another variable >>> at that point such as depth. >>> >>> Some care must be taken as wate

Re: [R] Question regarding reservoir volume and water level

2024-04-09 Thread peter dalgaard
vel has to be relative to something and >> many natural reservoirs have no unique bottom level. Some water may also be >> stored underground and to the side and pour in if the level lowers or can >> be >> used to escape if the level rises. >> >> >> -O

Re: [R] Question regarding reservoir volume and water level

2024-04-07 Thread javad bayat
he side and pour in if the level lowers or can > be > used to escape if the level rises. > > > -Original Message- > From: R-help On Behalf Of Sorkin, John > Sent: Sunday, April 7, 2024 3:08 PM > To: Rui Barradas ; javad bayat >; > R-help > Subject: Re: [

Re: [R] Question regarding reservoir volume and water level

2024-04-07 Thread avi.e.gross
-- From: R-help On Behalf Of Sorkin, John Sent: Sunday, April 7, 2024 3:08 PM To: Rui Barradas ; javad bayat ; R-help Subject: Re: [R] Question regarding reservoir volume and water level Aside from the fact that the original question might well be a class exercise (or homework), the question is un

Re: [R] Question regarding reservoir volume and water level

2024-04-07 Thread avi.e.gross
p@r-project.org; javad bayat ; R-help Subject: Re: [R] Question regarding reservoir volume and water level Homework? -- Sent from my Android device with K-9 Mail. Please excuse my brevity. On April 7, 2024 8:27:18 AM EDT, javad bayat wrote: >Dear all; >I have a question about the water l

Re: [R] Question regarding reservoir volume and water level

2024-04-07 Thread Sorkin, John
Gerontology and Paliative Care, 10 North Greene Street GRECC (BT/18/GR) Baltimore, MD 21201-1524 Cell phone 443-418-5382 From: R-help on behalf of Rui Barradas Sent: Sunday, April 7, 2024 10:53 AM To: javad bayat; R-help Subject: Re: [R] Question

Re: [R] Question regarding reservoir volume and water level

2024-04-07 Thread Rui Barradas
Às 13:27 de 07/04/2024, javad bayat escreveu: Dear all; I have a question about the water level of a reservoir, when the volume changed or doubled. There is a DEM file with the highest elevation 1267 m. The lowest elevation is 1230 m. The current volume of the reservoir is 7,000,000 m3 at 1240 m.

Re: [R] Question regarding reservoir volume and water level

2024-04-07 Thread Chris Ryan via R-help
Homework? -- Sent from my Android device with K-9 Mail. Please excuse my brevity. On April 7, 2024 8:27:18 AM EDT, javad bayat wrote: >Dear all; >I have a question about the water level of a reservoir, when the volume >changed or doubled. >There is a DEM file with the highest elevation 1267 m. T

Re: [R] Question about R software and output

2023-10-03 Thread Richard O'Keefe
R is open source software, available from CRAN servers, but also packaged for various Linux distributions. On this machine, running Ubuntu, R was installed using the 'apt' package manager. R is a complete programming language with built-in support for reading and writing over the network. Packag

Re: [R] Question about R software and output

2023-10-03 Thread CALUM POLWART
Charity There is OFTEN confusion what we mean when we say "R". R is effectively a single bit of software with a ton of other bits of software as optional extras. You might think of some of those optional extras like apps on a phone. You'd say you have a phone when you can open the box and power

Re: [R] Question about R software and output

2023-10-03 Thread Michael Dewey
Dear Charity Since your organisation is a member of King's Health Partners you might like to ask colleagues in KCL for local support. Michael On 02/10/2023 08:48, Ferguson Charity (CEMINFERGUSON) wrote: To whom it may concern, My understanding is that the R software is downloaded from a C

Re: [R] Question about R software and output

2023-10-03 Thread avi.e.gross
Charity, As some of the answers I have seen show, your question is not clear. You need to be clear on what you mean about R software and other concepts before an answer makes sense. The Base version of R may come on your computer already but likely has been installed from some external source, o

Re: [R] Question about R software and output

2023-10-03 Thread Ebert,Timothy Aaron
I would answer "local files only," but with sufficient motive it is possible for some people to abuse a system. Base R does not download any of your data. The packages that I know about do not download data. You can add a layer of protection by only downloading directly from the source rather th

Re: [R] Question about R software and output

2023-10-03 Thread Bert Gunter
I am pretty sure you'll get more replies than mine, so just consider this as part of the story. Your understanding is confused/flawed. 1. R can be downloaded from hundreds/thousands of software repositories, not just CRAN. 2. R can read/upload data in hundreds of different formats, not just Exce

Re: [R] Question about R software and output

2023-10-03 Thread Ivan Krylov
В Mon, 2 Oct 2023 07:48:36 + "Ferguson Charity (CEMINFERGUSON)" пишет: > My understanding is that the R software is downloaded from a CRAN > network This is mostly true. (There are other ways of installing R, but it is most frequently downloaded from a CRAN mirror.) > and data is imported i

Re: [R] Question about R software and output

2023-10-03 Thread Ben Bolker
It's conceivable that functions in a contributed package would communicate/transmit or receive data from a remote server, but base R does nothing like that (unless you explicitly ask it to). cheers Ben Bolker On 2023-10-02 3:48 a.m., Ferguson Charity (CEMINFERGUSON) wrote: To whom it

Re: [R] question about update()

2023-05-04 Thread Adelchi Azzalini via R-help
Hi, Berwin, good to hear from you, and thanks for the detailed comments and suggestion. Actually, my current experimental code works in the way that you suggest, calling directly lm.fit and glm.fit. What I am trying to develop is an “improved” version of the code for distribution to other peop

Re: [R] question about update()

2023-05-04 Thread Berwin A Turlach
G'day Adelchi, hope all is well with you. On Thu, 4 May 2023 10:34:00 +0200 Adelchi Azzalini via R-help wrote: > Thanks, Duncan. What you indicate is surely the ideal route. > Unfortunately, in my case this is not feasible, because the > construction of xf and the update call are within an iter

Re: [R] question about update()

2023-05-04 Thread Duncan Murdoch
On 04/05/2023 4:34 a.m., Adelchi Azzalini wrote: On 4 May 2023, at 10:26, Duncan Murdoch wrote: On 04/05/2023 4:05 a.m., Adelchi Azzalini via R-help wrote: Hi. There must be something about the use of update() which I do not grasp, as the next exercise indicates. Suppose that obj is an obje

Re: [R] question about update()

2023-05-04 Thread Adelchi Azzalini via R-help
> On 4 May 2023, at 10:26, Duncan Murdoch wrote: > > On 04/05/2023 4:05 a.m., Adelchi Azzalini via R-help wrote: >> Hi. There must be something about the use of update() which I do not grasp, >> as the next exercise indicates. >> Suppose that obj is an object returned by a call to lm() or glm(

Re: [R] Question about implementing statistical test in R

2023-05-03 Thread Ebert,Timothy Aaron
Start with defining your dependent variable and independent variable(s). As an equation like y equals some function of x, the y is the dependent variable. It is often continuous, but does not have to be. If your continuous variable is the dependent variable and you have one categorical independ

Re: [R] Question about italics in legendg() - plotrix

2023-02-14 Thread Jim Lemon
Hi Nicole, plotrix is intended to be modular, that is, it builds plots step by step. This makes it easier to understand code that you haven't written or haven't seen for a while. Here is an example showing how to change the font using par(): library(plotrix) plot(0,type="n",xlim=c(0,1),ylim=c(-1,0

Re: [R] question

2023-01-31 Thread Carolyn J Miller via R-help
Very true, Carolyn J. Miller M.S. Student, Ecology SUNY-ESF, Environmental Biology From: Bert Gunter Sent: Tuesday, January 31, 2023 10:46 AM To: Carolyn J Miller Cc: Boris Steipe ; r-help@r-project.org Subject: Re: [R] question "The combination of

Re: [R] question

2023-01-31 Thread Bert Gunter
gt; > > ____________ > From: Boris Steipe > Sent: Tuesday, January 31, 2023 10:16 AM > To: Carolyn J Miller > Cc: r-help@r-project.org > Subject: Re: [R] question > > Perhaps, rather than looking to compress your observations into a single > number

Re: [R] question

2023-01-31 Thread Carolyn J Miller via R-help
Cc: r-help@r-project.org Subject: Re: [R] question Perhaps, rather than looking to compress your observations into a single number, you could simply visualize what you observed: use a boxplot to show the March and December observations, and overlay the three animals that were recaptured as ind

Re: [R] question

2023-01-31 Thread Boris Steipe
Perhaps, rather than looking to compress your observations into a single number, you could simply visualize what you observed: use a boxplot to show the March and December observations, and overlay the three animals that were recaptured as individual points, connected with a line. Feel free to

Re: [R] question

2023-01-31 Thread Carolyn J Miller via R-help
Thank you! Carolyn J. Miller M.S. Student, Ecology SUNY-ESF, Environmental Biology From: Ebert,Timothy Aaron Sent: Tuesday, January 31, 2023 9:50 AM To: Carolyn J Miller ; PIKAL Petr ; r-help@r-project.org Subject: RE: question As indicated here: https://ww

Re: [R] question

2023-01-31 Thread Ebert,Timothy Aaron
As indicated here: https://www.geeksforgeeks.org/compute-the-correlation-coefficient-value-between-two-vectors-in-r-programming-cor-function/ The cor() function needs two vectors. The only way that works is if you are looking at the correlation between "Month" and "Cort." If you interested in the

Re: [R] question

2023-01-31 Thread Carolyn J Miller via R-help
Hi Timothy, Here's some example data that might help to demonstrate how the data currently looks. AnimalIDMonth Cort 1 12 0.00591 1 3 0.00583 2 3 0.005722 3 3 0.005838 4 3 0.005873 4 12 0.0059 5 3 0.00572

Re: [R] question

2023-01-30 Thread PIKAL Petr
Hallo Carolyn >From what you describe you cannot calculate correlations. You stated that you have two sets of data, one for December and one for March and that rows in one set is not related to the rows in another set and even persons tested in both months do not have their values on the same row

Re: [R] question

2023-01-30 Thread Ebert,Timothy Aaron
Can you please show us a small sample of your data? The first 5 or 10 lines should be good enough. Tim -Original Message- From: R-help On Behalf Of Carolyn J Miller via R-help Sent: Monday, January 30, 2023 1:16 PM To: r-help@r-project.org Subject: [R] question [External Email] Hi guy

Re: [R] Question about Line Ending Choice

2022-09-29 Thread Stephen H. Dawson, DSL via R-help
get==�Windows�) eol <- c(CR,LF) else if (target %in% c(�Unix�,�Mac�)) eol <- LF else if �. else stop(�Unexpected target.�) write.table(eol=eol, �.) Regards, Jorgen Harmse. Message: 7 Date: Tue, 27 Sep 2022 11:35:54 -0400 From: "Stephen H. Dawson, DSL" To: Bert Gunter

Re: [R] Question about Line Ending Choice

2022-09-29 Thread Stephen H. Dawson, DSL via R-help
Hi Enrico, You bring me the missing piece of my understanding to my conceptual planning and cost counting to avoid delivery costs being greater than acceptable. Much appreciated. *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdaws

Re: [R] Question about Line Ending Choice

2022-09-29 Thread Enrico Schumann
On Tue, 27 Sep 2022, Stephen H. Dawson, DSL via R-help writes: > Hi All, > > > I am writing with a question about choosing the line > ending aspect of a file, please. > > I use write.csv and write.table to export work to CSV > files and TXT files. I am planning now on how to share > my work with t

Re: [R] Question about Line Ending Choice

2022-09-28 Thread Jorgen Harmse via R-help
,LF) else if (target %in% c(�Unix�,�Mac�)) eol <- LF else if �. else stop(�Unexpected target.�) write.table(eol=eol, �.) Regards, Jorgen Harmse. Message: 7 Date: Tue, 27 Sep 2022 11:35:54 -0400 From: "Stephen H. Dawson, DSL" To: Bert Gunter Cc: r-help Subject: Re: [R] Q

Re: [R] Question about Line Ending Choice

2022-09-27 Thread Stephen H. Dawson, DSL via R-help
Hi Bert, Thanks for the reply. I did see the parameter, but was not sure if this is the correct parameter to reference. I also see it in write.csv. I take it you are saying the eol parameter is the best practice for exporting from R using these functions. Am I correct or is there another o

Re: [R] Question about Line Ending Choice

2022-09-27 Thread Bert Gunter
Did you not see the "eol" parameter in write.table ? Bert On Tue, Sep 27, 2022 at 8:23 AM Stephen H. Dawson, DSL via R-help < r-help@r-project.org> wrote: > Hi All, > > > I am writing with a question about choosing the line ending aspect of a > file, please. > > I use write.csv and write.table t

Re: [R] Question concerning side effects of treating invalid factor levels

2022-09-20 Thread Ebert,Timothy Aaron
s and the numeric value to the numeric variable. Keeping in mind that a vector can only be of one class will save you many debugging hours later on. Tim -Original Message- From: Sarah Goslee Sent: Tuesday, September 20, 2022 9:02 AM To: tibor.k...@rub.de Cc: Ebert,Timothy Aaron ; r-help@r-p

Re: [R] Question concerning side effects of treating invalid factor levels

2022-09-20 Thread Sarah Goslee
Hi Tibor, No, you are misunderstanding the source of the problem. It has nothing to do with factors. Instead, it has to do with the inability of a vector to hold more than one class. You are using rbind() to add a new row to your data frame, but that vector is being coerced to character. That's

Re: [R] Question concerning side effects of treating invalid factor levels

2022-09-20 Thread Tibor Kiss via R-help
Hi, this is a misunderstanding of my question. I wasn’t worried about invalid factor levels that produce NA. My question was why a column changes its class, which I thought was a side effect. If you add a vector containing one character string, the class of the whole vector becomes _chr_. And

Re: [R] Question concerning side effects of treating invalid factor levels

2022-09-20 Thread Tibor Kiss via R-help
Dear Eric, thank you very much. I wouldn’t have come to the idea to look up the help page for _c()_, which of course explains the coercion to the highest type. Best T. > Am 19.09.2022 um 13:31 schrieb Eric Berger : > > You are misinterpreting what is going on. > The rbind command includes c

Re: [R] Question concerning side effects of treating invalid factor levels

2022-09-19 Thread Ebert,Timothy Aaron
to your original df and finds that it must add a character to a numeric vector. To keep the vector of all the same class it converts everything to character. Better? Tim From: tibor.k...@rub.de Sent: Monday, September 19, 2022 8:07 AM To: Ebert,Timothy Aaron Cc: r-help@r-project.org Subject: Re:

Re: [R] Question concerning side effects of treating invalid factor levels

2022-09-19 Thread Ebert,Timothy Aaron
In your example code, the variable remains a class factor, and all entries are valid. The variables will behave as expected given the factor levels in the original dataframe. (At least on my system R 4.2, in RStudio, in Windows) R returns a couple of error messages warning me that I was bad. Wh

Re: [R] Question concerning side effects of treating invalid factor levels

2022-09-19 Thread Eric Berger
You are misinterpreting what is going on. The rbind command includes c(char, char, int) which produces a character vector of length 3. This is what you are rbind-ing which changes the type of the RT column. If you do rbind(df, data.frame(P="in", ANSWER="V>N", RT=round(runif(1,7000,16000),0))) you

Re: [R] question

2022-03-15 Thread Rui Barradas
ples in the tutorials to work? Regards, Tim -Original Message- From: R-help On Behalf Of dalfardi.s Sent: Tuesday, March 15, 2022 4:15 PM To: Bert Gunter Cc: R-help Subject: Re: [R] question [External Email] Hello Dear Bert Gunter Thank you for your answer it means alot to me. by the w

Re: [R] question

2022-03-15 Thread dalfardi.s
Dear Ivan Krylov Thanks for your answer, I have no clue and dont know what is active object mean! Best On 2022-03-16 00:20, Ivan Krylov wrote: > On Tue, 15 Mar 2022 20:57:03 +0330 > "dalfardi.s" wrote: > >> I have a function of a package named priority flow as bellow: >> >> RIVSMOOTH=RIV

Re: [R] question

2022-03-15 Thread Ivan Krylov
On Tue, 15 Mar 2022 20:57:03 +0330 "dalfardi.s" wrote: > I have a function of a package named priority flow as bellow: > > RIVSMOOTH=RIVERSMOOTH(DEM=TRAVHS$DEM, DIRECTION=TRAVHS$DIRECTION, > MASK=FARWATERSHED.MASK,RIVER.SUMMARY=SUBBASIN$SUMMARY,RIVER.SEGMENTS=SUBBASIN$SEGMENTS,BANK.EPSILON > =0

Re: [R] question

2022-03-15 Thread dalfardi.s
Hello Dear Bert Gunter Thank you for your answer it means alot to me. by the way i am not profesional in R and faced a problem and need to fix it as soon as possible and it is the reason i ask here but absolutely i try to improve my skills. but now i need help and said to my self maybe some one

Re: [R] question

2022-03-15 Thread Bert Gunter
1. RStudio is not R; it is a separate for profit organization/company that contributes free packages to R and also provides both free and non-free R-oriented software. RStudio.com is their website (as you know) and https://community.rstudio.com/# is where you can post questions about *their* produc

Re: [R] Question re predict.glm & predict.lm in STATS

2022-02-16 Thread Bert Gunter
Ok, I looked at what you sent me privately and saw your error. I'll reproduce and fix it just using a trivial example with lm(), for which the predict() semantics are identical. Before I do, I note that your claim: "The predict.glm documentation says a warning will be given if the length of newdat

Re: [R] Question About lm()

2022-02-09 Thread PIKAL Petr
Hi Is it enough for explanation? https://stats.stackexchange.com/questions/26176/removal-of-statistically-sig nificant-intercept-term-increases-r2-in-linear-mo https://stackoverflow.com/questions/57415793/r-squared-in-lm-for-zero-interc ept-model Cheers Petr > -Original Message- > From:

Re: [R] Question About lm()

2022-02-09 Thread Ivan Krylov
On Wed, 9 Feb 2022 22:00:40 + "Bromaghin, Jeffrey F via R-help" wrote: > These models are equivalent and the estimated coefficients come out > fine, but the R-squared and F statistics returned by summary() differ > markedly. Is the mean of yResp far from zero? Here's what summary.lm says abo

Re: [R] Question About lm()

2022-02-09 Thread David Winsemius
The models are NOT equivalent. Why would you’ll think they were? — David Sent from my iPhone > On Feb 9, 2022, at 11:10 PM, Bromaghin, Jeffrey F via R-help > wrote: > > Hello, > > I was constructing a simple linear model with one categorical (3-levels) and > one quantitative predictor var

Re: [R] question about error message: "Aesthetics must be either length 1 or the same as the data (226): y and colour"

2021-12-30 Thread Kai Yang via R-help
Thank you all of your help. I'm new in R. I'll follow Bert's and your suggestions to post the question in another area in future.  Happy New Year Kai On Thursday, December 30, 2021, 02:05:12 PM PST, CALUM POLWART wrote: You will get shot down in flames for posting this here. This list

Re: [R] question about error message: "Aesthetics must be either length 1 or the same as the data (226): y and colour"

2021-12-30 Thread Rui Barradas
Hello, This seems like a repetition of a question you already asked and it has nothing to do with the fill aesthetic. The error message is caused by the maps y = mpg[[y]] color = mpg[[c]] First you filter the data keeping only a subset of the rows but now you are using the full data. This

Re: [R] question about error message: "Aesthetics must be either length 1 or the same as the data (226): y and colour"

2021-12-30 Thread Bert Gunter
1. Please read and follow the Posting Guide linked below. Among other things, it says: "For questions about functions in standard packages distributed with R (see the FAQ Add-on packages in R), ask questions on R-help." [The link is: https://cran.r-project.org/doc/FAQ/R-FAQ.html#Add-on-packages-in

Re: [R] question about for loop

2021-12-24 Thread Kai Yang via R-help
riday, December 24, 2021 5:37 PM To: Kai Yang Cc: R-help Mailing List Subject: Re: [R] question about for loop y, c, and f only exist in the context of mac2 If you want to use them, you'll have to write mac2$y, mac2$c, or mac2$f (or the [[ versions mac2[["y"]], mac2[["c"]],

Re: [R] question about for loop

2021-12-24 Thread Avi Gross via R-help
, December 24, 2021 5:37 PM To: Kai Yang Cc: R-help Mailing List Subject: Re: [R] question about for loop y, c, and f only exist in the context of mac2 If you want to use them, you'll have to write mac2$y, mac2$c, or mac2$f (or the [[ versions mac2[["y"]], mac2[["c"]],

Re: [R] question about for loop

2021-12-24 Thread Kai Yang via R-help
Thanks Andrew. This is super helpful. --- Kai On Friday, December 24, 2021, 02:37:14 PM PST, Andrew Simmons wrote: y, c, and f only exist in the context of mac2If you want to use them, you'll have to write mac2$y, mac2$c, or mac2$f (or the [[ versions mac2[["y"]], mac2[["c"]], or mac2

Re: [R] question about for loop

2021-12-24 Thread Andrew Simmons
y, c, and f only exist in the context of mac2 If you want to use them, you'll have to write mac2$y, mac2$c, or mac2$f (or the [[ versions mac2[["y"]], mac2[["c"]], or mac2[["f"]]) Combining that with index i would then look like mac2$y[[i]] or mac2[[i, "y"]] Also, I think you want to use aes_strin

Re: [R] Question about Rfast colMins and colMaxs

2021-12-03 Thread Stephen H. Dawson, DSL via R-help
Thanks, Richard. I am researching other library options for data inspection. I have many csv files I am reviewing with different column names and data types. Flexibility of a quick review of max and min is quite valuable at this juncture. I will implement your code recommendation next week a

Re: [R] Question about Rfast colMins and colMaxs

2021-12-02 Thread Richard O'Keefe
What puzzles me is why you are not just using lapply(some.data.frame, min) lapply(some.data.frame, max) or as.vector(lapply(...)) Why go to another package for this? Is it the indices you want? col.min.indices <- function (some.data.frame) { v <- sapply(some.data.frame, function (column)

Re: [R] Question about Rfast colMins and colMaxs

2021-12-02 Thread Stephen H. Dawson, DSL via R-help
d a minimum may be elusive. -Original Message- From: R-help On Behalf Of Stephen H. Dawson, DSL via R-help Sent: Tuesday, November 30, 2021 5:37 PM To: Bert Gunter Cc: r-help@r-project.org Subject: Re: [R] Question about Rfast colMins and colMaxs Oh, you are segmenting standard R from the

Re: [R] Question about Rfast colMins and colMaxs

2021-12-01 Thread Bert Gunter
onality and tries to > >coerce it with as.matrix or as.array first. As others have noted, this mean > >a data.frame containing non-numeric parts may fail or should have any other > >columns hidden/removed as in this df that has some non-numeric fields: > > > >> df >

Re: [R] Question about Rfast colMins and colMaxs

2021-12-01 Thread Stephen H. Dawson, DSL via R-help
minimum may be elusive. -Original Message- From: R-help On Behalf Of Stephen H. Dawson, DSL via R-help Sent: Tuesday, November 30, 2021 5:37 PM To: Bert Gunter Cc: r-help@r-project.org Subject: Re: [R] Question about Rfast colMins and colMaxs Oh, you are segmenting standard R from the rest of R.

Re: [R] Question about Rfast colMins and colMaxs

2021-12-01 Thread Stephen H. Dawson, DSL via R-help
-Original Message- From: R-help On Behalf Of Stephen H. Dawson, DSL via R-help Sent: Wednesday, December 1, 2021 5:11 PM To: r-help@r-project.org Subject: Re: [R] Question about Rfast colMins and colMaxs Jeff, Can you use max and min evaluations on any other data type then numeric? If so, how

Re: [R] Question about Rfast colMins and colMaxs

2021-12-01 Thread Stephen H. Dawson, DSL via R-help
i [1] 1 $f [1] 1.2 $i2 [1] 3 Clearly converting that to a matrix while whole would result in everything being converted to character and a minimum may be elusive. -Original Message- From: R-help On Behalf Of Stephen H. Dawson, DSL via R-help Sent: Tuesday, November 30, 2021 5:37 PM To: Be

Re: [R] Question about Rfast colMins and colMaxs

2021-12-01 Thread Jeff Newmiller
his: > >> mycolMins(df[, sapply(df, is.numeric)]) >$i >[1] 1 > >$f >[1] 1.2 > >$i2 >[1] 3 > >Clearly converting that to a matrix while whole would result in everything >being converted to character and a minimum may be elusive. > >-Original Mess

Re: [R] Question about Rfast colMins and colMaxs

2021-12-01 Thread PIKAL Petr
no obvious candidate for the minimum.) Cheers Petr > -Original Message- > From: R-help On Behalf Of Stephen H. > Dawson, DSL via R-help > Sent: Wednesday, December 1, 2021 5:11 PM > To: r-help@r-project.org > Subject: Re: [R] Question about Rfast colMins and colMaxs &

Re: [R] Question about Rfast colMins and colMaxs

2021-12-01 Thread Stephen H. Dawson, DSL via R-help
Jeff, Can you use max and min evaluations on any other data type then numeric? If so, how do you evaluate max or min of text content? String length? Ascii values of text characters? *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdaw

Re: [R] Question about Rfast colMins and colMaxs

2021-11-30 Thread Avi Gross via R-help
x while whole would result in everything being converted to character and a minimum may be elusive. -Original Message- From: R-help On Behalf Of Stephen H. Dawson, DSL via R-help Sent: Tuesday, November 30, 2021 5:37 PM To: Bert Gunter Cc: r-help@r-project.org Subject: Re: [R] Question abou

Re: [R] Question about Rfast colMins and colMaxs

2021-11-30 Thread Bert Gunter
If you look at my original reply, it gives the link that tells you *exactly* what packages are "standard" (and all the thousands of others which therefore are not). Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkel

Re: [R] Question about Rfast colMins and colMaxs

2021-11-30 Thread Stephen H. Dawson, DSL via R-help
Oh, you are segmenting standard R from the rest of R. Well, that part did not come across to me in your original reply. I am not clear on a standard versus non-standard list. I will look into this aspect and see what I can learn going forward. Thanks, *Stephen Dawson, DSL* /Executive Strateg

Re: [R] Question about Rfast colMins and colMaxs

2021-11-30 Thread Bert Gunter
... but Rfast is *not* a "standard" package, as the rest of the PG excerpt says. So contact the maintainer and ask him/her what they think the best practice should be for their package. As has been pointed out already, it appears to differ from the usual "read it in as a data frame" procedure. Ber

Re: [R] Question about Rfast colMins and colMaxs

2021-11-30 Thread Stephen H. Dawson, DSL via R-help
Well, no it is not. The email list stripped off the attachment. The data is numeric, happens to be all whole numbers. Kindest Regards, *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdawson.com On 11/30/21 5:

Re: [R] Question about Rfast colMins and colMaxs

2021-11-30 Thread Stephen H. Dawson, DSL via R-help
Thanks, Bill. How do you go about getting maximum and minimum values from your columns? Do you simply do them one column at a time? The functions I am identifying from Rfast do this work in bulk. *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 ht

Re: [R] Question about Rfast colMins and colMaxs

2021-11-30 Thread Stephen H. Dawson, DSL via R-help
Hi Jeff, Thanks for the data review offer. Attached is the CSV. *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdawson.com On 11/30/21 3:29 PM, Jeff Newmiller wrote: I don't know anything about this package

Re: [R] Question about Rfast colMins and colMaxs

2021-11-30 Thread Stephen H. Dawson, DSL via R-help
Right, R Studio is not R. However, the Rfast package is part of R. https://cran.r-project.org/web/packages/Rfast/index.html So, rephrasing my question... What is the best practice to bring a csv file into R so it can be accessed by colMaxs and colMins, please? *Stephen Dawson, DSL* /Executiv

Re: [R] Question about Rfast colMins and colMaxs

2021-11-30 Thread Jeff Newmiller
I don't know anything about this package, but read.csv returns a data frame. How you go about forming a matrix using that data frame depends what is in it. If it is all numeric then as.matrix may be all you need. Half of any R data analysis is data... and the details are almost always crucial.

Re: [R] Question about Rfast colMins and colMaxs

2021-11-30 Thread Bill Dunlap
You can use as.matrix() to convert your data.frame to a matrix, but that loses the speed/space advantages of colMins (as well as causing issues if some columns are not numeric). You could write to the maintainer of the package to ask that data.frames be directly supported. In the meantime you cou

Re: [R] Question about Rfast colMins and colMaxs

2021-11-30 Thread Bert Gunter
RStudio is **not** R. In particular, the so-called TidyVerse consists of all *non*-standard contributed packages, about which the PG says: "For questions about functions in standard packages distributed with R (see the FAQ Add-on packages in R), ask questions on R-help. [The link is: https://cran.

Re: [R] Question about .Rhistory in Windows

2021-06-22 Thread PIKAL Petr
Hallo I increased number of lines which .Rhistory stores before the lines start to be overwritten. You can do this by changing number in Sys.setenv(R_HISTSIZE = 2000) in Rprofile.site located in etc folder of your installation. And from time to time I rename Rhistory to something like "210621.r"

Re: [R] question re: tidycensus

2021-06-11 Thread Milton O Faison
The problem is resolved. o M. Omar Faison, Ph.D. Associate Professor, Biology Associate Vice President, Research, Economic Development, and Graduate Studies Virginia State University Petersburg, VA 23806 (804) 524-6793 http://twitter.com/omarfaison At VSU, we are proudly committed to providing a

Re: [R] question re: tidycensus

2021-06-11 Thread Bert Gunter
Have you read the posting guide, linked below, which says: "For questions about functions in standard packages distributed with R (see the FAQ Add-on packages in R ), ask questions on R-help. If the question relates to a *contribu

Re: [R] question about the difference of AIC()

2021-05-12 Thread Søren Højsgaard
In the first model, I believe you estimate two parameters: the mean and the variance: > fm <- lm(y ~ 1) > 2*2 - 2 * logLik(fm) 'log Lik.' 40.49275 (df=2) > AIC(fm) [1] 40.49275 A zero mean model: fm0 <- lm(y ~ -1) > 2*1 - 2 * logLik(fm0) 'log Lik.' 39.00611 (df=1) > AIC(fm0) [1] 39.00611 Regard

Re: [R] question about the difference of AIC()

2021-05-12 Thread Jinsong Zhao
On 2021/5/12 19:49, Jinsong Zhao wrote: Hi there, I learned that AIC = 2 * npar - 2 * log(logLik(model)), where k is the number of estimated parameters in the model. k should be npar in the above sentence. Sorry for the mistake. For examle: > set.seed(123) > y <- rnorm(15) > fm <- lm(y

Re: [R] Question about using R sample datasets

2021-05-02 Thread Jeff Newmiller
You have already been reminded that none of us are lawyers. There is license text associated with every package and base R, and it is not necessarily the same for all parts of R, so there is no way for us to answer your question in its vague form and no way for you to rely our opinions even if y

Re: [R] Question about using R sample datasets

2021-05-02 Thread Maja Analytics
Thanks for the advice. What about R code? Is that free to share? I would use my own dataset or made up dataset, so I am only now interested what about R code, can I screenshot it and then explain what is on the photo? Maja ned, 2. svi 2021. u 01:17 David Winsemius napisao je: > Any answer you

Re: [R] Question about using R sample datasets

2021-05-02 Thread David Winsemius
Again, the terms of the license govern the legalities. I don’t think you would need any further efforts at licensing your commentary. Screenshots or text copies would both be just copies and the appropriate citations would probably be all that were needed. I do not think your commentary or expla

Re: [R] Question

2021-05-01 Thread Jim Lemon
Hi Myungjin, The funnel plot is no more than the precision of the estimates of related studies plotted against the estimates. That is, if your measure of precision is the sample size (SS) and the estimate is named E, plot(E,SS) Look at the metafor package for good funnel plot functions. Egger's t

Re: [R] Question

2021-05-01 Thread Bert Gunter
Do note, per the posting guide linked below (which you should read): "For questions about functions in standard packages distributed with R (see the FAQ Add-on packages in R ), ask questions on R-help. If the question relates to

Re: [R] Question about using R sample datasets

2021-05-01 Thread David Winsemius
Any answer you get here will will have all the authority of "some guy on the Internet", but my reading of the licenses is that as long as you give proper credit that you can use any material in teaching or commercial purposes AND derivative works are likewise copy-able on an open source (FOSS) b

Re: [R] Question about dotwhisker

2020-12-19 Thread Dan Bolser
Sorry, forgot to link the actual vignette: https://cran.r-project.org/web/packages/dotwhisker/vignettes/dotwhisker-vignette.html In fact the vignette states: dwplot(m1_df) #same as dwplot(m1) where m1_df is m1_df <- tidy(m1) They are not the same in either the vignette itself or on my computer.

Re: [R] Question about the package "MatchIt"

2020-10-10 Thread Ehsan Karim
Maria: What you are looking for (propensity score matching on survey data) is discussed in lab 5 components of this series using matchit and matching package: https://www.youtube.com/playlist?list=PL2yD6frXhFob_Mvfg21Y01t_yu1aC9NnP Regards, Ehsan https://ehsank.com/ On Fri., Oct. 9, 2020, 4:0

Re: [R] Question about the package "MatchIt"

2020-10-10 Thread Patrick (Malone Quantitative)
Maria Cristina, The MatchIt homepage at https://gking.harvard.edu/matchit has a link to a mailing list specific to the package and it has searchable archives. You will probably have better luck there than a general R programming list. Though a quick perusal of the user guide at that site makes me

Re: [R] Question about the package "MatchIt"

2020-10-09 Thread Jeremie Juste
Hello Maria Cristina, On Friday, 9 Oct 2020 at 19:39, Maria Cristina Maurizio wrote: > Hi! I'm trying to perform propensity score matching on survey data and so > for each individual observation I have a statistical weight attached. My > question is: is there a way within the package to consider

Re: [R] question including crossover trials in meta-analysis

2020-09-15 Thread Belgers, V. (Vera)
-project.org Onderwerp: Re: [R] question including crossover trials in meta-analysis Did you first try a web search? -- you should always do this before posting here. "meta-analysis in R" brought up this: https://CRAN.R-project.org/view=MetaAnalysis<https://eur04.safelinks.protection.out

  1   2   3   4   5   6   7   8   9   10   >