Re: [R] Testing for R CMD INSTALL

2021-07-24 Thread Bert Gunter
Does ?installed.packages help? 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 Sat, Jul 24, 2021 at 8:30 AM Andrew Simmons wrote:

Re: [R] Converting a list to a data frame

2021-07-24 Thread Bert Gunter
this is not correct, you should provide a **plain text** reprex. Of course, even if correct, this is not a template. The exact process will depend on the structure of the list. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it

Re: [R] Assigning categorical values to dates

2021-07-21 Thread Bert Gunter
You have been told how to do it. If you do not understand, you should find a suitable tutorial to learn about how R factors work. There are some difficulties in converting dates on an ongoing basis to factors, so I think you should take Tom's advice to rethink this. It sounds as if you might also d

Re: [R] Using R to analyse Court documents

2021-07-20 Thread Bert Gunter
Look here: https://cran.r-project.org/web/views/NaturalLanguageProcessing.html 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, Jul

Re: [R] ask for help about lme function

2021-07-20 Thread Bert Gunter
The mixed models list is r-sig-mixed-models . nlme:lme is not really designed for crossed random effects. IIRC, it's possible, but not easy. As Kevin said, lme4:lmer is really what you should use. Bert Gunter "The trouble with having an open mind is that people keep coming along an

Re: [R] ls() pattern question

2021-07-15 Thread Bert Gunter
d to be confused about the syntax of argument specification in general. 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 Thu, Jul 15, 2021 at 2:09

Re: [R] ls() pattern question

2021-07-14 Thread Bert Gunter
Actually fun( param != something..) is syntactically incorrect in the first place for any function! ls sees "pat != whatever" as the "name" argument of ls() and can't make any sense of it, of course. Bert Gunter "The trouble with having an open mind is tha

Re: [R] density with weights missing values

2021-07-12 Thread Bert Gunter
(i.e. that most would agree are inconsistent) may exist. This may be such a case. But, again, all you can do is follow the docs whether or not the behavior meets your "reasonable" expectations. Just my opinion, of course. Consume at your own risk. Bert Gunter "The trouble with

Re: [R] density with weights missing values

2021-07-12 Thread Bert Gunter
The behavior is as documented AFAICS. na.rm logical; if TRUE, missing values are removed from x. If FALSE any missing values cause an error. The default is FALSE. weights numeric vector of non-negative observation weights. NA is not a non-negative numeric. Bert Gunter "The trouble

