[R] tcltk problems

2017-11-17 Thread Rolf Turner
.h So why can't "configure" find these files, and how can I tell it where to find them? I'm running Ubuntu 16.04 and my last install of R was of version 3.4.2. My installation procedure always worked in the past Thanks for any tips. cheers, Rolf Turner -- Technical

Re: [R] tcltk problems

2017-11-17 Thread Rolf Turner
On 18/11/17 17:00, Erin Hodgess wrote: When I have compiled from sourced on Ubuntu, I did NOT include the "with-tcltk" and it worked fine.  Did you try that, please? In the past I have configured without using the "--with-tcltk" flag, and R of course built just fine. But it *did not* have tclt

Re: [R] tcltk problems

2017-11-17 Thread Rolf Turner
On 18/11/17 17:00, Erin Hodgess wrote: When I have compiled from sourced on Ubuntu, I did NOT include the "with-tcltk" and it worked fine.  Did you try that, please? As I said, this idea makes absolutely no sense, but OK, I tried it. And of course it didn't work. Using the newly built R I ra

Re: [R] [FORGED] Re: tcltk problems

2017-11-18 Thread Rolf Turner
On 19/11/17 05:36, Albrecht Kauffmann wrote: Did you istall the tcl- and tk-devel packages? (a) That should be "dev" not "devel". (b) The answer to your question is, yes, as I made clear in my original post. cheers, Rolf Turner -- Technical Editor ANZJS Depa

Re: [R] tcltk problems

2017-11-18 Thread Rolf Turner
On 18/11/17 18:18, Peter Langfelder wrote: Rolf, looking at the configure script I believe you need to specify --with-tcl-config=/usr/lib/tcl8.6/tclConfig.sh and similarly --with-tk-config= HTH. Yes it helped. Thank you. I don't really understand why, but. I had previously (following an

Re: [R] tcltk problems

2017-11-19 Thread Rolf Turner
. Well, OK. What list *should* it be on? I was asking for help with an R problem. It seems to me that R-help is appropriate. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276

Re: [R] [FORGED] Re: installing "rgl" package

2017-11-23 Thread Rolf Turner
, but I *think* this should get you going with rgl. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 * installing *source* package ‘rgl’ ...checking for gcc... gcc -std=gnu99 checking whether the C compiler works...

Re: [R] [FORGED] Re: R vs PYTHON vs SAS vs SPSS?

2017-12-01 Thread Rolf Turner
On 01/12/17 20:33, Hasan Diwan wrote: Yes. Very true. But some *thinking* is required; that often proves to be a formidable stumbling block. cheers, Rolf Turner On 30 November 2017 at 22:28, wrote: I am a mature learner; 3 masters some doctoral work “ statistics for social

[R] OT -- isotonic regression subject to bound constraints.

2017-12-11 Thread Rolf Turner
inding the projection of the point (y_1, ..., y_n) onto the intersection of the isotonic cone and the hypercube [a,b]^n. At first I thought that protecting onto the isotonic cone and then projection that result onto the hypercube might work, but I am now pretty sure that is hopelessly naive.

Re: [R] OT -- isotonic regression subject to bound constraints.

2017-12-11 Thread Rolf Turner
On 12/12/17 07:15, Rolf Turner wrote: Well, I could argue that it's not *completely* OT since my question is motivated by an enquiry that I received in respect of a CRAN package "Iso" that I wrote and maintain. The question is this:  Given observations y_1, ..., y_n, what i

Re: [R] [FORGED] something weird has happened....!!!!!!!!!!

2017-12-15 Thread Rolf Turner
what you really should do unless you provide some genuine information. Few members of this list are telepathic. I certainly am not. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext.

[R] Discrete valued time series data sets.

2018-01-01 Thread Rolf Turner
suggestions? Thanks. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman

Re: [R] Discrete valued time series data sets.

2018-01-02 Thread Rolf Turner
On 03/01/18 06:04, Eric Berger wrote: Hi Rolf, I looked at https://docs.microsoft.com/en-us/azure/sql-database/sql-database-public-data-sets One of the first sets in the list is the airline time series (I think it is also used in dplyr examples). https://www.transtats.bts.gov/OT_Delay/OT_De

