[R] Fwd: passing a modified argument to an S3 method

2024-04-20 Thread Bert Gunter
## Neglected to cc to list -- Forwarded message - From: Bert Gunter Date: Sat, Apr 20, 2024 at 1:26 PM Subject: Re: [R] passing a modified argument to an S3 method To: CRAN.r Well, my interpretation of your explanation is as follows: You have a long list of "control" values,

Re: [R] Fwd: Strange results : bootrstrp CIs

2024-01-14 Thread varin sacha via R-help
Dear R-experts, I really thank you all for your responses. Best, Le dimanche 14 janvier 2024 à 10:22:12 UTC+1, Duncan Murdoch a écrit : On 13/01/2024 8:58 p.m., Rolf Turner wrote: > On Sat, 13 Jan 2024 17:59:16 -0500 > Duncan Murdoch wrote: > > > >> My guess is that one of the

Re: [R] Fwd: Strange results : bootrstrp CIs

2024-01-14 Thread Duncan Murdoch
On 13/01/2024 8:58 p.m., Rolf Turner wrote: On Sat, 13 Jan 2024 17:59:16 -0500 Duncan Murdoch wrote: My guess is that one of the bootstrap samples had a different selection of countries, so factor(Country) had different levels, and that would really mess things up. You'll need to decide

Re: [R] Fwd: Strange results : bootrstrp CIs

2024-01-13 Thread Rolf Turner
On Sat, 13 Jan 2024 17:59:16 -0500 Duncan Murdoch wrote: > My guess is that one of the bootstrap samples had a different > selection of countries, so factor(Country) had different levels, and > that would really mess things up. > > You'll need to decide how to handle that: If you are trying

[R] Fwd: Strange results : bootrstrp CIs

2024-01-13 Thread Duncan Murdoch
Sorry, didn't cc this to the list. Forwarded Message Subject: Re: [R] Strange results : bootrstrp CIs Date: Sat, 13 Jan 2024 17:37:19 -0500 From: Duncan Murdoch To: varin sacha You can debug things like this by setting options(error = recover). That will drop into the

Re: [R] Fwd: r-stats: Geometric Distribution

2023-10-19 Thread Sahil Sharma
Hi, today I came across the same problem. And, I'm able to explain it with an example as well. Suppose I want to PDF or P(X=5) in Geometric Distribution with P = 0.2. The theoretical formula is P * (1-P) ^ (x -1). But the R function dgeom(x, p) works like P * (1-P) ^ x, it does not reduce 1 from

Re: [R] Fwd: r-stats: Geometric Distribution

2023-10-18 Thread Jim Lemon
Please delete drjimle...@gmail.com from your mailing lists. He passed away a mknth ago. Regards, Juel Wife On Tue, 17 Oct 2023, 22:58 Sahil Sharma -- Forwarded message - > From: Sahil Sharma > Date: Tue, Oct 17, 2023 at 12:10 PM > Subject: r-stats: Geometric Distribution > To:

Re: [R] Fwd: r-stats: Geometric Distribution

2023-10-17 Thread Ivan Krylov
В Tue, 17 Oct 2023 12:12:05 +0530 Sahil Sharma пишет: > The original formula for Geometric Distribution PDF is > *((1-p)^x-1)*P*. However, the current r function *dgeom(x, p)* is > doing this: *((1-p)^x)*P, *it is not reducing 1 from x. Your definition is valid for integer 'x' starting from 1.

[R] Fwd: r-stats: Geometric Distribution

2023-10-17 Thread Sahil Sharma
-- Forwarded message - From: Sahil Sharma Date: Tue, Oct 17, 2023 at 12:10 PM Subject: r-stats: Geometric Distribution To: Hey I want to raise one issue in *r-stats **geometric distribution * function. I have found the dgeom(x,p) which denotes probability density function of

[R] Fwd: Processing a hierarchical string name

2023-06-28 Thread Bert Gunter
Sorry, not cc'ed to the list. -- Forwarded message - From: Bert Gunter Date: Wed, Jun 28, 2023 at 4:18 PM Subject: Re: [R] Processing a hierarchical string name To: Ivan Krylov Cc: Kevin Zembower via R-help I probably misunderstand what you want to do, but for: test <- c("

Re: [R] Fwd: Reg: Frequency in declaring time series data

2023-01-17 Thread Eric Berger
Hi Upananda, A few comments: 1. As you know, CRAN has thousands of packages. One of the ways to learn about the packages you might care about is to use the CRAN views. A 'view' is an attempt to provide some information on a certain subset of the packages related to a particular area. See a list of

[R] Fwd: Reg: Frequency in declaring time series data

