[R] raster package: OpenStreetMap broken on Ubuntu, works on Mac

2013-09-20 Thread jos
Hi, I'm a novice in R and I was trying to play with OpenStreetMap package as in a few examples on the web. And the examples worked on my Mac but on Ubuntu (12.04) they fail to work. The simplest one is: library(OpenStreetMap) library(rgdal) map <- openmap(c(70,-179), c(-70,179)) plot(map) (Open

[R] start values for random effects in nlme

2018-01-03 Thread Jos Lommerse
1 <- nlme(b ~ par1*a + par2*exp(IIV), data = data, fixed = list(par1 ~ 1, par2 ~ 1), random = IIV ~ 1 | ID, start = list(fixed = c(1,1), random= E)) summary(fm1) - Kind regards, Jos Lommerse, Certara NOTICE: The information contained i

[R] sample unique pairs from a matrix

2009-05-28 Thread jos matejus
for(i in 1:6){ values[i] <- dataf[samrow[i], samcol[i]] } However, I am not sure how to include the logical condition to only include postitive values Any help would be gratefully received. Jos __ R-help@r-project.org mailing list https://stat.ethz.ch/mai

Re: [R] sample unique pairs from a matrix

2009-05-28 Thread jos matejus
words, the next sample would be taken from a 5x5 matrix, and then a 4x4 matrix and so on until I have my 6 values. I will keep thinking! Cheers Jos 2009/5/28 David Winsemius : > > On May 28, 2009, at 6:33 AM, jos matejus wrote: > >> Dear R users, >> >> I have a matrix

Re: [R] sample unique pairs from a matrix

2009-05-28 Thread jos matejus
Dear All, Many thanks for all your useful suggestions. Much appreciated. Jos 2009/5/28 David Winsemius : > Your last step will either be a single number (not really a sampling > operation) or a > non-positive number. So at best you really only have an number that depends > entirely

[R] (svy)glm and weights question

2010-05-11 Thread Jos Elkink
a good source describing the estimation procedure, including weighting, applied in svyglm()? Thanks in advance for any help! Jos -- Johan A. Elkink Lecturer in Social Science Research Methods School of Politics and International Relations & CHS Graduate School University College Dublin Ph.

[R] Rmpi installation problems

2011-12-02 Thread Jos Elkink
version: 2.14.0 Linux version: Gentoo, i686-pc-linux-gnu (32-bit) GCC version: 4.5.3 (Gentoo 4.5.3-r1 p1.0) OpenMPI version: 1.5.4 Output from R CMD INSTALL . in Rmpi source directory: * installing to library ‘/home/jos/R/i686-pc-linux-gnu-library/2.14’ * installing *source* package ‘Rmpi

[R] Port package

2008-07-09 Thread Jos Kaefer
partially linear least-squares models and '"port"' for the 'nl2sol' algorithm from the Port package. The simple question is: where's the Port package? I can't find it on cran. Thanks, Jos __ R-help@r-projec

[R] reference category for factor in regression

2009-01-19 Thread Jos Elkink
t be going wrong? Or what I could do about this? Thanks in advance for any help! Regards, Jos -- Johan A. Elkink Lecturer School of Politics and International Relations & CHS Graduate School University College Dublin Ph. +353 1 716 7026 | Library Building, Rm 512 http://ja

Re: [R] reference category for factor in regression

2009-01-19 Thread Jos Elkink
reference category ... Jos On Mon, Jan 19, 2009 at 2:37 PM, ONKELINX, Thierry wrote: > Dear Jos, > > In R you don't need to create you own dummy variables. Just create a > factor variable LABOUR (with two levels) and rerun your model. Then you > should be able to calculate all c

Re: [R] reference category for factor in regression

2009-01-19 Thread Jos Elkink
65+ 101 15 18-24 26 46 25-34 21 148 35-49 55 179 50-64 72 126 Anyone any idea? So there must be a reason R decides *not* to use 65+ as reference in that particular scenario, and I am missing why. Jos __ R-help@r-project.org mailing list

[R] r help: source-function is very slow

2012-01-19 Thread Jos van Nijnatten
) it's very fast. But if I put 'someOtherScript.r' in another directory (say ../../R) R takes moments, if not minutes to locate and load the script. Is there another way to do this that is not slow? Thanks, Jos -- Jos van Nijnatten, BSc Candidate Erasmus MC, Rotterdam, NL Department of Bioinfo

Re: [R] r help: source-function is very slow

2012-01-19 Thread Jos van Nijnatten
an Murdoch wrote: On 12-01-19 8:25 AM, Jos van Nijnatten wrote: Hello everybody, I noticed a performance problem when using the source-function in R. When I try to source an r script that is located in the same directory as the script I execute via command line ('R -f file.r' contents '