Re: [R] color question

2019-02-27 Thread K. Elo
Hi! 2019-02-27 22:51 -0500, Aimin Yan wrote: > I have a question about assigning color based on the value of a > matrix > > The following is my matrix. > > d > lateRT earlyRT NAD ciLAD > lateRT 1.0 0.00 0.006224017 0.001260241 > earlyRT

Re: [R] color question

2019-02-27 Thread Aimin Yan
The attached is the heatmap. Thank you, Aimin On Wed, Feb 27, 2019 at 10:51 PM Aimin Yan wrote: > I have a question about assigning color based on the value of a matrix > > The following is my matrix. > > d > lateRT earlyRT NAD ciLAD > lateRT 1.0

[R] color question

2019-02-27 Thread Aimin Yan
I have a question about assigning color based on the value of a matrix The following is my matrix. d lateRT earlyRT NAD ciLAD lateRT 1.0 0.00 0.006224017 0.001260241 earlyRT 0.0 1.00 0.001425649 0.007418436 NAD 0.006224017

Re: [R] inverse of which()

2019-02-27 Thread William Dunlap via R-help
The inverse of which() would have to know the length of the logical vector to create. The function could be invWhich <- function(whichTrue, length) { stopifnot(length <= max(whichTrue), !anyNA(whichTrue)) v <- logical(length) v[whichTrue] <- TRUE v } It isn't

[R] profvis function parse_rprof not being loaded

2019-02-27 Thread nevil amos
I have loaded the profvis library but the function parse_ rprof() is absent. below is the session info show the absence of the function ( which is listed in the package help for the current version.) Documentation for package ‘profvis’ version 0.3.5 DESCRIPTION file. Help Pages parse_rprof

Re: [ESS] disable console help when "pausing"