Re: [R] rWind: Error in if (is.numeric(v) && any(v < 0)) { : missing value where TRUE/FALSE needed

2021-07-11 Thread Bert Gunter
Further questions would be better sent to: https://stat.ethz.ch/mailman/listinfo/r-sig-geo 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

Re: [R] error message from read.csv in loop

2021-07-10 Thread Bert Gunter
The whole of ?Quotes, especially the examples, is informative and worth the read (imo). 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 Sat, Jul 10,

Re: [R] problem for strsplit function

2021-07-09 Thread Bert Gunter
"But it takes me a while to get familiar R." Of course. That is true for all of us. Just keep on plugging away and you'll get it. Probably far better than I before too long. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking thin

Re: [R] problem for strsplit function

2021-07-09 Thread Bert Gunter
rns TRUE if x is a vector of the specified mode having no attributes other than names. It returns FALSE otherwise."). But I would say these issues are sufficiently murky that my warning to be precise is not entirely inappropriate; unfortunately, I may have made them more so. Sigh Cheers, B

Re: [R] problem for strsplit function

2021-07-09 Thread Bert Gunter
documentation, but others may prefer more extended expositions. I stand by this claim even if one chooses to use the "Tidyverse", data.table package, or other alternative frameworks for handling data. Again, others may disagree, but R is structured around these basics, and imo one remains i

Re: [R] MAC version 10

2021-07-08 Thread Bert Gunter
If the below is not helpful, post on r-sig-mac rather than here. You should be able to download and install a precompiled binary (no zip files to unzip and compile) from here: https://cran.r-project.org/ Bert Gunter "The trouble with having an open mind is that people keep coming alon

Re: [R] problem for strsplit function

2021-07-07 Thread Bert Gunter
You would need to loop through the list to use strsplit() -- you are confused about list structure. Here's a simple way to do it using regex's -- **assuming that there is only one period in your names that delineates the extension.** If this is not true, then this **will fail**. This is vectorized

Re: [R] add a variable a data frame to sequentially count unique rows

2021-07-02 Thread Bert Gunter
Still can't makes sense of it. Shouldn't rows 5-7 have 3 for counts and rows 8-9 have 2? If not, then I give up trying to figure out what you mean. Maybe someone wlse can. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things in

Re: [R] add a variable a data frame to sequentially count unique rows

2021-07-02 Thread Bert Gunter
Your example makes no sense (to me, anyway). Please check it carefully. Note that the count in rows 2 and 3 increment but the counts in rows 5-7 or rows 8-9 do not. So your specification seems inconsistent to me. Bert Gunter "The trouble with having an open mind is that people keep coming

Re: [R] concatenating columns in data.frame

2021-07-01 Thread Bert Gunter
.call(paste,c(df[,use_columns], sep = "_")) df In case you are wondering, this works because by definition *a date frame **is** a list*, so the concatenation is list concatenation. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking thi

Re: [R] Joining data frames

2021-06-29 Thread Bert Gunter
: newdf <- merge(df1, df2, all = TRUE) ?merge gives you more info to get what you may want if I'm wrong. 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" co

Re: [R] Constructing stacked bar plot

2021-06-27 Thread Bert Gunter
As has already been pointed out to you (several times, I believe) -- **HTML code is stripped on this *plain text* list**. Hence, "bolded, red code" is meaningless! Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it

Re: [R] dynamic panel data with weight

2021-06-26 Thread Bert Gunter
Have you looked here? https://cran.r-project.org/web/views/Econometrics.html 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 Sat, Jun 26,

Re: [R] Special characters in cell names

2021-06-23 Thread Bert Gunter
So my suggestion was indeed irrelevant. 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 Wed, Jun 23, 2021 at 2:39 PM Mahmood Naderan wro

Re: [R] Special characters in cell names

2021-06-23 Thread Bert Gunter
names in back ticks usually works (maybe always works??). So for example: z<-data.frame (`a/b` = 1:5, y = 1:5, check.names = FALSE) plot(y ~ `a/b`, data = z) ## produces desired plot with correct label z ## yields: a/b y 1 1 1 2 2 2 3 3 3 4 4 4 5 5 5 Of course, ignore if this is

Re: [R] Plot NUTS regions with color

2021-06-23 Thread Bert Gunter
I suggest you post this in the r-sig-geo list rather than here. The expertise you seek is more likely to be there. 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 Coun

Re: [R] How to spot/stop making the same mistake

2021-06-23 Thread Bert Gunter
quot;, "T", "True", "true", "tRue", "1") > as.logical(charvec) [1] FALSE FALSE FALSE FALSENANA TRUE TRUE TRUE TRUENANA > !!charvec Error in !charvec : invalid argument type Cheers, Bert Bert Gunter "The trouble

Re: [R] interactively getting alist of functions for a given package?

2021-06-23 Thread Bert Gunter
?ls and note the "pattern" argument. e.g. ls("package:base", pat =".*set.*") 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&quo

Re: [R] Mediation analysis takes up all RAM, then all swap, and then RStudio/terminal suddenly closes

2021-06-22 Thread Bert Gunter
thz.ch/mailman/listinfo/r-sig-fedora , though of course I have no idea whether your problem is OS specific. 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

Re: [R] Data is not properly written in csv file

2021-06-21 Thread Bert Gunter
r need further assistance. This applies to both requests for help and to bug reports." You may get lucky here and someone familiar with the tabulizer package will respond; but unless you have already done so and received no response -- in which case say so -- you should contact the maintainer abo

