search for: nd

Displaying 20 results from an estimated 1199 matches for "nd".

Did you mean: and
2018 Jun 08
6
Subsetting the "ROW"s of an object
Hi all, Is there a better to way to subset the ROWs (in the sense of NROW) of an vector, matrix, data frame or array than this? subset_ROW <- function(x, i) { nd <- length(dim(x)) if (nd <= 1L) { x[i] } else { dims <- rep(list(quote(expr = )), nd - 1L) do.call(`[`, c(list(quote(x), quote(i)), dims, list(drop = FALSE))) } } subset_ROW(1:10, 4:6) #> [1] 4 5 6 str(subset_ROW(array(1:10, c(10)), 2:4)) #> int [1:3(1d)] 2 3 4 s...
2018 Jun 08
2
Subsetting the "ROW"s of an object
..., Hadley Wickham <h.wickham at gmail.com> wrote: >> >> Hi all, >> >> Is there a better to way to subset the ROWs (in the sense of NROW) of >> an vector, matrix, data frame or array than this? > > > You can use TRUE to fill the subscripts for dimensions 2:nd > >> >> subset_ROW <- function(x, i) { >> nd <- length(dim(x)) >> if (nd <= 1L) { >> x[i] >> } else { >> dims <- rep(list(quote(expr = )), nd - 1L) >> do.call(`[`, c(list(quote(x), quote(i)), dims, list(drop = FALSE))) >&...
2005 Feb 07
4
network drives
Another nicety may be handling network drives. I''ve been using a ruby script which manipulate using the "net use" command to map network drives, disconnect network drives, query to see what drives are connected, etc..., but it''d be sweet if this type of functionality was included in win32 pack...
2009 Mar 07
3
Download and Import xls files in R
Dear List, I am trying to solve a problem: I have approximately 100 Excel spreadsheets each with approximately 4 sheet each that I would like to download and import in R for analysis. Unfortunately i realized (i also sent an email to the author or xlsReadWrite() ) that the read.xls() doesn't allow to import the file in R from internet. Here it is the the code: ciao<-read.xls("http://www.giustizia.it/statistiche/statistiche_dap/det/seriest...
2013 Jul 30
1
Puppet3 key exchange on RHEL6
I''m attempting to run Puppet 3.2.3 on RHEL6 and am running into key problems. The keys seem to be exchanged, or at least the puppet master receives the key from the client: lib_puppet2.library.nd.edu|root no_ora /var/lib/puppet 1029$ puppet cert list --all + "puptest1.library.nd.edu" (SHA256) D4:3C:F5:4B:14:66:3C:97:55:3E:A1:F9:D...
2007 Aug 22
1
"subscript out of bounds" Error in predict.naivebayes
I'm trying to fit a naive Bayes model and predict on a new data set using the functions naivebayes and predict (package = e1071). R version 2.5.1 on a Linux machine My data set looks like this. "class" is the response and k1 - k3 are the independent variables. All of them are factors. The response has 52 levels and k1 - k3 have...
2015 May 02
2
LDAPS Configuration
Hi, I'm trying to convert my LDAP server into a LDAPS server to secure the users logins, but I don't know what's the procedure to do it. Someone knows any guide to do it? For now: - I've created a CA cert on the server - I've created the cert and key for the domain pdc - I've signed that cert with CA cert. - I've followed the post in samba wiki about LDAPS ( https://wiki.samba.org/index.php/Setup_LDAPS_on_a_DC). Now my quesiton is if i've to do anyting on Windows Machines to enable the LDAPS, because after enable the c...
1999 Sep 15
0
FreeBSD Security Advisory: FreeBSD-SA-99:04.core
-----BEGIN PGP SIGNED MESSAGE----- ============================================================================= FreeBSD-SA-99:04 Security Advisory FreeBSD, Inc. Topic: Coredumps and symbolic links Category: core Module: kernel Announced: 1999-09-15 Affects: FreeBSD 3.2 (and earlier) FreeBSD-current before the correction date. FreeBSD 3.2-stable before the correction date. FreeBSD 2.2.8-stable before the correction date. Corrected: FreeBSD-...
2007 Jun 24
3
Nokia N95 + Dial Plan
Hello All, Recently I added some Nokia N95 customers and it worked pretty good. Now the customers are complaining about the dialing rules... They are used to dialing +12486543210 and +4479XXXXXX for long distance calls. Is there anyway to create a "+" sign dial plan which will allow them to dial a number with "+" sign. Cheers, Nit...
2000 Aug 30
3
family question
Dear friends. Please see the program below and answer if it does simulate a population of 1.000.000 families, each with at max 20000 children (typical in Denmark, you know), constructed such that each family stops having children when more boys than girls are present ? Equal numbers of boys and girls are g...
2012 Apr 16
1
Crear nuevos métodos para funciones genéricas existentes
Perdón por anticipado ante una pregunta sólo achacable a mi ignorancia en programación. Estoy creando un nuevo paquete con una estructura "decente", en vez de las chapuzas que hacía hasta ahora. Defino una función que ajusta unos datos a una distribución que podemos llamar ND. La sintaxis de esta función sería, de forma resumida: ND.fit<-function(x, start, ...){ ... structure(li...
2018 Jun 08
3
Subsetting the "ROW"s of an object
> On Jun 8, 2018, at 1:49 PM, Hadley Wickham <h.wickham at gmail.com> wrote: > > Hmmm, yes, there must be some special case in the C code to avoid > recycling a length-1 logical vector: Here is a version that (I think) handles Herve's issue of arrays having one or more 0 dimensions. subset_ROW <- function(x,i) { dims <- dim(x) index_list <- which(dims[-1] != 0L) + 3 mc <- quote(x[i]) nd <- max(1L, length(dims)) mc[ index_list ] <- list(TRUE) mc[[ nd + 3L ]] <- FALS...
2014 Jun 16
1
model.frame and parent environment
Someone has reported a problem with predict.coxph that I can't seem to solve. The underlying issue is with model.frame.coxph; the same issue is also found in lm so I'll use that for the example. -------------------------- > test <- data.frame(y = 1:10 + runif(10), x=1:10) > myfun <- function(formula, nd) { fit <- lm(formula, data=nd, model=FALSE) m...
2017 Nov 10
5
[RFC] Enable Partial Inliner by default
...y From: Graham Yiu <gyiu at ca.ibm.com> Date: Friday, 10 November 2017 at 16:09 To: Evgeny Astigeevich <Evgeny.Astigeevich at arm.com> Cc: "junbuml at codeaurora.org" <junbuml at codeaurora.org>, "llvm-dev at lists.llvm.org" <llvm-dev at lists.llvm.org>, nd <nd at arm.com>, Tobias Grosser <tobias.grosser at inf.ethz.ch> Subject: Re: [llvm-dev] [RFC] Enable Partial Inliner by default Hi Evgeny, I just realized that if these are compile-time errors I can help investigate on my end. Do you have something I can use to reproduce? Cheers, G...
2015 Jun 16
0
LDAPS Configuration
...'m trying to convert my LDAP server into a LDAPS server to secure the > users logins, but I don't know what's the procedure to do it. Someone knows > any guide to do it? > > For now: > > - I've created a CA cert on the server > - I've created the cert and key for the domain pdc > - I've signed that cert with CA cert. > - I've followed the post in samba wiki about LDAPS ( > https://wiki.samba.org/index.php/Setup_LDAPS_on_a_DC). > > Now my quesiton is if i've to do anyting on Windows Machines to enable the > LDAP...
2018 Jun 08
3
Subsetting the "ROW"s of an object
...at fredhutch.org> wrote: > > Also the TRUEs cause problems if some dimensions are 0: > > > matrix(raw(0), nrow=5, ncol=0)[1:3 , TRUE] > Error in matrix(raw(0), nrow = 5, ncol = 0)[1:3, TRUE] : > (subscript) logical subscript too long OK. But this is easy enough to handle. > > H. > > On 06/08/2018 10:29 AM, Hadley Wickham wrote: >> I suspect this will have suboptimal performance since the TRUEs will >> get recycled. (Maybe there is, or could be, ALTREP, support for >> recycling) >> Hadley AFAICS, it is not an issue. Taking...
2002 Jul 25
0
non-interactive ssh connections (was Re: RSYNC ISSUE)
...d guess that -P imlplies -p, but that's an issue for your ssh maintainer. Also: you don't ordinarily distribute the private key. You need the PUBLIC key in $HOME/.ssh/authorized_keys on any system you want to access with the private key. Maybe i'm seing your application backward, and you are creating the key on the system being accessed, and putting the private key on all the systems accessing it. Anyway, the ssh-keygen -p changes only the private key. You could actually generate a key pair, put the public key on the system you want to access, put the private key on all...
2018 Feb 16
1
hurdle model - count and response predictions
Hello, I'm using pscl to run a hurdle model. Everything works great until I get to the point of making predictions. All of my "count" predictions are lower than my actual data, and lower than the "response" predictions, similar to the issue described here ( https://stat.ethz.ch/pipermail/r-help/2012-August/320426.html) and here ( https://stackoverflow.com/questions/48794622/hurdle-model-prediction-count-vs-response ). Since the issue is the same (and not resolved),...
2020 Sep 23
6
[Bug 1468] New: [netdev] dropping ether type vlan frames drops ICMPv6 type 134
...typeof ether type flags constant counter elements = { vlan } } chain input { type filter hook ingress device "eth2" priority -500; policy accept; ether type @et log prefix "nd et DROP" flags all drop } } The ISP is multi-casting ICMPv6 type 134 on the subscriber line, however filtering vlan frames is dropping ICMPv6 type 134, the counter increases and the log exhibits: nd et DROPIN=eth2 OUT= MACSRC=78:ba:f9:73:f5:74 MACDST=33:33:00:00:00:01 MACPROTO=86dd S...
2008 Sep 15
0
Aggrigate time in financial data
Hi all, I am learning since couple of weeks the woderfull language for my sientific work (I allready tryed out apps like Mathematica etc.) . By now im facing with following problem. I use several packages like tseries and rmetrics. My main focus is working on minute financial data like sp500 and nasdaq. I can read data and mak some correct plots. But now i like to aggrigate the data by time. I tried to use time and frequency to make plots about values and time (e. g. plot the date over one day). Here a example of my...