2023-01-17 Thread Upananda Pani
Hi Rui, Thank you so much for your help. As I have to fit a Markov Switching Model using MSwM package. May I know whether i can convert from zoo object to a time series object. As I have to use several packages which uses ts so I am not able to decide how to do it. Grateful to you for your

Re: [R] Fwd: Reading very large text files into R

2022-09-29 Thread Enrico Schumann
On Thu, 29 Sep 2022, Nick Wray writes: > -- Forwarded message - > From: Nick Wray > Date: Thu, 29 Sept 2022 at 15:32 > Subject: Re: [R] Reading very large text files into R > To: Ben Tupper > > > Hi Ben > Beneath is an example of the text (also in an attachment) and it's the

[R] Fwd: Reading very large text files into R

2022-09-29 Thread Nick Wray
-- Forwarded message - From: Nick Wray Date: Thu, 29 Sept 2022 at 15:32 Subject: Re: [R] Reading very large text files into R To: Ben Tupper Hi Ben Beneath is an example of the text (also in an attachment) and it's the "B", of which there are quite a few scattered throughout

[R] Fwd: Query regarding R 'irr' package 'N.cohen.kappa'

2022-06-16 Thread Bert Gunter
-- Forwarded message - From: Bert Gunter Date: Thu, Jun 16, 2022 at 9:28 AM Subject: Re: [R] Query regarding R 'irr' package 'N.cohen.kappa' To: Kalaivani Mani Please read and follow the posting guide (linked below). No attachments came through, because most attachments are

Re: [R] Fwd: alternative way to define a function

2021-12-02 Thread Martin Møller Skarbiniks Pedersen
On Thu, 2 Dec 2021 at 12:40, Ivan Krylov wrote: > > > The \(arguments) syntax has been introduced in R 4.1.0: > https://cran.r-project.org/doc/manuals/r-release/NEWS.html (search for > "\(x)"). It is the same as function(arguments). > > The only benefit is slightly less typing; could be useful if

Re: [R] Fwd: alternative way to define a function

2021-12-02 Thread Ivan Krylov
On Thu, 2 Dec 2021 12:23:27 +0100 Martin Møller Skarbiniks Pedersen wrote: > Is that exactly the same as: > f <- function(x,y) x * y > ? > > Is there any benefit to the first or second way to define a function? The \(arguments) syntax has been introduced in R 4.1.0:

[R] Fwd: alternative way to define a function

