search for: timb

Displaying 15 results from an estimated 15 matches for "timb".

Did you mean: tim
2007 Jun 04
3
test for nested factors
Is there a conventional way to test for nested factors? I.e., if 'a' and 'b' are lists of same-length factors, does each level specified by 'a' correspond to exactly one level specified by 'b'? The function below seems to suffice, but I'd be happy to know of a more succinct solution, if it already exists. Thanks, Tim. --- "%nested.in%" <-
2007 Jun 08
4
logical 'or' on list of vectors
Suppose I have a list of logicals, such as returned by lapply: Theoph$Dose[1] <- NA Theoph$Time[2] <- NA Theoph$conc[3] <- NA lapply(Theoph,is.na) Is there a direct way to execute logical "or" across all vectors? The following gives the desired result, but seems unnecessarily complex. as.logical(apply(do.call("rbind",lapply(Theoph,is.na)),2,"sum"))
2007 Feb 27
1
fitting the gamma cumulative distribution function
Hi. I have a vector of quantiles and a vector of probabilites that, when plotted, look very like the gamma cumulative distribution function. I can guess some shape and scale parameters that give a similar result, but I'd rather let the parameters be estimated. Is there a direct way to do this in R? Thanks, Tim. week <- c(0,5,6,7,9,11,14,19,39) fraction <-
2006 Apr 06
2
prevent reassignment of function names
Hi. I'm trying to find a systematic way to prevent assignment to names of existing functions. I've tried reassigning to the assignment operator, with mixed results. The function definition for "<-" below works as hoped for the demonstrated assignments to a and c. However, for the assignment based on the test function, it appears that the formal argument is not
2013 May 01
1
foreign: write.xport
I see in the archives significant discussion about SAS, CDISC formats etc. for FDA, but no direct suggestion of adding a write.xport method to the foreign package. Are there significant barriers to doing so? [[alternative HTML version deleted]]
2007 Apr 05
1
Extent of time zone vulerability for POSIX date and time classes
Hi. I frequently convert date and time data to and from character representations. I'm frustrated with chron, because 'seconds' are required to create a time object (my input data never has seconds). More importantly, I cannot make chron print the format 12/30/2006 (which my output data requires). I really like the format flexibility of strftime() and strptime(), but of course
2007 Sep 27
3
testing the contents of an environment
Suppose I want to delete everything in my working directory that is not a function. It seems that sapply(ls(),is.function) always returns FALSE, because ls() returns objects of mode character. How do I evaluate is.function(), not on a character string, but on the object that character string represents? Thanks, Tim
2009 May 30
2
degraded performance with rank()
Hi. I'm maintaining a package that creates an object that is essentially a classed version of numeric. I updated recently from 2.7.1 to 2.9.0, and merges involving my class suddenly took a huge performance hit. I've traced the problem to something near rank(). From NEWS, it seems rank() etc. changed in 2.8.0. Methods for xtfrm() are supposed to help, but I've had no success. There
2007 Nov 14
6
perl 5.8.5-36.el4_5.2
Hi all, Since upgrading to perl 5.8.5-36.el4_5.2 I have had no end of problems, starting with needing compress::zlib which I got from rpmforge, then I had to reinstall scalar::util to get mailscanner working but now I can't install or upgrade any perl modules. Has anyone else had problems or can someone tell me what I've done wrong please? regards tom
2013 Jun 03
0
[virtio_blk] BUG: unable to handle kernel paging request at ff7f5784
...cs5535-gpio [ 264.271842] bus: 'platform': add driver grgpio [ 264.286567] bus: 'pci': add driver pch_gpio [ 264.301389] bus: 'platform': add driver rdc321x-gpio [ 264.311510] bus: 'platform': add driver sch_gpio [ 264.326270] bus: 'platform': add driver timb-gpio [ 264.332900] bus: 'platform': add driver twl6040-gpo [ 264.378853] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 [ 264.389208] cpqphp: Compaq Hot Plug PCI Controller Driver version: 0.9.8 [ 264.395824] bus: 'pci': add driver compaq_pci_hotplug [ 264.406425] ibmphpd: IBM...
2013 Jun 03
0
[virtio_blk] BUG: unable to handle kernel paging request at ff7f5784
...cs5535-gpio [ 264.271842] bus: 'platform': add driver grgpio [ 264.286567] bus: 'pci': add driver pch_gpio [ 264.301389] bus: 'platform': add driver rdc321x-gpio [ 264.311510] bus: 'platform': add driver sch_gpio [ 264.326270] bus: 'platform': add driver timb-gpio [ 264.332900] bus: 'platform': add driver twl6040-gpo [ 264.378853] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 [ 264.389208] cpqphp: Compaq Hot Plug PCI Controller Driver version: 0.9.8 [ 264.395824] bus: 'pci': add driver compaq_pci_hotplug [ 264.406425] ibmphpd: IBM...
2006 Nov 30
0
extending data.frame with S4 class
Hi. When I extend "numeric" with S4 and create an instance, I get something that looks and acts like a numeric. When I extend "data.frame" and create an instance, I get a NULL 'core'. Why is this, and can it be fixed? setOldClass(), prototype=, and initialize() don't seem to help. Thanks, Tim ----
2007 Oct 05
0
Rpad textarea handling
Hi. I'm trying to write an Rpad that edits scripts. Textarea seems like an obvious tool, but unlike other input elements, it seems that the contents are not sent to R on 'calculate'. To illustrate using the page below: load, F9, edit text, F9. The original contents of 'script' are restored. Furthermore, I can't eliminate the leading and trailing whitespace in the
2005 Feb 15
0
Solved: foo.bat works, but just 'foo' causes "not recognized as an internal ..."
Hi folks. First time posting. I've managed to puzzle the following out. I found a few other articles on the web that asked the same question, but my search terms didn't throw up an article with an answer, so I thought I'd write the following: Where s: is a samba share that otherwise works for read/write: ---------------------------------------------- S:\misc\logs>foo.bat
2013 Feb 02
1
setGeneric() gives "must supply skeleton" when checking package
r-devel, In a development version of the CRAN package metrumrg, I write ... require(reshape) setGeneric('cast') setOldClass(c('keyed','data.frame')) setMethod('cast','keyed', function ...) The result is satisfactory when sourcing the code directly, but when checking the package (which has 'reshape' as a dependency in the DESCRIPTION file) I get