Re: [R] makeCluster() hangs infinitely

2018-09-16 Thread Henrik Bengtsson
Hi, did you see my answer on StackOverflow? Specifically, if you set argument 'outfile = NULL' to either of those two functions, you'll get a little bit more information that *might* provide some clues. /Henrik On Sun, Sep 16, 2018 at 5:38 PM Zhihao Huang wrote: > > Hi all, > > The function

[R] bootstrap sample for clustered data

2018-09-16 Thread Liu, Lei
Hi there, I posted this message before but there may be some confusion in my previous post. So here is a clearer version: I'd like to do a bootstrap sampling for clustered data. Then I will run some complicated models (say mixed effects models) on the bootstrapped sample. Here id is the

Re: [R] [FORGED] Re: Change the position of label when using R package eulerr

2018-09-16 Thread Paul Murrell
Hi The 'x' component of the 't' grob that you get back from grid.get() is a unit object, which you can subset and assign to a subset, for example this code nudges the fourth label up and to the right 1mm in each direction ... x <- t$x y <- t$y x[4] <- t$x[4] + unit(1, "mm") y[4] <- t$y[4]

[R] Set the same colour range for 2 != rasters

2018-09-16 Thread Jackson Rodrigues
Dear all, My name is Jackson. I am trying to set the same colour range for 2 rasters (max and min temperatures). Both rasters have different numerical ranges but the same dimensions dimensions : 4346, 4365, 18970290, 1 (nrow, ncol, ncell, nlayers) The lowest value is 3 and the highest is 31.

Re: [R] bootstrap sample for clustered data

2018-09-16 Thread Bert Gunter
Unless there is good reason not to -- which is not the case here -- **always" cc the list. I have done that here. "Can you help me with it?" Nope. I'm not a private consultant, and I already made an attempt to do so, which you seem to have completely ignored. So I'm done. By the way,

[R] makeCluster() hangs infinitely

2018-09-16 Thread Zhihao Huang
Hi all, The function makeCluster() of parallel does not work on my laptop. It hangs infinitely. *1. Problem Summary:* > # Loading parallel packages > library(parallel) > cl <- makeCluster(2) # It hangs at this line of code. It hangs at the second line of the code. *2. Potential Reason* I

Re: [R] bootstrap sample for clustered data

2018-09-16 Thread Liu, Lei
Sorry for the confusion. I just want to recode the id variable to 1 to 5 in the bootstrapped sample. This way I can do e.g., a mixed effects model using the new id as the cluster. Thanks! Lei From: Bert Gunter [mailto:bgunter.4...@gmail.com] Sent: Sunday, September 16, 2018 2:21 PM To: Liu,

Re: [R] bootstrap sample for clustered data

2018-09-16 Thread Bert Gunter
(I neglected to cc this to the list -- Bert) On Sun, Sep 16, 2018 at 1:36 PM Bert Gunter wrote: > You can do a mixed effects model using the existing id's without recoding. > > But if you insist, is this the sort of thing you want? > > set.seed(-12345) # for reprodicibility > > id <-

Re: [R] bootstrap sample for clustered data

2018-09-16 Thread Bert Gunter
I can't make any sense of your post. Id 3 occurs 6 times, and 2 and 5 occur twice each in your example.. How do you get (1,1,2,2,3,3,4,4,5,5) out of that? In other words, specify the mapping of old id's to new. Bert Bert Gunter "The trouble with having an open mind is that people keep coming

[R] bootstrap sample for clustered data

2018-09-16 Thread Liu, Lei
Hi there, I tried to generate bootstrap samples for clustered data. Here is some code I found in the web to do the work: id=c(1, 1, 2, 2, 3, 3, 4, 4, 5, 5) y=c(.5, .6, .4, .3, .4, 1, .9, 1, .5, 2) x=c(0, 0, 1, 1, 0, 0, 1, 1, 1, 1 ) xx=data.frame(id, x, y) boot.cluster <- function(x, id){

Re: [R] Help with setting locale

2018-09-16 Thread Ivan Krylov
On Fri, 14 Sep 2018 10:02:01 +0200 Kim Titcombe wrote: > I am based in Switzerland but work in English (Windows in English), > hence want English as default. Which Windows version do you use? Which languages/language packs do you have installed? -- Best regards, Ivan