Re: [R] lm fails on some large input

2019-04-18 Thread peter dalgaard
ontained, reproducible code. >>> >>> --- >>> This email has been checked for viruses by AVG. >>> https://www.avg.com >>> >>> >> >> -- >> Michael >> http://www.dewey.myzen.co.uk/home.html >> >> __

Re: [R] combining data.frames with is.na & match (), two questions

2019-04-18 Thread peter dalgaard
> 1 apple red round 1N/A > 2 banana yellow oblong 0 100 > 3 pear green pear 0.5 100 > 4 orange orange round 1N/A > 5 kiwi green round 0N/A > > > Drake > > [[alternative HTML version deleted]] > > ___

Re: [R] Define pch and color based on two different columns

2019-04-09 Thread Peter Langfelder
Glad to be of help. Peter On Tue, Apr 9, 2019 at 10:03 PM Matthew Snyder wrote: > You are not late to the party. And you solved it! > > Thank you very much. You just made my PhD a little closer to reality! > > Matt > > > > *Matthew R. Snyder* > *~

Re: [R] Define pch and color based on two different columns

2019-04-09 Thread Peter Langfelder
factor(gear)[subscripts]] grp <- c(gear,carb) panel.xyplot(x, y, pch = pch, col = col) } ) >From the little I understand about what you're trying to do, this may just do the trick. Peter On Tue, Apr 9, 2019 at 2:43 PM Matthew Snyder wrote: >

Re: [R] isSingular for lm?

2019-04-05 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, rep

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

2019-04-03 Thread peter dalgaard
;>> that I was ultimately able to trace back through the lm.influence >>>>>>> method to this specific line < >>>>>>> https://github.com/SurajGupta/r- >> source/blob/a28e609e72ed7c47f6ddfb >>>>>>> b86c85279a0750f0b7/src/l

Re: [R] Pairwise testing with pairwise.prop.test

2019-04-02 Thread peter dalgaard
s.roman(1:4) > out <- pairwise.prop.test(smokers, patients) [] > ix <- lower.tri(pmat, diag=TRUE) > pmat <- out$p.value > R <- rownames(pmat)[row(pmat)[ix]] > C <- colnames(pmat)[col(pmat)[ix]] > data.frame(row.vs.col = paste(R,C,sep="-"), adj.p = p

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-27 Thread peter dalgaard
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] Substitution in expressions

2019-03-26 Thread peter dalgaard
as > wondering if there is a simpler way of doing this, using > substitute()/bquote() directly without the mapply(). > > Best, > Wolfgang > > -Original Message- > From: peter dalgaard [mailto:pda...@gmail.com] > Sent: Tuesday, 26 March, 2019 14:42 > To: Viechtbauer, Wolf

Re: [R] Substitution in expressions

2019-03-26 Thread peter dalgaard
ailman/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 Plads 3, 2000 Frederi

[R] R 3.6.0 scheduled for April 26

2019-03-22 Thread Peter Dalgaard via R-help
Full schedule is available on developer.r-project.org. -- 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] Help with gsub function

2019-03-15 Thread Peter Langfelder
If you want to remove just the hyphen, why not do sub("-", "", tb2a$TID) sub("-", "", "73-017323") [1] "73017323" Am I missing something? Peter On Fri, Mar 15, 2019 at 12:46 PM Bill Poling wrote: > > Good afternoon. > &g

Re: [R] 3.5.3

2019-03-15 Thread peter dalgaard
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] density vs. mass for discrete probability functions

2019-03-15 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,

Re: [R] Rank ANCOVA

2019-03-14 Thread peter dalgaard
1. This is the R-help mailing list, not "Frank and Dennis" 2. You seem to be referring to two posts from July 2010 by Frank Harrell and Dennis Fisher. -pd > On 13 Mar 2019, at 12:06 , Jackson, Daniel > wrote: > > Hi Frank and Dennis > > I am in a similar situation but I would prefer to use

[R] R 3.5.3 is released

2019-03-11 Thread Peter Dalgaard via R-help
base/R-3/R-3.5.3.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are u

