search for: d1

Displaying 20 results from an estimated 1802 matches for "d1".

2009 Feb 22
2
how to recover a list structure
...[10] "d3.d3(12)" I wonder if there exists a high level command to set to zero respectively the coefficients in list "coef": - Level=6, Oscillation-Number=0 - Level=5, Oscillation-Number=0,1,2 - Level=4, Oscillation-Number=1,2,3,5.6 - Level=3, Oscillation-Number=12 > coef $d1 d1(0) d1(1) d1(2) d1(3) d1(4) d1(5) d1(6) d1(7) 1.075111e-02 -4.777441e-03 -2.775026e-03 2.011722e-03 -2.376611e-02 -1.574422e-03 -2.810372e-02 8.542393e-03 d1(8) d1(9) d1(10) d1(11) d1(12)...
2005 May 08
2
Samba / AD / Winbind issues
...ng Samba V3.0.6-2.3E following the instructions in the HOW-TO- By example. Here is what I have at the moment .. I had no problems adding the RH server to the Domain and I have Winbind set up in the nsswitch.conf file for passwd, group and hosts I can do a "wbinfo -u" and it returns D1+Administrator D1+Guest D1+SUPPORT_388945a0 D1+IUSR_MEDIA-1 D1+IWAM_MEDIA-1 D1+WMUS_MEDIA-1 D1+MEDIA-1$ D1+krbtgt D1+tuser2 D1+kmb D1+HOST/gs005 D1+HOST/gs015 wbinfo -g returns BUILTIN+System Operators BUILTIN+Replicators BUILTIN+Guests BUILTIN+Power Users BUILTIN+Print Operators BUILTIN+Administr...
2015 Sep 02
3
sieve filtering utf 8 strings
...ply at bgoperator.com") { fileinto "??????????"; } I don't have errors compiling the script or executing it via LMTP, but it doesn't work. Normally user receives messages from robot with subject encoded as quoted-printable Subject: =?UTF-8?Q?LDS_(robot):_=D0=9B=D0=B8=D1=81=D1=82?= =?UTF-8?Q?_=D0=B1=D1=80=D0=BE=D0=BD=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD?= =?UTF-8?Q?=D0=B8=D1=8F__=D0=BE=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= When I send a test message via Thunderbird with required words - sieve works fine and subject is encoded in base64 Subject: =?UTF-8...
2008 Jun 03
3
How to solve a non-linear system of equations using R
...lp/suggestions/comments would be greatly appreciated. Thanks in advance, Jorge # ------------------------------ # Constants # ------------------------------ l=1 m=0.4795 s=0.4795 # ------------------------------ # Functions to estimate f_i-k_i # ------------------------------ f1=function(d){ d1=d[1] d2=d[2] d3=d[3] d4=d[4] res=2*d1+2*sqrt(2)*d1*d2+2*sqrt(3)*d2*d3+4*d3*d4-l*m*(1+d1^2+d2^2+d3^2+d4^2) res } f2=function(d){ d1=d[1] d2=d[2] d3=d[3] d4=d[4] res=2*sqrt(2)*d2+2*d1^2+2*sqrt(6)*d1*d3+4*d2^2+4*sqrt(3)*d2*d4+6*d3^2+8*d4^2-l*(m^2+m^3*s^(-1))*(1+d1^2+d2^2+d3^2+d4^2) res } f3=function...
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 tried to substitute...
2012 Feb 05
2
Would difference in size (and content) of a file on replicated bricks be healed?
...ndle? I would be very happy to receive an opinion on this. All the details are put at the bottom Regards, Ove Details and logs ---------------- My environment * single machine with OpenSuse 12.1 * gluster 3.3beta2 * xfs is used for the brick-fs (each one to a separate disk) Volume Name: d1 Type: Replicate Status: Started Number of Bricks: 4 Transport-type: tcp Bricks: Brick1: glusterdev:/b1 Brick2: glusterdev:/b2 Brick3: glusterdev:/b3 Brick4: glusterdev:/b4 Options Reconfigured: diagnostics.brick-log-level: DEBUG diagnostics.client-log-level: DEBUG * My glustervolume is mountet as...
2010 Oct 19
5
For-loop dummy variables?
Hi everyone, I've got a dataset with 12,000 observations. One of the variables (cleary$D1) is for an individual's country, coded 1 - 15. I'd like to create a dummy variable for the Baltic states which are coded 4,6, and 7. In other words, as a dummy variable Baltic states would be coded 1, else 0. I've attempted the following for loop: dummy <- matrix(NA, nrow=nrow(clea...
2015 Sep 03
0
sieve filtering utf 8 strings
...fileinto "??????????"; > } > > I don't have errors compiling the script or executing it via LMTP, but > it doesn't work. > Normally user receives messages from robot with subject encoded as > quoted-printable > > Subject: =?UTF-8?Q?LDS_(robot):_=D0=9B=D0=B8=D1=81=D1=82?= > =?UTF-8?Q?_=D0=B1=D1=80=D0=BE=D0=BD=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD?= > > =?UTF-8?Q?=D0=B8=D1=8F__=D0=BE=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= > > > > When I send a test message via Thunderbird with required words - sieve > works fine and subject is...
2006 Mar 15
0
Samba + Cups -> PPD Options problem - 1 attachment
...9#H@(C$V,#`P,#`P(@T**D9#86-H95-I>F4@5DU/<'1I;VX@.B`Q-C`P M,#`P,`T**DQA;F=U86=E3&5V96PZ("(S(@T**E1H<F]U9VAP=70Z("(U,"(- M"BI45%)A<W1E<FEZ97(Z(%1Y<&4T,@T**C]45%)A<W1E<FEZ97(Z("(H5'EP M930R*2`](@T**D-O;&]R1&5V:6-E.B`@5')U90T**D1E9F%U;'1#;VQO<E-P M86-E.B`@0TU92PT**E9A<FEA8FQE4&%P97)3:7IE.B!4<G5E#0HJ1FEL95-Y M<W1E;3H@5')U90T**E!R;W1O8V]L<SH@0D-0#0HJ1&5F875L=%)E<V]L=71I M;VXZ(#8P,&1P:0T*#0HJ)3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3U0<FEN="!3971T:6YG(&]P=...
2005 Apr 13
2
extracting one element of correlation matrices from a list poroduced by the 'by' statement
I am producing 2X2 correlation matrices by a class variable. I need to extract a vector of correlation coefficients only. I am doing that in a loop (see below) but I am sure there would be a simpler way. Please help! > by(d1[,c(2,3)],d1[,1],cor) d1[, 1]: 1 c e c 1.0000000 0.1972309 e 0.1972309 1.0000000 ------------------------------------------------------------------------ --------- d1[, 1]: 2 c e c 1.0000000 0.2469402 e 0.2469402 1.0000000 ------------------------------...
2008 May 10
2
Hashes as S4 Classes, or: How to separate environments
For learning purposes mainly I attempted to implement hashes/maps/dictionaries (Python lingua) as S4 classes, see the coding below. I came across some rough S4 edges, but in the end it worked (for one dictionary). When testing ones sees that the dictionaries D1 and D2 share their environments D1 at hash and D2 at hash, though I thought a new and empty environment would be generated each time 'new("Dict")' is called. QUESTION: How can I separate the environments D1 at hash and D2 at hash ? Reading the articles mentioned in "Tipps a...
2012 Nov 22
1
Data Extraction - benchmark()
Hi Berend, I see you are one of the contributors to the rbecnhmark package. I am sorry that I am bothering you again. I have tried to run your code (slightly tweaked) involving the benchmark function, and I am getting the following error message. What am I doing wrong? Error in benchmark(d1 <- s1(df), d2 <- s2(df), d3 <- s3(df), d4 <- s4(df), : could not find function "s1" > > identical (d1,d2), identical (d1,d3), identical (d1,d4), identical (d1,d5), identical (d1,d6) Error: unexpected ',' in "identical (d1,d2)," > sessionInfo (...
2003 Jul 30
3
nested for() loops for returning a nearest point
I'm trying to do the following: For each ordered pair of a data frame (D1) containing longitudes and latitudes and unique point IDs, calculate the distance to every point in another data frame (D2) also containing longitudes, latitudes and point IDs, and return to a new variable in D1 the point ID of the nearest element of D2. Dramatis personae (mostly self-explanato...
2011 Sep 12
2
1 not equal to 1, and rep command
Hi I need to use rep() to get a vector out, but I have spotted something very strange. See the reproducible example below. N <- 79 seg <- 5 segN <- N / seg # = 15.8 d1 <- seg - ( segN - floor(segN) ) * seg d1 # = 1 rep(2, d1) # = numeric(0), strange - why doesn't it print one "2"? rep(2, 1) # 2, ok rep(2, d1 / 1,1) # 2, this does work rep(2, d1 + 2) # "2 2" - also works but... d1 + 2...
2011 Apr 16
1
Matching Problem: Want to match to data.frame with inexact matching identifier (one identifier has to be in the range of the other).
...Q = Jan, Feb, Mar is not necessarily correct and also, a fiscal quarter is not necessarily 3 month long). For every month and company, I want to get the correct value of that quarter. Consequently, several months have the same value for one quarter. As an example see the code below: #Monthly data d1 <- data.frame(cbind(c(rep("A",5),rep("B",5)),c(1:5,1:5)),stringsAsFactors=FALSE) names(d1) <- c("ID", "Month") d1[,"Month"] <- as.integer(d1[,"Month"]) #Quarterly data, i.e. the value of every quarter has to be matched to several...
2010 Apr 22
2
Compare two data frames
I wonder if there is a more efficient way to do this task. Suppose I have two data frames, such as d1 <- data.frame(x = c(1,2,3), y = c(4,5,6), z = c(7,8,9)) d2 <- d1[, c('y', 'x')] The first dataframe d1 has more variables than d2 and the variable columns are in a different order. So, what I want to do is compare the two frames on the variables that are common between the...
2004 Jun 23
6
R 1.9.1 compilation error (on AIX 5.1)
...c.a -lg > > /lib/crt0.o ../extra/zlib/libz.a ../extra/bzip2/libbz2.a > > ../extra/pcre/libpcre.a -ldl -lm -lc > > /usr/local/bin/ld: target dynamic not found > > collect2: ld returned 1 exit status > > make[3]: *** [R.bin] Error 1 > > make[3]: Leaving directory `/d1/ftcheung_GoIn/tmp/R-1.9.1/src/main' > > make[2]: *** [R] Error 2 > > make[2]: Leaving directory `/d1/ftcheung_GoIn/tmp/R-1.9.1/src/main' > > make[1]: *** [R] Error 1 > > make[1]: Leaving directory `/d1/ftcheung_GoIn/tmp/R-1.9.1/src' > > make: *** [R] Error...
2009 Oct 10
2
Matching Dates Closest without going over
Hi, I have 2 date vectors d1 and d2. d1 <- structure(c(14526, 14495, 14464, 14433, 14402, 14371, 14340, 14309, 14278, 14247, 14216, 14185), class = "Date") d2 <- structure(c(14526, 14509, 14488, 14466, 14453, 14441, 14396, 14388, 14343, 14333, 14310, 14281), class = "Date") I would like to create a...
2008 Jan 24
1
Filling data frame data into a matrix - please help
Dear group, I have a data.frame (d1) with various elements and a matrix (m1) created with NA (or 1s). I want to read each row,column in d1 and fill its numeric value in m1. Could some one help me because I have 130K rows and 500 column data.frame object and I was told that a for loop will take a long time. Thank you. > r1 <...
2015 Oct 27
3
pregunta
Estimados Cuando existia epicalc, había una manera muy fácil de determinar la media de una variable (en esta caso Gain) por grupos, en este caso (Diet). ?Como se puede hacer ahora? Diet Gain 1 d1 270 2 d1 300 3 d1 280 4 d1 280 5 d1 270 6 d2 290 7 d2 250 8 d2 280 9 d2 290 10 d2 280 11 d3 290 12 d3 340 13 d3 330 14 d3 300 15 d3 300 Saludos José [[alternative HTML version deleted]]