Re: [R] Discrete valued time series data sets.

2018-01-02 Thread Rolf Turner
On 03/01/18 10:55, Achim Zeileis wrote: The "tscount" package (see http://doi.org/10.18637/jss.v082.i05) comes with several count data time series. Maybe this is the kind of discrete data you were interested in? Yes, that's very useful. Thanks. cheers, Rolf -- Technical Editor ANZJS Depart

Re: [R] [FORGED] Error occurring in "emmeans" package for the two data sets I used. Please help.

2018-01-09 Thread Rolf Turner
Then, I tried to do post hoc analysis using "emmeans" package following command: --- emmeans(keough.raimondi.ln.aov, ~ biofilm) This gives following error: ------ Error in re

Re: [R] [FORGED] Re: Revolutions blog: December 2017 roundup

2018-01-09 Thread Rolf Turner
On 10/01/18 07:47, Doran, Harold wrote: The blog post that the vocal range directs to is *highly* offensive and off color and in very poo taste to share with this group. Huh? And furthermore ???. cheers, Rolf P. S. Moreover: "poo taste"!!! :-) R. -- Technical Editor ANZJS Department

Re: [R] [FORGED] RE: [FORGED] Re: Revolutions blog: December 2017 roundup

2018-01-09 Thread Rolf Turner
On 10/01/18 09:31, Doran, Harold wrote: It would be better for you to instead read the blog post that uses extremely derogatory language instead of your silly post below. I did read it, somewhat cursorily I admit, and saw no derogatory language whatever, which is why I was puzzled. cheers,

Re: [R] [FORGED] substr gives empty output

2018-01-21 Thread Rolf Turner
ting wrong? What you're getting wrong is failing the read the help for substr(). The third argument is "stop", not the length of the substring. For example, I have this code: x <- "testing" k <- nchar(x) for (i in 1:k) { y <- substr(x, i, 1) prin

Re: [R] [FORGED] Re: SE for all levels (including reference) of a factor atfer a GLM

2018-02-15 Thread Rolf Turner
On 16/02/18 15:28, Bert Gunter wrote: This is really a statistical issue. What do you think the Intercept term represents? See ?contrasts. 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 Bre

Re: [R] deparseDots to get names of all arguments?

2018-02-20 Thread Rolf Turner
On 21/02/18 11:36, Spencer Graves wrote: Hi, All:   How can I get the names of all the arguments in dots(...)?   I'm able to get the name of the first argument but not the second: deparseDots <- function(...){   deparse(substitute(...)) } a <- 1 b <- 2 deparseDots(a, b) [1] "a"

[R] Repeated use of dyn.load().

2018-03-01 Thread Rolf Turner
f bar.so. But have I just been lucky so far? (I have not experimented heavily). Am I running risks of leading myself down the garden path? Are there Traps for Young (or even Old) Players lurking about? I would appreciate Wise Counsel. cheers, Rolf Turner -- Technical Editor ANZJS Departme

[R] Extracting specified pages from a lattice ("trellis") object.

2018-04-13 Thread Rolf Turner
real application a similar construction does not work. Thanks for any insight. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 __ R-help@r-project.org mailing list -- To U

Re: [R] [FORGED] Extracting specified pages from a lattice ("trellis") object.

2018-04-23 Thread Rolf Turner
On 24/04/18 15:17, Paul Murrell wrote: Hi I think the subsetting works by giving you the panels for the corresponding levels of the conditioning variable(s).  Note that, if there is more than one conditioning variable, you will need more than one subsetting index. For example, taking this

Re: [R] [FORGED] Re: Specifying priors in a multi-response MCMCglmm

2018-05-01 Thread Rolf Turner
about anything would classify Bert as ignorant. By the way, my research is Anthropology despite my job title. OK. Your job title is misleading. Let's say "in order to avoid producing yet more irreproducible anthropological research" then. cheers, Rolf Turner -- Technica

Re: [R] [FORGED] Re: NAs produced by integer overflow, but only some time ...

2018-05-09 Thread Rolf Turner
27;: Your intemperate reaction to Jeff's response is completely uncalled for. I find Jeff's patience in giving a such a detailed answer to you your rather muddled question to be remarkable. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckla

