search for: combo

Displaying 20 results from an estimated 1244 matches for "combo".

2012 Nov 29
1
Error 0ps.factor: level sets of factors are different
I have two data sets: "new" and "combo". Within both data set, each row pertains to a unique individual. The "combo" data set is a subset of the "new" data set, meaning that all individuals within "combo" are within "new" but not all individuals within "new" are within "combo&q...
2010 Jan 25
3
question on sqldf syntax
trying to structure sql to merge two datasets. structure follows: dbs.possible.combos (all possible combinations of dates and places) Date Place 1/1/10 N-01 1/1/10 S-02 1/2/10 N-01 1/2/10 S-02 etc... dbs.aggregate (the raw data aggregated by date and location) Date Place Days 1/1/10 N-01 6 1/1/10 S-02 10 1/2/10 S-02 5 Trying to merge so I look-up the values for each possible com...
2011 Jun 07
1
giving factor names
...each level to have something like "z=value" for each one. I can get each one to say z, or each one to say the value (by using as.factor) but not both. Heres an artificial example to show what I mean (as my actual data set is much larger!) x<-c(1,2,3) y<-c(2,4,6) z<-c(0.1,0.5,2) combo<-expand.grid(x,y,z) combo<-data.frame(combo) names(combo)<-c("x","y","z") outcome<-function(l) { (l[1]*l[2])/l[3] } resp<-apply(combo,1,outcome) levelplot(resp~x*y|z,data=combo ,pretty=TRUE,region=TRUE,contour=FALSE) , so in this final graph I want the...
2012 Jan 28
2
For Loop Error
...ist=ls()) # Sample Size size <- 53 # Probability of each color based on company P.company <- c(.14,.14,.16,.13,.20,.24) # Names of colors color <- c('Br','Y','G','R','O','Bl') # Make an empty matrix that will be filled in by for loop table.combos <- matrix(nrow = 10000, ncol = 6); # For loop will run through choosing a random bag of 53 M&Ms 10000 times # and create a table enumerating the number of each color in each of these 10000 bags for(i in 1:10000) { combos <- sample(color,size, replace = TRUE, prob = P.company) table....
2009 Dec 18
2
Generating permutations that always include one specific element
...uot;LB", "LG", "MG", "O", "P", "PI", "PK", "PU", "R", "V", "W", "Y") Each permutation must be 4 characters long. permutations() from the gtools package does this easy enough: possible.combos <- permutations(18, 4, bands) However, ³AL² must be one of the elements in each permutation. Any ideas? Thanks in advance, Ray [[alternative HTML version deleted]]
2003 Jun 25
0
Rcmd SHLIB on Windows
...This is a form of logistic regression that accounts for spatial autocorrelation within and between predictor variables. To this end I have received some script from Dr. Fred Huffer which will allow for the analysis in R. It consists of an R script (autolog.R) that calls a compiled Fortran script (combo.o). I am supposed to use "dyn.load' to load the fortran script. To do this in R I realize that I need to create a dll for combo.o and that this is supposed to be done using "Rcmd SHLIB combo.f". This is where I run into problems. I have read the "readmepackages.txt"...
2011 Sep 01
2
Partial Page update and related combobox
...ust like a sidebar which contains different links. And the right side of the page is meant to display the content, which is also a div container . When i click any of the links in the sidebar respective pages must be displayed in the right side container. How to do this in rails? 2) I have 2 combo boxes, i want to load the 2nd combo box depending on the value selected in the 1st combo box. How to implement it in rails? Can some one provide me the code structure. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups...
2010 Aug 09
2
TRUE/FALSE
Here is my code # determine the DDOA measurements for(e in 1:numSensors) { for(f in 1:numSensors) { if((combos[e,f]==1) { # true distance between each sensor and the target truedistance[e]<-sqrt((targetX-sensorX[e])^2+(targetY-sensorY[e])^2) # add an error that has a N(0, sigma^2) distribution truedistance[e]<-(truedistance[e]+rnorm(1, 0, sigma)) } #truedis...
2007 Mar 27
0
WM_TIMER stops being sent?
Hi, I've got a problem with Weatherscope (available freely here: http://sdg.ocs.ou.edu/builds/final/win/WeatherScope/WeatherScope-1.4.1.exe) where the filtering of combo boxes using text typed in a line edit is broken. (Bug here: http://bugs.winehq.org/show_bug.cgi?id=7085) This can be seen by running the program (full path required), selecting product (from the invisible menubar) and going to "New Radar". Typing "ok" into the filter should...
2009 Apr 06
3
how to subsample all possible combinations of n species taken 1:n at a time?
...1 1 1 0 0 0 0 0 0 1 0 0 1 0 0 1 1 1 1 0 0 0 0 ...but the number of possible communities increases exponentially with each added taxon. n<-11 #number of taxa sum(for (i in 0:n) choose(i, k = 0:i)) #number of combos So all possible combinations of 11 taxa taken 1:11 at a time is 2048, all combos of 12 taken 1:12 is 4096, 13 taken 1:13 = 8192...etc etc such that when I reach about 25 taken 1:25 the number of combos is 33554432 and I get a memory error. I have found that the number of combos of x taxa taken f...
2009 Apr 09
4
create_table with unique combo
I need to create a table replacing default integer id with a string id and making a combo of (id and version) unique primary key. Here is what I''ve got so far. class CreateCatalogs < ActiveRecord::Migration def self.up create_table :catalogs, :id => false do |t| t.string :id, :limit => 20, :null => false t.string :version, :default => ''...
2002 Feb 21
1
Help tracing WINE funcion..
...now that I've added more traces, that command outputs (basically): controls/button.c:234: TRACE_(win)("Calling SetCapture in button.c\n"); controls/button.c:235: SetCapture( hWnd ); controls/button.c:236: TRACE_(win)("Done with SetCapture in button.c\n"); controls/combo.c:1197: TRACE_(win)("Calling SetCapture (combo.c)\n"); controls/combo.c:1198: SetCapture(lphc->hWndLBox); controls/combo.c:1778: TRACE_(win)("Calling SetCapture (combo.c2)\n"); controls/combo.c:1779: SetCapture( hWnd ); controls/combo.c:1808: TRAC...
2012 Oct 21
2
help speeding up simple Theil regression function
...mine is faster with N = 1000 (see results below). I plan on running this function repeatedly, and I generally have data lengths of ~ N = 6000 or more. # My function following Hollander and Wolfe text, Chapter 9 np.lm <-function(dat, X, Y, ...){ # Ch 9.2: Slope est. (X) for Thiel statistic combos <- combn(nrow(dat), 2) i.s <- combos[1,] j.s <- combos[2,] num <- vector("list", length=length(i.s)) dom <- vector("list", length=length(i.s)) for(i in 1:length(i.s)){ num[[i]] <- dat[j.s[i],Y] - dat[i.s[i],Y] dom[[i]] <- dat[j.s[i],X]...
2005 Aug 16
10
quad t1 / 1U rack server combos
...s even go as far as listing server that DO NOT work on the Digium site! The wiki references are old and do not have any testing parameters. C'mon guys! Certify a few current model servers and be done with it. Without that information I must again ask the question; What 1u server combos work with the new quad pri cards UNDER LOAD (more than 75% channel use). Every user that buys a Digium PRI card should not have to play hit or miss with 2 or 3 servers that cost more than the card to get it to work. Please Please Please publish something useful to support the sale of PRI cards...
2012 Jan 28
2
finding rows in a matrix that match a vector
Hi, Please excuse my ignorance, but I am just learning R (this is my very first day programming in R) and having a really hard time figuring out how to do the following: I have a matrix that is 1000 row by 6 columns (named 'table.combos') and a 1 row by 6 column vector (named 'mine'). I want to find every row in 'table.combos' that equals 'mine' and then count this number of times that this is the case. In matlab, I would use the 'find' command but I can not seem to figure out what syntax to...
2007 Nov 06
2
retrieving values from combo box
<td><p align="right">Jul/10:</td> <td><%= select_tag "jul10", "<option>Y</option><option>N</option><option>R</option>" %></td> At the moment, my html form displays this combo box the way i want it, but it does not record down what the user has selected and save it to the database help please, thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. T...
2006 Jul 22
2
selected values in combo box
how to set default value in combo box or whether there is another way plz explain with example code advance thx have a nice day -- Posted via http://www.ruby-forum.com/.
2004 May 24
9
Combo Box
>> You really want to call get_value. Unfortunately, that''s not implemented >> in wxRuby 0.3.0. >I found to my surprise that this method is actually working, but only in the >example code that comes with wxRuby one-click install for Windows. @combo.get_label seems to work for me. See sample code below. HTH, Assaph ----- CODE ----- require ''wxruby'' include Wx ID_DRIVES_BOX = 1 ID_BTN1 = 2 class TestFrame < Frame def initialize super(nil, -1, "Test App") dlgSizer = BoxSizer.new(VER...
2018 Jun 15
2
CentOS7/Mate Qt bugs/features?
...Gui import * from PyQt4 import QtCore import sys class MyWidget(QFrame): def __init__(self, parent=None): super(MyWidget, self).__init__(parent) self.setAttribute(QtCore.Qt.WA_TranslucentBackground) self.state = 1 self.combo = QComboBox() for a in ['A','B','C']: self.combo.addItem(a) self.btn = QPushButton("Toggle") self.btnClose = QPushButton("Close") self.btnClose.clicked.connect(se...
2006 Apr 27
2
problem installing centos 4.0 on Compaq Presario SR1722IL
hey friends, Recently I purchased Compaq Presario SR1722IL and I tried to install Centos 4.0 on it but it started showing errors like: Uniform CD-ROM driver revision: 3.20 Combo SOLTC-4836k ATAPI CD/DVD-ROM drive hdc: IRQ Probe failed (Oxfcfa) hdd: IRQ Probe failed (Oxfcfa) hdc: lost interrupt I tried installing FC4 also but same problem persist. Windows 2000 & Windows XP are already installed on the same system that means the Combo Drive is working fine. Then I...