Re: [R] extracting coefficients from ar() output

2016-06-16 Thread peter dalgaard
d the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org

Re: [R] Find mean of values in three-dimensional array

2016-06-15 Thread peter dalgaard
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. -- Peter Dalgaard, Professo

Re: [R] Warning message in openxlsx

2016-06-15 Thread peter dalgaard
tname, >>cols = 1:ncol(dataset), >>widths = "auto") >> >> and t_write_xlsx is >> >> saveWorkbook(workbook, >>file = file.path(path, filename), >>overwrite = overwrite) >> >> I am woundring what "partial match of 'font'

Re: [R] Dashed/dotted ecdf plots using lots of points

2016-06-13 Thread peter dalgaard
rnative 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 posting guide http://www.R-project.org/posting-guide.html &

Re: [R] detecting if a variable has changed

2016-06-06 Thread peter dalgaard
f (! identical(l, attr(l, 'sorted'))) { >>>>>>>l = sort(unlist(l)) >>>>>>>attr(l, 'sorted') = weakref(l) >>>>>>> } >>>>>>> # Do operation that requires sorted list. >>>>>>> ... >>

Re: [R] Error from Rcmdr when trying to make a density plot

2016-06-04 Thread peter dalgaard
tils grDevices base Looks like you somehow managed to detach (or not attach) the stats package. Don't... -pd -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Offi

Re: [R] Application of "merge" and "within"

2016-06-01 Thread peter dalgaard
1 D1 1 13 13 0 >> 2 1 1 G1 D1 2 16 13 3 >> 3 1 1 G1 D1 3 19 13 6 >> 4 1 1 G1 D1 4 12 13 -1 >> 5 1 1 G1 D1 5 19 13 6 > > Just use > > s <- within(s, db <- b - bl) > > Duncan Murdoch > > __

[R] Release of R 3.3.1 scheduled for June 21

2016-05-29 Thread Peter Dalgaard
We intend to have a patch release on June 21, nickname will be "Bug in Your Hair". The detailed schedule will be made available via developer.r-project.org as usual. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksber

Re: [R] WARNING: Method convertPointFromBase

2016-05-23 Thread peter dalgaard
___ > 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. -- Peter

Re: [R] meaning of lm( y~., data=mydat ), is it a language feature, is it documented, is it supported?

2016-05-23 Thread peter dalgaard
ty Statement: >> This email message, including any attachments, is for ...{{dropped:8}} > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read th

Re: [R] Element-by-element operation (adding)

2016-05-23 Thread peter dalgaard
> On 23 May 2016, at 07:44 , Peter Langfelder <peter.langfel...@gmail.com> > wrote: > > or > > t(apply(v, 1, `+`, b)) Or, as you're messing with transposes anyways, use the fact that the column-wise counterpart is automagically handled by recycling: t(t(v)+b) Or, lo

Re: [R] Element-by-element operation (adding)

2016-05-22 Thread Peter Langfelder
Two solutions... v + matrix(b, nrow(v), ncol(v), byrow = TRUE) or t(apply(v, 1, `+`, b)) Peter On Sun, May 22, 2016 at 10:39 PM, Steven Yen <sye...@gmail.com> wrote: > Hi all, need help below. Thank you. > > > # Matrix v is 5 x 3 > > # Vector b is of length 3

Re: [R] Matrix multiplications

2016-05-21 Thread peter dalgaard
20-3980 >> e-mail: roy.mendelss...@noaa.gov www: http://www.pfeg.noaa.gov/ >> >> "Old age and treachery will overcome youth and skill." >> "From those who have been given much, much will be expected" >> "the arc of the mor

Re: [R] Matrix multiplications

2016-05-21 Thread peter dalgaard
iling 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. -- Peter Dalgaard, Professor, Center for Statistics, Co

Re: [R] Grep command

2016-05-19 Thread Peter Langfelder
some, all, invert = TRUE) [1] 2 4 5 Peter On Thu, May 19, 2016 at 4:09 PM, Steven Yen <sye...@gmail.com> wrote: > What is a good way to grep multiple strings (say in a vector)? In the > following, I grep ants, cats, and fox separately and concatenate them, > is there a way to gre