Re: [R] [FORGED] [R-sig-Geo] Help

2018-05-14 Thread Rolf Turner
nk you for advice, Rolf Turner My question is as follows: I'd use maxent to model the potential distribution of cowpea on the basis of the only presence data. Indeed, I have acquired a number of environmental variables and bioclimatic regarding my area of study. But to choose the most contrib

Re: [R] help on the R package Softmaxreg

2018-05-28 Thread Rolf Turner
On 28/05/18 18:13, Vy Ong wrote: Hello, Are there anyone knowing about the Softmaxreg R package? I suspect that the maintainer of softmaxreg (please note the *lower case* "s") "knows about" this package! cheers, Rolf Turner -- Technical Editor ANZJS Department of S

[R] OT --- grammar.

2018-06-24 Thread Rolf Turner
e wisdom of the R community to help me decide. Thanks, and my apologies for the off-topic post. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 __ R-help@r-project.org mail

Re: [R] OT --- grammar.

2018-06-24 Thread Rolf Turner
On 25/06/18 12:03, Bert Gunter wrote: Ted, et. al.: Re: "Data is" vs "data are" ... Heh heh! "This is the kind of arrant pedantry up with which I will not put." (Attributed to Churchill in one form or another, likely wrongly.) See here for some semi-authoritative dicussion: http://www.onlineg

Re: [R] [FORGED] Plot multiple time series on a seasonal plot

2018-06-29 Thread Rolf Turner
year.labels.left = TRUE, main="Whatever") OP <- par(new=TRUE,xaxt="n",yaxt="n") seasonplot(ts2, col="red",main="") par(OP) seems to work. It would be nice to have an "add=" argument (defaulting to FALSE, of course) to seasonp

Re: [R] prod(NaN, NA) vs. prod(NA, NaN)

2018-07-03 Thread Rolf Turner
it inconsistent with "+". Again I doubt that the implications are all that serious. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 __ R-help@r-project.org m

Re: [R] Generate N random numbers with a given probability and condition

2018-07-04 Thread Rolf Turner
In what way do you want the final result to be "random"? I expect that the lecturer who assigned this problem to you needs to clarify his/her thinking as well. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics Univ

Re: [R] [FORGED] Re: Generate N random numbers with a given probability and condition

2018-07-11 Thread Rolf Turner
On 11/07/18 12:46, Jim Lemon wrote: Hi Nell, I may not have the right idea about this, but I think you need to do this in two steps if it can be done. Let's say you want a sequence of 20 (N) numbers between 0 and 10 that sums to 10 (M). You can enumerate the monotonically increasing sequences lik

Re: [R] [FORGED] [bug] spdep package?

2018-07-23 Thread Rolf Turner
? What does find("x") return? It puzzles me that your sessionInfo() doesn't show something like: other attached packages: [1] spdep_0.6-13 Matrix_1.2-10 sp_1.2-5 There are probably other issues that you have not told us about. cheers, Rolf Turner -- Technical Editor ANZJS Dep

Re: [R] Finding Infimum in R

2017-04-10 Thread Rolf Turner
On 10/04/17 20:57, Boris Steipe wrote: Are you sure this is trivial? I have the impression the combination of an ill-posed problem and digital representation of numbers might just create the illusion that is so. Fortune nomination. cheers, Rolf -- Technical Editor ANZJS Department of Stat

Re: [R] [FORGED] hier.part limitation

2017-04-10 Thread Rolf Turner
er of variables must be < 13 for current implementation" Uh, why do you suppose that the function puts out that error message? If you want a function that handles 13 or more variables you'll have to write it yourself. cheers, Rolf Turner P. S. I have no knowledge whatever

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-15 Thread Rolf Turner
to clutter this mailing list with your (off-topic) question. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-16 Thread Rolf Turner
y uses "Startup" twice. Note also that help(startup) fails. You have to get that initial "S" right. This isn't a criticism of the documentation. I'm just pointing out that there are problems, mostly insoluble. Until some clever Johnny gets on with deve

Re: [R] Unknown anomaly

