search for: centr

Displaying 20 results from an estimated 4383 matches for "centr".

Did you mean: center
2013 May 21
1
keep the centre fixed in K-means clustering
Dear R users I have the matrix of the centres of some clusters, e.g. 20 clusters each with 100 dimentions, so this matrix contains 20 rows * 100 columns numeric values. I have collected new data (each with 100 numeric values) and would like to keep the above 20 centres fixed/'unmoved' whilst just see how my new data fit in this grou...
2007 Apr 19
1
Error with strptime
...e`(`*tmp*`, "spltime", value = list(sec = numeric(0), : le tableau de remplacement a 9 lignes, le tableau remplac? en a 140 > test2<-strptime(test,format="%d-%B-%y %H:%M") > bsamp<-cbind(bsamp,test2) > bsamp$test2 [1] "2006-03-01 11:40:00 Centre de l'Europe" [2] "2006-03-15 11:30:00 Centre de l'Europe" [3] "2006-03-15 15:00:00 Centre de l'Europe" [4] "2006-03-29 11:40:00 Centre de l'Europe (heure d'?t?" [5] "2006-03-01 11:45:00 Centre de l'Europe" [6] "200...
2010 Jun 18
4
Drawing sample from a circle
Hi, I would like to draw 10 uniformly distributed sample points from a circle with redius one and centered at (0,0). Is there any R function to do that?   Thanks, [[alternative HTML version deleted]]
2010 Oct 22
1
scale,centre,and get more interactions
Hi folks, I am new to lme in R, and I have a question regarding to the effect of scale function on the lme. When I use the function to scale and centre the levels of the fixed effects (e.g., X and Y; both have two levels) and write them to new columns: ex: dat$cX<-scale(as.numeric(dat$X),center = TRUE, scale = FALSE) dat$cY<-scale(as.numeric(dat$Y),center = TRUE, scale = FALSE) and compare the lme of centred model ran on cX and cY with the...
2018 Mar 02
1
Variable centring within "predict.coxph"
...omputer practical sessions related to the development and validation of clinical prediction models. These are currently written for Stata and I am in the process of writing them for use in R too (as I far prefer R to Stata!) I notice that predictions made from a Cox model in Stata are based on un-centred variables, while they are based on centred variables in R. I am aware that variable centring is the preferred approach to ensure sensible predictions from models and thus usually I am pleased that variable centring is automatically applied within coxph in R. However, for the sake of producing i...
2010 Mar 10
1
pie EPS BB
...want to have just the plain pie-chart with no annotations. So far so good: "labels=rep(NA,...)" will do it. But I want to have it output to an EPS file with the BoundingBox *exactly* containing the pie-chart, i.e. the pie-chart boundary touches the four sides of the BoundingBox, and its centre is at the centre of the BoundingBox. This is the puzzle I have not been able to solve. Here is an example of the sort of thing I have been trying. pcts <- c(3.0,2.0,0.4,10.0,12.0,3.0,39.0,14.0,7.0,9.6) postscript("piecharttest.eps",horizontal=FALSE, paper="special&qu...
2008 Mar 05
1
coxme - fitting random treatment effect nested within centre
Dear all, I am using "coxme" function in Kinship library to fit random treatment effect nested within centre. I got 3 treatments (0,1,2) and 3 centres. I used following commands, but got an error. > ugroup=paste(rep(1:3,each=3),rep(0:2,3),sep='/') > mat1=bdsmatrix(rep(c(1,1,1,1,1,1,1,1,1),3),blocksize=rep(3,3),dimnames=list(ugroup,ugroup)) > mat2=bdsmatrix(rep(c(0,0,0,0,0,0,0,0,1),3),b...
2009 Apr 15
3
How to apply a function to all combinations of the values of 2 or more variables?
...terminology to frame my question. I want to know how to run an R function on each combination of the values of 2 or more variables. In SAS-speak this is multiple "BY variables" or "CLASS variables". In R I've figured out how to do what I want with one by value. by(mf,mf$centre,summary) Centre is one of the columns in the data frame "mf" which looks like this: names(mf) [1] "centre" "complex" "appl" "pool" "month" "alloc_gb" I'd like to analyze, for example, by complex within centr...
2005 Mar 31
2
Using kmeans given cluster centroids and data with NAs
Hello, I have used the functions agnes and cutree to cluster my data (4977 objects x 22 variables) into 8 clusters. I would like to refine the solution using a k-means or similar algorithm, setting the initial cluster centres as the group means from agnes. However my data matrix has NA's in it and the function kmeans does not appear to accept this? > dim(centres) [1] 8 22 > dim(data) [1] 4977 22 > x <- kmeans(data,centres) Error in kmeans(data, centres) : NA/NaN/Inf in foreign function call (arg...
2006 Feb 14
3
Developing a call centre app. Communication with asterisk?
Hi there. We're going to develop a call centre app for internal use in our office. The call centre is probably going to be a java-based client installed on a windows machine that our secretary can use. Features should be a way to see incoming calls, answer them, and then transfer the calls to our different users/groups/divisions. If it also...
2004 Nov 22
4
How to correct this
...e, I tried to add a few circles on an existing figure using the following codes grid.circle(x=0.5, y=0.5, r=0.1, draw=TRUE, gp=gpar(col=5)) grid.circle(x=0.5, y=0.5, r=0.3, draw=TRUE, gp=gpar(col=5)) grid.circle(x=0.5, y=0.5, r=0.5, draw=TRUE, gp=gpar(col=5)) points(0.5, 0.5, col = 5) # centre of the circle , but all circles moved away from the centre. Could we do any corrections to this? Thanks. Regards, Jin ========================== Jin Li, PhD Climate Impacts Modeller CSIRO Sustainable Ecosystems Atherton, QLD 4883 Australia Ph: 61 7 4091 8802 Email: jin.li@csir...
2013 Mar 11
3
Optimization in R similar to MS Excel Solver
Dear all, I am trying to find the solution for the optimization problem focused on the finding minimum cost. I used the solution proposed by excel solver, but there is a restriction in the number of variables. My data consists of 300 rows represent cities and 6 columns represent the centres. It constitutes a cost matrix, where the cost are distances between each city and each of six centres. ..+ 1 column contains variables, represents number of firms. I want to calculate the minimum cost between cities and centres. Each city can belong only to one of the centres. A model example:...
2007 Nov 22
3
Solaris 9 Winbind "ls -l" hangs - group mapping
...nmblookup -B ip_addr __SAMBA__ nmblookup -N ip_addre "*" nmlookup -M DOMAIN The gid range does not clash with existing groups and I cannot see any errors in the log files. All give normal output. Any ideas? Regards Kevan Gibbings System Engineer SAIC Motor UK Technical Centre Ltd Southam Road, Radford Semele, Leamington Spa, Warwickshire, CV31 1FQ, UK Direct Dial +44 (0)1926 319496 Direct Fax +44 (0)1926 477144 Tel +44 (0)1926 319319 Fax +44(0) 1926 477144 Email kevan.gibbings@partner.saicmotor.co.uk <mailto:kevan.gibbings@partner.saicmotor.co.uk> This e-mail...
2008 Jul 01
2
Are centre coordinates or upper left corners used of x, y for SpatialPixels?
Dear all, I'm working with satellite images in R and plotting them via the code below. I was wondering whether coordinates (spatial["x"], spatial["y"]) are used as centre coordinates of the pixels in the GRID? In this script; spatial["x"] & spatial["y"] are the centre coordinates of the satellite image pixels. I'm asking this because some software packages use the upper left corner of a pixel as a reference. require(sp) # --> Creat...
2010 Nov 10
2
Centring titles for pairs of plots.
I would like to centre titles for pairs of plots in a 3-x-2 array. Each row of the array corresponds to a calendar year and I would like to have the year value centred between the two plots in the row, and just above their upper edges. I have attached an example in "demo.pdf" showing roughly what I want. I...
2006 Apr 04
3
Auto Attendant Question
Hi Folks I have had a look through the Features list, and I see that the system does support an auto attendant, however is it possible to have say 5 telephone numbers that a person would dial and have 5 different messages I.e Dial 555-1121 and you get a message for companyA call centre Dial 555-1131 and you get a message for companyB call centre Dial 555-1141 and you get a message for companyC call centre etc. etc. Once you have listened to the message welcome to blah blah your call is important etc etc. you are put through to an operator If you need any clarification please l...
2011 Feb 20
0
libxapian1.2.4 breaks synaptic quick search; breaks software centre search
...e to help] On Sat, Feb 19, 2011 at 11:45:20PM +0000, francis wrote: > I installed xapian1.2.4 on Lucid; libxapian1.2.4 seems to be > incompatible with synaptic quick search - typing two or more chars > produces a segmentation fault. The synaptic search(find) button works > ok. Software Centre search is also broken. I guess you're using packages from my PPA? Lucid comes with Xapian 1.0.18-1, which means libxapian15, while Xapian 1.2.x is libxapian22, so for C++ code they should quietly coexist. So it's odd that synaptic fails. If you run it under gdb, where does it segfault?...
2011 Jun 29
1
centre two graphs on one plot
...,2],col=4) text (Rot[,1:2],rownames(Rot),col=6) axis (3) axis (4) But the origin of the arrows does not line up with the origin of the points. Can anyone suggest how you would get the two graphs to line up? I think you have to set a ratio between the two sets of axes so that the origin is in the centre but I don't know how to do it. Thanks Chris -- View this message in context: http://r.789695.n4.nabble.com/centre-two-graphs-on-one-plot-tp3633788p3633788.html Sent from the R help mailing list archive at Nabble.com.
2003 Jul 31
1
Mac OS 10 (not X11) failure to rotate symbols (PR#3602)
In the following code the arrow symbols do not rotate with the text on the Mac OS window, however the do rotate on X11 port on Mac OS. (R version 1.71) x <- c(0,10.) y <- c(0,10.) offset <- 3 centre <- 5 plot(x,y, xlim=range(x), ylim=range(y),type="n", xlab="",ylab="", main="",xaxt="n",yaxt="n") for (i in (seq(0, 340, by=45)) ) { px <- centre + cos((i*pi)/180) * offset py <- centre + sin((i*pi)/180) * offset text(px, py...
2004 Jun 24
2
More problems with lattice and postscript
...s are OK. I am using R 1.9.1 (2004-06-21) on Debian GNU/Linux which I try to keep updated on a daily basis. I am aware of some problems in R 1.9.0 but I don't know if it has been fixed yet. And nobody mentioned problems with loops. Any ideas? Thanks in advance. Best regards, Virgilio for(centre in 1:3) { for(method in 1:12) { auxdata<- as.data.frame(t(table.thres[c(method,16),1+(centre-1)*250+(1:250)])) names(auxdata)<-c("Threshold", "Parameters") trellis.device(postscript, file=paste(&qu...