Re: [R] Placement of words in a word cloud as per its occurance.

2016-05-18 Thread peter dalgaard
. As it stands, people are left wondering which function it might be that has an argument called random.order. - Peter Dalgaard On 17 May 2016, at 13:09 , shaila shailaja <shaila...@rediffmail.com> wrote: > Dear R help subscribers, > > > > > I am working on a wo

Re: [R] 2x2x2 rm ANOVA, varying results

2016-05-15 Thread peter dalgaard
native 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 posting guide http://www.R-project.org/posting-guide.html > and pr

Re: [R] with vs. attach

2016-05-09 Thread peter dalgaard
gt;>>> >>>> Hadley's link requires his development version of "lazyeval", >>>> which can be obtained as follows: >>>> >>>> >>>> library(devtools) >>>> install_github("hadley/lazyeval") >>

Re: [R] with vs. attach

2016-05-06 Thread peter dalgaard
issue is that values in "dat" could be masked by values in the global environment, another issue is that an error in evaluating the expression will leave dat attached. So at a minimum, you need to recode using on.exit() magic. So my preferences go along these lines: > da

[R] R 3.3.0 is released

2016-05-03 Thread Peter Dalgaard
rer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the md5sums for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = eb97a5cd38acb1cfc6408988bffef765 MD

Re: [R] how to use AND in grepl

2016-05-02 Thread peter dalgaard
how to apply AND in grepl? >>> >>> Thanks >>> Elahe >>> >>> __ >>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >>> https://stat.ethz.ch/mailman/listinfo/r-help >

Re: [R] polygon angle option perpendicular to axis

2016-04-27 Thread Peter Alspach
help. HTH .... Peter Alspach -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Simon, Heather Sent: Thursday, 28 April 2016 8:17 a.m. To: r-help@r-project.org Subject: [R] polygon angle option perpendicular to axis I am trying to use the angle option in polygon

Re: [R] Same sum, different sets of integers

2016-04-27 Thread Peter Langfelder
I came up with this, using recursion. Short and should work for n greater than 9 :) Peter sumsToN = function(n) { if (n==1) return(1); out = lapply(1:(n-1), function(i) { s1 = sumsToN(n-i); lapply(s1, c, i) }) c(n, unlist(out, recursive = FALSE)); } > sumsToN(4) [[1]] [1] 4

Re: [R] Mailing List

2016-04-21 Thread peter dalgaard
roject.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] as.Date

2016-04-18 Thread peter dalgaard
my plot. Please I want this format to include hour. > > Many thanks for your help. I am just a newbe. I am not sure if this > forum is the right one. After registration, I tried to post to Nabble > forum where I registered but could not succeed. > > If there is a mistake, please help

Re: [R] Trying to understand cut

2016-04-17 Thread peter dalgaard
-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > Confidentiality Statement: > This email message, including any attachments, is for the sole use of the > intended recipient(s) and may contain confidential and privileged > inform

Re: [R] Equivalent in R of the Contains operator in SAS

2016-04-16 Thread peter dalgaard
___ > 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. -- Peter Dalgaard, Pr

Re: [R] Bug in by() function which works for some FUN argument and does not work for others

2016-04-15 Thread peter dalgaard
0 >>> >>> Max. :3.570 Max. :19.90 Max. :1. Max. :1 Max. >>> :5.000 >>> >>> carb >>> Min. :1.000 >>> 1st Qu.:1.000 >>> Median :2.000 >>> Mean :2.923 >>> 3rd Qu.:4.000 >>> Max. :8.000 >>>> >>> &g

Re: [R] Error messages when start first time R: "You're using a non-UTF8 locale, therefore only ASCII characters will work."

2016-04-14 Thread peter dalgaard
rg 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. -- Peter Dalgaard, Profe

[R] R 3.2.5 is released

2016-04-14 Thread Peter Dalgaard
it. You can get the source code from http://cran.r-project.org/src/base/R-3/R-3.2.5.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. For the R Core Team, Peter Dalgaard New md5 sums are MD5 (AUTHORS) = eb97a5cd38acb1cfc6408988bffef765 MD5 (COPYING