2017-04-18 Thread Rolf Turner
ter. This has been the same. None of my colleagues had an answer. I hope that you would be able to help me fix that as it must be a pretty straightforward error that I do not realise. I would be thankful for any help. See FAQ 7.31. cheers, Rolf Turner -- Technical Editor ANZJS Department

[R] A new -up?

2017-04-19 Thread Rolf Turner
So am I doing something wrong, or is "r-help-archive" messing things up for other people as well? And if the latter, can something be done to remove its malign influence? cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone:

Re: [R] A new -up?

2017-04-19 Thread Rolf Turner
On 19/04/17 20:01, peter dalgaard wrote: I believe that the list maintainer is hunting this down. As I understood it, it was more due to incompetence than to actual malice. Years ago I ran across an aphorism that very much appealed to me: "Never attribute to malice that which may be adequate

[R] Bug in the triMat( ) function in the deldir package.

2017-04-22 Thread Rolf Turner
addition to this bug fix. If you have in the past used triMat(), you should check your results from that usage against those produced by the triMat() function from the revised version. Sorry 'bout that. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics Universi

Re: [R] [FORGED] missing and replace

2017-04-26 Thread Rolf Turner
;- as.data.frame(lapply(DF1,function(x){ x[is.na(x)] <- mean(x,na.rm=TRUE) x})) There may be sexier ways of accomplishing your goal, but this should work. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckla

Re: [R] [FORGED] Re: How create columns for squared values from previous columns?

2017-04-28 Thread Rolf Turner
ose sleep over it. cheers, Rolf Turner P.S. You could also do names(dat) <- make.unique(names(dat)) to your original idea, to get rid of the lack of uniqueness. The result is probably "undesirable" but. R. T. -- Technical Editor ANZJS Department of Statistics University o

Re: [R] [FORGED] Re: display double dot over character in plotmath?

2017-05-13 Thread Rolf Turner
splays the (yeuchh!!!) Windoze symbol, a distorted window in black and white. This key is totally useless for anything else, so one might as well use it for the compose key. (2) Then do: . E.g ' a " ' gives ' ä '. Note: Do *not* hold the compose key down whil

Re: [R] [FORGED] p-value=0 running log-rank test

2017-05-18 Thread Rolf Turner
This is not an R question. Your question indicates that you really need to learn some statistics. To answer the very last part: > pchisq(430,3,lower=FALSE) [1] 7.020486e-93 And if that is not 0 to all intents and purposes, then God help us all. cheers, Rolf Turner On 19/05/17 12:48, A

Re: [R] [FORGED] Logical Operators' inconsistent Behavior

2017-05-19 Thread Rolf Turner
; NA is FALSE. Und so weiter. As I said *think* about it; don't just go with your immediate knee-jerk (simplistic) reaction. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 ___

Re: [R] [FORGED] Logical Operators' inconsistent Behavior

2017-05-19 Thread Rolf Turner
On 19/05/17 23:38, S Ellison wrote: TRUE & FALSE is FALSE but TRUE & TRUE is TRUE, so TRUE & NA could be either TRUE or FALSE and consequently is NA. OTOH FALSE & (anything) is FALSE so FALSE & NA is FALSE. As I said *think* about it; don't just go with your immediate knee-jerk (simplistic) rea

Re: [R] [FORGED] Logical Operators' inconsistent Behavior

2017-05-19 Thread Rolf Turner
ALSE & NA [1] FALSE Huh???? cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch

Re: [R] [FORGED] Re: [FORGED] Logical Operators' inconsistent Behavior

2017-05-20 Thread Rolf Turner
On 20/05/17 22:18, Duncan Murdoch wrote: On 20/05/2017 5:53 AM, Martin Maechler wrote: Ramnik Bansal on Sat, 20 May 2017 08:52:55 +0530 writes: > Taking this question further. > If I use a complex number or a numeric as an operand in logical > operations, to me it APPEARS that

Re: [R] [FORGED] Re: [FORGED] Logical Operators' inconsistent Behavior

