search for: key1

Displaying 20 results from an estimated 110 matches for "key1".

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...
2011 May 02
2
INSERT OR UPDATE
...database table, or update where 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) ) # Co...
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
...nd would 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 a...
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...
2020 Aug 14
2
TDB database commands (TDB used by SAMBA)
...e TDB database to my portal, where I want to store basically 3 information: IP address , Name, TimeStamp - where IP would be the KEY and "NAME,TIMESTAMP" would be the VALUE. I am using the tdbtool to insert/store data successfully (like the example below) tdbtool myfile.tdb store "key1" "value1,value2,value3,value4" The problem is when I want to READ the information back. It brings hexadecimal code in a strange format. (see below) tdbtool myfile.tdb show "key1" key 4 bytes key1 data 27 bytes [000] 76 61 6C 75 65 31 2C 76 61 6C 75 65 32 2C 76 61 value...
2005 Feb 24
1
Place more than one key with xyplot
Dear R-users I have some trouble to generate more than one key with xyplot using the legend argument. I would like one key with rectangles: library(lattice) library(grid) key1 <- list(rectangles = list(col= c(rev(heat.colors(5))[1:5], rev(heat.colors(5))[4:1])), title="Percentiles", space="right", text = list(lab = rev(c(" 5-15", "15-25"...
2014 Feb 03
1
[PATCH] hivex: python: value_value no longer generates Unicode strings
...environ["srcdir"] if not srcdir: srcdir = "." @@ -32,27 +40,27 @@ assert root h.node_add_child (root, "B") -b = h.node_get_child (root, "B") -assert b +B = h.node_get_child (root, "B") +assert B values = [ { "key": "Key1", "t": 3, "value": "ABC" }, { "key": "Key2", "t": 3, "value": "DEF" } ] -h.node_set_values (b, values) +h.node_set_values (B, values) value1 = { "key": "Key3", "t": 3, "v...
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 ma...
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 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
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...
2020 Aug 17
1
TDB database commands (TDB used by SAMBA)
...; > IP address , Name, TimeStamp - where IP would be the KEY and > > "NAME,TIMESTAMP" would be the VALUE. > > > > I am using the tdbtool to insert/store data successfully (like the > > example > > below) > > > > tdbtool myfile.tdb store "key1" "value1,value2,value3,value4" > > > > The problem is when I want to READ the information back. It brings > > hexadecimal code in a strange format. (see below) > > > > tdbtool myfile.tdb show "key1" > > > > key 4 bytes > >...
2007 Jun 06
2
lookup in CSV recipe
...for 5mins. Even so I thought it might be useful. I thought about adding it to the wiki, but thought I should check here first. # lookup items from a CSV file # v0.1 - 2007/06/06 # Adrian Bridgett, Opsera Ltd. # file in the format of: # colname1, colname2, colname3,... (must be first line) # key1, value2, value3,... # key2, value4, value5 # # lookup_csv(filename,key1,colname3) will then return value3 # # TODO: # proper CSV parsing (e.g. quoting) # regexp on the value? # return a supplied default if row not found? # add Excel and Openoffice support module Puppet::Parser::Functions newfunc...
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 = d...
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...
2016 Dec 15
0
How to get the value for casting in a bitcast instruction more efficiently?
...itcast instruction? > > bitcast format :<result> = bitcast <ty> <*value*> to <ty2> > > For example, if i have > > MemAddr > ... > 0x3d61238 %key = alloca [16 x i8], align 16 > 0x3d612a8 %plain_text = alloca [64 x i8], align 16 > 0x3d61318 %key1 = bitcast [16 x i8]* %key to i8* > ... > > The way i am using is processing all opcodes in %key1, and go back to find %key along the def-use chain. But is there a better way for doing this? > > Thanks very much! > > Best > > > __________________________________________...
2011 Sep 01
1
Background fill and border for a legend in dotplot
...---------------------- col.pat<-c("violet","cyan","green","red","blue","black","yellow") sym.pat<-c(19,20,21) ##set up the plot key #---------------------------------------------------------------------------------------- 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))),...
2010 Nov 08
2
Fuzzy merge using timestamps
...which of each dataset should be paired. 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$...
2016 Dec 15
1
How to get the value for casting in a bitcast instruction more efficiently?
...but is there an efficient way to get the value directly from a bitcast instruction? <result> = bitcast <ty> <value> to <ty2> For example, if i have MemAddr ... 0x3d61238 %key = alloca [16 x i8], align 16 0x3d612a8 %plain_text = alloca [64 x i8], align 16 0x3d61318 %key1 = bitcast [16 x i8]* %key to i8* ... The way i am using is processing all opcodes in %key1, and go back to find %key along the def-use chain. But is there a better way for doing this? Thanks very much! Best Shen -------------- next part -------------- An HTML attachment was scrubbed... URL: &l...