Re: [R] Unexpected behaviour when using format(x, scientific = TRUE) on integer vector

2021-06-19 Thread Bert Gunter
ments of a **real or complex vector** should be encoded in scientific format, or an integer penalty (see options("scipen")). Missing values correspond to the current default penalty. Your vector is integer, right? The options("scipen") man page also indicates that fixed format will

Re: [R] apply a color range (kind of like a heat map) to the values in each cell of a data frame

2021-06-18 Thread Bert Gunter
I haven't followed this closely, but you might wish to check the stats::image() function to see if it might give you what you want (perhaps with a little finagling). Feel free to ignore if you are happy with what you have. As Jim said, there are lots of functions in various packages that do this so

Re: [R] Embedded R: Test if initialized

2021-06-16 Thread Bert Gunter
I believe this is the wrong list for this post. See the posting guide, linked below, for one that is more appropriate. 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 Coun

Re: [R] Need to compare two columns in two data.frames and return all rows from df where rows values are missing

2021-06-14 Thread Bert Gunter
3688455 26e NA 0.1428000 27e NA 0.2164079 28e NA 0.1524447 29f NA 0.3181810 30f NA 0.1388061 Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Brea

Re: [R] Identifying words from a list and code as 0 or 1 and words NOT on the list code as 1

2021-06-14 Thread Bert Gunter
ar(ut) > Fringe <- grepl("[[:alpha:]]", out) > Core [1] TRUE FALSE TRUE FALSE FALSE FALSE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [14] FALSE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE [27] TRUE TRUE TRUE TRUE FALSE TRUE > Fringe [1] TRUE T

Re: [R] Need to compare two columns in two data.frames and return all rows from df where rows values are missing

2021-06-13 Thread Bert Gunter
... but I *think* merge(A, B, by = "name", all = TRUE) is what you want. Rows of NA's correspond to rows that were in one but not the other. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka

Re: [R] Need to compare two columns in two data.frames and return all rows from df where rows values are missing

2021-06-13 Thread Bert Gunter
As always, a reprex would considerably improve the chances of a useful reply... See the posting guide linked below. 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 Coun

Re: [R] Identifying words from a list and code as 0 or 1 and words NOT on the list code as 1

2021-06-11 Thread Bert Gunter
if you run into the problem of pattern length limitations, then sequentially, one at a time, might be simpler. My judgments of computational efficiency are often wrong anyway. Note: I think my approach works, but I would appreciate an on-list response if I have erred. Also, even if correct, alternative

Re: [R] Identifying words from a list and code as 0 or 1 and words NOT on the list code as 1

2021-06-11 Thread Bert Gunter
of phrases in your core list allows such conflicts to arise. Do you claim that phrases would be chosen so that this can never happen? -- or what is your specification if they can (what constitutes a match and in what priority)? Bert Gunter "The trouble with having an open mind is that people

Re: [R] question re: tidycensus

2021-06-11 Thread Bert Gunter
r need further assistance. This applies to both requests for help and to bug reports." The "tidyverse" consists of contributed packages, so do not be surprised if you do not receive a response here. Of course, if you have contacted the maintainers, say so, but of course that doesn'

Re: [R] with replace na with 0?

2021-06-11 Thread Bert Gunter
reprex? 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, Jun 11, 2021 at 7:23 AM Enrico Gabrielli < enricogabrielli76.per...@gmail.c

Re: [R] Merging multiple .csv files into one dataframe

2021-06-09 Thread Bert Gunter
I really think you need to create a simple reprex to show us what you want to do. In doing so, you may figure out how to get what you want. I suspect you may also need to spend some more time learning R -- following rote examples can be a fool's errand if you don't know the basics. B

Re: [R] aggregation of irregular interval time-series