2021-12-02 Thread Martin Møller Skarbiniks Pedersen
By reading some code today I have just discovered an alternative way to define a function: f <- \(x, y) x * y Is that exactly the same as: f <- function(x,y) x * y ? Is there any benefit to the first or second way to define a function? Regards Martin [[alternative HTML version

Re: [R] Fwd: Package is not available for this version of R.

2021-11-26 Thread Jeff Newmiller
Anyone could write a function named prob.def1, and it is not part of base R so it is off-topic here and there is no way for people on this list to definitively know the answer. As far as Google can tell me it is not from CRAN either. OP should go talk to whoever wrote this code. On November

[R] Fwd: Package is not available for this version of R.

2021-11-26 Thread Bert Gunter
Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) -- Forwarded message - From: Bert Gunter Date: Fri, Nov 26, 2021 at 10:27 AM Subject: Re: [R]

Re: [R] Fwd: Merging multiple csv files to new file

2021-11-03 Thread Jim Lemon
Hi Gabrielle, I get the feeling that you are trying to merge data in which each file contains different variables, but the same subjects have contributed the data. This a very wild guess, but it may provide some insight. # assume that subjects are identified by a variable named "subjectID" #

Re: [R] Fwd: Merging multiple csv files to new file

2021-11-03 Thread Duncan Murdoch
On 02/11/2021 6:30 p.m., gabrielle aban steinberg wrote: Hello, I would like to merge 18 csv files into a master data csv file, but each file has a different number of columns (mostly found in one or more of the other cvs files) and different number of rows. I have tried something like the

Re: [R] Fwd: Merging multiple csv files to new file

2021-11-03 Thread Avi Gross via R-help
Newmiller Sent: Wednesday, November 3, 2021 1:22 PM To: r-help@r-project.org; Robert Knight ; gabrielle aban steinberg Cc: r-help Subject: Re: [R] Fwd: Merging multiple csv files to new file Data type in a CSV is always character until inferred otherwise... it is not necessary nor even easier

Re: [R] Fwd: Merging multiple csv files to new file

2021-11-03 Thread Jeff Newmiller
>(Maybe the R Studio free trial/usage is underpowered for my project?) - R is a computer language, as well as a program for interpreting R source code. - RStudio Desktop is an editor with "features" intended to make using R easy. It cannot "do" anything without R being installed. - R is

Re: [R] Fwd: Merging multiple csv files to new file

2021-11-03 Thread Jeff Newmiller
Data type in a CSV is always character until inferred otherwise... it is not necessary nor even easier to manipulate files with Python if you are planning to use R to manipulate the data further with R. Just use the colClasses="character" argument for read.csv. On November 3, 2021 9:47:03 AM

Re: [R] Fwd: Merging multiple csv files to new file

2021-11-03 Thread Bill Dunlap
The error message arises because you are sometimes delimiting character strings using non-ASCII open and close double quotes, '“' and '”', instead of the old-fashioned ones, '"', which have no open or close variants. This is a language syntax error, so R didn't try to compute anything. The

Re: [R] Fwd: Merging multiple csv files to new file

2021-11-03 Thread Robert Knight
It might be easier to settle on the desired final csv layout and use Python to copy the rows via line reads. Python doesn't care about the data type in a given "cell", numeric or char, whereas the type errors R would encounter would make the task very difficult. On Wed, Nov 3, 2021, 10:36 AM

Re: [R] Fwd: Merging multiple csv files to new file

2021-11-03 Thread Bert Gunter
I should have added that once read into R, the collection of data frames (presumably) can also be saved in one .Rdata file via save() **without** first combining them into a list. I still prefer keeping them together as one list in R, but that's up to you. Bert Gunter "The trouble with having an

Re: [R] Fwd: Merging multiple csv files to new file

2021-11-03 Thread Bert Gunter
1. Think more carefully about the appropriate data structure for what you wish to do. It's unlikely to be .csv files, however. In the absence of the above, a simple (but perhaps inappropriate) default is: 2. Read the files into R and combine into a list.(You will need to read about lists in R if

Re: [R] Fwd: Merging multiple csv files to new file

2021-11-03 Thread Avi Gross via R-help
in R. -Original Message- From: R-help On Behalf Of gabrielle aban steinberg Sent: Tuesday, November 2, 2021 6:31 PM To: r-help@r-project.org Subject: [R] Fwd: Merging multiple csv files to new file Hello, I would like to merge 18 csv files into a master data csv file, but each file has

[R] Fwd: Merging multiple csv files to new file

2021-11-03 Thread gabrielle aban steinberg
Hello, I would like to merge 18 csv files into a master data csv file, but each file has a different number of columns (mostly found in one or more of the other cvs files) and different number of rows. I have tried something like the following in R Studio (cloud): all_data_fit_files <-

[R] Fwd: R Windows 64 bit Version above 4.01 crash on Windows 10 on startup

2021-08-18 Thread fps
Hi, I did not know where to turn to, but I found a bug in all versions of rgui.exe from 4.0.2 to 4.1.1patched. On a brandnew Windows 10 Pro 64bit Version: 21H1 the 64 bit gui crashes at startup. No console is displayed. 32 bit works fine. Eventmanager applications log shows consistently

Re: [R] Fwd: Create new polygon from a polygon

2021-04-22 Thread Greg Minshall
Javad, you might think of asking in the r-sig-geo e-mail list? : r-sig-...@r-project.org cheers. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Fwd: Create new polygon from a polygon

2021-04-21 Thread javad bayat
-- Forwarded message - From: javad bayat Date: Fri, Apr 16, 2021 at 9:00 AM Subject: Create new polygon from a polygon To: Dear all; I have a polygon and I want to divide it into 2 new polygons. The first one must be 54 percent of the initial polygon area and the remaining area

Re: [R] Fwd: Concatenation?

2021-02-18 Thread Gerrit Eichner
Right, Bert, but not if X is "only" matrix. ;-) > X <- cbind(X1 = letters[1:3], X2 = 5:7, X3 = LETTERS[1:3] ) > do.call(paste0, X) Fehler in do.call(paste0, X) : das zweite Argument muss eine Liste sein (Sorry, but my system is German. :-)) But, of course, then, e.g.,

Re: [R] Fwd: Concatenation?