Re: [R] R 3.2.4-revised is released

2016-04-13 Thread Peter Dalgaard
ead what's new in the latest version. > > Should that not be updated? Anyone who has not seen that post won't > know to look further. > > > On Wed, 16-Mar-2016 at 08:39PM +, Peter Dalgaard wrote: > > |> The 3.2.4 release had two annoyances which we would rath

Re: [R] [FORGED] Generating random data with non-linear correlation between two variables

2016-04-09 Thread peter dalgaard
gt; >> 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 UNSUBS

Re: [R] Rcmdr will not load

2016-04-08 Thread peter dalgaard
TML 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 posting guide http://www.R-project.org/posting-guide.html > and provide commen

Re: [R] R.squared in summary.lm with weights

2016-04-08 Thread peter dalgaard
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. -- Peter Dalgaard, Professor, Center for Statistics,

Re: [R] using apply to a data frame

2016-04-07 Thread Peter Langfelder
Use lapply or sapply. A data frame is also a list with each component representing one column; lapply/sapply will apply the function to each column. Peter On Thu, Apr 7, 2016 at 1:25 PM, John Sorkin <jsor...@grecc.umaryland.edu> wrote: > > ‪‪I would like to apply a fun

Re: [R] Fligner-Killeen test on binary data

2016-04-04 Thread peter dalgaard
ng 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. -- Peter Dalgaard, Professor, Center for Statistics, Copen

Re: [R] p values from GLM

2016-04-03 Thread peter dalgaard
t;> and provide commented, minimal, self-contained, reproducible code. >>>> >>> >>> __ >>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >>> https://stat.ethz.ch/mailman/listin

[R] Extending the beta period for R 3.3.0 till April 25, Final release on May 3

2016-04-02 Thread Peter Dalgaard
discovered in the beta period, we might have to back out and be stuck with the old tools for another year. Web site updates will happen shortly. For the Core Team Peter Dalgaard -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000

Re: [R] Trouble plotting interaction with brkdn.plot from plotrix package

2016-03-20 Thread Miksza, Peter John
Thank you very much! Pete > On Mar 16, 2016, at 2:16 AM, PIKAL Petr <petr.pi...@precheza.cz> wrote: > > Hi > > Thanks for providing working example. > > See in line > >> -Original Message- >> From: R-help [mailto:r-help-boun...@r-proje

Re: [R] Typographical error in the documentation of function strwidth?

2016-03-19 Thread peter dalgaard
> 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. -- Pete

Re: [R] About calculation of the gravity model in R and STATA software

2016-03-19 Thread peter dalgaard
A is using some sort of sandwich estimator whereas R is just upscaling the results for a Poisson regression. You might want to check out package "sandwich". -pd -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denma

Re: [R] What "method" does sort() use?

2016-03-19 Thread peter dalgaard
cannot even be sure that locales of the same name on two different platforms sort strings in the same order. -pd On 18 Mar 2016, at 10:13 , peter dalgaard <pda...@gmail.com> wrote: > > On 18 Mar 2016, at 10:02 , Patrick Connolly <p_conno...@slingshot.co.nz> > wrote: >

[R] R 3.2.4-revised is released

2016-03-19 Thread Peter Dalgaard
CRAN site nearer to you. Maintainers of binary versions are requested to rebuild their binaries using the revised sources. For the R Core Team, Peter Dalgaard New md5 sums are MD5 (NEWS) = b0b43ac87a5b5858098da065966551af MD5 (R-3/R-3.2.4-revised.tar.gz) = 552b0c8088bab08ca4188797b919a58f Th

Re: [R] Typographical error in the documentation of function strwidth?

2016-03-19 Thread peter dalgaard
On 17 Mar 2016, at 14:27 , ALBERTO VIEIRA FERREIRA MONTEIRO <albm...@centroin.com.br> wrote: > Peter Dalgaard wrote: > >> I don't think so. I'll give you that it should either be the (number of >> lines - 1)*spacing >> or (number of linefeeds)*spacing, but it

Re: [R] What "method" does sort() use?

2016-03-18 Thread peter dalgaard
to make the worst case rarer.) This is not a stable sort, and ties may be reordered. Factors with less than 100,000 levels are sorted by radix sorting when method is not supplied: see sort.list. -pd -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbj

