search for: nin

Displaying 20 results from an estimated 76 matches for "nin".

Did you mean: nine
2010 Aug 05
4
A %nin% operator?
...rong, so I change it to > qf.a <- subset(qf, pubid %in% c(104, 106, 107, 108)) > qf.b <- subset(qf, !(pubid %in% c(104, 106, 107, 108))) and pretty soon my code looks like fingernail clippings (or Lisp) and I'm thinking about precedence rather than my original task. So I write a %nin% operator which I define as: > `%nin%` <- function (x, table) match(x, table, nomatch = 0L) == 0L and then I'm happy again. I wonder, would something like this find a home in core R? Or is that too much syntactic sugar for your taste? -- Ken Williams Sr. Research Scientist Thomson R...
2005 Apr 02
2
Solaris10/amd64 + SunSutio Compile (PR#7767)
...rand must have real floating type: op "isfinite" cc: acomp failed for rbinom.c Following patch may solve this problem. *** R-2.0.1.orig/src/nmath/rbinom.c Mon Nov 15 21:33:01 2004 --- R-2.0.1/src/nmath/rbinom.c Sun Apr 3 00:19:52 2005 *************** *** 57,63 **** n = floor(nin + 0.5); if (n != nin) ML_ERR_return_NAN; ! if (!R_FINITE(n) || !R_FINITE(pp) || /* n=0, p=0, p=1 are not errors <TSL>*/ n < 0 || pp < 0. || pp > 1.) ML_ERR_return_NAN; --- 57,63 ---- n = floor(nin + 0.5); if (n != nin) ML_ERR_return_NAN; !...
2013 Apr 23
2
Problemas con NA y el calculo de un promedio ponderado
...iguiente problema: 1. tengo un data.frame con varias columnas, algunas numericas, otras son variables categoricas 2. necesito hacer un calculo simple sobre este data.frame (un promedio ponderado de los valores de la columna 7), pero solo para las filas que cumplan ciertos criterios 3. en ocasiones ninguna de las filas cumple todos los criterios exigidos, lo que genera un NA 4. cuando se usa ese NA en el calculo del promedio ponderado genera un NaN obviamente la pregunta es, como puedo evitar esto ? pues dada la naturaleza del calculo (un promedio ponderado) si existe un NA se puede simplemente...
2008 Mar 05
4
NIN Ghosts music (free download) safe for MOH?
Is the new NIN Ghosts music (free download) safe for MOH? Justin ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -------------...
2004 Sep 16
4
FW: How do I insert a newline in my title in a plot?
...ped it. -----Original Message----- From: Rashid Nassar [mailto:rnassar at duke.edu] Sent: ÐÝì?ôç, 16 Óå?ôåìâñßïõ 2004 15:44 To: Christos Rodopoulos Subject: Re: [R] How do I insert a newline in my title in a plot? Have you not tried what you have already suggested: title("this is a title\nIn 2 lines") ? On Thu, 16 Sep 2004, Christos Rodopoulos wrote: > Hello, I want to help me with a simple I think question: How do I insert a > newline into the title of a plot I have made? > > Is it only done with hershey fonts? vfont = ??? and so on? I do not > understand Hers...
2016 Aug 07
1
Quote symbol names under EXPORTS in tmp.def on Windows
.../share/make/winshlib.mk 6a7,8 > ADDQU = 's/[^ ][^ ]*/"&"/g' > 17c19 < $(NM) $^ | $(SED) -n $(SYMPAT) $(NM_FILTER) >> tmp.def; \ --- > $(NM) $^ | $(SED) -n $(SYMPAT) $(NM_FILTER) | $(SED) $(ADDQU) >> tmp.def; \ code <- ' void BASE(int *nin, double *x) { int n = nin[0]; for (int i=0; i<n; i++) x[i] = x[i] * x[i]; } void rd(int *nin, double *x) { int n = nin[0]; for (int i=0; i<n; i++) x[i] = x[i] * x[i]; } double EXPORTS = 2.1; int LIBRARY = 3; ' writeLines(code, "src1.c") system("R CMD SHLIB s...
2010 Aug 01
0
ScrapeR Unanticipated XML objects
...uire(scrapeR) htmlfile<-scrape(url="http://www.google.com/finance?q=NASDAQ:MSFT&fstype=ii",headers=TRUE,parse=TRUE) tables<-xpathSApply(htmlfile[[1]],"//table") qtrinc<-tables[[1]] xpathSApply(qtrinc,"//thead",xmlValue) I receive the result: [1] "\nIn Millions of USD (except for per share items)\n\n\n3 months ending 2010-06-30\n\n\n3 months ending 2010-03-31\n\n\n3 months ending 2009-12-31\n\n\n3 months ending 2009-09-30\n\n\n3 months ending 2009-06-30\n\n" [2] "\nIn Millions of USD (except for per share items)\n\n\n12 months ending 20...
2013 Sep 06
2
Problema con filtros de datos en un data.frame
...a: estoy trabajando con un data.frame que tiene 892 filas y 9 columnas, el cual adjunto para que puedan probar. Cuando consulto por las filas que cumplen una cierta condicion, por ejemplo, ... graph[graph$NCar==c("160s"),] obtengo el siguiente conjunto de datos: sol con dia NCar NIns isom area rep tipo 1 con 0.001 1 160s 0 s 0.6083543 1 8 con 0.001 2 160s 0 s 0.6388484 1 <NA> 10 con 0.001 3 160s 0 s 0.6873404 1 <NA> 13 con 0.001 4 160s 0 s 0.6476428 1 <NA> 20 con 0.001 1 160s 0 s 0.6094205 2 <NA...
2013 Sep 06
3
Problema con filtros de datos en un data.frame
...o para que >> puedan probar. >> >> Cuando consulto por las filas que cumplen una cierta condicion, por >> ejemplo, ... >> >> graph[graph$NCar==c("160s"),] >> >> obtengo el siguiente conjunto de datos: >> >> sol con dia NCar NIns isom area rep tipo >> 1 con 0.001 1 160s 0 s 0.6083543 1 >> 8 con 0.001 2 160s 0 s 0.6388484 1 <NA> >> 10 con 0.001 3 160s 0 s 0.6873404 1 <NA> >> 13 con 0.001 4 160s 0 s 0.6476428 1 <NA> >> 20 con...
2004 Oct 17
1
FW: Plotcorr: colour the ellipses to emphasize the differences
-----Original Message----- From: Duncan Murdoch [mailto:murdoch at stats.uwo.ca] Sent: ned 2004-10-17 15:34 To: Gorjanc Gregor Cc: r-help at stat.math.ethz.ch Subject: Re: [R] Plotcorr: colour the ellipses to emphasize the differences On Sun, 17 Oct 2004 02:51:58 +0200, "Gorjanc Gregor" <Gregor.Gorjanc at bfro.uni-lj.si> wrote: [removed old stuff] >>I would also like to
2016 Jul 28
0
Creating shared object with BASE in EXPORTS on Windows
...a name in the shared object. When BASE appears under EXPORTS in tmp.def file, R CMD SHLIB doesn't succeed. This happens on Windows but not Mac or Ubuntu. Minimal examples: //////////////////////////////////////// This code builds fine //////////////////////////////////////// void base(int *nin, double *x) { int n = nin[0]; int i; for (i=0; i<n; i++) x[i] = x[i] * x[i]; } system("R CMD SHLIB foo.c --preclean") c:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-33~1.1/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -std=gnu...
2014 Aug 28
2
problema al copiar datos de tipo caracter de un archivo a otro
...") # construir el matchingFile dat <- data.frame("sol",0,0,0,0,0,"a",0) dat[,1] <- as.character(dat[,1]) dat[,7] <- as.character(dat[,7]) colnames(dat) <- c("sol","con","dia","rep","nca","nin","iso","are") i <- 1 k <- 1 for (i in 1:length(filenames)) { # leer los datos desde cada archivo tmp <- read.csv(filenames[i], header=FALSE, sep="\t") # sacar los datos y meterlos a un nvo archivo temporal # datos de identificac...
2011 Jan 08
2
Idea to possibly improve flac?
On Jan 7, 2011, at 18:08, Declan Kelly wrote: > On Fri, Jan 07, 2011 at 05:11:26PM -0800, brianw at sounds.wa.com wrote: > [NIN 24/96] > >> Thanks! That's interesting to note. I think that I ended up with >> the true 24/96 files, but I am curious: How do you tell whether you >> have the full 24/96 or not? > > Extract to WAV, do a hex dump, and look for repeated 0x00 bytes. > Someone &gt...
2016 Aug 02
0
Creating shared object with BASE in EXPORTS on Windows
...pears under EXPORTS in tmp.def file, R > CMD SHLIB doesn't succeed. This happens on Windows but not Mac or > Ubuntu. > > Minimal examples: > > //////////////////////////////////////// > This code builds fine > //////////////////////////////////////// > void base(int *nin, double *x) { > int n = nin[0]; > int i; > for (i=0; i<n; i++) x[i] = x[i] * x[i]; > } > > system("R CMD SHLIB foo.c --preclean") > c:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-33~1.1/include" > -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local3...
2011 Jan 08
5
Idea to possibly improve flac?
...edle drop, with rumble throughout, especially since I has the original CD versions of the same tracks in my collection. Also, the early days of Warp Records involved many artists who sent in demoes on analog tape, and there is obvious wow and flutter on these tracks, especially at the beginning before the tape was properly tensioned. A while back, when HD audio was quite rare, I purchased some titles that were clearly low quality. Some 24/88.2 and 24/96 material had nothing but noise above 20 kHz, but the audio content was clearly from CD sources. I suppose the thought was tha...
2004 Sep 16
0
FW: FW: How do I insert a newline in my title in a plot?
...wrote: > > yes I have tries, and nothing. It just shows the strings with the slashn, > just like i typed it. Please consult the R posting guide and give us some basic information such as version of R, platform, graphics device and so on. > plot(1:10) > title("this is a title\nIn 2 lines") should work, and does for me on Windows and Linux. I dimly remember it did not on a Mac at one point. > -----Original Message----- > From: Rashid Nassar [mailto:rnassar at duke.edu] > Sent: ???????????, 16 ????????????????????? 2004 15:44 > To: Christos Rodopoulos &gt...
2013 Sep 10
1
Problema con filtros de datos en un data.frame
...or las filas que cumplen una cierta condicion, por > > >> ejemplo, ... > > >> > > >> graph[graph$NCar==c("160s"),] > > >> > > >> obtengo el siguiente conjunto de datos: > > >> > > >> sol con dia NCar NIns isom area rep tipo > > >> 1 con 0.001 1 160s 0 s 0.6083543 1 > > >> 8 con 0.001 2 160s 0 s 0.6388484 1 <NA> > > >> 10 con 0.001 3 160s 0 s 0.6873404 1 <NA> > > >> 13 con 0.001 4 160s 0 s 0....
2013 Sep 06
0
Problema con filtros de datos en un data.frame
...e 892 filas y 9 columnas, el cual adjunto para que > puedan probar. > > Cuando consulto por las filas que cumplen una cierta condicion, por > ejemplo, ... > > graph[graph$NCar==c("160s"),] > > obtengo el siguiente conjunto de datos: > > sol con dia NCar NIns isom area rep tipo > 1 con 0.001 1 160s 0 s 0.6083543 1 > 8 con 0.001 2 160s 0 s 0.6388484 1 <NA> > 10 con 0.001 3 160s 0 s 0.6873404 1 <NA> > 13 con 0.001 4 160s 0 s 0.6476428 1 <NA> > 20 con 0.001 1 160s 0...
2013 Jul 12
3
Eliminar filas que cumplen con mas de un criterios simultaneamente ...
Estimada comunidad, tengo el siguiente problema: Un data.frame con muchas filas de las que debo eliminar aquellas que cumplen varios criterios al mismo tiempo. Por ejemplo este data.frame: sol con dia NCar NIns isom area rep tipo 1 con 0.001 1 160s 0 s 6.083543e-01 1 2 con 0.001 1 161c 1 c 1.391274e-03 1 <NA> 3 con 0.001 1 161c 1 c 2.812804e-03 1 <NA> 4 con 0.001 1 180s 0 s 3.791027e-01 1 <NA> 619 lim 0.003 2 160s 0 s 5.723...
2009 Oct 05
2
Loop function/comparison operator problem
Hi There, I have created the following function format<- function(){ repeat { form<-readline(paste("\nIn what format do you want to save these plots?\nChoose from: wmf, emf, png, jpg, jpeg, bmp, tif, tiff, ps, eps, or pdf.\nNote: eps is the suggested format for publication quality plots.\nPlot format --> ")); cat("\nI'm sorry, I don't know what that format is.\nPlease try again\n...