Re: [R] Conditional Random selection

2015-11-21 Thread Bert Gunter
ong them is >= 500. It does not give you the fewest number of periods that can do this. Is this what you want? tab[with(tab,{ rownums<- sample(seq_len(nrow(tab))[X1>0]) sz <- cumsum(X2[rownums]) rownums[c(TRUE,sz<500)] }),] Cheers, Bert Bert Gunter "Data is not inf

Re: [R] Conditional Random selection

2015-11-21 Thread Bert Gunter
Time to do your own homework by working through an R tutorial or two. There are many on the web -- or see the Intro to R tutorial that ships with R. ?tapply ?unique is one of many answers to your query. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge

Re: [R] How to plot results from lme in presence of a significant interaction

2015-11-22 Thread Bert Gunter
I would have thought the first place to look would be ?interaction.plot Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Sun, Nov 22, 2015 at 2:44 PM, angelo.arc...@virgilio.it wrote: &

Re: [R] diff-ing .rds files

2015-11-23 Thread Bert Gunter
?dput or ?dump perhaps. (and dget() and source() ) I realize that these may not do what you want, but exactly what you want is a bit unclear (to me, anyway) depending on exactly what your saved results are. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge

Re: [R] Is manova() correct for this analysis?

2015-11-23 Thread Bert Gunter
This list is about R programming. Yours is a statistical question. Although there is certainly a nonempty intersection (and someone may attempt a response), statistical questions are better directed to a statistical list like stats.stackexchange.com. Cheers, Bert Bert Gunter "Data i

Re: [R] Probing a protein sequence alignment in R

2015-11-24 Thread Bert Gunter
Wrong list (mostly). You would do much better at the Bioconductor list, https://support.bioconductor.org/ Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Tue, Nov 24, 2015 at 9:04

Re: [R] Plotting Example Fail

2015-11-24 Thread Bert Gunter
But please spend some time with an R tutorial or two (An Intro to R ships with R; there are many more on the Web) before you post further here. Many such elementary confusions and time wasted -- both yours and ours -- will be avoided if you do so. Cheers, Bert Bert Gunter "Data i

Re: [R] R: RE: Syntax error in using Anova (car package)

2015-11-25 Thread Bert Gunter
folly. Of course, both you and John (and others) are free to disagree ... Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Wed, Nov 25, 2015 at 7:04 PM, angelo.arc...@virgilio

Re: [R] Using uniroot on c(0, 1) when the function does not change sign in this interval?

2015-11-28 Thread Bert Gunter
Is this a homework problem? This list has a no homework policy. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Fri, Nov 27, 2015 at 4:08 PM, mviljamaa wrote: > How can I use unir

Re: [R] cummeRbund MDSplot errors

2015-12-01 Thread Bert Gunter
This is a Bioconductor package. So I think you would do better to post on the Bioconductor list, not here. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Tue, Dec 1, 2015 at 6:27 AM, Be

Re: [R] disparate data collections and resolutions in a GAM

2015-12-01 Thread Bert Gunter
This is a general purpose R programming help list. Your post appears to be a very specific, subject matter question that should go to the R-Sig-geo list, where you are likely to get better and prompter responses. Cheers, Bert Bert Gunter "Data is not information. Information is not know

Re: [R] extract rows based on column value in a data frame

2015-12-02 Thread Bert Gunter
... or perhaps using rep() to do the indexing directly instead of matching: dfrm[ ave(dfrm$v1, dfrm$v1, FUN = function(x)rep(c(TRUE,FALSE),c(3,length(x)-3))), ] There's probably another 6 dozen ways to do it, especially if you access packages like data.table, plyr, etc. Cheers, Bert

Re: [R] extract rows based on column value in a data frame

2015-12-02 Thread Bert Gunter
... Perhaps also worth mentioning -- David's solution works even if there are less than 3 rows per group, whereas mine will fail. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On W

Re: [R] looping through rows of a logical matrix for combination with and testing of a numeric vector

2015-12-03 Thread Bert Gunter
I should have added -- is this homework? There is a no homework policy on this list. Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Dec 3, 2015 at 7:54 AM, Bert Gunter wrote: > Have you s

Re: [R] Random forest regression: feedback on general approach and possible issues

