Displaying 20 results from an estimated 1000 matches similar to: "large integer values"
2002 Oct 25
1
reshape: duplicate rows to multiple cols
I have a dataframe that I'm trying to reshape, and need advice. My data:
> klam.merge[200:225,]
stream lulc x sumlength pct.lgth
200 1223030419685 92 0.25000000 9.89 2.52780586
201 1223030419686 23 0.00274154 4.73 0.05796068
202 1223030419686 41 0.75009917 4.73 15.85833341
203 1223030419686 42 2.65000000 4.73 56.02536998
204
2010 Apr 01
2
Adding regression lines to each factor on a plot when using ANCOVA
Dear R users,
i'm using a custom function to fit ancova models to a dataset. The data are
divided into 12 groups, with one dependent variable and one covariate. When
plotting the data, i'd like to add separate regression lines for each group
(so, 12 lines, each with their respective individual slopes). My 'model1'
uses the group*covariate interaction term, and so the coefficients
2014 Jun 16
1
index.search
Dear r-devel,
I am trying to automatically check if two successive versions of a
package have the same results (i.e. code not broken), by parsing the
example sections for each function against a previously tested
version.
While trying to replicate the code from example(), I am facing an
error related with te "index.search" function (line 7 in the example()
code).
This is the code I am
2008 Nov 25
2
calculating an N50
Given a set of integers of different values how do I calculate the
minimum number of the largest of integers that are required, when
summed, to equal 50% of the total sum of the the set?
For example,
> length(myTable$lgth)
[1] 303403
> sum(myTable$lgth)
[1] 4735396
I know through brute force that the N50 of the following set is 42 but
I don't know how to solve this without iteration
2014 Feb 06
3
C headers
Dear list,
Just upgraded to MacOS Mavericks, fresh install of R 3.0.2 and trying to
install a previous version of my QCA package (the most recent one source
file, which passed the R CMD check --as-cran with R 3.0.1)
I seem to have some difficulties in the C code, apparently it doesn't find
some headers (please see below):
============
$ R CMD INSTALL --no-multiarch
2001 Oct 22
1
round() doesn't (PR#1139)
R> round(100000/3, -2) - 33300
[1] -7.275958e-12
I would have hoped for 0. The problem seems to be specifically for negative
"digits". This is in 1.3.1 on Solaris 2.6 (full description at bottom).
[Apologies for making everyone read this 3 times; my bug.report() burped.]
Peter Dalgaard <p.dalgaard@biostat.ku.dk> says the problem is in fround.c,
which reads in part:
2014 May 16
1
SEXPTYPEs
Dear list,
On a follow up from my previous email, I am now trying to allocate vectors
of length larger than 32-bit in C.
>From the R internals documentation, I read that:
"The sxpinfo header is defined as a 32-bit C structure..."
and
"A SEXPREC is a C structure containing the 32-bit header..."
The question is: does the INTSXP allow vectors larger than 32-bit?
A test
2012 Jun 19
1
R and C pointers
Dear R devel,
Apologies for these (most probably trivial) questions, doing my first
attempt to call C from R (and actually learning C in the process).
I need to pass a matrix to C, and after reading R-exts.pdf (many
times), I was unable to find how to handle matrices at C-level...
except for, what probably is the answer, that matrices are in fact
vectors with dimensions.
This is a sample code I
1997 Aug 04
1
R-alpha: Re: your mail
>>>>> Thomas Lumley writes:
> On Fri, 1 Aug 1997, Kurt Hornik wrote:
>> Thomas,
>>
>> Could you add the "-lf2c" at the end of the line
>> @$(LD) $(SHLIBLDFLAGS) -o $(LIBNAME).so $(OBJS)
>> in acepack's src-c/Makefile?
>>
>> I ran across an identical pow_dd problem recently with another package.
>> Did we always need
1998 Apr 02
2
f2c
I have a problem with my dynamically loaded code in R not finding pow_ii, which
for some time I thought was because library f2c is not on my Sparcstation.
However, I have now been experiencing the same problem in Linux, with all the
proper libraries in place.
My incomplete understanding of elf and shared libraries does not help, but when
compiling a complete program I usually muddle through.
2012 Apr 05
2
"NA" vs. NA
Dear All,
I assume this is an R-devel issue, apologies if I missed something
obvious. I have a dataframe where the row names are country codes,
based on ISO 3166, something like this:
------------
"v1" "v2"
"UK" 1 2
"NA" 2 3
------------
It happens that "NA" is the country code for "Namibia", and that
creates problems on
2012 Jun 21
2
debug R objects at C level
Dear R-devel,
I am now at a debugging phase, and would like to inspect the
(individual) values in an arbitrary R vector. It should be simple, but
after hours of reading I am simply unable to find the right
information.
A possible C code is:
?????????????????
# include <R.h>
# include <Rinternals.h>
# include <R_ext/Rdynload.h>
SEXP foo(SEXP x) // where x is a vector passed by
2007 May 23
0
rsync files differ
The same file on different servers synchronized from LDWO with rsync:
File |Server| cksum | file info
===============================================================================================================
/data/DWG//E/0090/01/20046784E.a LDWO 152479055 669939 -rw-rw-rw- mb at 669939 Dec 11 2002
1997 Aug 08
4
R-alpha: Second patch for 0.50-a1
A second patch for R-0.50-a1 is available from
ftp://stat.auckland.ac.nz/pub/R
The patch produces the following changes
o cpoly problem with pow_di fixed.
o legend had a call to "text" with an incorrect argument tag.
Changed "text" to "labels".
o The variable "dup" was uninitialised in the function "naoktrim" in
2012 Jul 31
0
QCA version 1.0-4 released
Dear All,
QCA package version 1.0-4 has been released today, the sources are now
visible on CRAN and the binaries for Windows and MacOS should appear
in a couple of more days.
We highly recommend upgrading to this version. Apart from a number of
small bug fixes, the most notable reason to upgrade is a dramatic
increase in speed, due to the compilation of some computationally
intensive parts of
2012 Jul 31
0
QCA version 1.0-4 released
Dear All,
QCA package version 1.0-4 has been released today, the sources are now
visible on CRAN and the binaries for Windows and MacOS should appear
in a couple of more days.
We highly recommend upgrading to this version. Apart from a number of
small bug fixes, the most notable reason to upgrade is a dramatic
increase in speed, due to the compilation of some computationally
intensive parts of
2013 Nov 26
1
dynamic lists at C level
Dear R-devel,
I am trying to do something similar to dynamic length lists in R, but
at C level.
In R, that would be rather trivial:
- determine the length of the list
- create the list object
- store the values for each component
- access value components by using "[["
At C level, for a single component where I need to store a vector of
length 5, I do:
int *p_result;
SEXP my_list =
2009 Sep 20
0
New version of QCA
Hi,
A new version of the QCA package (0.6-0) was submitted to CRAN.
This is a major improvement, now working with multi-valued data (previous
versions accepted binary data only).
The "classical" function qmcc() still accepts only binary data, but the
enhanced function eqmcc() is now ready for mvQCA.
The QCA package performs the Quine-McCluskey algorithm for Qualitative
Comparative
2012 Apr 08
0
new version of QCA
Dear All,
I have just uploaded a new version of the QCA (Qualitative Comparative
Analysis) on CRAN, and it will be propagated in a couple of days.
This is version 1.0-0 ("Easter edition") of the package, straight from
the previous version 0.6-5, and it represent a major re-write of the
package in order to accomodate fuzzy-sets. I am pleased to welcome
Alrik Thiem as a co-author of this
2012 Apr 08
0
new version of QCA
Dear All,
I have just uploaded a new version of the QCA (Qualitative Comparative
Analysis) on CRAN, and it will be propagated in a couple of days.
This is version 1.0-0 ("Easter edition") of the package, straight from
the previous version 0.6-5, and it represent a major re-write of the
package in order to accomodate fuzzy-sets. I am pleased to welcome
Alrik Thiem as a co-author of this