Re: [R] Unable to install ggplot2

2019-03-06 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-co

Re: [R] Function doesn't work inside loop but works outside

2019-03-05 Thread peter dalgaard
ling 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 Statist

[R] [Rd] R 3.5.3 scheduled for March 11

2019-02-25 Thread peter dalgaard
Full schedule available on developer.r-project.org (pending auto-update from SVN) -- 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] magick package says format is PNG when we load an SVG.

2019-02-25 Thread peter dalgaard
/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 Plads 3, 2000 Frederiksberg

Re: [R] faster execution of for loop in Fishers test

2019-02-12 Thread peter dalgaard
gt;> 0.142928535732134, 0.140929535232384, 0.150924537731134, 0.160419790104948, >> 0.139430284857571, 0.152923538230885, 0.146426786606697, 0.149425287356322, >> 0.145427286356822, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, >> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.282358820589705, >> 0.29385307346

Re: [R] Why is there error in as.POSIXlt.character when using strftime()?

2019-02-04 Thread peter dalgaard
* localtime format, I believe. > On 2 Feb 2019, at 18:02 , Jeff Newmiller wrote: > > as.POSIXlt = convert to POSIX list time format (same as strptime but name > fits type conversion function naming pattern in R) -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Bus

Re: [R] Was there a change to R ver. 3.5.2 so that it now treats warnings during installs as errors?

2019-01-20 Thread Peter Waltman
lf of Duncan Murdoch" < > r-help-boun...@r-project.org on behalf of murdoch.dun...@gmail.com> wrote: > > On 19/01/2019 8:22 p.m., Peter Waltman wrote: > > I'm trying to install a devel package called gGnome ( > > https://github.com/mskilab/gGnome). One of i

[R] Was there a change to R ver. 3.5.2 so that it now treats warnings during installs as errors?

2019-01-20 Thread Peter Waltman
I'm trying to install a devel package called gGnome ( https://github.com/mskilab/gGnome). One of its dependencies is another package from the same group, called gTrack, which causes several warning messages to be generated because it overloads a couple of functions that are part of other packages

Re: [R] I can't get seq to behave how I think it should

2019-01-17 Thread peter dalgaard
//www.precheza.cz/zasady-ochrany-osobnich-udaju/ | Information about > processing and protection of business partner’s personal data are available > on website: https://www.precheza.cz/en/personal-data-protection-principles/ > Důvěrnost: Tento e-mail a jakékoliv k němu připojené dokumenty jsou

Re: [R] Confusion Table

2019-01-16 Thread Peter Langfelder
The lazy way is to do tst_tab = tst_tab[c(2,1), c(2,1)] The less lazy way is something like tst_tab <- table(predicted = factor(tst_pred, levels = c("Yes", "No")), actual = factor(default_tst$default, levels = c("Yes", "No"))) Peter On Wed,

Re: [R] NA rows appeared in data.frame

2019-01-16 Thread peter dalgaard
], x[NA]). -pd > On 16 Jan 2019, at 08:29 , PIKAL Petr wrote: > > I believe that this behaviour has some reason, because you compare 2 to NA > and NA is basically "I do not know". So it could be 2 and therefore also rows > with NA are returned. If I am wrong, I ho

Re: [R] [R-sig-ME] Calculating F values for lme function

2019-01-15 Thread peter dalgaard
; -- >> Sent from my phone. Please excuse my brevity. >> >> ______ >> 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

Re: [R] randomForest out of bag prediction

2019-01-12 Thread Peter Langfelder
med to be independent of the training set. > > What I find even more disturbing is that 100% accuracy for ypred. > Would you agree that this is rather unexpected? It is expected (and not disturbing) l if your training set had enough variables (or signal) to create trees that fit the trainin

[R] R 3.5.2 is released

2018-12-20 Thread Peter Dalgaard via R-help
Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = b9c44f9f78cab3184ad9898bebc854b4 MD

[R] RTerm.exe