2015-12-04 Thread Bert Gunter
to be a bioinformatics type of issue. Cheers, Bert P.S. Both of these could be found with suitable internet searches. Don't neglect search engines for these types of queries. I have found them to be very helpful. Bert Gunter "Data is not information. Information is not knowledge. And

Re: [R] dataframe rbind

2015-12-04 Thread Bert Gunter
Try reading and following the Help file, ?rbind.data.frame. You are inventing your own syntax, not using R's. Incidentally, growing the frames as you do is generally a bad idea. Search r-help archives for why. Cheers, Bert Bert Gunter "Data is not information. Information is not

Re: [R] ChAMP: champ.runCombat error with methylation 450k data

2015-12-07 Thread Bert Gunter
Champ is a BioConductor package. You should post to the Bioconductor Help, not here. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Mon, Dec 7, 2015 at 12:34 PM, Brian Smith wrote: &

Re: [R] Why mean is not working in by?

2015-12-08 Thread Bert Gunter
gument, which a data frame is not -- ergo the error. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Tue, Dec 8, 2015 at 2:30 PM, Dimitri Liakhovitski wrote: > Hello! > Could you pleas

Re: [R] Why mean is not working in by?

2015-12-08 Thread Bert Gunter
Sarah: Note that (as I read them) aggregate() and by() work differently on data frames. aggregate() computes FUN column by column while by() feeds the whole (subset) data frame to FUN. If I am wrong about this, I would greatly appreciate being corrected. Cheers, Bert Bert Gunter "Da

Re: [R] [tcltk][tktable] How to make an efficient data transfer from R to Tcl?

2015-12-08 Thread Bert Gunter
Define: "transfer" ( save/load should be efficient and fast within R, but you appear to have something else in mind. What?) Apologies if it's obvious and I just don't get it. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And k

Re: [R] Restricted 4-PL curves using drc package

2015-12-09 Thread Bert Gunter
u care to reply, please do so to the list, not to me. 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, Dec 9, 2015 at 12:27 PM,

Re: [R] Errors when compile RInside using intel c++ compiler on windows

2015-12-10 Thread Bert Gunter
Wrong list!. This is about programming **IN** the R language. For your sort of question, post to the R-devel list. 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 &qu

Re: [R] Errors when compile RInside using intel c++ compiler on windows

2015-12-10 Thread Bert Gunter
Thanks, Marc. -- 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 Thu, Dec 10, 2015 at 9:43 AM, Marc Schwartz wrote: > Hi, >

Re: [R] problem in metro_hasting function‏

2015-12-10 Thread Bert Gunter
mething obvious)? Finally, if this is homework, post elsewhere: this list has a no homework policy. 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" c

Re: [R] problem in metro_hasting function‏

2015-12-10 Thread Bert Gunter
Sara: Always cc your reply to the list, which I have done here. No, I cannot help you. Others may be able to now. (They may still need your data, however). Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it.&quo

Re: [R] problem in metro_hasting function‏

2015-12-10 Thread Bert Gunter
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 Thu, Dec 10, 2015 at 1:16 PM, Bert Gunter wrote: > Sara: > > Always cc your re

Re: [R] Weird behaviour function args in ellipses

2015-12-11 Thread Bert Gunter
O, you are blaming others for your failings. If you care to respond, yours will be the last word. I will not comment further (and probably shouldn't have here). Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it.&qu

Re: [R] Question about a passage in R language

2015-12-11 Thread Bert Gunter
tr(x,"fy")<- "funny" > x [,1] [,2] [1,]14 [2,]25 [3,]36 attr(,"fy") [1] "funny" > x[] [,1] [,2] [1,]14 [2,]25 [3,]36 attr(,"fy") [1] "funny" ## this contradicts the Language d

Re: [R] Mean effect size in meta-analysis using Metafor

2015-12-12 Thread Bert Gunter
local statistical resource. If I misunderstand, correction would be appreciated. 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 )

Re: [R] define number of clusters in kmeans/apcluster analysis

