Displaying 17 results from an estimated 17 matches for "bullard".
Did you mean:
ballard
2012 Sep 28
1
Annotate a segmented linear regression plot
...docs for segmented I can access all of
the slope parameters via a named vector of the coefficients. How can I
access the slope segments or locations? I have never tried to annotate an R
plot before, so I don't even know how to 'pin' a bit of text to an x,y
location on a plot.
> dput(bullard)
structure(list(Rt = c(14.4477, 23.6752, 26.723, 33.8508, 37.9628,
47.0804, 49.7232, 54.6395, 59.9251, 64.7518, 81.1629, 85.7209,
88.0334, 98.366, 102.6563, 105.6953, 134.8691, 137.3795, 155.0056,
158.6707, 162.0671, 206.7413, 248.701, 255.9407, 265.5201, 283.1462,
288.8939, 299.8356, 311.0788, 323...
2006 Apr 20
1
R CMD check: non source files in src on (2.3.0 RC (2006-04-19 r37860))
...m R CMD check is below. Any insight would be appreciated.
As always thanks for your patience.
jim
****************************************************************
**************** Directly on directory *************************
****************************************************************
bullard at sam:~/projects/bioc$ R CMD check -l ~/R-packages affxparser
* checking for working latex ... OK
* using log directory '/home/bullard/projects/bioc/affxparser.Rcheck'
* using Version 2.3.0 RC (2006-04-19 r37860)
* checking for file 'affxparser/DESCRIPTION' ... OK
* this is package...
2005 Feb 13
2
row equality.
I think that this is an easy one...
I have a matrix where each row is an (x,y,z) triplet. Given a potential
(xnew,ynew,znew) triplet I want to know if the matrix already contains a
row with the new values (the space already has that point). I can do it
using a for loop, but I would like to know if there is anyway in which I
can do it without the for loop.
I do it now like this (this
2005 May 17
1
returning an empty list.
...understood the documentation this seemed like the correct usage. It
seems like I could really just do the following:
return NEW_LIST(0);
but I thought I'd better ask first. Thanks in advance, I hope I did not
miss something in the documentation which describes this.
Thanks, jim
--
James Bullard
bullard@berkeley.edu
760.267.0986
2006 Mar 15
1
multiple packages using the same native code.
This might fall under the purview of bundles, but I could not find any
example bundles which demonstrated what I am after.
I would like to construct two packages (A, B) which utilize a number of
common C functions. The most straightforward way to do this is just copy
the relevant .c and .h files from one src directory to the next, but
this is tedious especially in the face of multiple
2011 Sep 14
2
External pointers and an apparent memory leak
I'm using external pointers and seemingly leaking memory. My determination of a memory leak is that the R process continually creeps up in memory as seen by top while the usage as reported by gc() stays flat. I have isolated the C code:
void h5R_allocate_finalizer(SEXP eptr) {
Rprintf("Calling the finalizer\n");
void* vector = R_ExternalPtrAddr(eptr);
free(vector);
2005 Jul 12
1
allocation of large matrix failing
Hello, this is probably something silly which I am doing, but I cannot
understand why this allocation is not happening.
Here is a my C code which tries to allocate a list of size 333559, and
then a matrix of size 8*333559
I thought I might be running into memory problems, but R is not even
using that much (I start R with
more memory and it stays constant) Also, I start R as I normally do and
I
2005 Aug 29
1
Question about SET_LENGTH
Hello all, thanks for all the help on the other issues. This one should
be relatively straightforward. I have a vector of integers which I
allocate to be the maximal size possible (meaning I'll never see more
than cel.GetNumOutliers, but most likely I'll see less) therefore, I
want to resize the vector, one solution would be to allocate a new
vector then to copy into the new vector. That
2010 May 12
1
ranges and contiguity checking
Hi All,
I am interfacing to some C libraries (hdf5) and I have methods defined for
'[', these methods do hyperslab selection, however, currently I am
limiting slab selection to contiguous blocks, i.e., things defined like:
i:(i+k). I don't do any contiguity checking at this point, I just grab the
max and min of the range and them potentially do an in-memory subselection
which is what
2005 Aug 26
1
wchar and wstring.
Hello all, I am writing an R interface to some C++ files which make use
of std::wstring classes for internationalization. Previously (when I
wanted to make R strings from C++ std::strings), I would do something
like this to construct a string in R from the results of the parse.
SET_VECTOR_ELT(vals, i++, mkString(header.GetHeader().c_str()));
However, now the call header.GetHeader().c_str()
2010 Feb 02
1
S4 setClass / initialize misunderstanding
Hi, I recently ran into this problem. I couldn't find any mention of it in
the setClass documentation.
setClass("Foo", representation(file = "character"))
setMethod("initialize", "Foo", function(.Object, file) {
print(file)
})
setClass("Bar", contains = "Foo")
And the error:
Error in print(file) : argument "file" is
2008 Jul 21
1
confusion about evaluation.
Hi All, I am confused about the following code. I thought that the
problem stemmed from lazy evaluation and the fact that 'i' is never
evaluated within the first lapply. However, I am then confused as to
why it gets bound to the final element of the lapply. The environments
of the returned functions are indeed different in both cases and each
environment has a local binding for
2011 Apr 19
1
self-referential representations in S4
I'm trying to do the following:
> setClass("MyNode", representation(parent = "MyNode"))
[1] "MyNode"
Warning message:
undefined slot classes in definition of "MyNode": parent(class "MyNode")
I scanned the docs, but found nothing. The representation function has no
problem, it's the setClass function which gives the warning.
What
2005 May 07
4
string syntactic sugar in R? - long post
Currently in R, constructing a string containing
values of variables is done using 'paste' and can be
an error-prone and traumatic experience. For example,
when constructing a db query we have to write,
paste("SELECT " value " FROM table where
date ='",cdate,"'")
we are getting null result from it, because without
(forgotten...)
2010 Mar 03
1
linking hdf5, requires setting LD_LIBRARY_PATH
...I tend to like
to build/install things locally so that aspects of the system I am working
on don't cause problems later when attempting to install elsewhere. To
this end, I build and install the hdf5 libraries w/out incident:
tar xzf hdf5-1.8.4.tar.bz2
cd hdf5-1.8.4
./configure --prefix=/home/jbullard/scratch/hdf5_install
make && make install
Now, I make a shared object using the following (I am compiling hdf5.c
directly in src of the hdf5 package):
gcc -I/home/jbullard/projects/me/R-builder/lib64/R/include
-I/home/jbullard/scratch/hdf5_install/include -I/usr/local/include -fpic
-g -O2...
2010 May 18
1
difficulties with setMethod("[" and ...
Apologies if I am not understanding something about how things are being
handled when using S4 methods, but I have been unable to find an answer to
my problem for some time now.
Briefly, I am associating the generic '[' with a class which I wrote
(here: myExample). The underlying back-end allows me to read contiguous
slabs, e.g., 1:10, but not c(1, 10). I want to shield the user from this
2005 Dec 09
2
segfault following a detach
Hello, first off, thanks for all of the previous help; hopefully someone
will have some insight on this question. I am attempting to track down a
segmentation fault which occurs only after a detach(2) is called in the
code (I have replaced the detach(2) with detach(package:DSA) and that
fails as well (furthermore, I have removed the detach calls and it does
not segfault)). It has proved