[R] Trouble plotting interaction with brkdn.plot from plotrix package

2016-03-16 Thread Miksza, Peter John
Hello, I'm exploring different ways to plot interactions for mixed-design ANOVA and am having difficulty getting the brkdn.plot() function in the R plotrix package to work. The interaction.plot() is working fine, but I'd really like to be able to customize the plot more as the brkdn.plot()

[R] Trouble plotting interaction with brkdn.plot from plotrix package

2016-03-16 Thread Miksza, Peter John
Hello, I'm exploring different ways to plot interactions for mixed-design ANOVA and am having difficulty getting the brkdn.plot() function in the R plotrix package to work. The interaction.plot() is working fine, but I'd really like to be able to customize the plot more as the brkdn.plot()

Re: [R] Regression with factor having1 level

2016-03-11 Thread peter dalgaard
> On 11 Mar 2016, at 23:48 , David Winsemius <dwinsem...@comcast.net> wrote: > >> >> On Mar 11, 2016, at 2:07 PM, peter dalgaard <pda...@gmail.com> wrote: >> >> >>> On 11 Mar 2016, at 17:56 , David Winsemius <dwinsem...@comcast.net> w

Re: [R] Regression with factor having1 level

2016-03-11 Thread peter dalgaard
> On 11 Mar 2016, at 17:56 , David Winsemius <dwinsem...@comcast.net> wrote: > >> >> On Mar 11, 2016, at 12:48 AM, peter dalgaard <pda...@gmail.com> wrote: >> >> >>> On 11 Mar 2016, at 08:25 , David Winsemius <dwinsem...@comcast.net>

Re: [R] Regression with factor having1 level

2016-03-11 Thread peter dalgaard
The one you cite must have been due to fat-fingering (send instead of delete), but there was a later followup to David, w/copy to r-help. -pd On 11 Mar 2016, at 16:03 , Robert McGehee <rmcge...@gmail.com> wrote: > > PS, Peter, wasn't sure if you also meant to add comments, but t

Re: [R] Regression with factor having1 level