2017-05-20 Thread Rolf Turner
On 20/05/17 22:42, Duncan Murdoch wrote: On 20/05/2017 6:39 AM, Rolf Turner wrote: On 20/05/17 22:18, Duncan Murdoch wrote: On 20/05/2017 5:53 AM, Martin Maechler wrote: Ramnik Bansal on Sat, 20 May 2017 08:52:55 +0530 writes: > Taking this question further. > If I

Re: [R] [FORGED] Re: Fwd: Rpart help

2017-05-23 Thread Rolf Turner
On 24/05/17 14:38, Bert Gunter wrote: Forget Excel. Erase it from your memory. banish its paradigms from your practices. Faiing to do so will only bring misery as you explore R. R is a rational programming language primarily for data analysis, statistics, and graphics. Excel is, ummm, not. Go

Re: [R] [FORGED] Re: Rpart help

2017-05-24 Thread Rolf Turner
On 24/05/17 20:30, peter dalgaard wrote: And, never mind Bert's rant, a simple table(single_order, churn) would give info similar to what you claim to have from Excel, minus the risk of finding that the data are not the same, or that Excel was doing something bizarre. Bert? Rant? Perish

Re: [R] [FORGED] Need Help - R Programming - Using iteration value to change field names for processing for every iteraion

2017-05-30 Thread Rolf Turner
(2) Distinguish between data frames and matrices; they are *NOT* the same thing! What you need here are matrices. (3) I think this will work for you: M <- as.matrix(test) Mnew <- cbind(0,M[,-ncol(M)]) + M cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics

Re: [R] [FORGED] deviance in GLM vs. summary.glm

2017-05-31 Thread Rolf Turner
ciple.) I.e. try to simulate y-values from a coefficient vector that does not suffer from the "degeneracy", fit a model to the simulated y-values, and compare the two tests. They still won't agree, but they will (surely?) be less wildly discrepant. cheers, Rolf Turner -- Te

Re: [R] [FORGED] Re: Question on function "scatterplot3d"

2017-05-31 Thread Rolf Turner
ome point? I tried the code given above, and after I replaced the deleted> incorrect double quote mark (after the final "z"), it ran and looked OK *except* for the positioning of the "y" axis label, which is at the "far end" of the y-axis rather than being at

Re: [R] [FORGED] Re: Question on function "scatterplot3d"

2017-06-01 Thread Rolf Turner
On 01/06/17 19:54, Uwe Ligges wrote: A design flaw, whether the labels are cut depends somewhat on the sizce of the device, hence there is the argument y.margin.add add additional space between tick mark labels and axis label of the y axis for working around that limittation that can be set t

Re: [R] [FORGED] Re: Question on function "scatterplot3d"

2017-06-01 Thread Rolf Turner
On 02/06/17 03:02, Uwe Ligges wrote: On 01.06.2017 10:03, Rolf Turner wrote: On 01/06/17 19:54, Uwe Ligges wrote: A design flaw, whether the labels are cut depends somewhat on the sizce of the device, hence there is the argument y.margin.add add additional space between tick mark labels

Re: [R] [spatstat] Convert shapefile to pixel image

2017-06-01 Thread Rolf Turner
his is the sexiest way, I think. The value chosen for "dimyx", i.e. 128, is just by way of example. You can use whatever value suits you. The larger it is, the smoother the individual polygons will look, in pixellated form, but the longer things will take. With 4307 polygon

Re: [R] [FORGED] glm and stepAIC selects too many effects

2017-06-05 Thread Rolf Turner
always fraught with peril. The phenomenon that you have observed has been remarked on before; see Alan Miller's book "Subset Selection in Regression" (Chapman and Hall, 1990), page 12 (first paragraph of section 1.4). However you might find some of Miller's recommendations

Re: [R] [FORGED] Problem related to rowSums

2017-06-07 Thread Rolf Turner
On 07/06/17 21:08, Yogesh Gupta wrote: Hi... I have a dataframe with n columns and n rows. I need to find how many rows contains zero raw read count across all column. (1) You should probably have a *matrix*, not a data frame. (2) Have you ever heard of the idea of providing a *reproducible

Re: [R] How Can I Execute a String Expression?