2015-12-13 Thread Bert Gunter
rning help site, as this is a statistical issue, not an R programming issue AFAICS (corrections welcome if I'm wrong about this), and so is somewhat OT here. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into i

Re: [R] Problems using estimable() (gmodels) on lme()-objects

2015-12-14 Thread Bert Gunter
If you do not receive a satisfactory reply here, this is the sort of question that you should email the maintainer for, found by: > maintainer("gmodels") [1] "Gregory R. Warnes " Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep comi

Re: [R] Random selection of a fixed number of values by interval

2015-12-14 Thread Bert Gunter
ta$id[groups==grp[x]], size[x])) to: samples <- lapply(1:5, function(x) sample(data[groups==grp[x],"id"], size[x])) (rows and columns in a data frame can be simultaneously indexed) Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming alo

Re: [R] adding vector values to corresponding components of a list

2015-12-15 Thread Bert Gunter
response. 'Nuff said. 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 Tue, Dec 15, 2015 at 7:56 AM, debra ragland via R-help w

Re: [R] problem with Rcpp and boost threadpool

2015-12-15 Thread Bert Gunter
There is a Rcpp-devel mailing list that should be more suitable for this post. 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 )

Re: [R] unable to download library

2015-12-16 Thread Bert Gunter
7;t have a clue. 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, Dec 16, 2015 at 10:29 AM, John Karon wrote: > I am tr

Re: [R] unable to download library

2015-12-16 Thread Bert Gunter
I would just like to confirm that, like David W. , I am on a Mac. 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, Dec

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-16 Thread Bert Gunter
... which reminds me of Prof. Henry Higgins's comment in My Fair Lady in the song "Why can't the English" : There even are places where English completely disappears. Why, in America, they haven't used it for years! Cheers, Bert Bert Gunter "The trouble with havi

Re: [R] multidimensional splines

2015-12-18 Thread Bert Gunter
f doing multivariate smoothing splines. The mars() function in packages mda and earth is another. Apparently the one in earth adds "extra features" to the one in mda. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into

Re: [R] introduce axis break lattice plot multipanel

2015-12-18 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 ) On Fri, Dec 18, 2015 at 12:32 PM, Luigi Marongiu wrote: > Dear all, > I am plotting

Re: [R] Changing column names by unique factor levels

2015-12-19 Thread Bert Gunter
as I don't care to waste time chasing poorly phrased questions. 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 Sat, De

Re: [R] Nested Avova: Unequal # of Observations