2019-02-27 Thread Shreyas Ragavan via ESS-help
I'm facing the same problem of late, and I do not know what instigated the behavior. Using the company mode setting below has not solved my help dump, which is in fact highly annoying. This is my setup (on Antergos / Mac OS) : (require 'ess) (require 'ess-R-data-view) (setq

Re: [R] Randomization Test

2019-02-27 Thread Ben Tupper
Hi, I'm not very clear on what you are trying to achieve, but I think you could try the following for your Q1... > Q1: Please how do I generate many samples as x above, say up to 5000 > or 10,000? I manually generated and stored as x1,x2, x3 up to x100. ndta = nrow(dta) x0 = 8890 x1 = 9500 xx

Re: [R] Error trapping in R

2019-02-27 Thread Bernard Comcast
Thanks Bernard Sent from my iPhone so please excuse the spelling!" > On Feb 27, 2019, at 4:05 PM, Duncan Murdoch wrote: > >> On 27/02/2019 3:55 p.m., Bernard Comcast wrote: >> What is the recommended way to trap errors in R? My main need is to be able >> to trap an error and then skip a

Re: [R] inverse of which()

2019-02-27 Thread Jeff Newmiller
use grepl? On February 27, 2019 3:03:27 PM PST, Ed Siefker wrote: >Given a vector of booleans, chich() will return indices that are TRUE. > >Given a vector of indices, how can I get a vector of booleans? > >My intent is to do logical operations on the output of grep(). Maybe >there's a better

Re: [R] inverse of which()

2019-02-27 Thread David L Carlson
I'm not sure I completely understand your question. Would using grepl() instead of grep() let you do what you want? David L Carlson Department of Anthropology Texas A University College Station, TX 77843-4352 -Original Message- From: R-help On

[R] inverse of which()

2019-02-27 Thread Ed Siefker
Given a vector of booleans, chich() will return indices that are TRUE. Given a vector of indices, how can I get a vector of booleans? My intent is to do logical operations on the output of grep(). Maybe there's a better way to do this? Thanks -Ed __

Re: [R] Randomization Test

2019-02-27 Thread Ogbos Okike
Dear Kind List, I am still battling with this. I have, however, made some progress with the suggestions of Micheal and others. At least, I have a better picture of what I want to do now as I will attempt a detailed description here. I am aware I should show you just a small part of my code and

Re: [R] Which dependency list to build first?

2019-02-27 Thread Rich Shepard
On Wed, 27 Feb 2019, William Dunlap wrote: Did you use 'R CMD ldd .../later.so', as I recommended? Bill, I ran ldd externally on /usr/lib/R/library/lib/later/later.so and posted the missing library. Just now I ran the above command and it did not find later.so: # R CMD ldd

Re: [R] Which dependency list to build first?

2019-02-27 Thread William Dunlap via R-help
Did you use 'R CMD ldd .../later.so', as I recommended? Bill Dunlap TIBCO Software wdunlap tibco.com On Wed, Feb 27, 2019 at 12:51 PM Rich Shepard wrote: > On Wed, 27 Feb 2019, William Dunlap wrote: > > > The package will not load. The only reason to do test load is to examine > > why the

Re: [R] Error trapping in R

2019-02-27 Thread Rui Barradas
Hello, You can trap errors with ?try or ?tryCatch. Example: result <- vector(mode = "list", length = 5) for(i in 1:5){ result[[i]] <- tryCatch(if(i == 3) stop("This is an error") else 2*i + 1, error = function(e) e) } result for(i in seq_along(result)) { err <-

Re: [R] Error trapping in R

2019-02-27 Thread Duncan Murdoch
On 27/02/2019 3:55 p.m., Bernard Comcast wrote: What is the recommended way to trap errors in R? My main need is to be able to trap an error and then skip a section of code if an error has occurred. In VB for Excel I used the “On Error goto .” construct to do this. The recommended way

[R] Error trapping in R

2019-02-27 Thread Bernard Comcast
What is the recommended way to trap errors in R? My main need is to be able to trap an error and then skip a section of code if an error has occurred. In VB for Excel I used the “On Error goto .” construct to do this. Bernard Sent from my iPhone so please excuse the spelling!"

Re: [R] Which dependency list to build first?

2019-02-27 Thread Rich Shepard
On Wed, 27 Feb 2019, William Dunlap wrote: The package will not load. The only reason to do test load is to examine why the package's .so file cannot be loaded. We know there is at least one function or data symbol that it cannot find, __atomic_fetch_add_8, which may be from boost::atomic. The

Re: [R] Which dependency list to build first?

2019-02-27 Thread William Dunlap via R-help
The package will not load. The only reason to do test load is to examine why the package's .so file cannot be loaded. We know there is at least one function or data symbol that it cannot find, __atomic_fetch_add_8, wihch may be from boost::atomic. The ldd command may give some hints about

Re: [R] Which dependency list to build first?

2019-02-27 Thread Rich Shepard
On Wed, 27 Feb 2019, William Dunlap wrote: The syntax is either install.packages("later", type="source", INSTALL_opts="--no-test-load") from within R (perhaps with repos=NULL if from a local directory) or R CMD INSTALL --no-test-load later from outside of R, where 'later' must be a

Re: [R] Which dependency list to build first?

2019-02-27 Thread William Dunlap via R-help
Using the syntax 'install.packages("later") --no-test-load' The syntax is either install.packages("later", type="source", INSTALL_opts="--no-test-load") from within R (perhaps with repos=NULL if from a local directory) or R CMD INSTALL --no-test-load later from outside of R, where

Re: [R] Which dependency list to build first?

2019-02-27 Thread Rich Shepard
On Wed, 27 Feb 2019, William Dunlap wrote: Add the --no-test-load option to the install command and the unloadable .so file should be left there so you can look at its dependencies with, e.g., 'R CMD ldd .../libs/later.so'. Bill, Using the syntax 'install.packages("later") --no-test-load'

Re: [R] Which dependency list to build first?

2019-02-27 Thread William Dunlap via R-help
Add the --no-test-load option to the install command and the unloadable .so file should be left there so you can look at its dependencies with, e.g., 'R CMD ldd .../libs/later.so'. Bill Dunlap TIBCO Software wdunlap tibco.com On Wed, Feb 27, 2019 at 9:40 AM Rich Shepard wrote: > On Wed, 27

Re: [R] Which dependency list to build first?

2019-02-27 Thread Rich Shepard
On Wed, 27 Feb 2019, Rainer Krug wrote: I am sure, you have uninstalled the package completely and tried it again? Rainer, Yes. Just did so with the same result: R could not load the shared library. Have you tried at looking at the shared objects required by

Re: [R] differences between meat and metafor packages

2019-02-27 Thread greg holly
Hı Wolfgangş I do appreciate for this info. Very helpful. And I do apologize for the personal email. It was done mistakenly. Regards, Greg On Wed, Feb 27, 2019 at 5:42 AM Viechtbauer, Wolfgang (SP) < wolfgang.viechtba...@maastrichtuniversity.nl> wrote: > Hi Greg, > > Please cc the mailing

Re: [R] Which dependency list to build first?

2019-02-27 Thread Rich Shepard
On Wed, 27 Feb 2019, Rainer Krug wrote: I am sure, you have uninstalled the package completely and tried it again? Have you tried at looking at the shared objects required by ` /usr/lib/R/library/later/libs/later.so` using ldd ? I had similar problems on Mac (with other packages) and

Re: [R] differences between meat and metafor packages

2019-02-27 Thread Viechtbauer, Wolfgang (SP)
Hi Greg, Please cc the mailing list when responding. No, this is not correct. The argument 'vi' is for the *variances*, not the standard errors. So, either use: res <- rma(HR, sei=SE, data=a, method="REML", slab=paste(a$study), digits=3) or res <- rma(HR, vi=SE^2, data=a, method="REML",