2016-03-11 Thread peter dalgaard
> On 11 Mar 2016, at 02:03 , Robert McGehee <rmcge...@gmail.com> wrote: > >> df <- data.frame(y=c(0,2,4,6,8), x1=c(1,1,2,2,NA), > x2=factor(c("A","A","A","A","B"))) >> resid(lm(y~x1+x2, data=df, na.action=na.exc

Re: [R] Regression with factor having1 level

2016-03-11 Thread peter dalgaard
_ > 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. -- Peter Dalgaard, Professor

Re: [R] truncpareto() - doesn't like my data and odd error message

2016-03-10 Thread peter dalgaard
John Hillier <j.hill...@lboro.ac.uk> wrote: > > Dear Peter, > > Thank you. Apolgies for not looking closer. It is the end of a long day. > Fixed now, and I have learnt more about correctly interpreting R's manual > pages. > > For the record > > Summary: I

Re: [R] truncpareto() - doesn't like my data and odd error message

2016-03-10 Thread peter dalgaard
Look closer -pd > On 10 Mar 2016, at 18:41 , John Hillier <j.hill...@lboro.ac.uk> wrote: > > Thank you Peter, > > Yes, it seems to do the same even if I simultaneously make that change. > Output below. > >> pdataH <- data.frame(y = H_to_fit$

[R] Conversion problem with write.csv and as.character()

2016-03-10 Thread Peter Neumaier
.character(index(x)), colnames(x)) : 'dimnames' applied to non-array Called from: as.matrix.xts(x) Browse[1]> c > a) How can I prevent the conversion into integers to happen when writing into CSV? b) if a) is not do-able: how can I convert the date in double format to chars (i.e. with as.

[R] R 3.2.4 is released

2016-03-10 Thread Peter Dalgaard
rer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the md5sums for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = eb97a5cd38acb1cfc6408988bffef765 MD5 (COPYING) = eb723b61539feef013de47

Re: [R] truncpareto() - doesn't like my data and odd error message

2016-03-10 Thread peter dalgaard
Also if you simultaneously change the 2000 to say 1999? -p On 10 Mar 2016, at 09:22 , John Hillier <j.hill...@lboro.ac.uk> wrote: > Thank you Peter, > > I believe this might be the way the error message is hard coded (i.e. it's > always y to describe the input). Anyway, I

Re: [R] truncpareto() - doesn't like my data and odd error message

2016-03-09 Thread peter dalgaard
ave also played with the upper limit. pdataH has 2117 > observations in it. > > > Is this a data format thing? i.e. of pdataH (a tried a few things, but to no > avail) > Umm, it doesn't seem to have a column called "y"? -- Peter Dalgaard, Professor, Cent

Re: [R] Wooden Christmas Tree freezing when reading in files in El Capitan OS X

2016-03-08 Thread peter dalgaard
ct so that I don't run into this program again... But for the > future, I need to figure out why it keeps freezing. Thank you! > > > On Saturday, March 5, 2016, peter dalgaard <pda...@gmail.com> wrote: > Explain _exactly_ what you mean by "try to read in files using read.csv" and

Re: [R] Wooden Christmas Tree freezing when reading in files in El Capitan OS X

2016-03-05 Thread peter dalgaard
gt; PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denma

Re: [R] removing factor values in the main data frame

2016-03-01 Thread peter dalgaard
ttps://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. > __ > R-help@r-project.org mailing list --

Re: [R] Using Fortran with MPI, RInside, and calling R functions

2016-02-27 Thread peter dalgaard
#5 0x7FC5979671E8 >>> #6 0x7FC5979677A1 >>> #7 0x402A55 in buzzyC >>> #8 0x402891 in MAIN__ at buzzy.f90:? >>> #0 0x7F2482294E48 >>> #1 0x7F2482293FD0 >>> #2 0x7F2481CCD2EF >>> #3 0x7F2481D2369A >>> #4 0x7F2482E86

Re: [R] Calculate negative log of the E-Values in R

2016-02-26 Thread peter dalgaard
n 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 posting guide http://www.R-project.org/posting-guide.html > and provide commented, min

Re: [R] Get object name inside lapply

2016-02-26 Thread peter dalgaard
read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://sta

Re: [R] PDF form Rstudio

2016-02-25 Thread Peter Alspach
So, do you have MikTeK installed (assuming you are using Windows)? Peter Alspach -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Alnazer Elbedairy Sent: Friday, 26 February 2016 5:13 p.m. To: Erin Hodgess <erinm.hodg...@gmail.com> Cc: r-help m

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

2016-02-24 Thread peter dalgaard
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] R packages for Mac Users

2016-02-23 Thread peter dalgaard
> On 23 Feb 2016, at 19:12 , Jeff Newmiller <jdnew...@dcn.davis.ca.us> wrote: > > "All" is a pretty stringent test for a herd of cats. Hehehe... [Fades to a grin, leaving only a paw print.] -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business Scho

Re: [R] R packages for Mac Users

2016-02-23 Thread peter dalgaard
do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (

Re: [R] R Software Program Help

2016-02-23 Thread peter dalgaard
cal procedures. It has for quite some time been the weapon of choice when attacking methodology issues in Statistics at the research level. - Peter D. > Warmly, > > > *Ashley Porter | Director of Recruiting* > D: 708-505-4087 *|* C: 708-705-0802* |* apor...@theplan

Re: [R] multiple linear regression with quadratic function

2016-02-23 Thread peter dalgaard
ore, 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. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School S

Re: [R] Reading a datetime vector

2016-02-23 Thread peter dalgaard
(The reason that it is not counting December 31st being that someone thought that 1900 was a leap year.) -pd -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda.

Re: [R] How to create an executable file from R GUI?

2016-02-20 Thread peter dalgaard
It's quite platform dependent, but this idea works for tcl/tk on Mac. I don't think it would be too hard to do similar things on Linux, Windows may be a bigger challenge (or not). Peter-Dalgaards-MacBook-Air:tmp pd$ cat foo.app #!/usr/bin/Rscript library(tcltk) demo(tkfaq) tkwait.variable("

[R] R 3.2.4 and 3.3.0

2016-02-17 Thread Peter Dalgaard
R 3.2.4 "Very Secure Dishes", the wrap-up release of R-3.2.x is now scheduled for March 10 R 3.3.0 "Supposedly Educational", is scheduled for April 14. Detailed schedules are published on developer.r-project.org. For the Core Team Peter D. -- Peter Dalgaard, Professor, C

Re: [R] Estimating Mean of a Poisson Distribution Based on Interval censoring

2016-02-14 Thread peter dalgaard
_ > 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, se

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

2016-02-12 Thread peter dalgaard
>>>>>>>> Why the second curve is flat? I just changed it from -4 to -3. >>>> There is >>>>>>>>> no density in that region. >>>>>>>>> >>>>>>>>> >>>>>>>>>

Re: [R] why is 9 after 10?

2016-02-12 Thread peter dalgaard
;>>> 1951 >>>>> 1947 2067 1967 1812 2119 1999 2086 2133 2081 2165 2365 2330 2340 >>>>> 38 39 40 416789 >>>>> 2681 2905 3399 3941 1648 1690 1727 1668 >>>>> >>>>> whereas the reasonable expectati

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

2016-02-12 Thread peter dalgaard
rns 1. If you mean whether the mode is equal to the mean: Only if the distribution is symmetric and unimodal. -pd > > I will try both and report back! Thank you expeRts > > On Fri, Feb 12, 2016 at 11:29 AM, C W <tmrs...@gmail.com> wrote: > Hi Peter, > > Great, let m

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

2016-02-11 Thread Peter Lomas
till 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 Breathed in his &

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

2016-02-10 Thread peter dalgaard
individual help page. > Where else could I check before pestering the R mailing list, which, of > course, provides quick and valuable answers. You may need someone who got intro'ed shorter time ago than me for that. There are multiple books on R programming and also the free manuals fr

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

2016-02-10 Thread Peter Lomas
, "end"], "values"]) } As an extension to this, there will end up being multiple value columns, and each range will also identify which column to average. I think if I can figure out the first problem I can try to extend it myself. Thanks, Peter __

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