2015-12-21 Thread Bert Gunter
) Showing us what you have done and what errors have occurred. You should not expect us to do your work for you, at least IMHO (others may differ). Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (ak

Re: [R] Expanding matrix into dummies

2015-12-22 Thread Bert Gunter
handy, though. 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 Tue, Dec 22, 2015 at 3:03 PM, Marc Schwartz wrote: > >

Re: [R] Error in heatmap()

2015-12-23 Thread Bert Gunter
don't waste time on your query here. 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, Dec 23, 2015 at 1:30

Re: [R] Right censored data, abundant in zeros for regression analysis.

2015-12-24 Thread Bert Gunter
, 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 Thu, Dec 24, 2015 at 5:41 AM, REES T. (706713) wrote: > Hi there, > > Fi

Re: [R] Probable Error in fmsb package

2015-12-30 Thread Bert Gunter
... Nor is this forum usually appropriate for questions about statistical methodology (your model building remark at the end). I suggest you try a statistical forum like stats.stackexchange.com for that instead. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people

Re: [R] need for help for solving operations in a vector

2015-12-30 Thread Bert Gunter
"Maybe you shall spend some time reading R intro manual which can serve you as an excellent starting point to learn R. Although it has one hundred pages it is quite readable and you may find it as a best present you found under Christmas tree." Fortune nomination! Cheers, Bert B

Re: [R] bootstrapping statistics from leaken package

2015-12-31 Thread Bert Gunter
Try d= data[ ,i] instead of d= data[i] in your function. If that doesn't help, I think we would have to know more about the structure of your data. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opu

Re: [R] create one bigger matrix with one smaller matrix

2015-12-31 Thread Bert Gunter
to create a new matrix with e.g. 2 x 6 "positions" in each of which is A, simply do kronecker (matrix(1, nr = 2, nc=6), A) or if you want to use the operator form: matrix(1,nr=2, nc=6) %x% A See ?kronecker Bert Gunter "The trouble with having an open mind is that people keep comi

Re: [R] save screen printed data frames and ggplots into a file

2015-12-31 Thread Bert Gunter
y. 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 Thu, Dec 31, 2015 at 4:46 PM, Ragia Ibrahim wrote: > Dear group > I h

Re: [R] save screen printed data frames and ggplots into a file

2016-01-01 Thread Bert Gunter
Still not clear (to me). But perhaps FAQ 7.16. You need to explicitly print or use echo = TRUE when sourcing from a file. 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

Re: [R] Additional polymath query

2016-01-02 Thread Bert Gunter
Quote the unicode -- it's just a way to write a text character: bquote(AUC[0-infinity]~(ng/ml~"\u25CF"~hours) 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

Re: [R] How to calculate the prediction interval without knowing the functional form

2016-01-03 Thread Bert Gunter
details on what "derived empirically" means. 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 Sun, Jan 3, 2016 at

[R] Fwd: exact trend test (enumerate all possible contingency tables with fixed row and column margins)

2016-01-07 Thread Bert Gunter
Sorry -- neglected to reply to the list. -- Bert -- Forwarded message -- From: Bert Gunter Date: Thu, Jan 7, 2016 at 10:38 AM Subject: Re: [R] exact trend test (enumerate all possible contingency tables with fixed row and column margins) To: li li I do not know whether there

Re: [R] permTREND function in package "perm"

2016-01-08 Thread Bert Gunter
with the package will have to reply. I am not. 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, Jan 8, 2016 at 5:24 PM, li

Re: [R] Forecasting with Timeseries with Different Frequency

2016-01-12 Thread Bert Gunter
A statistics, not an R question, and hence OT here. However, look at the CRAN Time Series Task View and/or post on a statistics site like stats.stackexchange.com Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it.&quo

Re: [R] Trying to use name of difference variable created in a function in call to wilcox.test function.

2016-01-12 Thread Bert Gunter
I think you're looking for ?bquote . Something like this should give you the idea: nm <- "yvar" bquote( .(y)~x, list(y = as.symbol(nm ))) The key is distinguishing between the character string "yvar" and the (language) object, as.symbol("yvar"). Cheer

Re: [R] Improve training of predictive neural networks

2016-01-13 Thread Bert Gunter
Inline. -- 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, Jan 13, 2016 at 2:55 PM, Luigi Marongiu wrote: > Dear all, &

Re: [R] xts/zoo index problem?

2016-01-19 Thread Bert Gunter
FAQ 7.31 maybe. (Unless special software is used) Only a finite number of numbers can be represented exactly on a computer. 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

[R] Simple syntax question (I think)

2016-01-20 Thread Bert Gunter
ilsdatasets toolsstatsgraphics splines grid methods base other attached packages: [1] nlme_3.1-122lattice_0.20-33 loaded via a namespace (and not attached): [1] grDevices_3.2.3 strucplot_0.5 Bert Gunter "The trouble with having an open mind is that people keep coming along and sti

Re: [R] Simple syntax question (I think)

2016-01-20 Thread Bert Gunter
one. The obvious message, though, is: don't do this! I suspect there is a reference to this somewhere in the R Language definition or elsewhere, and if so, I would appreciate someone referring me to it -- RTFM certainly applies! Cheers, Bert Bert Gunter "The trouble with having an op

Re: [R] Simple syntax question (I think)

2016-01-20 Thread Bert Gunter
Thanks to both Bill and Duncan for their help. As I said, my mal-understanding of the syntax. Best, 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" co

Re: [R] trimmed mean and Winsorized mean

2016-01-21 Thread Bert Gunter
But DO NOT DO ANY OF THIS. See the Robust Task View on CRAN and use the functionality of the robust or robustbase package. Trimmed/winsorized means are ancient technology; there is much better available today (and for the last 40 or so years, in fact). Cheers, Bert Bert Gunter "The tr

Re: [R] Logical operator in R

2016-01-22 Thread Bert Gunter
FAQ 7.31 -- 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, Jan 22, 2016 at 7:46 AM, li li wrote: > Hi all, > I

Re: [R] Division of data set with some restriction

2016-01-25 Thread Bert Gunter
certainly unclear to me. 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 Mon, Jan 25, 2016 at 12:12 PM, Muhammad Kashif w

Re: [R] Sorting a Data Frame

2016-01-26 Thread Bert Gunter
nyone who needs to make effective use of the language needs to put in the time to learn. I would say that this is the case even those who prefer to use the tools provided by Hadley Wickham's plyR packages or similar tools that may exist in others (e.g. data.table). Cheers, Bert Bert Gunter

Re: [R] Multilevel Modeling in R

2016-01-29 Thread Bert Gunter
tting reliable advice on such matters there. So you should sign up and post to R-sig-mixed-models on these topics rather than here. 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

Re: [R] Problem displaying greek symbols

2016-01-30 Thread Bert Gunter
: names(grDevices::pdfFonts()) Another possibility is that you are using the wrong encoding. Unfortunately, this is beyond my ability to help you with, but perhaps reading the Help on the encoding argument and related links might get you the necessary info. Cheers, Bert Bert Gunter "The tr

Re: [R] updating elements of a list of matrixes without 'for' cycles

2016-02-01 Thread Bert Gunter
ame (which is also a list) of i,j,k,index combinations: z <- expand.grid(i=1:2, j= 1:2, k = 1:2) ## Use do.call() to feed the columns of z to mapply yourarray <- array(do.call(mapply,c(prod,z)),dim=c(2,2,2)) Cheers, Bert Bert Gunter "The trouble with having an open mind is that people

[R] [R-pkgs] New Package: stripless (V. 1.0)

2016-02-02 Thread Bert Gunter
cient explanation and examples to get going. Feedback, suggestions, reports of bugs or any other infelicities are welcome. 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 "Bloo

Re: [R] OLS Regression on subset of data

2016-02-03 Thread Bert Gunter
Did you not read about the "subset" argument of lm() ? 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, Feb 3,

Re: [R] Create macro_var in R

2016-02-03 Thread Bert Gunter
. 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, Feb 3, 2016 at 10:23 AM, Amoy Yang via R-help wrote: > population is the

Re: [R] LDheatmap

2016-02-03 Thread Bert Gunter
Have you looked here (found immediately by an internet search!)? https://cran.r-project.org/web/packages/LDheatmap/vignettes/LDheatmap.pdf Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (ak

Re: [R] Paste Funtion Help

2016-02-04 Thread Bert Gunter
The problem in the original post is, as clearly stated , the ":=", which is some other language, not R. From which I infer that the OP needs to spend some additional time with an R tutorial or two to learn R. Cheers, Bert Bert Gunter "The trouble with having an open mind is t

Re: [R] [FORGED] Plot step function

2016-02-06 Thread Bert Gunter
c questions like the OP's can be found more quickly and easily through such means; and with the added benefit of providing examples and connections to related material. Of course, if **after** consulting such resources questions still remain, asking here is usually helpful. Cheers, Bert Bert

Re: [R] sorting matrix by sets rows

2016-02-06 Thread Bert Gunter
- with(znew,znew[order(Cluster), ]) Again, while I think this does what you want, someone else may provide something slicker. Or simpler. But the order() function is still very useful to know about anyway for this sort of thing. Cheers, Bert Bert Gunter "The trouble with having an open mind is

Re: [R] rfImpute() error-- while missing imputation --

2016-02-07 Thread Bert Gunter
5800 **not 5, 800** , no commas and no spaces. Please read an R tutorial or two to learn how to properly work with R if this is not merely a typo. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (ak

Re: [R] calling plot

2016-02-09 Thread Bert Gunter
ll[-match("data",names(mcall))] } else env <- NULL mcall[[1]] <- plot.default eval(mcall,envir=env,enclos=enc) } Cheers, Bert P.S. I would welcome more elegant solutions (especially if this one doesn't work right!) Bert Gunter "The trouble with having an open min

Re: [R] calling plot

2016-02-09 Thread Bert Gunter
Spencer, et. al.: As I suspected, my previous "solution" was pretty stupid. Here is, I think, the "right" way to go about it: plotxy <- function(x,...){ mcall <- match.call(expand.dots=FALSE) mcall[[1]]<- plot.default eval(mcall) } Best, Bert Bert Gun

Re: [R] calling plot

2016-02-09 Thread Bert Gunter
If you look at the code for plot.default() and then grDevices:: xy.coords, you'll see how the call is parsed and evaluated in the appropriate environment. My code above is trying to do the same thing, though I may still have holes. Cheers, Bert Cheers, Bert Bert Gunter "The troub

Re: [R] How to extract same columns from identical dataframes in a list?

2016-02-10 Thread Bert Gunter
Google! (e.g. on "R Language tutorials") Some specific recommendations can be found here: https://www.rstudio.com/resources/training/online-learning/#R Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it

Re: [R] MCA, Rcmdr, FactoMineR

2016-02-10 Thread Bert Gunter
, re-post. (Ignore this advice if John or others with greater expertise respond. Mine is a general prescription only). 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 &qu

Re: [R] Calculate average of many subsets based on columns in another dataframe

2016-02-10 Thread Bert Gunter
f it works. 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, Feb 10, 2016 at 1:08 PM, David Winsemius wrote: > >> On

Re: [R] Calculate average of many subsets based on columns in another dataframe

2016-02-10 Thread Bert Gunter
repeated for as many somedats as you like. Note that this is still a loop (via apply), however, so it may not satisfy your efficiency needs. 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 Breat

Re: [R] Why two curves and numerical integration look so different?

2016-02-12 Thread Bert Gunter
You are working in fantasyland. Your density is nonsense. Please see FAQ 7.31 for links to computer precision of numeric calculations. 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 B

Re: [R] Help with truncated normal distribution

2016-02-12 Thread Bert Gunter
Define "truncated." (It is often confused with "censored".) As stated, it seems to me that you already have the answer. Do you have data? -- i.e. what do you mean by "parameters" ? Cheers, Bert Bert Gunter "The trouble with having an open mind is that pe

Re: [R] confirm family==binomial and link==logistic

2016-02-12 Thread Bert Gunter
Not an answer But note that your several stopifnot() statements can be combined into 1. See ?stopifnot . 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 &qu

Re: [R] Matrix summary

2016-02-12 Thread Bert Gunter
Yes, but colMeans, rowMeans, pmax, pmin , etc. are *much* faster. 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, Feb

Re: [R] Data structure to hold the following

2016-02-15 Thread Bert Gunter
posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus

Re: [R] Comparing variance components

2016-02-16 Thread Bert Gunter
t.org mailing list -- To UNSUBSCRIBE and > more, see https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > >

Re: [R] I Need Help for Location Model,

2016-02-17 Thread Bert Gunter
ect.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- 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] I Need Help for Location Model,

