search for: bergsma

Displaying 17 results from an estimated 17 matches for "bergsma".

Did you mean: bergman
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"))
2013 Feb 02
1
setGeneric() gives "must supply skeleton" when checking package
...??, explicitly or via an existing function." The help for setGeneric() seems to suggest that no function skeleton is needed when creating a generic for a function defined in some other package. I found one or two previous related posts, but no obvious resolution. Comments appreciated, Tim Bergsma, PhD [[alternative HTML version deleted]]
2007 Apr 05
1
Extent of time zone vulerability for POSIX date and time classes
...if I never specify timezones, and never use Sys.time(), the vulnerabilities do not pertain. To the point: if I'm merely converting to and from character data that does not represent time zones, is there still a time zone vulnerability with strftime() and strptime()? Thanks in advance, Tim Bergsma, PhD Metrum Research Group, LLC #example strftime( strptime( "30-Dec-06 23:30", format="%d-%b-%y %H:%M" ), format="%m/%d/%Y %H:%M" ) [1] "12/30/2006 23:30"
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 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
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
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
2009 Jul 09
1
merge performace degradation in 2.9.1
...2.9.1 has an nchar entry that is quite time consuming. Is there a way to avoid the degradation in performance in 2.9.1? Thank you, Adrian As an aside, I got interested in testing merge in 2.9.1 by reading the r-devel message from 30-May-2009 "Degraded performance with rank()" by Tim Bergsma, as he mentions doing merges, but only today decided to test.
2010 Aug 18
3
Windows Vista keeps on deleting cached roaming profile
I have a couple of Windows Vista Computers that i freshly (re)installed, updated to SP2 + all updates, and joined to my domain... i also got an empty profile on the server (the storage folder is there, but there are no files inside) When i log into the domain Windows creates all files and folders just fine and stores a cache of that profile in c:\users\username (like it should), And when i log
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 <-
2007 Oct 05
0
Rpad textarea handling
...ntents 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 textarea. Thanks in advance for any ideas, -Tim Bergsma Metrum Research Group, LLC <html> <head> <script type="text/javascript" src="gui/Rpad.js"/> </head> <body> <pre dojoType="Rpad" rpadRun="init"> script <- c("test","test") </pre> <pre dojoTyp...
2011 Mar 23
1
Clustered Samba: smbd process deadlocks when doing an /etc/init.d/samba stop on gentoo
Hi All, i have a problem with the SMBD processes on my clustered Samba setup. The setup contains: - 2 gentoo linux nodes (kernel 2.6.33.2) - ctdb 1.0.114_p1 - samba 3.5.8 - glusterfs 2.0.8 sometimes i want to do some maitenance on one of the nodes, then i do the following: - /etc/init.d/samba stop (to stop samba, and move all the users to the other nodes) - /etc/iniit.d/ctdb stop (to move the
2011 Apr 12
1
clustered samba registers all non CTDB addresses at WINS server
Hi all, in the first step to separate my wins/netbios/nmbd and my clustered samba servers i've installed the WINS feature on a windows 2k8r2 server, and set the "wins server = ip.adress.of.windows.server" the weird thing is: my samba 3.5.8 do not only register the public CTDB ip addresses specified by "cluster addresses =", but also the static maintenance ip's + the
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 Jan 24
1
how to properly extend s3 data.frames with s4 classes?
Dear R Programmers! After some time of using R I decided to work through John Chambers book "Programming with Data" to learn what these S4 classes are all about and how they work in R. (I regret not having picked up this rather fine book earlier!) I know from the documentation and the mailing archives that S4 in R is not 100% the book and that there are issues especially with
2011 Apr 08
1
Clustered Samba: Every 24 hours "There are Currently No Logon Servers Available"
All, i have this very weird and annoying problem in my clustered setup: every ~24 hours the vista clients cant login, or even unlock there screens anymore. The error they receive is "currently no logon services available" this is very odd, because i have 2 samba 3.5.8 servers available, running and configured to handle login requests. in the mean time the people that are logged in
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 ----