2017-06-12 Thread Rolf Turner
hout the quotes. How can execute the command as a string, so that I can run it repeatedly (with minor modifications) in a loop? Presumably, it would be something like: execute(ggstr) Thanks for your help. eval(parse(text = ggstr)) cheers, Rolf Turner -- Technical Editor ANZJS Departmen

Re: [R] [FORGED] IF LOOOP

2017-06-13 Thread Rolf Turner
o work for my vector. Can't figure out why... Thanks for the help r <- as.vector(lw) count=0 for (i in r) { if(i == 0.990956) { break } print(i) } FAQ 7.31 cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-

Re: [R] [FORGED] Re: draw stripes in a circle in R

2017-06-14 Thread Rolf Turner
On 15/06/17 05:29, David Winsemius wrote: On Jun 14, 2017, at 10:18 AM, David Winsemius wrote: On Jun 14, 2017, at 9:46 AM, Jeff Newmiller wrote: I don't see a question. If your question is whether R supports pattern fills, AFAIK it does not. If that is not your question, ask one. -- Sen

Re: [R] [FORGED] about fitting a regression line

2017-06-14 Thread Rolf Turner
ing about R? It's time that you did. Read and study carefully "An Introduction to R" from the R web site -> Manuals. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 ___

Re: [R] [FORGED] Re: about fitting a regression line

2017-06-14 Thread Rolf Turner
model? The mind boggles. Well, I guess there is a "subtlety" here. Linear models are *linear in the PARAMETERS of the model*, not in the predictors. First-year knuckle-draggers get confused about this. People who are using R to do research should be a bit beyond such confusion.

Re: [R] [FORGED] Re: draw stripes in a circle in R

2017-06-14 Thread Rolf Turner
On 15/06/17 10:27, David Winsemius wrote: On Jun 14, 2017, at 1:53 PM, Rolf Turner wrote: Why does this (apparently) not happen to anyone else? Why does the universe pick on *me*? What is the function "alpha()"? Where is it to be found? I discovered some time ago that I

Re: [R] [FORGED] Re: draw stripes in a circle in R

2017-06-14 Thread Rolf Turner
On 15/06/17 13:51, David Winsemius wrote: On Jun 14, 2017, at 5:52 PM, Jeff Newmiller wrote: Sigh. I never load packages in .Rprofile to avoid the irreproducibility trap. Might seem drastic to some, but I don't feel much pain because I almost always edit my code in a file rather than on the

Re: [R] [FORGED] Generate correlated expontial distribution -- lamda please guide

2017-06-16 Thread Rolf Turner
89695.n4.nabble.com/How-to-generate-bivariate-exponential-distribution-td3596944.html in which Petr Savicky gives a simple construction. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276

Re: [R] [FORGED] About error bars on barplots

2017-06-17 Thread Rolf Turner
On 18/06/17 12:10, lily li wrote: Hi R users, I have a question about adding uncertainty bars to stacked bar plots. DF: year A B C Amin Amax Bmin Bmax Cmin Cmax 2009 40 45 15 30 61 23 56 14 17 2010 36 41 23 26 54 22 51

Re: [R] [FORGED] How to write an estimated seasonal ARIMA model from R output?

2017-06-20 Thread Rolf Turner
4) a_t is the correct one. This stuff *does* get confusing; parity errors keep creeping in! cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 __ R-help@r-project.org mailing

Re: [R] [FORGED] Re: Question about correlation

2017-07-05 Thread Rolf Turner
On 06/07/17 10:23, Jim Lemon wrote: I think that Goran is right, I didn't take "cor(data)" literally. See fortune(15). cheers, Rolf -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 __ R-

Re: [R] [FORGED] How does findAssocs() calculate the correlation value ??

2017-07-06 Thread Rolf Turner
e definition of correlation. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/

Re: [R] Making 2 dimensional vector from the 3 dimensional one

2017-07-14 Thread Rolf Turner
is a scalar. I can't believe that this is actually what you are talking about. Please clarify. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 __ R-help@r-projec

Re: [R] [FORGED] A problem with order() function in R

2017-07-17 Thread Rolf Turner
aps this will give you some insight: o <- order(x) x[o] cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more

Re: [R] Problem in shiny writing a .txt file

