search for: hh

Displaying 20 results from an estimated 767 matches for "hh".

Did you mean: heh
2011 Apr 06
5
Need a more efficient way to implement this type of logic in R
I have cobbled together the following logic. It works but is very slow. I'm sure that there must be a better r-specific way to implement this kind of thing, but have been unable to find/understand one. Any help would be appreciated. hh.sub <- households[c("HOUSEID","HHFAMINC")] for (indx in 1:length(hh.sub$HOUSEID)) { if ((hh.sub$HHFAMINC[indx] == '01') | (hh.sub$HHFAMINC[indx] == '02') | (hh.sub$HHFAMINC[indx] == '03') | (hh.sub$HHFAMINC[indx] == '04') | (hh.sub$HHFAMIN...
2009 Jul 16
6
Best way to replace :SS with :00
Not sure if there is an R way to do this or a regular express way, but here is what I am trying to do. I've got lots of data where the format is HH:MM:SS, but I need to format it like HH:MM:00, i.e. round the second down to zero. What is the best way to do this? Thanks again. Jason
2012 Apr 03
4
Recodificar datos faltantes
Hola a todos La cuestión es una tontería, me gustaría recodificar los NA (valores faltantes) por el valor 0 He probado varias cosas del estilo: > hh<-c(2,3,4,NA,4) > replace(hh,which(hh==NA),0)->hh > hh [1] 2 3 4 NA 4 Conocéis alguna forma. Saludos
2020 Apr 30
2
Dovecot IMAPS : Thunderbird SSL cert issue / Evolution OK
...he Dovecot cert and also the thunderbird accounts from scratch. The OpenSSL raw client works fine as well. Would someone also confirm the openssl commands to create a selfsigned cert for dovecot imaps. They cert created does work with evolution; just not thunderbird. Thoughts? Apr 8 18:10:18 hh dovecot: imap-login: Debug: SSL error: SSL_accept() failed: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate: SSL alert number 42 Apr 8 18:10:18 hh dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=000, lip=0000 TLS handshaking: SSL_accept(...
2009 Aug 31
4
Offtopic, HT vs. HH in coin flips
...random coin flips ht <- replicate(2500, paste(sample(c("H", "T"), 100, replace = TRUE), collapse = "")) ## find first occurrence of HT mean(regexpr("HT", ht))+1 #mean of HT position, 4 ## find first occurrence of HH mean(regexpr("HH", ht))+1 #mean of HH position, 6 FYI, this is not homework, I have not been in school in years. I saw a similar problem posed in a blog post on the Revolutions R blog, and although I believe the answer, I'm having a hard time figuring out why this should be? Th...
2011 Apr 17
1
How to retrieve a vector of a data.frame's variable attributes?
...00 variables and I have assigned a "label", "units" and "category" attribute to each variable. I would like to reorder the variables in the data.frame by the "category" attributes but can't find a way. For example, the first variable is: > attributes(hh$aez) $levels [1] "coastal" "forest" "savannah" $class [1] "labelled" "factor" $label [1] ecological zone 93 Levels: 10 quantiles of welfare ... year of the interview $units [1] class 24 Levels: '05 PPP USD / year cedis / year cedis /yea...
2020 Apr 30
5
Dovecot IMAPS : Thunderbird SSL cert issue / Evolution OK
...he OpenSSL raw client works fine as well. >> >> Would someone also confirm the openssl commands to create a selfsigned >> cert for dovecot imaps. They cert created does work with evolution; >> just not thunderbird. >> >> Thoughts? >> >> Apr 8 18:10:18 hh dovecot: imap-login: Debug: SSL error: SSL_accept() >> failed: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad >> certificate: SSL alert number 42 >> Apr 8 18:10:18 hh dovecot: imap-login: Disconnected (no auth attempts in >> 0 secs): user=<>, rip=000, lip=...
2008 May 27
2
HH.EXE location
This is related to my post about .chm where vitamin set me on the right path. http://forum.winehq.org/viewtopic.php?t=1026 Since then I reinstalled Ubuntu 8.04 and wine. While perusing the virgin registry I noticed the chm.file ...command key was: C:\windows\system32\hh.exe %1 There is no hh.exe located in that directory. The hh.exe file is located in the C:\windows\ directory. If wine uses the registry how does it find hh.exe? I have a windows program whose help file is in chm format. It appears this program calls hh.exe directly rather than use a ShellExecute t...
2009 Mar 17
2
Converting time from HH:MM:SS to only HH:MM
Hi all, I need to compare between times and put all similar times in specific 1 minute bins. Unfortunately the original data include seconds as well. My data is in HH:MM:SS format but I need it rounded to only HH:MM and trying in Excel to display "unique" records only does not work since the seconds are not unique. Is there an easy way using perhaps CHRON to change all from the HH:MM:SS data to a new HH:MM only data set and save as a TXT or CSV fil...
2010 May 26
3
error "variable names are limited to 256 bytes" when sourcing code
I've written a function that takes some input data output from a simulation model and creates some graphs. It's not very complicated code, and it works perfectly fine if I just run the code as is. But I have converted it into a function so we call it externally, and when I try to source the code to test the function, I get the error message "variable names are limited to 256
2020 Apr 30
4
Dovecot IMAPS : Thunderbird SSL cert issue / Evolution OK
...;> Would someone also confirm the openssl commands to create a selfsigned >> >> cert for dovecot imaps. They cert created does work with evolution; >> >> just not thunderbird. >> >> >> >> Thoughts? >> >> >> >> Apr 8 18:10:18 hh dovecot: imap-login: Debug: SSL error: SSL_accept() >> >> failed: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad >> >> certificate: SSL alert number 42 >> >> Apr 8 18:10:18 hh dovecot: imap-login: Disconnected (no auth >> attempts in >>...
2006 Sep 01
2
Compiling a package
Hello, I am in Win-XP R:2.3.0 latest rtools and Perl - of today I got Rcmdr.HH source code and tried to compile it myself copy all directory to R/R-2.3.0/src/library/Rcmdr.HH from R/R-2.3.0/src/library I typed: ..\..\bin\R CMD build --force --binary --auto-zip Rcmdr.HH * checking for file 'Rcmdr.HH/DESCRIPTION' ... OK * preparing 'Rcmdr.HH': * checking DESCRIP...
2008 Sep 12
1
Error in solve.default(Hessian) : system is computationally singular
...s(x) r<<-0.05/365 n<<-length(x) Mean = mean(x); Var = var(x); S = 1e-6 param = c(alpha0 = Var, alpha = 0.1, beta = 0.8) lowerB = c(alpha0 = S^2, alpha = S, beta = S) upperB = c(alpha0 = 100*Var, alpha = 1-S, beta = 1-S) llh<-function(p){ alpha0<-p[1] alpha<-p[2] beta<-p[3] hh<-Var for (i in 2:n){ hh[i]<-alpha0+alpha*(x[i-1]-r+0.5*hh[i-1])^2+beta*hh[i-1] } hh<-ts(hh) h<-sqrt(abs(hh)) z<-(x-r+0.5*hh)/h -(-(sum(0.5*(log(hh[2:n])+(z[2:n])^2)))) } fit<-nlminb(param, llh, lower=lowerB, upper=upperB) Hessian<-hessian(llh,fit$par) se.coef = sqrt(diag(solve...
2012 Mar 06
1
How to eliminate for next loops in this script
...ow that there must be a better way to do so, but could use some assistance pointing the way. Here is my working, but inefficient script: library(Hmisc) rm(list=ls()) load('NHTS.Rdata') day.wt <- day[c("HOUSEID","WTTRDFIN", "TRIPPURP","TRVLCMIN")] hh.wt <- hh[c("HOUSEID","WTHHFIN","HHSIZE","HHVEHCNT","HOMETYPE")] hh.wt$HHBIN <- with(hh.wt,{ cut(HHSIZE, breaks=c(0,1,2,3,4,max(HHSIZE)),labels=c("1","2","3","4","5+"),ordered_result=TRUE)}) hh....
2006 May 17
2
checking package dependencies
Dear all, I seem to be unable to check a source package since I upgraded R to 2.3.0 (Ubuntu Linux 5.1). I get this: * checking package dependencies ... ERROR > tools:::.check_package_depends("/home/adi/Work/QCAGUI") I have even tried with R-patched, same result. My Renviron does specify the path to the installed packages (and all depending packages are installed):
2020 Apr 30
0
Dovecot IMAPS : Thunderbird SSL cert issue / Evolution OK
...ommands to create a selfsigned</div><div>cert for dovecot imaps. They cert created does work with evolution;</div><div>just not thunderbird.</div><div><br></div><div>Thoughts?</div><div><br></div><div>Apr 8 18:10:18 hh dovecot: imap-login: Debug: SSL error: SSL_accept()</div><div>failed: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad</div><div>certificate: SSL alert number 42</div><div>Apr 8 18:10:18 hh dovecot: imap-login: Disconnected (no auth attempts in</div...
2010 Jan 29
1
use zoo package with multiple column data sets
Readers, I am trying to use the zoo package with an array of data: file1: hh:mm:ss 1 hh:mm:ss 2 hh:mm:ss 3 hh:mm:ss 4 file2: hh:mm:ss 11 55 hh:mm:ss 22 66 hh:mm:ss 33 77 hh:mm:ss 44 88 I wanted to merge these data set so I tried the following commands: library(chron) library(zoo) z1<-read.zoo("path/to/file1.csv",header=TRUE,sep=",",FUN=times) z2&lt...
2020 Apr 30
0
Dovecot IMAPS : Thunderbird SSL cert issue / Evolution OK
...t;/div><div>>> cert for dovecot imaps. They cert created does work with evolution;</div><div>>> just not thunderbird.</div><div>>></div><div>>> Thoughts?</div><div>>></div><div>>> Apr 8 18:10:18 hh dovecot: imap-login: Debug: SSL error: SSL_accept()</div><div>>> failed: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad</div><div>>> certificate: SSL alert number 42</div><div>>> Apr 8 18:10:18 hh dovecot: imap-login: Disconnected (...
2006 Aug 22
1
HH and Rcmdr.HH packages available
...graphs. Many of the graphical formats are novel and appear here for the first time in print. All chapters have exercises. Software that adds additional functions to Rcmdr 1.7 is now available from my website and has been submitted to CRAN. http://astro.ocis.temple.edu/~rmh/Rcmdr.HH/ Description: Our introductory course spends time on several topics that are not yet in the R Commander. Therefore we wrote the menu items and make them available.
2008 Aug 18
1
ARMA(0,2) & GARCH(1,1) - code & hessian
...B = c(a = -10*abs(Mean), b1 = S-1, b2 = S-1, alpha0 = S^2, alpha = S, beta = S) upperB = c(a = 10*abs(Mean), b1 = 1-S, b2 = 1-S, alpha0 = 100*Var, alpha = 1-S, beta = 1-S) llh<-function(p){ a<-p[1] b1<-p[2] b2<-p[3] alpha0<-p[4] alpha<-p[5] beta<-p[6] res<-array(length(x)) hh<-array(length(x)) res[1]<-x[1]-a res[2]<-x[2]-a-b1*res[1] for (i in 3:n){ res[i]<-x[i]-a-b1*res[i-1]-b2*res[i-2] } res<-ts(res) hh[1]<-alpha0 for (i in 2:n){ hh[i]<-alpha0+alpha*res[i-1]^2+beta*(hh[i-1]-alpha0) } hh<-ts(hh) h<-sqrt(abs(hh)) -sum(log(dnorm(x=res/h)/h)) }...