2021-06-09 Thread Bert Gunter
ove on. Cheers, Bert 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 Wed, Jun 9, 2021 at 2:41 PM Rui Barradas wrote: > Hello, > &

Re: [R] Need help to fix the max date filter problem in the date input

2021-06-08 Thread Bert Gunter
I do not wish to be involved in this thread other than to note that you were, I believe, asked not to post in HTML. And because you did, you will find that "Bold" highlighting does not exist in your text below. I have no idea whether that matters for your query or not, but there it

Re: [R] .Last function in R 4.1.0

2021-06-07 Thread Bert Gunter
According to the News file for 4.1.0 -- you should always check there first for such things -- "The base environment and its namespace are now locked (so one can no longer add bindings to these or remove from these)." So the docs do seem to need updating. Bert Gunter "The trou

Re: [R] Beginner problem - using mod function to print odd numbers

2021-06-05 Thread Bert Gunter
fair to say that one should try to work within the paradigms that are the language's strengths when possible, R's vectorization and indexing in this example. Cheers, Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- O

Re: [R] shinyFiles update shinySaveButton filename varaible from server

2021-06-04 Thread Bert Gunter
ssistance. This applies to both requests for help and to bug reports." So do not be surprised if you do not get a response here. 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 &quo

Re: [R] wanting to count instances of values in each cell of a series of simulated symmetric matrices of the same size

2021-06-01 Thread Bert Gunter
r ... ## You will *not*want to do this if you have lots of matrices: list_of_mats <- list(x,y) arr <- array(do.call(c,list_of_mats), dim = c(3,3,length(list_of_mats))) arr arr[2,3,] ## all the values in the [2,3] cell of the matrices; do whatever you want with them. Cheers, Bert Bert Gunter

Re: [R] Binary data on JAGS

2021-06-01 Thread Bert Gunter
Unless you have got reason not to, always reply to the list (included in this response). I cannot help, but someone else may be able to. 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

Re: [R] Binary data on JAGS

2021-06-01 Thread Bert Gunter
Where is p defined before it is used? (Is this part of what jags provides somehow?) 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, Ju

Re: [R] Error: C stack usage 15924320 is too close to the limit

2021-05-29 Thread Bert Gunter
Please see the posting guide linked below. Questions about nonstandard packages are generally off topic here. You should probably do as the pg recommends and contact the maintainer, who you can find by the maintainer() function. Bert On Sat, May 29, 2021, 10:16 AM Gossaye Hailu wrote: > I am d

Re: [R] R grep question

2021-05-28 Thread Bert Gunter
lt;-CRC$gene.all %in% match_strings > CRC$MMR.gene [1] TRUE FALSE TRUE FALSE 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 Thu, May 27,

Re: [R] multilabel classification XGBoost and hyperparameter tuning

2021-05-27 Thread Bert Gunter
gt; Do you have any other suggestion? > > Bye, > Agnes > > -- > *Van:* Bert Gunter > *Verzonden:* donderdag 27 mei 2021 16:44 > *Aan:* Agnes g2g > *CC:* r-help@r-project.org > *Onderwerp:* Re: [R] multilabel classification XGBoost and hyperparameter > tuning > &

Re: [R] multilabel classification XGBoost and hyperparameter tuning

2021-05-27 Thread Bert Gunter
roject.org/web/views/MachineLearning.html Cran's "task views" are a useful resource for such "does R have...?" questions. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breath

Re: [R] Decompose df1 into another df2 based on values in df1

2021-05-26 Thread Bert Gunter
S2 S3 S4 S5 a1 1 0 0 0 0 a2 1 0 1 0 1 a3 0 0 0 0 1 b1 1 1 1 0 0 b3 1 0 1 0 0 b4 0 0 1 1 0 c1 0 0 1 0 0 c2 0 1 0 0 0 c4 0 0 1 1 0 Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it.&

Re: [R] help to correct the function problem

2021-05-24 Thread Bert Gunter
This is a *plain text* list. I find your HTML (below) unreadable. I suggest you re-post to make it easier for others to help. 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 &qu