2018-12-17 Thread peter
Hi, I have recently downloaded R and accessed. I am using Zorro (a development platform for ForeX) and requested to add my path for RTerm.exe I can't find RTerm.exe and confirm that I appear to load R using "C:\Program Files\R\R-3.5.1\bin\x64\Rgui.exe" Regard

Re: [R] repeating the same variable in formula

2018-12-10 Thread peter dalgaard
ot;term.labels") > #[1] "cholesterol" "I(age + age)" > > > Hope this helps, > > Rui Barradas > > Às 06:49 de 10/12/2018, Subirana Cachinero, Isaac escreveu: >> y ~ cholesterol + age + age > > __ > R-help@r-project.org mai

Re: [R] wBoot Package

2018-11-26 Thread peter dalgaard
t; follows, so it appears that the package author started down one path and then > abandoned that line of code and did something else. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office:

Re: [R] Question Mixed-Design Anova in R

2018-11-23 Thread peter dalgaard
er, this does not work. I know I am probably doing it completely wrong, > but I do not know how to solve it. Besides that, I do not know what to fill > in at the �x�. > > Can somebody help me? > > > > Thank you in advance. > > Lisa > > > [[alternativ

[R] R 3.5.2 scheduled for December 20

2018-11-23 Thread Peter Dalgaard via R-help
Full schedule available on developer.r-project.org -- 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] system solver in R

2018-11-21 Thread peter dalgaard
/r-help >>>> PLEASE do read the posting guide >>> http://www.R-project.org/posting-guide.html >>>> and provide commented, minimal, self-contained, reproducible code. >>> >>> >> >> -- >> *Saygılarımla* >> Engin YILMAZ >

Re: [R] which() function help page precision

2018-11-16 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 Scho

Re: [R] help with grouping data and calculating the means

2018-11-15 Thread Anthoni, Peter (IMK)
column has no data lat.mean=tapply(df$TK.QUADRANT,cat.lat, mean) #if you need to remove any potential NAs lat.mean[!is.na(lat.mean)] cheers/beste Grüße Peter On 15. Nov 2018, at 17:48, sasa kosanic mailto:sasa.kosa...@gmail.com>> wrote: `TK-QUADRANT` <- c(9161,9162,9163,9164,10152,10154,10

Re: [R] lm equivalent of Welch-corrected t-test?

2018-11-14 Thread peter dalgaard
Research Methods and Data Analysis http://crmda.ku.edu > > To write to me directly, please address me at pauljohn at ku.edu. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Reporting binomial logistic regression from R results

2018-11-12 Thread peter dalgaard
lding W 34 > 20246 Hamburg > > Phone: +49 (0) 40 7410 - 58243 > Fax: +49 (0) 40 7410 - 57790 > Web: www.uke.de/imbe > -- > > _ > > Universitätsklinikum Hamburg-Eppendorf; Körperschaft des öffentlichen Re

Re: [R] Line with linearly changing thickness

2018-11-11 Thread Peter Dalgaard
you in advance! > Yours, Ferri > > __ > 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, sel

Re: [R] Corrupted package?

2018-10-31 Thread peter dalgaard
Hm, a source install to r-devel gave me Peter-Dalgaards-MacBook-Air:BUILD pd$ ls -l library/pkgconfig/R/pkgconfig.rdb -rw-r--r-- 1 pd staff 4515 Oct 31 19:15 library/pkgconfig/R/pkgconfig.rdb Peter-Dalgaards-MacBook-Air:BUILD pd$ ls -l library/pkgconfig/help/pkgconfig.rdb -rw-r--r-- 1 pd

Re: [R] Using apply

2018-10-30 Thread Peter Langfelder
it, either look at the package manual or type ls("package:matrixStats") to see a list of functions. Most if not all have self-explanatory names. HTH, Peter On Tue, Oct 30, 2018 at 7:28 PM Steven Yen wrote: > > I need help with "apply". Below, I have no problem getting the colu

Re: [R] MSE Cross-validation with factor interactions terms MARS regression

2018-10-29 Thread peter dalgaard
t;> 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] remove text from nested list