2016-02-17 Thread Bert Gunter
urces/training/online-learning/#R Bert On Tuesday, February 16, 2016, Moss Moss wrote: > I want to generate data from a location model for my thesis. > Please, what do you mean by "homework policy". > > Help me to run R-programming in my system. > > On 2/17/16, Be

Re: [R] this is not a list, not a data frame, but what ?

2016-02-17 Thread Bert Gunter
t.org mailing list -- To UNSUBSCRIBE and > more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Bert Gunter "The trouble

Re: [R] mixed-effects models with (g)lmer in R and model selection

2016-02-19 Thread Bert Gunter
> 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 > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code.

Re: [R] Multivariate multiple linear regression question

2016-02-21 Thread Bert Gunter
> 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 > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Bert Gunter &

Re: [R] Question On Regex and DataFrame

2016-02-21 Thread Bert Gunter
sic question. > Thank you > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and > more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the postin

Re: [R] multiple linear regression with quadratic function

2016-02-23 Thread Bert Gunter
Inline. -- 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 Tue, Feb 23, 2016 at 2:42 AM, wrote: > Dear R community, > thi

Re: [R] lme() - MEEM error (singularity in Backsolve) due to user-specified contrasts amount

2016-02-23 Thread Bert Gunter
You are probably overfitting. This *IS* a statistical and not an R issue, and so does not belong here. You MAY get useful help by posting on the R-SIG-mixed-models list, however. But PLEASE post in *plain text*, not HTML, as the posting guide asks. Cheers, Bert Bert Gunter "The trouble

Re: [R] issue -- packages unavailable for R version -- 3.2.3

2016-02-24 Thread Bert Gunter
?update.packages 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 Tue, Feb 23, 2016 at 11:47 PM, Sandeep Singha wrote: &g

Re: [R] Double AND within an IF statement

2016-02-24 Thread Bert Gunter
Almost surely no. You are confusing "&&" with "&" ?"&" -- 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&qu

Re: [R] Double AND within an IF statement

2016-02-24 Thread Bert Gunter
I would have assumed that age, etc. were vectors; but that's why I said "almost" surely. -- 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&q

<    9   10   11   12   13   14   15   16   17   18   >