Re: [R] Plotting Coxph model with an interaction.

2021-05-20 Thread Bert Gunter
Perhaps this might be useful: https://rpubs.com/tf_peterson/interactionplotDemo 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 Thu, May

Re: [R] Solving a quadratically constrained linear program with inital values

2021-05-17 Thread Bert Gunter
Have you looked here: https://cran.r-project.org/web/views/Optimization.html (Warning: I have no idea whether your query even makes mathematical sense.) Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (ak

Re: [R] phylogenetic correction and MCMC model

2021-05-17 Thread Bert Gunter
Such specialized questions are usually better posted on appropriate R-sigs, in this case, https://stat.ethz.ch/mailman/listinfo/r-sig-phylo I presume. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkele

Re: [R] Wide to long format in R

2021-05-17 Thread Bert Gunter
I believe you'll need to show us exactly what bop.df looks like, e.g. via head(bop.df) . 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 )

Re: [R] Reg:K-Means cluster/Matrix Analysis

2021-05-15 Thread Bert Gunter
Sounds like homework. This list has a no homework policy. See the posting guide linked below, which says: "*Basic statistics and classroom homework:* R-help is not intended for these." Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking

Re: [R] No error message but don't get the 8 graphs

2021-05-09 Thread Bert Gunter
?getwd 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 Sun, May 9, 2021 at 2:59 PM varin sacha via R-help wrote: > Rui, > >

Re: [R] Analysing data with repeated measure variable

2021-05-06 Thread Bert Gunter
This looks like homework. We don't do homework on this list. To see what is done here, read and follow the posting guide linked below. If not homework, I think it is still very much out of bounds anyway, as you appear to be asking us to do your work for you. On Thu, May 6, 2021, 2:32 PM Ahmad Ra

Re: [R] [MatchIt] Naive Estimator for ATT after Full Matching

2021-05-05 Thread Bert Gunter
ainer first." The matchit package maintainer can be found by: maintainer("matchit") if you think the above applies. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed

Re: [R] Question

2021-05-01 Thread Bert Gunter
ta-analysis . Also per the posting guide, post in plain text not html. Not a problem here, but it can be when one posts code. Cheers, 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 &quo

Re: [R] Help understanding loop behaviour

2021-04-30 Thread Bert Gunter
There is something wrong here I believe -- see inline below: 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, Apr 30, 2021 at 10:37 AM

Re: [R] Converting Date Time values

2021-04-26 Thread Bert Gunter
Did you mean to use "or" instead of "and" in your query? If so, no comment. If "and," then yes, as that allows a great deal of functionality (ordering, comparisons, time-date arithmetic, etc.) that would otherwise be painful or require special packages. IMO only,

Re: [R] Occurrence by season

2021-04-21 Thread Bert Gunter
t;,"spr","sum","fal")[x+1]) > f [1] win win spr spr spr sum sum sum fal fal fal win Levels: fal spr sum win ## see ?factor if you want to alter the ordering of the levels (e.g. for graphics, nice tables of results, etc.) Cheers, Bert Gunter "The trouble with ha

Re: [R] Check accuracy of the model

2021-04-17 Thread Bert Gunter
list, it *may* elicit an informative up-to-date answer." Also, this is a **plain text** list -- so **no HTML** in any future postings, please. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed

Re: [R] different dimensions in W and my data in moran and spatial model

2021-04-14 Thread Bert Gunter
Almost certainly better posted on R-Sig-geo, not here. See here for more info on R mailing lists: https://www.r-project.org/mail.html 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

Re: [R] How to force boundary conditions on discretized derivative in deSolve?

2021-04-14 Thread Bert Gunter
herein, which I assume might be helpful to you. Cheers, Bert 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 Wed, Apr 14, 2021 at 7:05 AM Bro

Re: [R] Looping through data error