2017-07-19 Thread Rolf Turner
On 19/07/17 19:19, Ana Belén Marín wrote: Hi all! I'm developing a shiny app and I have problems when I wanna write a .txt file. " ... when I *want to* write ..." The language of this mailing list is *English*, not Valspeak. cheers, Rolf Turner -- Technical Editor ANZJ

Re: [R] [FORGED] How export data set (available in the package) from R?

2017-07-30 Thread Rolf Turner
slip the dogs of war. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listi

[R] Flummoxed by gsub().

2017-08-22 Thread Rolf Turner
oes, giving: [1] "5" "10" "20" "5" "10" "20" OM! (Apparently "\D" means *not* a digit.) So I have *a* solution to my problem. However I would really like to know why the the first idea I tried did not work a

Re: [R] Flummoxed by gsub().

2017-08-23 Thread Rolf Turner
On 23/08/17 18:33, Stefan Evert wrote: On 23 Aug 2017, at 07:45, Rolf Turner wrote: My reading of ?regex led me to believe that gsub("[:alpha:]","",x) should give the result that I want. That's looking for any of the characters a, l, p, h, : . OK. I see

Re: [R] Flummoxed by gsub().

2017-08-23 Thread Rolf Turner
On 23/08/17 18:41, PIKAL Petr wrote: Hi Rolf I am not at all an expert in regex but gsub("[[:alpha:]]","",x) Works as you expected. Do not ask me why. Thanks Petr. Stefan Evert's explanation clarified the issue. Which I must say *needed* some clarification! cheers, Rolf -- Technical E

Re: [R] Flummoxed by gsub().

2017-08-23 Thread Rolf Turner
On 24/08/17 02:46, Bert Gunter wrote: 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, Aug 23, 2017 at 2:29 AM

Re: [R] [FORGED] Re: Block comment?

2017-09-02 Thread Rolf Turner
On 03/09/17 03:56, William Dunlap via R-help wrote: Is the reason you want a block comment containing code (as opposed to arbitrary text) that you want to be able to easily run the commented out code? If so the 'if()' construct has the advantage that you only need to change code at the start of

Re: [R] [FORGED] Re: Block comment?

2017-09-02 Thread Rolf Turner
On 03/09/17 12:29, Duncan Murdoch wrote: On 02/09/2017 6:57 PM, Rolf Turner wrote: On 03/09/17 03:56, William Dunlap via R-help wrote: Is the reason you want a block comment containing code (as opposed to arbitrary text) that you want to be able to easily run the commented out code? If so

Re: [R] [FORGED] [R-sig-Geo] circular spatial polygon

2017-09-13 Thread Rolf Turner
[i]] <- wedge((i-1)*pi/4,i*pi/4,15,centre=cntr) ttt <- tess(tiles=wedgies) plot(ttt) # Looks OK to me. And maybe also do: W <- do.call(union.owin,wedgies) plot(W) for(i in 1:8) { plot(wedgies[[i]],add=TRUE,border="red") readline("Go? ") } Also looks OK to me.

Re: [R] [FORGED] Help in R

2017-09-13 Thread Rolf Turner
rd deviation by taking the square root of the biased estimate. To verify whether the foregoing conjecture is true, you'll have to ask your lecturer. Good luck Note *both* sqrt(V1) and sqrt(V2) are *biased* estimates of sigma (the population standard deviation). HTH cheers, Rolf Turner

Re: [R] Converting SAS Code

2017-09-29 Thread Rolf Turner
On 30/09/17 07:45, jlu...@ria.buffalo.edu wrote: The conceptual paradigm for R is only marginally commensurate with that of standard statistical software. You must immerse yourself in R to become proficient. Fortune nomination. cheers, Rolf -- Technical Editor ANZJS Department of Statist

Re: [R] Converting SAS Code

2017-09-30 Thread Rolf Turner
On 01/10/17 01:22, Robert Baer wrote: On 9/29/2017 3:37 PM, Rolf Turner wrote: On 30/09/17 07:45, jlu...@ria.buffalo.edu wrote: The conceptual paradigm for R is only marginally commensurate with that of standard statistical software. You must immerse yourself in R to become proficient