2016-02-10 Thread Peter Lomas
(i in 1:NROW(groups)){ groups[i, "average"] <- mean(observations[observations$date >= groups[i, "start"] & observations$date <=groups[i, "end"], as.character(groups[i, "group"])]) } Thanks again, Peter On Wed, Feb 10, 2016 at 2:26 PM, Bert Gunter <

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

2016-02-09 Thread peter dalgaard
>> >>> __ >>> 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

Re: [R] [FORGED] Re: determine the year of a date

2016-02-03 Thread peter dalgaard
ee > 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. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Pla

Re: [R] How to read ./configure messages

2016-02-01 Thread Peter Langfelder
I am not overly familar with Mint, but you need the "development version" of the readline library. If you have a GUI package manager installed, open it and search for readline. You should see a version that ends with -dev or -devel; you need to install that. HTH, Peter On Mon, Feb 1,

Re: [R] R-help mailing list activity / R-not-help?

2016-01-25 Thread Peter Alspach
isn't moderated in the 'usual' sense. That said, I have occasionally asked a new poster to reword their question (or simply add a subject line) and explained that this helps ensure they get a good answer, and not a rude one. Mostly people seem to appreciate that. Peter Alspach (one

Re: [R] tcltk table: get celltag value

2016-01-25 Thread peter dalgaard
vallis, OR 97331 > ph: 541-750-0953 > ddalth...@usgs.gov > > [[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 posting guide http://www.R-project.o

Re: [R] tcltk table "validateCommand"

2016-01-25 Thread peter dalgaard
active", fg='black',bg=colors()[411]) > tkgrid(table1) > > How can I get the %S value rather than the tcl(table1,"curvalue")? > > Much thanks for any help. > > -Dan > > [[alternative HTML version deleted]] > > _

Re: [R] tcltk tkwidget(..."table")

2016-01-22 Thread peter dalgaard
t; > Greetings, > > Adrian > > On Jan 21, 2016 10:36 PM, "Dalthorp, Daniel" <ddalth...@usgs.gov> wrote: > > Once you're up to speed on those issues... > > Any suggestions for getting up to speed on those issues? > > > > On Thu, Jan 21, 20

Re: [R] tcltk: write '[' and ']' in a table cell

2016-01-21 Thread peter dalgaard
NSUBSCRIBE 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. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Bus

Re: [R] tcltk tkwidget(..."table")

2016-01-21 Thread peter dalgaard
> On 21 Jan 2016, at 00:25 , Dalthorp, Daniel <ddalth...@usgs.gov> wrote: > > Thanks, Peter. > > I'm sure that's right, but it requires knowing: (1) that there's something > called the "width subcommand", and (2) how to format the call to that > comman

Re: [R] tcltk tkwidget(..."table")

2016-01-20 Thread peter dalgaard
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. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School

Re: [R] Order of formula terms in model.matrix

2016-01-18 Thread peter dalgaard
confirmation for future reference. > > Si vous recevez ce courriel par erreur, veuillez en aviser l'expéditeur > immédiatement, par retour de courriel ou par un autre moyen. Vous avez > accepté de recevoir le(s) document(s) ci-joint(s) par voie électronique à > l'adresse

Re: [R] Order of formula terms in model.matrix

2016-01-17 Thread peter dalgaard
ceding term. So the net result is that you end up with one column less than you probably wanted. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@

Re: [R] The "cloud" CRAN server.

2016-01-17 Thread peter dalgaard
the service and, at least for now, also provides the infrastructure, and they deserve a lot of thanks for that. It was just that people were being apprehensive about using Rstudio services without using their products and about the long-term reliability of infrastructure rooted in a single c

[R] R 3.2.3 on Windows 8.1 with interface scaling: how do I produce metafiles that fill the whole canvas?

2016-01-15 Thread Peter Crowther
in scaled-example.wmf takes up less than the whole canvas. Increasingly, we're seeing users run R on machines with very high-resolution screens and scaled displays. How can we correct for this effect within R? Cheers, - Peter Script: -- start -- egfr <- c(222.6,176.4) outcome <- data.fram

Re: [R] EXTRACT POINT DATA FROM NETCDF FILE

2016-01-15 Thread Peter Tuju
1 rainc = get.var.ncdf( inp_file, "RAINC", start = c( ix0, iy0, 1 ), count = c( countx, county, 1 ))  _ Peter  E. Tuju Dar es Salaam T A N Z A N I A -- From: "r-help-requ...@r-project.org" <r-help-requ...@r-project.org> To: r-hel

Re: [R] Extracting point data using longitude and latitude from netcdf file using R

2016-01-09 Thread Peter Tuju via R-help
.71505 -16.71505 -16.71505 -16.71505 -16.71505 > tail(ncvar_get(inp_file, "XLAT")) [1] 7.787529 7.787529 7.787529 7.787529 7.787529 7.787529 ## So, how can I get the syntax correct? Please help _ Peter  E. Tuju Dar es Salaam T A N Z A N I A --

Re: [R] Extracting point data using longitude and latitude from netcdf file using R

2016-01-09 Thread Peter Tuju via R-help
with this error,  "Error: could not find function "wherenearest" Is there any other way I can get the index corresponding/or rearing to thelongitude and latitude of interests? _ Peter  E. Tuju Dar es Salaam T A N Z A N I A -- From: Ben Tupper <b

Re: [R] Extracting point data using longitude and latitude from netcdf file using R

2016-01-09 Thread Anthoni, Peter (IMK)
Hi Peter, the start in nc_varget requires a latitude and longitude index, not the latitude and longitude in double format. So you need to figure out what index your latitude and longitude correspond to, which will depends on what data are in your netCDF. it might have looked like

Re: [R] Extracting point data using longitude and latitude from netcdf file using R

2016-01-09 Thread Peter Tuju via R-help
Thank you Mr. Anthon for your feedback. So, how can  I extract the data at the specified  latitude and longitude?Or, How can I get the latitude and longitude index which corresponds to the following coordinates from the netcdf file? dar_lon <- 39.2 dar_lat <- -6.87 _ Pe

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