Displaying 6 results from an estimated 6 matches for "lookupt".
Did you mean:
lookup
2008 Jun 23
3
One-to-one matching?
Hi folks,
Can anyone suggest an efficient way to do "matching without
replacement", or "one-to-one matching"? pmatch() doesn't quite provide
what I need...
For example,
lookupTable <- c("a","b","c","d","e","f")
matchSample <- c("a","a","b","d")
##Normal match() behaviour:
match(matchSample,lookupTable)
[1] 1 1 2 4
My problem here is that both "a"s in matchS...
2013 Jun 05
1
[LLVMdev] TableGen lookup table recipe?
Is it possible to define lookup tables as a list in tablegen, to map one
value to another? Here's the template I was working on:
=========================================
class LookupTable {
list<int> mapping = [0, 8, 16, 24, 32];
}
def LUT : LookupTable;
class MyRegister<name, index> : Register<name> {
let HWEncoding = LUT.mapping[index];
int otherVal = index; // required as well, ie. 'unmapped'
}
foreach reg 0-32 in {
def R#reg : MyRegis...
2009 Oct 05
3
how to have 'match' ignore no-matches
Hi all,
I think this is a very basic question, but I'm new to this so please bear
with me.
I'm using match to translate elements of a data frame using a lookup table.
If the content of a particular cell is not found in the lookup table, the
function returns NA. I'm wondering how I can just ignore those cells, and
return the original contents if no match is found in the lookup table.
2012 Aug 06
5
regexpr with accents
Hello,
I have build a syntax to find out if a given substring is included in a larger string that works like this:
d1$V1[regexpr("some text = 9",d1$V2)>0] <- 9
and this works all right till "some text" contains standard ASCII set. However, it does not work when accents are included as the following:
d1$V1[regexpr("some t?xt = 9",d1$V2)>0] <- 9
I have
2008 Jul 29
0
handling multiple lookup tables in rails
...ls/views/controllers for all
these lookup tables are identical. I would think there would be a way
to have 1 Controller (e.g. LookupController) 1 set of views (in
directory /lookups) and a model for each lookup table. Then the Lookup
controller would (possibly with a before_filter) figure out which
lookuptable I want to edit (possibly with a route such as
(lookup/:model) where :model would be the name of the lookup table I
want to edit.
Can anyone point me to either some documentation or provide hints
on how to do this sort of thing cleanly?
Below is the code I''m playing around with....
2010 Apr 21
9
best choice of user database file to work with postfix?
I'm setting up a Postfix and Dovecot combination. What I want to do is have
a user database that (1) is not running from some engine (so not LDAP or SQL
or such) ... and (2) is completely disassociated from system users (e.g.
most email users are not in /etc/passwd and most /etc/passwd users are not
email users). Ideal would be a one-file solution, which can be managed by
text editing or