Re: [R] [FORGED] RFM Analysis Help

2017-10-04 Thread Rolf Turner
On 04/10/17 21:11, Hemant Sain wrote: I'm trying to perform a RFM analysis on attached dataset, Is "RFM" the Russian [1] version of "RTFM"? (Sorry, just couldn't resist!) cheers, Rolf Turner [1] The Russian language had no definite articles. Or indefi

Re: [R] [FORGED] bootstrapping results in table format

2017-10-07 Thread Rolf Turner
ackages that you don't mention (in this case "data.table"). (3) Don't use "data" as the name of a data object. There is a base function called "data" whence you run the risk of getting toadally incomprehensible error messages as the result of certain

Re: [R] lib default location

2016-05-21 Thread Rolf Turner
ended path? It is fine to keep this per user default. Note that you can suppress the somewhat redundant message by specifying quiet=TRUE in the call to install.packages(). cheers, Rolf Turner Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext.

Re: [R] [FORGED] couldn't install pcalg package in R 3.1.3

2016-05-27 Thread Rolf Turner
Do it correctly. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Creating R file

2016-05-28 Thread Rolf Turner
can use EXCEL to create .csv file, and view the content with text editor. There are myriad ways to create *.csv files, including text editors and R itself, and other sound statistical packages. There is no need to use the abomination that is known as Excel. cheers, Rolf Turner -- Technical

Re: [R] [FORGED] Re: email threads chronology

2016-05-30 Thread Rolf Turner
it - short of contacting IT staff, which is more irritating than the corrupted threads." Semi-Fortune!? This is probably not quite suitable for the fortunes package, but I still think it's clever. I think this would be an excellent fortune! cheers, Rolf Turner -- Technical Editor

Re: [R] [FORGED] Re: Extract from a text file

2016-05-31 Thread Rolf Turner
On 01/06/16 15:27, Bert Gunter wrote: On Tue, May 31, 2016 at 7:05 PM, Jeff Newmiller wrote: You need to go back and study how I made my solution reproducible and make your problem reproducible. You probably also ought to spend some time comparing the regex pattern to your actual data... the

Re: [R] [FORGED] Re: help with r package "trip"

2016-06-15 Thread Rolf Turner
ght* be to invoke homedist() as trip:::homedist() Note the *triple* colon in the foregoing. I am not at all familiar with the trip package so my advice should probably be taken with several grains of salt. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics Univers

Re: [R] [FORGED] Ask function missing in package car

2016-06-21 Thread Rolf Turner
you to believe that such a function exists (in the "car" package or anywhere else for that matter)? And what exactly do you want it to do for you? cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Ph

Re: [R] [FORGED] Re: Generate list if sequence form two vector element

2016-06-22 Thread Rolf Turner
On 22/06/16 20:00, Jim Lemon wrote: Hi Tanvir, Not at all elegant, but: make.seq<-function(x) return(seq(x[1],x[2])) apply(matrix(c(a,b),ncol=2),1,make.seq) Not sure that this is more "elegant" but it's a one-liner: lapply(1:length(a),function(i,a,b){a[i]:b[i]},a=a,b=b) cheers, Rolf On W

Re: [R] [FORGED] Re: Rattle

2016-06-24 Thread Rolf Turner
On 25/06/16 09:13, Jeff Newmiller wrote: This is like asking, "My car doesn't work. Can anyone tell me what is wrong?" Fortune nomination! cheers, Rolf -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 _

Re: [R] [FORGED] Help with the Cut Function

2016-06-25 Thread Rolf Turner
set correctly however the values which are below 20 are set to NA. Is there anything i am doing incorrect. No. What is the problem? This seems to me to be exactly what one would expect. If you don't want NAs, set your lower break to be less than the minimum of desc$Age, e.g. -Inf. che

Re: [R] Error using function seas()

2016-06-25 Thread Rolf Turner
This is identical to the question that you previously asked and you still have not addressed the problem of making your example *reproducible*. cheers, Rolf Turner On 26/06/16 01:52, T.Riedle wrote: Dear all, I am trying to run the seas() function. If I run the seas() function as shown

  1   2   3   4   5   6   7   8   9   10   >