2021-04-13 Thread Bert Gunter
can be purchased It's somewhat messier if the results are not ordered by date within company -- you could use by() and POSIXct to order the dates within company to get the right one. Cheers, Bert Gunter "The trouble with having an open mind is that people keep coming along and sticki

Re: [R] Add a new row based on test set predicted values and time stamps

2021-04-13 Thread Bert Gunter
(Revealing my ignorance): Simpler still than the as.POSIXct() idiom is just to use the as.Date version: out <- with(out, out [order(Group, id, as.Date(Date)),]) ## all else the same... Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking thi

Re: [R] Add a new row based on test set predicted values and time stamps

2021-04-13 Thread Bert Gunter
, I think, as well as others) that simplify such things. I am pretty ignorant about date-time stuff, so I can't really be more specific. https://cran.r-project.org/web/views/TimeSeries.html will have lots of info on this if you need it. As well as searching, of course. HTH Bert Gunter &qu

Re: [R] Assigning several lists to variables whose names are contained in other variables

2021-04-09 Thread Bert Gunter
ists and how. to use them. Cheers, Bert 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, Apr 9, 2021 at 7:22 PM Wolfgang Grond wrote: >

Re: [R] Geolocating image frames automatically from an already georeferenced image

2021-04-05 Thread Bert Gunter
e, but you decide. Post on only one at a time and wait several days for a response before posting on another (R netiquette). Cheers, 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

Re: [R] FD package_dbFD error

2021-03-31 Thread Bert Gunter
quot;packagename") to find this information. *Only* send such questions to R-help or R-devel if you get no reply or need further assistance. This applies to both requests for help and to bug reports." Bert Gunter "The trouble with having an open mind is that people keep coming al

Re: [R] Word cloud based on a specific site

2021-03-29 Thread Bert Gunter
Also (I think): https://cran.r-project.org/web/views/NaturalLanguageProcessing.html (get to know the CRAN resources!). 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 Coun

Re: [R] Spie charts

2021-03-28 Thread Bert Gunter
ere's more information than can be easily grasped in a small table. Feel free to address responses and criticisms to me/ Ferri off list. I only kept my remarks on list so that others could offer their possibly different perspectives. Bert Gunter "The trouble with having an open mind is tha

Re: [R] Shapes of the districts of Brandenburg

2021-03-26 Thread Bert Gunter
There is a specific help list devoted to geography and mapping related issues that may be a better place to post this: r-sig-geo Cheers, 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

Re: [R] local maxima positions in a vector with duplicated values

2021-03-26 Thread Bert Gunter
ngth(vals) > whmin<-c(vals[-1], -Inf) > vals & c(-Inf, vals[-n]) > vals > whmax <- c(vals[-1], Inf) < vals & c(Inf, vals[-n]) < vals > cumsum(z$lengths)[whmin] [1] 4 9 12 16 > cumsum(z$lengths)[whmax[-1]] +1 [1] 8 10 13 Cheers, Bert Bert Gunter "T

Re: [R] Thanks for help

2021-03-25 Thread Bert Gunter
apply() is also a (disguised) loop, though. I think you will find that indexing via rowSums is a lot faster: ## The example set.seed(111) ## for reproducibility a<-matrix(sample(1:20,350,TRUE),ncol=10) ## 35 rows ## A one-liner a[rowSums(a != 1) == 10, ] ## 20 rows Bert Gunter "The

Re: [R] Converting POSIXct format date to Character format

2021-03-24 Thread Bert Gunter
What package is select() in? 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 Wed, Mar 24, 2021 at 4:42 PM Jeff Newmiller wrote: >

Re: [R] setRefClass in package

2021-03-24 Thread Bert Gunter
I think this query fits better on r-package-devel rather than here. 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 Wed, Mar 24, 2021 at 6

Re: [R] Can't save files from the Source pane of R Studio

