search for: key2

Displaying 20 results from an estimated 103 matches for "key2".

Did you mean: key
2013 Jan 18
5
reading multiple key=value pairs per line
Hi, Thanks for a great environmentfor statistical computing :-) I have some input data in a file ("input_kvpairs.csv") of the form key1=23, key2=67, key3="hello there" key1=7, key2=22, key3="how are you" key1=2, key2=77, key3="nice day, thanks" Now in my head I wish it was of the form ("input.csv") #key1, key2, key3 23, 67, "hello there" 7, 22, "how are you" 2, 77,...
2011 May 02
2
INSERT OR UPDATE
...e the key fields of a record already exist in the table. I've come up with a possible solution below, but would like to hear if anyone has a better solution. # The problem demonstrated: # Create a data.frame with test values library(RODBC) tbl <- data.frame( key1 = rep(1:3, each = 2), key2 = rep(LETTERS[1:2], 3), somevalue = rnorm(6) ) # Create table in database using the following SQL CREATE TABLE tbl ( key1 integer NOT NULL, key2 character varying(1) NOT NULL, somevalue double precision, CONSTRAINT pktbl PRIMARY KEY (key1, key2) ) # Continue in R pg <- odbcConne...
2012 Aug 14
1
Can we interlink these three if conditions?
key1.=c(1, 2, 3) key2.=c(2) if (identical(key1.,key2.) == "TRUE") { cat("No Errors found") } if (length(setdiff(key1., key2.)) !=0) {...
2015 May 30
3
Using two agents
...create a real > "provenance" problem for the agent being accessed on the other side. This couldn't possibly be a problem for the other side, the other side will only ever know about one agent. > > What problem are you actually trying to solve? On my laptop I have key1 and key2. I can use key1 to log in on server1, and I can use key2 to log in on server2. I want neither key to leave the laptop, and only key2 is allowed to be forwarded to other hosts. I need to ssh to server1 and on server1 run an scp command to exchange files with server2. This approach works as long as...
2009 Mar 04
3
Table Transformation
Dear R-experts, recently, I started to discover the world of R. I came across a problem, that I was unable to solve by myself (including searches in R-help, etc.) I have a flat table similar to key1 key2 value1 abcd_1 BP 10 abcd_1 BSMP 1A abcd_1 PD 25 abcd_2 BP 20 abcd_3 BP 80 abcd_4 IA 30 abcd_4 PD 70 abcd_4 PS N I wish to transform this table to obtain the following result: key2 key1 BP BSMP IA PD PS abcd_1 "10" "1A" "" "25" "" abcd_2 &quot...
2005 Feb 24
1
Place more than one key with xyplot
...text = list(lab = rev(c(" 5-15", "15-25", "25-35", "35-45", "45-55","55-65", "65-75", "75-85", "85-95"))), columns = 1) and another one with lines: key2 <- list(lines=list(col=2), text=list(lab="Mean")) Each of them works fine: xyplot(1~1, key = key1) xyplot(1~1, key = key2) Unfortunately I don't really understand which "fun" (for legend) I have to use. The following line does not work. xyplot(1~1, legend = list(righ...
2010 Aug 23
1
Sort ordering
Using MultiValueSorter, I can sort by key1, key2, relevance; or relevance, key1, key2. But AFAIK, I can't sort by key1, relevance, key2. Unless I spool out the entire result set or write some C++. I wonder if we need a new 'sort by' function that accepts any combination of keys and relevance in any order? The function would make it&...
2005 Aug 08
1
php_serialize-1.0.2.1.rb questions
Has anyone used this to get data out of PHP sessions? I can get data out using the php_unserialize function however I am getting a array of strings that looks like this: ["key1: data1","key2: data2"] I would rather get RoR session style of associative arrays ["key1"=>"data", "key2"=>"data2"] Am I just being dense and there is an easy way to do this or do I just have to deal with it? - Michael
2009 May 22
3
Parsing Asterisk's .conf files from Perl, Java or PHP file
Hi, To a large extend, Asterisk's /etc/asterisk/*.conf configuration files conform to a format such as: [section1] key1=value1 key2=value2 [section2] key1=value1 key2=value2 ... To increase coherence when running custom-made application in Perl, Java, PHP, ...) and Asterisk on the same platform, I'm wondering if could extend a bit Asterisk's config files instead of duplicating data in an independant config file. For...
2010 Mar 03
1
data.table evaluating columns
Hi everyone, I have the following code that works in data frames taht I would like tow ork in data.tables . However, I'm not really sure how to go about it. I basically have the following names = c("data1", "data2") frame = data.frame(list(key1=as.integer(c(1,2,3,4,5,6)), key2=as.integer(c(1,2,3,2,5,6)),data1 = c(3,3,2,3,5,2), data2= c(3,3,2,3,5,2))) for(i in 1:length(names)){ frame[, paste(names[i], "flag")] = frame[,names[i]] < 3 } Now I try with data.table code: names = c("data1", "data2") frame = data.table(list(key1=as.integer(c(...
2018 Jul 02
3
subset con los casos presentes en otra df
Buenas, una vez más. Utilizo: data <- subset(data,data$Key %in% data2$Key) para quedarme con los casos de data que están también en data2, de acuerdo a la variable Key. ¿Cómo sería si quiero que sean los que coinciden en Key1 y Key2? Pense hacer un collapse con Key1 y key2, tanto en data como data2, y usarlo como uso key en el ejemplo de arriba, pero debe haber una forma más sencilla, seguro. Gracias una vez más, Manuel . -- Dr Manuel Mendoza Department of Biogeog...
2009 Jul 08
1
[PATCH: host-browser replacement 0/3] replacement of host-browser on ovirt-server
The purpose of this patch is to replace the identify function in host-browser.rb with a new script, host-register.rb. host-register.rb is a qmf ruby console that interfaces with the newly added matahari qmf agent on the ovirt node. While it stores node data in the database with the same behavior as the original host-browser implementation, it acquires the data using the amqp protocol (and
2011 Sep 01
1
Background fill and border for a legend in dotplot
...----------------------------------------------------------------------------- key1 <- draw.key(list(text=list(levels(Cal_dat$Commodity)), title="Ore type", points=list(pch=22, cex=1.3, fill=col.pat, col="black")), draw = FALSE) key2 <- draw.key(list(text=list(levels(factor(Cal_dat$Year))), title="Year", points = list(pch = c(21, 22, 23), cex=1.3, col="black")), draw = FALSE) mkey <- mergedTrellisLegendGrob(list(fun = key2),...
2010 Nov 08
2
Fuzzy merge using timestamps
...the code I have written so far look something like this. gpsdata$t_datetimegps<-as.POSIXct(gpsdata$t_datetimegps) urdata$t_datetimeur<-as.POSIXct(urdata$t_datetimeur) gpsdata$ID1 <- row.names(gpsdata) urdata$ID2 <- row.names(urdata) gpsdata$key1 <- rep(0, nrow(gpsdata)) urdata$key2 <- rep(1, nrow(urdata)) checkTimes <- data.frame(ID=c(gpsdata$ID1, urdata$ID2), ARC=c(gpsdata$gpsARC, urdata$urARC), times=c(gpsdata$t_datetimegps, urdata$t_datetimeur), key=c(gpsdata$key1, urdata$key2)) checkTime <- checkTimes[order(checkTimes$ARC,checkTimes$times, decreasing = FALSE...
2017 Feb 26
1
v2.2.28: var-expand.c
var-expand.c:687:17: warning: passing an object that undergoes default argument promotion to 'va_start' has undefined behavior [-Wvarargs] va_start(args, key2); ^ var-expand.c:674:58: note: parameter of type 'char' is declared here var_expand_table_build(char key, const char *value, char key2, ...) ^
2009 Sep 08
1
Function to query ASTDB families
Hi, Asterisk database is made of <family><key> records such as: fam key1 val1 fam key2 val2 ... fam key100 val100 I'm looking for the smartest way to iterate among different keys associated to a given family. One way to do this is to parse "database show fam" response. Is there something smarter ? Something like ${DBKEYS(fam)} which would evaluate to "key1 key...
2001 Aug 28
1
Suggested change to documentation
Its not clear from the documentation whether one should do \keyword[key1, key2} or \keyword{key1} \keyword{key2} in .Rd files. I believe the latter is correct. (At least 'R CMD check' complains when given the first version.) It would help to make this explicit in the R extension writing docs. Tim -- Timothy H. Keitt Department of Ecology and Evolution State...
2012 Oct 10
2
reading in a (very simple) list from a file
...ailing list!), which then fail when I try to apply it to my simple task. Anyway, all I want to do is read in a series of key-value pairs from a file. I thought a list would be a good way to keep these, such that I could access them like: listname$key I was imagining a file like this: key1 value1 key2 value2 key3 value3 ... (the keys will always be character strings, the values might be other types, but they will always be single items) I won't bore you with all the things I've tried. I'm sure I'm overlooking something basic and simple, but I would greatly appreciate it if some...
2013 Oct 20
1
Call parking issue with Cisco SPA phone
I'm trying to implement call parking with asterisk and Cisco SPA504G phones: features.conf parkext => 700 parkpos => 701-702 context => parkedcalls I defined one of the unused keys to park the calls: Key2: fnc=sd;ext=700 at 10.0.1.103;vid=1;nme=Park I also defined two other keys to pickup/unpark the calls: Key3: fnc=blf+sd+cp;sub=701 at 10.0.1.103 Key4: fnc=blf+sd+cp;sub=702 at 10.0.1.103 Parking using these works smoothly. I answer the incoming call, press Key2 to park the call. Call is parked,...
2019 Nov 15
2
Re: [PATCH 2/2] options: Allow multiple --key parameters and default keys.
On Tuesday, 12 November 2019 19:35:12 CET Richard W.M. Jones wrote: > This allows multiple --key parameters on the command line to match a > single device. This could either be specified as: > > tool --key /dev/sda1:key:trykey1 --key /dev/sda1:key:trykey2 > > which would try "trykey1" and "trykey2" against /dev/sda1. This seems OK for me, so you can attempt multiple keys for a device. > And/or you can specify default keys which are tried against each > device (after more specific keys fail), eg: > > tool -...