2021-02-18 Thread Bert Gunter
Inline comment below. Cheers, Bert Bert Gunter " or, if stored as columns of a matrix or data frame X, e.g., > > ## > apply(X, 1, paste0) > ## " No. paste() is vectorized. apply() can be avoided: > df <- data.frame(X1 = letters[1:3], X2 = 5:7,

[R] Fwd: Concatenation?

2021-02-18 Thread Gerrit Eichner
[I forgot to keep it on the list.] Weitergeleitete Nachricht Betreff: Re: [R] Concatenation? Datum: Wed, 17 Feb 2021 22:14:13 +0100 Von: Gerrit Eichner Organisation: JLU Gießen An: Parkhurst, David Hi David, checkout, e. g., base-R's paste0(site, depth) or, if stored as

[R] Fwd: Converting "day of year" to "year", "month" and "day"

2021-01-20 Thread Jibrin Alhassan
-- Forwarded message - From: Jibrin Alhassan Date: Wed, Jan 20, 2021 at 2:18 PM Subject: Re: [R] Converting "day of year" to "year", "month" and "day" To: Rui Barradas Rui, I am grateful. All the 1826 rows have been displayed. My sincere appreciation to all for your time and

Re: [R] Fwd: Error in setting the parameter values of k

2020-12-29 Thread Neha gupta
Hello, I am sorry but after settings the value of C between 1 and 7, I get the following error message now: Error in self$assert(xs) : Assertion on 'xs' failed: The parameter 'C' can only be set if the following condition is met 'type {eps-svr, eps-bsvr}'. Instead the parameter value for

Re: [R] Fwd: Error in setting the parameter values of k

2020-12-29 Thread Neha gupta
Thanks a lot, Milne and Patrick. I am going to change the values, hopefully the error message will disappear. Warm regards On Tue, Dec 29, 2020 at 5:53 PM Patrick (Malone Quantitative) < mal...@malonequantitative.com> wrote: > Likely, yes. Your error message says k must be at least 1, so

Re: [R] Fwd: Error in setting the parameter values of k

2020-12-29 Thread Patrick (Malone Quantitative)
Likely, yes. Your error message says k must be at least 1, so searching below 1 is probably your issue. Also, logically, zero nearest neighbors doesn't seem to make a lot of sense. Pat On Tue, Dec 29, 2020 at 11:01 AM Neha gupta wrote: > Thank you for your response. > > Are you certain that

Re: [R] Fwd: Error in setting the parameter values of k

2020-12-29 Thread Neha gupta
Thank you for your response. Are you certain that k = 0 is a legitimate setting? Since, the default value of k is 1, I wanted to search between the values of 0 to 3. Milne, Do you mean I have to provide both the lower and upper bounds greater than 1 in order to get rid of this error? On Tue,

Re: [R] Fwd: Error in setting the parameter values of k

2020-12-29 Thread T. A. Milne via R-help
I am using mlr3 'fast nearest neighbor' leaner i.e. fnnIts parameter is 'k' which has a default value of 1. When I use tuningusing random search, I set the parameter of k as: lower= 0, upper=3But it gives an error messageError in self$assert(xs) : Assertion on 'xs' failed: k: Element 1 is not

[R] Fwd: Error in setting the parameter values of k

2020-12-29 Thread Neha gupta
I am using mlr3 'fast nearest neighbor' leaner i.e. fnn Its parameter is 'k' which has a default value of 1. When I use tuning using random search, I set the parameter of k as: lower= 0, upper=3 But it gives an error message Error in self$assert(xs) : Assertion on 'xs' failed: k: Element 1 is

[R] Fwd: Error message when using "revtools" package

2020-11-04 Thread Bert Gunter
Neglected to cc the list! Bert -- Forwarded message - From: Bert Gunter Date: Wed, Nov 4, 2020 at 6:40 PM Subject: Re: [R] Error message when using "revtools" package To: John , R-help Perhaps better suggestion: r-sig-meta-analysis ? Bert Gunter "The trouble with having an

Re: [R] Fwd: Help using the exclude option in the neuralnet package

2020-10-12 Thread Frauke Günther
Dear all, the exclude and constant.weights options are used as follows: exclude: A matrix with n rows and 3 columns will exclude n weights. The the first column refers to the layer, the second column to the input neuron and the third column to the output neuron of the weight.

[R] Fwd: Share your article [ATP_105460] published in Journal of Atmospheric and Solar-Terrestrial Physics

2020-10-07 Thread Ogbos Okike
Dear Friends, I am really glad to share this link with you. Some of you have been instrumental to the success of the work. You are acknowledged accordingly. I am ever indebted. Best wishes Ogbos -- Forwarded message - From: Elsevier - Article Status Date: Wed, Oct 7, 2020 at

[R] Fwd: defining group colours in a call to rda

2020-08-04 Thread Andrew Halford
-- Forwarded message - From: Abby Spurdle Date: Wed, Aug 5, 2020 at 3:07 PM Subject: Re: [R] defining group colours in a call to rda To: Andrew Halford Hi Andrew, Perhaps you want this: cols <- rep_len (c ("red", "green", "blue", "aquamarine", "magenta"), 9) cols Or

[R] Fwd: Re: [External] Re: read.csv fails in R console in Ubuntu terminal but works in RStudio after R 3.6.3 upgrade to R 4.0.2?

2020-07-17 Thread Rui Barradas
Hello, Sorry, once again, this time I forgot to cc the list. See the answer to Martin Maechler's mail below. Rui Barradas Mensagem reencaminhada Assunto:Re: [R] [External] Re: read.csv fails in R console in Ubuntu terminal but works in RStudio after R 3.6.3 upgrade

Re: [R] Fwd: Help with looping a function over a list of dataframes:

2020-07-04 Thread Kathan Desai
Hello thanks everyone for your help i managed to get a working function as followed: for(i in 2:length(list_df)){ list_df[[paste0("position_tab_",i)]][['ID']] <- unlist(lapply(list_df[[paste0("position_tab_",i)]][['midpoint']], function(x) ifelse(any(abs(x -

Re: [R] Fwd: Help with looping a function over a list of dataframes:

2020-07-04 Thread Bert Gunter
Perhaps the following will be helpful (you can ignore the warning message here): > set.seed(1001) > x <- sample(1:5,10, rep = TRUE) > y <- sample(1:5,12, rep = TRUE) > n <- seq_len(min(length(x), length(y))) > flag <- as.numeric(abs(x-y)[n] <= 1) Warning message: In x - y : longer object length

Re: [R] Fwd: Help with looping a function over a list of dataframes:

2020-07-04 Thread Kathan Desai
*I hope this is more succinct.* *I have the following code: * list_df$position_tab_5$ID <- unlist(lapply(list_df$position_tab_5$midpoint, function(x) ifelse(any(abs(x - list_df$position_tab_4$midpoint) <= 1),1,0))) It compares every observation from the midpoint column from dataframe 2 to every

Re: [R] Fwd: Help with looping a function over a list of dataframes:

2020-07-04 Thread Eric Berger
Hi Kathan, How about trying to create a *minimal* reproducible example, e.g. with a list of two data frames, where each data frame has 5 rows,? My guess is that there is a good chance that when you try to create such an example, you will discover the problem yourself. In the event that you create

[R] Fwd: Help with looping a function over a list of dataframes:

2020-07-04 Thread Kathan Desai
-- Forwarded message - From: Kathan Desai Date: Sat, 4 Jul 2020 at 14:31 Subject: Re: [R] Help with looping a function over a list of dataframes: To: Jim Lemon Hi Jim, Thankyou for your reply, I tried the function you suggested and it doesn't seem to work. There are again no

[R] Fwd: stats:: spline's method could not be monoH.FC

2020-05-03 Thread Mark Leeds
Abby: Just one other thing. A friend of mine recommended reading the R-language manual which I haven't read in many years. I don't know if it's because I'm more expeRienced or just plain oldeR but I started it today and it's not nearly as daunting as I remember it being in the past. It's going to

[R] Fwd: How can I solve an error after installing RStudio

2020-04-29 Thread Bert Gunter
Neglected to cc. R-help -- Forwarded message - From: Bert Gunter Date: Wed, Apr 29, 2020 at 7:40 AM Subject: Re: [R] How can I solve an error after installing RStudio To: Vahid Borji No. You have to go to the RStudio website/help pages. RStudio is separate software from R.

[R] Fwd: How to edit a dataframe/tibble in R console

2020-04-26 Thread Yousri Fanous
Jim solution posted Yousri -- Forwarded message - From: Jim Lemon Date: Sun, Apr 26, 2020 at 6:30 AM Subject: Re: [R] How to edit a dataframe/tibble in R console To: Yousri Fanous Hi Yousri, This may help: rootstock.df<-as.data.frame(lapply(rootstock,as.vector))

[R] Fwd: Correct way to cite R and RStudio in a manuscipt

2020-04-15 Thread Bert Gunter
Sorry, neglected to respond to the list. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) -- Forwarded message - From: Bert Gunter Date: Wed, Apr

[R] Fwd: Sensitivity+Uncertainty Analysis//Evaporation//Markdown

2020-04-07 Thread Stefi Killing
Dear helpers, my script for my* Sensitivity + Uncertainty Analysis* concerning *evaporation processes *with the *Matt Shuttleworth-Equation* is not knitting to *markdown *completely. There are some problems with the figures I guess. May somebody help me? I would be very very grateful! Yours,

Re: [R] Fwd: Package PCMBaseCpp stops the R process on Fedora-clang

2020-03-22 Thread Jeff Newmiller
Wrong list. Way wrong. Pay attention to the Posting Guide. The correct list would be the Rcpp-devel. If your question were less specific, then r-package-devel. But absolutely not r-help. There are known issues with Rcpp being fixed right now on the fly... go read the recent archives for

[R] Fwd: Package PCMBaseCpp stops the R process on Fedora-clang

2020-03-22 Thread Venelin Mitov
Dear R-help-list, In an e-mail received yesterday from a member of the CRAN maintainer team, I was informed that the package PCMBaseCpp (https://CRAN.R-project.org/package=PCMBaseCpp) is going to be removed from CRAN on April 4th, due to an R-process crash during unit-tests on the fedora-clang

[R] Fwd: Problem in plotting Circos plot with the attached dataset

2020-01-26 Thread pooja sinha
-- Forwarded message - From: pooja sinha Date: Fri 24 Jan, 2020, 15:06 Subject: Problem in plotting Circos plot with the attached dataset To: YOUNGCONTROL.csv YOUNGTREATED.csv

Re: [R] Fwd: Extracting a particular column from list

2020-01-20 Thread Bert Gunter
Trickier, but shorter: > lapply(u,'[',1) $a [1] 1 $b [1] "a" Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Fri, Jan 17, 2020 at 10:04 PM Eric Berger

Re: [R] Fwd: Extracting a particular column from list

2020-01-19 Thread PIKAL Petr
Or simply lapply(u, "[", 1) $a [1] 1 $b [1] "a" Cheers Petr > -Original Message- > From: R-help On Behalf Of Eric Berger > Sent: Thursday, January 16, 2020 1:36 PM > To: R mailing list > Subject: [R] Fwd: Extracting a particular column from

[R] Fwd: Extracting a particular column from list

2020-01-17 Thread Eric Berger
[Putting back onto r-help] You could try sapply() and lapply(). > e <- sapply( 1:length(u), function(i) u[[i]][1] ) > e # [1] "1" "a"(note that the integer 1 became a character string "1") > f <- lapply( 1:length(u), function(i) u[[i]][1] ) > f [[1]] [1] 1 [[2]] [1] "a" In this case

[R] Fwd: Re: .Random.seed for the Mersenne Twister

2020-01-09 Thread Jeff Newmiller
Forgot to cc list. Original Message From: Jeff Newmiller Sent: January 9, 2020 2:10:00 PM PST To: Luca Passalacqua Subject: Re: [R] .Random.seed for the Mersenne Twister No information is lost. Thirty-two "one" bits is equally valid when viewed as a -1L in R or as

Re: [R] Fwd: Which external functions are called in a package?

2020-01-03 Thread Jeff Newmiller
No, sorry, I misunderstood your question. a) Read the NAMESPACE file of package B? If they use importFrom that would be specific enough. b) "Suggests" can refer to usage that does not even appear in the loaded package at all. c) Try asking in the r-package-devel mailing list? On January 3,

Re: [R] Fwd: Which external functions are called in a package?

2020-01-03 Thread Duncan Murdoch
On 03/01/2020 4:45 p.m., Hans W Borchers wrote: You are absolutely right. I forgot that there is a difference between the unpacked and the installed directory of a package. The documentation of the *pkgapi* package in development is quite scarce and does not mention the details. Thanks for the

Re: [R] Fwd: Which external functions are called in a package?

2020-01-03 Thread Hans W Borchers
Jeff, the problem is: There I see the packages that depend on mine, but not which functions are used Or maybe I misunderstood your comment. On Fri, 3 Jan 2020 at 22:49, Jeff Newmiller wrote: > > If you are so lucky as to have this problem, perhaps you could take a look at > the reverse

Re: [R] Fwd: Which external functions are called in a package?

2020-01-03 Thread Jeff Newmiller
If you are so lucky as to have this problem, perhaps you could take a look at the reverse dependencies on your packages' CRAN web page. On January 3, 2020 1:45:42 PM PST, Hans W Borchers wrote: >You are absolutely right. I forgot that there is a difference between >the unpacked and the

[R] Fwd: Which external functions are called in a package?

2020-01-03 Thread Hans W Borchers
You are absolutely right. I forgot that there is a difference between the unpacked and the installed directory of a package. The documentation of the *pkgapi* package in development is quite scarce and does not mention the details. Thanks for the tip. --HW PS: Still I would like to learn about

[R] Fwd: Vegan Function anova.cca: No Significance Codes Legend in Output

2019-09-26 Thread melissa schindler
Hello all, I have run a redundancy analysis on Hellinger transformed species abundance data and environmental variables. Once I ran the RDA I proceeded to run a permutation on the resulting rda overall and by "axis" and the outputs did not provide a legend of significance codes. Even if none of

[R] Fwd: new_index

2019-09-07 Thread William Michels via R-help
Hi Val, see below: > dat1 <-read.table(text="ID, x, y, z + A, 10, 34, 12 + B, 25, 42, 18 + C, 14, 20, 8 ",sep=",",header=TRUE,stringsAsFactors=F) > > dat2 <-read.table(text="ID, weight + A, 0.25 + B, 0.42 + C, 0.65 ",sep=",",header=TRUE,stringsAsFactors=F) > > dat3 <- data.frame(ID =

[R] Fwd: Code that works when run as straight code, but that fails when run as a function

2019-08-23 Thread Bert Gunter
Sorry -- neglected to cc the list. Bert -- Forwarded message - From: Bert Gunter Date: Fri, Aug 23, 2019 at 2:06 PM Subject: Re: [R] Code that works when run as straight code, but that fails when run as a function To: Sorkin, John s1E is not defined in your function in: SBP

[R] Fwd: Re: Column 'xyz' does not exist

2019-07-30 Thread Ivan Calandra
I have no idea about Tibble... [Reply to the list if you want helpful answers ;) ] Ivan -- Dr. Ivan Calandra TraCEr, laboratory for Traceology and Controlled Experiments MONREPOS Archaeological Research Centre and Museum for Human Behavioural Evolution Schloss Monrepos 56567 Neuwied, Germany

Re: [R] Fwd: RFA Now Open: Essential Open Source Software for Science

2019-06-18 Thread Bert Gunter
This is probably a suboptimal list for your message. If you have not already done so, you should post it to R-package-devel and the Bioconductor development list, https://stat.ethz.ch/mailman/listinfo/bioc-devel . Cheers, Bert Gunter "The trouble with having an open mind is that people keep

[R] Fwd: RFA Now Open: Essential Open Source Software for Science

2019-06-18 Thread Dario Taraborelli
Hey all, I wanted to draw your attention to a new grants program we launched today at the Chan Zuckerberg Initiative, aiming to fund *open source scientific software* with significant adoption within the life sciences and biomedical research communities. We'd love to see applications from

Re: [R] Fwd: How to retain the NA as a value for splitting a dataframe

2019-05-24 Thread Gerrit Eichner
Hello, Jun, try split(df, f = factor(df$C, exclude = NULL)) For more info see ?factor, of course. Regards -- Gerrit - Dr. Gerrit Eichner Mathematical Institute, Room 212

[R] Fwd: How to retain the NA as a value for splitting a dataframe

2019-05-23 Thread Jun Shen
Dear list, Say I have a data frame with NA in the variable which I want to use as a sorting variable for splitting the data frame. df <- data.frame(A=1:10, B=c(rep(99,5), rep(100,5)), C=c(rep(NA,3), rep(1,3), rep(2,4))) split(df, f=df[c('C')], drop=FALSE), I got the output as follows. I was

[R] Fwd: error in duplicated() man page

2019-05-14 Thread Juan Gomez
-- Forwarded message - De: Juan Gomez Date: vie., 10 may. 2019 a las 11:12 Subject: Re: [R] error in duplicated() man page To: Bert Gunter Coming back to my example, which I think illustrates my point, we have 3x2 groups (as specified in MARGIN dimensions) with one cell in each

Re: [R] Fwd: Re: transpose and split dataframe

2019-05-06 Thread Matthew
nt(DataTable, na.print="NA") >>> #Regulator >>> # hitsAT1G69490 AT2G55980 >>> # AT1G05675 1NA >>> # AT1G26380 1NA >>> # AT2G85403NA 1 >>> # AT4G31

Re: [R] Fwd: Re: transpose and split dataframe

2019-05-02 Thread Jim Lemon
gt; # AT4G31950 1NA > > # AT4G89223NA 1 > > # AT5G24110 1NA > > > > If you need a data frame instead of a table: > > > > as.data.frame.matrix(DataTable) > > > > ---

Re: [R] Fwd: Re: transpose and split dataframe

2019-05-02 Thread Jim Lemon
1 > # AT5G24110 1NA > > If you need a data frame instead of a table: > > as.data.frame.matrix(DataTable) > > > David L Carlson > Department of Anthropology > Texas A University > College Station, TX 77843-435

Re: [R] Fwd: Re: transpose and split dataframe

2019-05-02 Thread David L Carlson
sday, April 30, 2019 4:31 PM To: r-help@r-project.org Subject: [R] Fwd: Re: transpose and split dataframe Thanks for your reply. I was trying to simplify it a little, but must have got it wrong. Here is the real dataframe, TF2list:  str(TF2list) 'data.frame':    152 obs. of  2 variables:  $ Re

Re: [R] Fwd: Re: transpose and split dataframe

2019-05-01 Thread Matthew
epartment of Anthropology > Texas A University > College Station, TX 77843-4352 > > > > > > -Original Message- > From: R-help On Behalf Of Matthew > Sent: Tuesday, April 30, 2019 4:31 PM > To: r-help@r-project.org > Subject: [R] Fwd: Re: transpose and split dat

Re: [R] Fwd: Re: transpose and split dataframe

2019-04-30 Thread David L Carlson
-- David L Carlson Department of Anthropology Texas A University College Station, TX 77843-4352 -Original Message- From: R-help On Behalf Of Matthew Sent: Tuesday, April 30, 2019 4:31 PM To: r-help@r-project.org Subject: [R] Fwd: Re: transpose and split datafram

[R] Fwd: Re: transpose and split dataframe

2019-04-30 Thread Matthew
Thanks for your reply. I was trying to simplify it a little, but must have got it wrong. Here is the real dataframe, TF2list:  str(TF2list) 'data.frame':    152 obs. of  2 variables:  $ Regulator: Factor w/ 87 levels "AT1G02065","AT1G13960",..: 17 6 6 54 54 82 82 82 82 82 ...  $ hits :

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-03 Thread Eric Bridgeford
ada > Web: https://socialsciences.mcmaster.ca/jfox/ > > > > > > -Original Message- > > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Eric > > Bridgeford > > Sent: Tuesday, April 2, 2019 5:01 PM > > To: Bert Gunter > >

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-03 Thread Eric Bridgeford
rstudent calls influence, to my knowledge, and all of the results passed by rstudent are dependent on values returned by influence (other than the weights, which I can't imagine are NaN), so I believe that influence is the issue. See the line

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-03 Thread peter dalgaard
> Web: https://socialsciences.mcmaster.ca/jfox/ > > > > >> -Original Message----- >> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Eric >> Bridgeford >> Sent: Tuesday, April 2, 2019 5:01 PM >> To: Bert Gunter >> Cc: R-hel

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-02 Thread Fox, John
idgeford > Sent: Tuesday, April 2, 2019 5:01 PM > To: Bert Gunter > Cc: R-help > Subject: Re: [R] Fwd: Potential Issue with lm.influence > > I agree the influence documentation suggests NaNs may result; however, as > these can be manually computed and are, indeed, finit

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-02 Thread Jim Lemon
Hi Eric, When I run your code (using the MASS library) I find that rstudent(fit2) also returns NaN in the seventh position. Perhaps the problem is occurring there and not in the "influence" function. Jim On Wed, Apr 3, 2019 at 9:12 AM Eric Bridgeford wrote: > > I agree the influence

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-02 Thread Eric Bridgeford
I agree the influence documentation suggests NaNs may result; however, as these can be manually computed and are, indeed, finite/existing (ie, computing the held-out influence by manually training n models for n points to obtain n leave one out influence measures), I don't possibly see how the

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-02 Thread Eric Bridgeford
How can I add attachments? The following two files were attached in the initial message On Tue, Apr 2, 2019 at 3:34 PM Bert Gunter wrote: > Nothing was attached. The r-help server strips most attachments. Include > your code inline. > > Also note that > > > 0/0 > [1] NaN > > so maybe something

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-02 Thread Bert Gunter
Also, I suggest you read ?influence which may explain the source of your NaN's . Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Apr 2, 2019 at 1:29 PM

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-02 Thread Bert Gunter
I told you already: **Include code inline ** See ?dput for how to include a text version of objects, such as data frames, inline. Otherwise, I believe .txt text files are not stripped if you insist on *attaching* data or code. Others may have better advice. Bert Gunter "The trouble with

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-02 Thread Bert Gunter
Nothing was attached. The r-help server strips most attachments. Include your code inline. Also note that > 0/0 [1] NaN so maybe something like that occurs in the course of your calculations. But that's just a guess, so feel free to disregard. Bert Gunter "The trouble with having an open

[R] Fwd: Potential Issue with lm.influence

2019-04-02 Thread Eric Bridgeford
Hi R core team, I experienced the following issue with the attached data/code snippet, where the studentized residual for a single observation appears to be NaN given finite predictors/responses, which appears to be driven by the glm.influence method in the stats package. I am curious to whether

Re: [R] Fwd: Error message: object of type 'closure' is not subsettable

2019-04-01 Thread Eric Berger
You may be calling a function when you think you are referring to an array. You can reproduce this error message as follows: f <- function(x) {x} f[1] HTH, Eric On Mon, Apr 1, 2019 at 5:49 PM Simrit Rattan wrote: > hey everyone :), > Subject: Re: Error message: object of type 'closure' is

[R] Fwd: Error message: object of type 'closure' is not subsettable

2019-04-01 Thread Simrit Rattan
hey everyone :), Subject: Re: Error message: object of type 'closure' is not subsettable I am writing a package which should calculate the binary logistic regression. The function itself work perfectly, but if I want to load the function from my package it gives me the above mentioned error. I

  1   2   3   4   5   6   7   8   9   10   >