search for: maxcol

Displaying 20 results from an estimated 39 matches for "maxcol".

2008 May 26
1
small documentation change: maxCol -> max.col in maxCol.Rd?
There is no function called 'maxCol' in 2.7.0, so should 'maxCol' be purged from maxCol.Rd and 'max.col' be promoted from an alias (and the file renamed)? from today's R-devel: /usr/local/src/R-devel> head ./src/library/base/man/maxCol.Rd % File src/library/base/man/maxCol.Rd % Part of the R package, htt...
2008 Aug 02
1
problem with nested loop for regression
...uggling with the code for many days now, testing various parts, and I cannot seem to get the nested loop to work as I want it to. I would be very grateful for any suggestions. Below is a brief version of my code: #Code start library(zoo) seed.set(1) Pmat<-matrix(rnorm(1000), nrow=100, ncol=100) maxcol<-ncol(Pmat) maxrow<-nrow(Pmat) startrow<-10 period<-10 wind<-2 #roll window subdiv<-period/wind rollstart<-11 #start roll at period+1 #converting Pmat into ts for rollapply() to work... PmatTS<-ts(Pmat) Preg<-matrix(NA,ncol=maxcol,n...
2011 Feb 04
1
read.csv trap
...but I also think it's really important to minimize the number of traps in read.table(), which will often be the first part of R that new users encounter ... A quick fix for this might be to allow the number of lines analyzed for length to be settable by the user, or to allow a settable 'maxcols' parameter, although those would only help in the case where the user already knows there is a problem. cheers Ben Bolker =============== writeLines(c("A,B,C,D", "1,a,b,c", "2,f,g,c", "3,a,i,j",...
2008 Aug 15
2
cor() btwn columns in two matrices - no complete element pairs
...culate correlation coefficients between corresponding columns in two matrices with identical dimensions but different data. The problem is that the matrices contain NAs in different locations. I am using the following code to try to calculate correlations between complete sets of data: #Code start maxcol<-ncol(mat1) for (i in 1:maxcol) { corr_results[1,i]<-cor(mat1[,i],mat2[,i], use="complete.obs") } #Code end ...but I get the following error message: Error in cor(mat1[,i], mat2[,i], use="complete.obs") : no complete element pairs Is there something I'm not inc...
2006 Dec 16
1
max.col oddity
...[1] 3 3 3 3 3 3 3 3 3 3 > > # but random doesn't > max.col(x1) [1] 2 3 2 3 3 2 2 2 3 2 > The max.col docs say " there is a relative tolerance of 1e-5, relative to the largest entry in the row", but it's really using the maximum absolute value entry in the row (appl/maxcol.c, line 35 in R 2.4.0). Is this necessary for some sort of S-plus compatibility? If so, I think it would be good to make this absolute value property very clear in the docs, since it can cause subtle bugs (and did for me). Personally, I think the behavior is much nicer with the following patch: -...
2020 Sep 07
0
[libnbd PATCH 1/2] generator: Refactor handling of closures in unlocked functions
...-------------- 5 files changed, 73 insertions(+), 71 deletions(-) diff --git a/generator/C.ml b/generator/C.ml index deb77fa..280b319 100644 --- a/generator/C.ml +++ b/generator/C.ml @@ -99,16 +99,17 @@ let rec name_of_arg = function | UInt64 n -> [n] let rec print_arg_list ?(wrap = false) ?maxcol ?handle ?types ?(parens = true) + ?(closure_mark) args optargs = + if parens then pr "("; + if wrap then + pr_wrap ?maxcol ',' + (fun () -> print_arg_list' ?handle ?types ?closure_mark args optargs) + else + print_arg_list' ?handle ?types ?closure...
2020 Sep 08
2
Re: [libnbd PATCH 1/2] generator: Refactor handling of closures in unlocked functions
...s(+), 71 deletions(-) > > diff --git a/generator/C.ml b/generator/C.ml > index deb77fa..280b319 100644 > --- a/generator/C.ml > +++ b/generator/C.ml > @@ -99,16 +99,17 @@ let rec name_of_arg = function > | UInt64 n -> [n] > > let rec print_arg_list ?(wrap = false) ?maxcol ?handle ?types ?(parens = true) > + ?(closure_mark) args optargs = You don't need parens around here, you can just write ?closure_mark > + if parens then pr "("; > + if wrap then > + pr_wrap ?maxcol ',' > + (fun () -> print_arg_list'...
2006 Dec 14
0
max.col: bug or just oddity?
...[1] 3 3 3 3 3 3 3 3 3 3 > > # but random doesn't > max.col(x1) [1] 2 3 2 3 3 2 2 2 3 2 > The max.col docs say " there is a relative tolerance of 1e-5, relative to the largest entry in the row", but it's really using the maximum absolute value entry in the row (appl/maxcol.c, line 35 in R 2.4.0). Is this necessary for some sort of S-plus compatibility? If so, I think it would be good to make this absolute value property very clear in the docs, since it can cause subtle bugs (and did for me). Personally, I think the behavior is much nicer with the following patch: -...
2006 Apr 23
1
Question about bicreg
...re the 1987 baseball-salary data (with which you might be familiar); I can send you the data set, if that proves useful, but at this point simply wanted to run the question by you. Any help would be appreciated, John ---------------- snip ------------------- > br <- bicreg(X, log.salary, maxCol=33) > > summary(br) Call: bicreg(x = X, y = log.salary, maxCol = 33) 65 models were selected Best 5 models (cumulative posterior probability = 0.2022 ): p!=0 EV SD model 1 model 2 model 3 model 4 model 5 Intercept 100.0...
2009 Jun 23
2
Long to wide format without time variable
Hi all, I am trying to convert a data set of physician death codings (each individual's cause of death is coded by multiple physicians) from long to wide format, but the "reshape" function doesn't seem to work because it requires a "time" variable to identify the sequence among the repeated observations within individuals. My data set has no order, and different
2020 Sep 07
4
[libnbd PATCH 0/2] Fix memory leak with closures
As promised in my earlier thread on libnbd completion callback question. Eric Blake (2): generator: Refactor handling of closures in unlocked functions generator: Free closures on failure docs/libnbd.pod | 2 +- generator/C.ml | 48 +++++++++++------ generator/C.mli | 1 + lib/debug.c | 7 +-- lib/opt.c | 31 ++++++-----
2004 Apr 27
2
Gcc 3.4.0 and syslinux-2.09 menu
...just seems to ignore the constraint. It didn't do anything special to preserve the register. I also noticed that getnumrows returns the contents of 0x484 which is the number of rows minus one but menu.c has this ms->numcols = getnumcols(); ms->numrows = getnumrows(); ms->maxcol = ms->numcols - 1; ms->maxrow = ms->numrows - 1; which makes maxrow = rows - 2. Is this intentional? BTW, if you put this line __asm__ (".code16gcc\n\t"); in an include file and include that file at the top of the .c files then you can simplify the make file considerabl...
2001 Jan 25
1
problems compiling R under digital unix 4.0d (PR#826)
...o dtrco.o g77 -mieee -g -O2 -c dtrsl.f -o dtrsl.o g77 -mieee -g -O2 -c eigen.f -o eigen.o g77 -mieee -g -O2 -c lminfl.f -o lminfl.o ar cr libappl.a Rsock.o approx.o bakslv.o binning.o chisqsim.o chull.o cpoly.o cumsum.o distance.o fft.o fmin.o fortran.o lbfgsb.o loglin.o lowess.o machar.o maxcol.o massdist.o pretty.o rowsum.o sock.o splines.o stem.o strsignif.o tabulate.o uncmin.o zeroin.o ch2inv.o chol.o dpbfa.o dpbsl.o dpoco.o dpodi.o dpofa.o dposl.o dqrdc.o dqrdc2.o dqrls.o dqrsl.o dqrutl.o dsvdc.o dtrco.o dtrsl.o eigen.o lminfl.o ranlib libappl.a #make: No such file or direc...
2011 Mar 08
1
creating additional column
Hello everybody, I have a little problem in good old R. It is basically the following. I have this small database with 3 rows and the following columns: d1, d2, d3 and Highest d value - which selects the highest value from d1, d2, d3 in each row. d1 d2 d3 Highest d value 1 51.398426 39.111721 11.6086220 51.398426 2 4.057801
2020 Mar 17
5
[PATCH libnbd v2 0/3] Unfinished golang bindings.
These bindings get as far as running very simple connections. However there are many missing parts still: * No callbacks. * No functions which handle buffers (pread/pwrite!) This is posted just for general early interest, not even for review. Rich.
2005 Mar 29
1
final stages of installing R - please help?
...6099 Mar 29 13:18 R I then ran 'make'. Here are the last few lines from the 'make' output to the screen: rm -f libappl.a false cr libappl.a approx.o bakslv.o bandwidths.o binning.o chull.o cpoly.o cumsum.o fft.o fmin.o integrate.o interv.o lbfgsb.o loglin.o lowess.o machar.o maxcol.o massdist.o pretty.o rcont.o rowsum.o splines.o stem.o strsignif.o tabulate.o uncmin.o zeroin.o ch2inv.o chol.o dchdc.o dpbfa.o dpbsl.o dpoco.o dpodi.o dpofa.o dposl.o dqrdc.o dqrdc2.o dqrls.o dqrsl.o dqrutl.o dsvdc.o dtrco.o dtrsl.o eigen.o lminfl.o blas.o zgemm.o make[3]: *** [libappl.a] Er...
2013 Apr 02
1
gdata selectively not working
...ary/gdata/xls/ExampleExcelFile.xlsx'... Done. Orignal Filename: C:/Dropbox/R/library/gdata/xls/ExampleExcelFile.xlsx Number of Sheets: 4 Writing sheet number 1 ('Sheet First') to file 'C:\Users\Robin\AppData\Local\Temp\RtmpWkmGgn\file1bccd743d36.csv' Minrow=0 Maxrow=7 Mincol=0 Maxcol=2 0 Done. Reading csv file “C:\Users\Robin\AppData\Local\Temp\RtmpWkmGgn\file1bccd743d36.csv” ... Done. This tells me that perl can be found, used, and my local temp directory can be written/read to just fine. Now to try to read one of my own files. > test <- read.xls("C:/Dropbox/...
2002 Jan 22
1
compile problem with bessel_i.c on IRIX64 flexor 6.5 10100655 IP35 (uname -a) (PR#1275)
...making chull.d from chull.c making cpoly.d from cpoly.c making cumsum.d from cumsum.c making fft.d from fft.c making fmin.d from fmin.c making integrate.d from integrate.c making lbfgsb.d from lbfgsb.c making loglin.d from loglin.c making lowess.d from lowess.c making machar.d from machar.c making maxcol.d from maxcol.c making massdist.d from massdist.c making pretty.d from pretty.c making rowsum.d from rowsum.c making splines.d from splines.c making stem.d from stem.c making strsignif.d from strsignif.c making tabulate.d from tabulate.c making uncmin.d from uncmin.c making zeroin.d from zeroin.c...
2000 Oct 31
1
conflicting types for `Rf_stirlerr
...aking cpoly.d from cpoly.c making cumsum.d from cumsum.c making distance.d from distance.c making fft.d from fft.c making fmin.d from fmin.c making fortran.d from fortran.c making lbfgsb.d from lbfgsb.c making loglin.d from loglin.c making lowess.d from lowess.c making machar.d from machar.c making maxcol.d from maxcol.c making massdist.d from massdist.c making pretty.d from pretty.c making rowsum.d from rowsum.c making sock.d from sock.c making splines.d from splines.c making stem.d from stem.c making strsignif.d from strsignif.c making tabulate.d from tabulate.c making uncmin.d from uncmin.c makin...
2016 Jan 05
0
R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!"
...g that there are no duplicate symbols. > > cran at x068:[/home/cran/64/R]dump -H src/*/*.a | head > > src/appl/libappl.a[integrate.o]: > > Loader section is not available > > src/appl/libappl.a[interv.o]: > > Loader section is not available > > src/appl/libappl.a[maxcol.o]: >>> >FYI: I shall be downloading the "try and buy" xlc and xlfortran - >>> and I think you will certainly prefer my packaging then as they work >>> without the libgc dependencies that many of the rpm packages need. >>> > >>> >And...