2018-10-25 Thread Peter Langfelder
s.atomic(x)) gsub(pattern, replacement, x) else lapply(x, recursiveGSub, pattern, replacement) } Example: lst = list("a001", list("b001", list("c001", "d001"))) lst recursiveGSub(lst, "00", "") HTH, Peter On Thu, Oct 25, 2018 at 6:04 PM Ek

Re: [R] "logical indexing, " [was] match() question or needle haystack problem for a data.frame

2018-10-25 Thread peter dalgaard
d 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 Schoo

Re: [R] year and week to date - before 1/1 and after 12/31

2018-10-18 Thread peter salzman
d11 + (w-1)*week ## step 3) for end of week add number of weeks and subtract 1 day start <- d11 + w*week - day thanks peter On Wed, Oct 17, 2018 at 11:15 PM Jeff Newmiller wrote: > > You cannot obtain a predictable result by sending invalid time > representation data to strptime... yo

[R] Simulating data with nested random effects

2018-10-17 Thread Peter Wijeratne
Hello, I would like to simulate nested data, where my mixed effects model fitted to real data has the form: y ~ time + (1 | site/subject) I then take the hyper-parameters from this model to simulate fake data, using this function: create_fake <- function(J,K,L,HP,t){

Re: [R] year and week to date - before 1/1 and after 12/31

2018-10-16 Thread peter salzman
kday") and get the first and last day of the given week even at the beginning and end of year for example as.Date("2018 0 Sun","%Y %U %a") = '2017-12-31' i hope this makes sense. thanks for replying peter On Tue, Oct 16, 2018 at 2:11 PM Jeff Newmiller w

Re: [R] GLM Model Summary

2018-10-16 Thread Peter Langfelder
The coefficients are best obtained as summary(Model)$coefficients. This is a matrix can than be saved as a csv file and opened in excel or other spreadsheet software. HTH, Peter On Tue, Oct 16, 2018 at 9:44 AM Neslin, Scott A. wrote: > > R-Help: > > We are working with your G

Re: [R] year and week to date - before 1/1 and after 12/31

2018-10-16 Thread peter salzman
can do max( c(d1,d2), na.rm=TRUE ) maybe there is some other trick best, peter On Tue, Oct 16, 2018 at 10:22 AM peter salzman wrote: > hi, > > to turn year and week into the date one can do the following: > > as.Date('2018 05 Sun', "%Y %W %a") > > however, w

[R] year and week to date - before 1/1 and after 12/31

2018-10-16 Thread peter salzman
"2017 53 Mon" to 2018-01-01 i realize i can loop over days of week and do some if/then statements, but is there a built in function? thank you peter -- Peter Salzman, PhD Department of Biostatistics and Computational Biology University of Rochester [[alternative HTML vers

Re: [R] Set attributes for object known by name

2018-10-10 Thread Peter Langfelder
oops, I think the right code would be x = get(varname) attr(x, "foo") = "bar" assign(varname, x) On Wed, Oct 10, 2018 at 9:30 PM Peter Langfelder wrote: > I would try something like > > x = get(myvarname) > attr(x, "foo") = "bar" > assign(

Re: [R] Set attributes for object known by name

2018-10-10 Thread Peter Langfelder
I would try something like x = get(myvarname) attr(x, "foo") = "bar" assign(varname, x) HTH, Peter On Wed, Oct 10, 2018 at 9:15 PM Marc Girondot via R-help < r-help@r-project.org> wrote: > Hello everybody, > > Has someone the solution to set attri

Re: [R] Genuine relative paths with R

2018-10-10 Thread Peter Claussen via R-help
If I’m following all this correctly, it seems your criticism is that R doesn’t provide a run-time function that is equivalent to a compile-time macro. You do realize that __FILE__ is not part of the C programming language - it’s a predefined variable recognized by the cpp - the C preprocessor

Re: [R] Strange result for strptime with %p

2018-10-02 Thread peter dalgaard
a jakékoliv k němu připojené dokumenty jsou důvěrné a > podléhají tomuto právně závaznému prohláąení o vyloučení odpovědnosti: > https://www.precheza.cz/01-dovetek/ | This email and any documents attached > to it may be confidential and are subject to

Re: [R] Query on R-squared correlation coefficient for linear regression through origin

2018-09-27 Thread peter dalgaard
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, Copenhagen Business

Re: [R] Erase content of dataframe in a single stroke

2018-09-27 Thread peter dalgaard
ilman/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] tibble question with a mean

2018-09-20 Thread Peter Langfelder
y apply mean to a list. You need to first convert to a matrix or vector which can then be fed to mean(). Peter On Thu, Sep 20, 2018 at 5:50 PM Erin Hodgess wrote: > Hello! > > Here is a toy tibble problem: > > xt <- > tibble(x=LETTERS[1:4],y=1:4,z=rnorm(4),a=c("dog&q

Re: [R] sink() output to another directory

2018-09-13 Thread Peter Langfelder
(). Technically, print() sends output to a device called "standard output" which is usually screen, but it can be changed to a file (_any_ writable file) using the sink() command. Hope this helps, Peter On Thu, Sep 13, 2018 at 4:35 PM Rich Shepard wrote: > On Thu, 13 Sep 2018, Peter Lan

Re: [R] sink() output to another directory

2018-09-13 Thread Peter Langfelder
There is no path in print. The path (file) is set in sink(). Peter On Thu, Sep 13, 2018 at 4:35 PM Rich Shepard wrote: > On Thu, 13 Sep 2018, Peter Langfelder wrote: > > > Remove the / from the print command, it does not belong there. > > Peter, > >So the print(

Re: [R] sink() output to another directory

2018-09-13 Thread Peter Langfelder
For the second time: Rich, there should be no slash in the print() command. Use the form sink("../directory/file") print(summary(foo)) ### no slashes here sink(NULL) Peter On Thu, Sep 13, 2018 at 7:12 PM Rich Shepard wrote: > On Thu, 13 Sep 2018, Henrik Bengtsson wrote: >

Re: [R] sink() output to another directory

2018-09-13 Thread Peter Langfelder
Remove the / from the print command, it does not belong there. sink("../directory/file.txt"); print(summary(foo)) sink(NULL) On Thu, Sep 13, 2018 at 4:03 PM Rich Shepard wrote: > On Thu, 13 Sep 2018, Rich Shepard wrote: > > > sink('example-output.txt') > > print(summary(df)) > > sink() > >

Re: [R] Why can't I make use of tcltk in this installation?

2018-09-10 Thread peter dalgaard
ll minds discuss people >> (_)-(_). Eleanor Roosevelt >> >> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~. >> >> __ >> R-help@r-project.org mailing lis

Re: [R] histogram in GNU R....

2018-09-07 Thread Peter Langfelder
machine. Peter On Fri, Sep 7, 2018 at 10:31 AM William Dunlap via R-help < r-help@r-project.org> wrote: > You may have to install X11 stuff to your ec2 instance. E.g., googling for > "ec2 X11 forwarding" showed things like the following: > > Re: X11 forwarding to access AWS

Re: [R] histogram in GNU R....

2018-09-07 Thread peter dalgaard
e 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 provide com

Re: [R] TCGA biolinks, DNA methylation

2018-08-31 Thread peter dalgaard
qV2",level = 3) >>>>> 15 >>>>> 16 TCGAdownload(query.exp,path = path, type = "rsem.genes.normalized_ >>>>> results") >>>>> 17 >>>>> 18 exp <– TCGAprepare(query = query.exp, dir = path, >>>>> 19

Re: [R] Estimate parameters differential equations system

2018-08-30 Thread peter dalgaard
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, Copenh

Re: [R] installing R in ubuntu

2018-08-28 Thread peter dalgaard
ing-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] Unclear about the output from summary of ca.jo from package urca

2018-08-24 Thread peter dalgaard
org/posting-guide.html >>> and provide commented, minimal, self-contained, reproducible code. >>> >> > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,

Re: [R] R shared library (/usr/lib64/R/lib/libR.so) not found.

2018-08-23 Thread Peter Langfelder
I could be wrong. The manual, specifically https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Installation documents this way of choosing the installation directory. Peter __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,

Re: [R] [FORGED] Re: bar plot add space to group data

2018-08-19 Thread Peter Langfelder
On Sun, Aug 19, 2018 at 7:15 AM wrote: > > August 19, 2018 4:58 AM, "Peter Langfelder" > wrote: > > > To the OP, try formatting the data to be plotted as a matrix, not as a > > vector > > CSV data provided in a previous message; is not the data formatt

Re: [R] [FORGED] Re: bar plot add space to group data

2018-08-18 Thread Peter Langfelder
be useful to add space between groups. Peter On Sat, Aug 18, 2018 at 4:53 PM Rolf Turner wrote: > > > Jim: > > (a) There's no legend. > > (b) I am still curious as to why the OP's code didn't work, in that > the "space=c(0,2)" argument seemed to have no effect.

Re: [R] Understanding read.csv error message

2018-08-18 Thread peter dalgaard
; > Rich > > __ > 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

Re: [R] How to rotate label in tcltk R

2018-08-18 Thread peter dalgaard
IBE 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 Busines

Re: [R] How deep into function calls does trycatch() work

2018-08-16 Thread Peter Langfelder
AFAIK a try or tryCatch will intercept the error thrown by stop(). Why not try it and see if it works? Peter On Thu, Aug 16, 2018 at 1:05 PM Roy Mendelssohn - NOAA Federal via R-help wrote: > > Hi All: > > I am using another package in a project I have. Because of that, I have n

Re: [R] Mysterious seg fault --- SOLVED

2018-08-14 Thread peter dalgaard
nphi)) Error: object 'nphi' not found so I think we need an alternative hypothesis about what went wrong for you... If nphi was NULL from the outset, that could explain things. -pd > On 14 Aug 2018, at 01:16 , Rolf Turner wrote: > > On 13/08/18 23:39, peter dalgaard wrote: >&g

Re: [R] Fast matrix multiplication

2018-08-13 Thread Peter Langfelder
the linux trick to replace libRblas.so with a symlink to the compiled openBLAS library. Peter __ 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-pro

Re: [R] Typo in print.aov

2018-08-13 Thread peter dalgaard
That's a bug... no other place in the sources has "coeffficients". The net result is that the NULL case is used even when colnames _are_ present. It does make a difference, e.g. to examples(manova). I am fixing this in r-devel since the urgency must be rather low. - Peter D. > O

Re: [R] Mysterious seg fault --- SOLVED

2018-08-13 Thread peter dalgaard
e former instance it doesn't > matter an FTCF whether nphi has been defined or not. > > cheers, > > Rolf > > -- > Technical Editor ANZJS > Department of Statistics > University of Auckland > Phone: +64-9-373-7599 ext. 88276 > > __ > R-help@r-p

Re: [R] Fast matrix multiplication

2018-08-12 Thread Peter Carbonetto
also has some good documentation of this. Note that I had issues using the latest version of OpenBLAS (0.3.x) with R 3.5.1. I'm not sure if you would have the same issues as me, but to be safe I would suggest using OpenBLAS 0.2.x instead. Peter [[alternative HTML version deleted

Re: [R] Mysterious seg fault.

2018-08-11 Thread Peter Langfelder
-exts.html#Checking-memory-access for tips on how to diagnose such problems. HTH, Peter On Sat, Aug 11, 2018 at 2:13 PM Rolf Turner wrote: > > I am getting a seg fault from a package that I am working on, and I am > totally flummoxed by it. The fault presumably arises from dynamically

Re: [R] Trying to Generalize a Function in R

2018-08-09 Thread Peter Langfelder
Well, your function uses AVB$AVB.Close, so I assumed AVB is a list (a data frame can be thought of as a special list). What do you get when you type class(AVB)? Peter On Thu, Aug 9, 2018 at 2:24 PM rsherry8 wrote: > > Peter, > > Thanks for the response. I tired the following command

Re: [R] Trying to Generalize a Function in R

2018-08-09 Thread Peter Langfelder
to modify the names of the components you retrieve from the list AVB. For that, you can use AVB[["AVB.Close"]] instead of AVB$AVB.Close. You can them use something like AVB[[paste0(symbol, ".Close"]] to generalize the retrieval of list components. HTH, Peter On Thu, Aug 9, 2018

Re: [R] F-test where the coefficients in the H_0 is nonzero

2018-08-09 Thread peter dalgaard
version deleted]] >> >> __ >> mailto: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/ >> p

Re: [R] Philip Morris International - Windows10 migration assessment

2018-08-03 Thread peter dalgaard
to check whether your users use packages with Java dependencies - Peter Dalgaard > On 2 Aug 2018, at 10:45 , Flament, Kevin wrote: > > Dear R Project team, > > I am representing the System Toxicology department of Philip Morris > International in the scope of a Windows 10

Re: [R] F-test where the coefficients in the H_0 is nonzero

2018-08-02 Thread peter dalgaard
nts are nonzero? > > John > > [[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.org/posting-guide.html

Re: [R] subsetting ls() as per class...

2018-07-28 Thread Peter Langfelder
Looking at ?rm, my solution would be something like rm(list = grep("\\.NS$", ls(), value = TRUE)) But test it since I have not tested it. Peter On Fri, Jul 27, 2018 at 10:58 PM akshay kulkarni wrote: > > dear memebers, >I am using R in

Re: [R] Where does ' Setting LC_CTYPE failed, using "C" ' come from? 2

2018-07-22 Thread peter dalgaard
ot help" usually ...does not help. You > need a clear unambigous description of everything that was in place and > exactly what was being done when the unexpected behavior occurred. Hm, well, seen worse... However, some detective works seems required. C: (a) Can you a

Re: [R] R is creating a new level which is emty after importing a SAS file

2018-07-04 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

Re: [R] gamlss() vs glm() standard errors via summary() vs vcov()

2018-07-04 Thread Peter Dalgaard
bind(SEvcov1, SEvcov2) # Corresponds > > # Compare between summary() and vcov() extraction. Missmatch. > cbind(SESum1, SEvcov1) > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/

Re: [R] R maintains old values

2018-07-03 Thread peter dalgaard
tal ones. > > Now, to add to the controversy, how do you set a computer on fire? Short the lithium battery? -pd > > JN > > On 2018-07-03 03:52 AM, peter dalgaard wrote: >> Also beware the traveling arsonist, Jenny Bryan: >> >> https://www.tidyverse.org/article

Re: [R] R maintains old values

2018-07-03 Thread peter dalgaard
ovide commented, minimal, self-contained, reproducible code. >>> >>> ______ >>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >>> https://stat.ethz.ch/mailman/listinfo/r-help >>> PLEASE do r

Re: [R] OT --- grammar.

2018-06-24 Thread Peter Langfelder
I would use "the number of degrees of freedom is defined... ". Peter On Sun, Jun 24, 2018 at 2:46 PM Rolf Turner wrote: > > > Does/should one say "the degrees of freedom is defined to be" or "the > degrees of freedom are defined to be"? > > Al

Re: [R] interpret a p-value result as a significance of a linear regression in terms of sigmas

2018-06-20 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] Help, zero-truncated Binomial distribution

2018-06-18 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,

Re: [R] specifying random effects covariance structure in nlme

2018-06-16 Thread Peter Dalgaard
an/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 Plads 3, 2000 Frederiksberg, Denm

Re: [R] mzR fails to install/compile (linuxes)

2018-06-16 Thread Peter Dalgaard
y "mzR" and "MSnbase" fail if I > compile with -j>1. > > Would anybody be able to confirm this problem exists? > Many thanks, L. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https

Re: [R] malware reported by antivirus on R Windows .exe file

2018-06-05 Thread peter dalgaard
ailing 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, C

Re: [R] Time and date conversion

2018-06-04 Thread peter dalgaard
> > Thanks for any pointer. > > [[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 h

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