similar to: Redefine NROW and NCOL to be compatible with nrow and ncol for S3 classes with own dim function?

Displaying 20 results from an estimated 600 matches similar to: "Redefine NROW and NCOL to be compatible with nrow and ncol for S3 classes with own dim function?"

2012 Feb 04
1
RFC: Proposal to make NROW() and NCOL() slightly more general
The help has > Description: > 'nrow' and 'ncol' return the number of rows or columns present in 'x'. > 'NCOL' and 'NROW' do the same treating a vector as 1-column matrix. and > x: a vector, array or data frame I'm proposing to extend these two convenience functions to also work ``correctly'' for generalized versions of
2023 Sep 23
2
NROW and NCOL on NULL
Dear list, I do not know what would be the 'correct' answer to the following but I think that they should return the same value to avoid potential problems and hard to debug errors. Regards, Simone --------------------------------------- > NCOL(NULL) [1] 1 > NROW(NULL) [1] 0 > sessionInfo() R version 4.3.1 RC (2023-06-08 r84523 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit)
2007 Mar 26
2
Custom Mail Directory for some users
Hi list, I'm new on this mailing list and I'm kind of stucked at the moment. I managed to get Postfix and Dovecot working together with Amavis, OpenLDAP und SASL on Ubuntu Linux Release "Dapper Drake". The Dovecot version shipped with Dapper is 1.0-beta3 (at least, that's what the package database tells me), I also tried this with a Debian Backport of version 1.0-rc15.
2007 Sep 24
3
CallerID problem Asterisk 1.4.2
When receiving inbound calls from a Vonage Softphone extension, I'm unable to view/maniupulate calledid data. but it shows up in the CDR records and on called handsets.. any ideas? exten => asda,n,NoOp(callerID is ${CALLERID}) exten => asda,n,NoOp(CallerID is ${CALLERIDNAME}) exten => asda,n,NoOp(CallerID is ${CALLERIDNUM}) -- Executing [asd at pstn-in:2]
2005 Dec 14
1
Winbind on PDC
Hi list ! Is it possible to run winbind on the pdc to get posix uids /gids ? I?ve successsfully ran winbind on an domain member server und was able to do wbinfo -u an got all the users in a domain but if I try the same setup working on the pdc directly all I get is "Error looking up domain users". I googled for two days now but I?m not getting the crucial clue. I?m using Samba 3.0.14
2010 Mar 29
1
Suggestion: Adding quick rowMin and rowMax functions to base package
Hi, I wonder whether similarly to the very quick rowSums and colSums functions in the base package, one could add quick functions that calculate the min or max over rows / cols in a matrix. While apply(x,1,min) works, I found out by profiling a program of mine that it is rather slow for matrices with a very large number of rows. A quick functionality seems to be already there in the
2002 May 28
1
Intended change from version$os=='Win32' to 'mingw32' ?
Is it intended that version$os no longer is 'Win32' for the Windows-Compile? What is the approbriate way to check for Windows? Best Jens Oehlschl?gel In 1.4.1 we had > version _ platform i386-pc-mingw32 arch x86 os Win32 system x86, Win32 status major 1 minor 4.1 year
2008 Oct 03
0
"invalid 'ncol' value (too large or NA)" error message
Hi, I've been trying to run an R script, however I keep getting the error message "invalid 'ncol' value (too large or NA)" The program involves reading data from table, and manipulating it in some way. However I do not understand what the error message means (I'm new to R). Is it because some of the values in the cells of the table are to too many decimal places? Also
2000 Jun 24
4
ncol(hitdat)
Hi all, I am a beginner to R, so you have a right to dislike me. I have loaded up a data matrix (664 * 28) into the R environment and wish to have a pre-written program (MAXCOV-HITMAX) analyse the data. When I run the program, I get: "Error in ncol(hitdat). Argument "hitdat" is missing with no default"; I can't seem to find much info in the manuals, etc. to help me out, so
2002 Feb 01
3
matrix with ncol=1
Hello list, I try to optimize some R code and it turns out that the function as.matrix takes a lot of time in my code. There is only one reason why I need as.matrix: My code should work for matrices with ncol=p and p should be allowed to be 1 or larger. Now I have a matrix x with dim(x)=(n,p), and I need to work with the submatrix y <-x[gv,], (gv a vector of n logicals) and to calculate
2012 Feb 27
0
Conflict from saved implicit generics in methods package for rcond, norm, backsolve
This issue ties loosely into other recent S4 topics on this board. The methods package defines a number of implicit generics for linear algebra related functions (rcond, norm, backsolve) that, when used, interfere with base package operations. Here is the cut-and-paste version of the code the illustrates the problem: # rcond x1 <- cbind(1, 1:10) rcond(x1) setGeneric("rcond")
2000 Mar 08
0
RODBC: follow up
Hi Michael, Here is the result of my first testing: (0) Dr. Watson Sorry, I should have given a more precise description: by default in R exists a function with the name 'table', if you use this name as in odbcPrimaryKeys(0, table) a Dr. Watson occurs, because table does not give a table name. However, it is always a good idea to prevent Dr. Watsons, even if it is triggered by a
2009 Mar 25
1
get_all_vars fails with matrices (PR#13624)
Hi, According to the help file for model.frame/get_all_vars, the following should produce the same output from both functions, but it doesn't... > dat <- list(X=matrix(1:15,5,3),z=26:30) > model.frame(~z+X,dat) z X.1 X.2 X.3 1 26 1 6 11 2 27 2 7 12 3 28 3 8 13 4 29 4 9 14 5 30 5 10 15 > get_all_vars(~z+X,dat) [1] z X <NA> <NA> <0
2023 Oct 29
1
dim<-() changed in R-devel; no longer removing "dimnames" when doing dim(x) <- dim(x)
Hello, the fix of PR18612 (https://bugs.r-project.org/show_bug.cgi?id=18612) in r85380 (https://github.com/wch/r-source/commit/2653cc6203fce4c48874111c75bbccac3ac4e803) caused a change in `dim<-()`. Specifically, in the past, any `dim<-()` assignment would _always_ remove "dimnames" and "names" attributes per help("dim"): The replacement method changes
2006 Apr 25
0
[ win32utils-Feature Requests-1460 ] Redefine File.stat
Feature Requests item #1460, was opened at 2005-02-05 13:12 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=414&aid=1460&group_id=85 Category: win32-file Group: Code >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Daniel Berger (djberg96) >Assigned to: Daniel Berger (djberg96) Summary: Redefine File.stat Initial Comment: The
2011 Nov 22
3
[PATCH] qemu-xen: Don't redefine libpci (3.1.7) defines.
These values are already defined by the libpci heders in the version 3.1.7. PCI_STATUS_66MHZ PCI_STATUS_RESERVED2 PCI_STATUS_FAST_BACK PCI_MSIX_TABSIZE Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com> --- hw/pci.h | 6 ++++++ hw/pt-msi.h | 2 ++ 2 files changed, 8 insertions(+), 0 deletions(-) _______________________________________________ Xen-devel mailing list
2008 Mar 02
3
override/redefine asterisk DB function
Hi. Is it possible to override the standard DB function in Asterisk? My dialplan contains a lot of calls to "Set(DB(...))" and "${DB(...)} which of course use astdb to store/read data. I would like to stop using astdb and switch to Clustered MySQL (I don't suppose "clustered astdb" exists?). So instead of rewriting extensions.conf and replacing the DB calls with
2010 Oct 01
0
how to programmatically undefine and redefine a Domain?
Hello, I'm facing some strange behavior, and I hope you can provide a clarification. Consider the following code: virDomainPtr dom = virDomainLookupByName(virt, domain_name); if (dom) { printf("domain already defined...\n"); if (virDomainUndefine(dom)) printf("...unable to undefine!!!\n"); else {
2016 May 27
0
Redefine ethX interface names in CentOS 5.11?
Nicolas Kovacs wrote: > Hi, > > I have a LAN server running CentOS 5.11 with two NICs eth0 and eth1. I'd > like to swap the interface names, but I don't know how to go about that > under CentOS. > > Here's what I would do on a Slackware server (I have one next to me in > my office). > > Open /etc/udev/rules.d/70-persistent-net.rules and edit it: > >
2014 Aug 10
1
How to redefine `require' to generate a warning and delegate work to the original require?
Good afternoon, My goal is to warn the user any time that they use the `require' function. The reason is that they probably wanted to use `library' instead. There is a case where they should use the former though, so I just want to issue a warning. My approach was to: ? Re-bind `require' to `original.require' ? Re-implement `require' to ? Warn the user ? Delegate the real