2021-03-22 Thread Bert Gunter
some of which they charge for). (Don't feel bad: this is a regular source of confusion on this forum). 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

Re: [R] R-help Digest, Vol 217, Issue 20

2021-03-21 Thread Bert Gunter
... or a George Box (I believe) said: The crucial "Declaration of Independence." 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 ) O

Re: [R] Custom annotation vector in R tsmp package

2021-03-20 Thread Bert Gunter
ou get no reply or need further assistance. This applies to both requests for help and to bug reports." So while you might get a response here, you should not expect one. Also, I think it will be very difficult for anyone to help you without knowing what "data" looks like. Could be wrong

Re: [R] about a p-value < 2.2e-16

2021-03-19 Thread Bert Gunter
ught and unnecessary p-value. But that is just my personal opinion of senseless standard scientific practice, and if anyone want to dispute it, please reply OFFLIST, though I would probably not disagree with any such criticism of my cynicism. Bert Gunter "The trouble with having an open mind i

Re: [R] about a p-value < 2.2e-16

2021-03-19 Thread Bert Gunter
examining the C code source would determine this, but I don't care to attempt this. If this is (no longer?) correct, please point this out. Best, 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] Problem with the str_replace function

2021-03-16 Thread Bert Gunter
I prefer using regular expressions directly, so this may not satisfy you: > a <-"Women's footwear (excluding athletic)" > b <- gsub("(.*) \\(.*$","\\1",a) > b [1] "Women's footwear" There are, of course other ways to do this with r

Re: [R] R

2021-03-16 Thread Bert Gunter
https://www.r-project.org/mail.html 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, Mar 16, 2021 at 12:51 PM Jonathan Lim wrote: &

Re: [R] help

2021-03-16 Thread Bert Gunter
A 2 dim distribution must have a 2 x 2 covariance matrix. Your mean in b) specifies 2 dim, but your covariance matrix is 3x3. If you haven't just made a typo and you don't know what this means, then either consult statistics references or find someone to help you. Cheers, Bert Gu

Re: [R] Failure in predicting parameters

2021-03-14 Thread Bert Gunter
Do the negative values in your data make any sense? Note that if Fb must be >0, Fc must be also. But I have *not* examined your code/equations in detail, so feel free to ignore if this is irrelevant. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people kee

Re: [R] R extension memory leak detection question

2021-03-12 Thread Bert Gunter
This is the wrong list for such questions. Post to r-devel instead. Cheers, 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, Mar

Re: [R] "global parameter" warning using data.table in package.

2021-03-05 Thread Bert Gunter
I believe these questions belong on r-package-devel, not here. 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, Mar 5, 2021 at 5

Re: [R] Image processing in R for BMI calculation

2021-03-01 Thread Bert Gunter
This discussion is completely offr topic here. Please take it elsewhere. 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 Mon, Mar 1, 20

Re: [R] Image processing in R for BMI calculation

2021-02-28 Thread Bert Gunter
idance" (if you have not already done this). 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 Sun, Feb 28, 2021 at 8:39 AM Paul Bernal w

Re: [R] Help post

2021-02-27 Thread Bert Gunter
stical questions for which you do not receive a response here. 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 Sat, Feb 27, 2021 at 6:14 PM B

Re: [R] Making model predictions

2021-02-27 Thread Bert Gunter
below) recommends for "non-standard" packages. (?maintainer) 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 Sat, Feb 27, 2021 at 6:42

Re: [R] time as a continuous factor in a linear mixed effects model

2021-02-25 Thread Bert Gunter
You should post this on the r-sig-mixed-models list rather than here. 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 Thu, Feb 25, 2021 a

Re: [R] Different Lambdas and Coefficients between cv.glmnet and intercept = FALSE

2021-02-23 Thread Bert Gunter
ner Your query seems to be mostly statistical in nature and certainly about a non-standard package (glmnet), so if you do not get a useful response here within a few days -- you might despite the above -- try the above. Bert Gunter "The trouble with having an open mind is that people keep

<    1   2   3   4   5   6   7   8   9   10   >