Displaying 20 results from an estimated 500 matches similar to: "rep with bigz in gmp"
2013 Apr 30
1
trace with reference class
Hi
The final line of the example in ?setRefClass induces an error:
> ## debugging all objects from class mEdit in method $undo()
> mEdit$trace(undo, browser)
Error in envRefInferField(x, what, getClass(class(x)), selfEnv) :
'undo' is not a valid field or method name for reference class
"refGeneratorSlot"
$trace tries to embed the trace in the generator object (instead
2011 Jan 15
1
Truetype and Opentype font in pdf device
Deal all,
I want to know if truetype or opentype fonts are available in pdf
device (i.e., pdf() or dev.copy2pdf()), and if so, how to do it?
Now I can do as followings:
1. convert ttf to afm using ttf2afm, e.g.: $ ttf2afm Impact.ttf > Impact.afm
2. put the afm file in $R_HOME/library/grDevices/afm
3. register a new type1 font: pdfFonts(Impact=Type1Font("Impact",
2011 Dec 21
0
gmp: Error in solve.bigz(B) : System is singular
With a matrix such as C I do not have any problem:
>library(gmp)
> C
V1 V2 V3 V4 V5 V6 V7
[1,] 1 0 0 0 1 0 0
[2,] 0 1 0 0 0 1 0
[3,] 0 0 1 0 0 0 1
[4,] 0 0 0 1 0 0 0
[5,] 0 0 0 0 1 0 0
[6,] 0 0 0 0 0 1 0
[7,] 0 0 0 0 0 0 1
> solve.bigz(C)
[,1] [,2] [,3] [,4] [,5] [,6] [,7]
[1,] "1" "0" "0"
2012 Jul 12
1
Modifying a list: what gets copied?
Hi all,
In my continued effort to understand when and what R copies, I've
designed a small experiment to try and figure out what goes on when a
list gets copied - is it a shallow copy or a deep copy. I believe the
following experiment isolates the difference:
options(digits = 2)
powers <- 4:6
n <- setNames(10 ^ powers, paste0("e", powers))
xs <- lapply(n, seq_len)
zs <-
2012 Apr 05
1
using for loops with ggplot
Hi all, I have been using ggplot for a few months and ran into this
porblem, I am trying to use ggplot in a for loop and it is not working. if
I do the following:
data=as.data.frame(cbind(rnorm(10),rnorm(10),rnorm(10)))
############
pp=ggplot(data, aes(x=(1:10), y=data[,1]))
pp=pp+geom_line(aes(x=(1:10),y = data[,1]),lty=2)
pp=pp+geom_line(aes(x=(1:10),y = data[,2]),lty=2)
2023 Jan 07
2
gmp::bigq vs. MASS::fractions
Hi,
has someone experience which routine should be used for creating
fractional numbers? The two conversion routines deliver different results
> x <- (0:7)/7
> MASS::fractions(x)
[1] 0 1/7 2/7 3/7 4/7 5/7 6/7 1
> gmp::as.bigq(x)
Big Rational ('bigq') object of length 8:
[1] 0
2573485501354569/18014398509481984 2573485501354569/9007199254740992
[4]
2013 Dec 02
1
pesky \usage-warnings with R CMD check
I?m in the process of preparing a package for CRAN.
The package is called ?exportR? and since it really just consists of one function, I found it natural to call it ?exportR? too.
The function returns a function that does the actual job, but it is set up to work in different ways, depending on the arguments given to its creator. In short:
library( exportR )
exporter <- exportR( the, arguments
2010 Dec 24
0
ggplot2 0.8.9 - Merry Christmas version
ggplot2 ------------------------------------------------------------
ggplot2 is a plotting system for R, based on the grammar of graphics,
which tries to take the good parts of base and lattice graphics and
avoid bad parts. It takes care of many of the fiddly details
that make plotting a hassle (like drawing legends) as well as
providing a powerful model of graphics that makes it easy to produce
2010 Dec 24
0
ggplot2 0.8.9 - Merry Christmas version
ggplot2 ------------------------------------------------------------
ggplot2 is a plotting system for R, based on the grammar of graphics,
which tries to take the good parts of base and lattice graphics and
avoid bad parts. It takes care of many of the fiddly details
that make plotting a hassle (like drawing legends) as well as
providing a powerful model of graphics that makes it easy to produce
2012 Mar 02
0
devtools 0.6
# devtools
The aim of `devtools` is to make your life as a package developer
easier by providing R functions that simplify many common tasks.
Devtools is opinionated about how to do package development, and
requires that you use `roxygen2` for documentation and `testthat` for
testing. Future version will relax these opinions - patches are
welcome! You can track (and contribute to) development of
2012 Mar 02
0
devtools 0.6
# devtools
The aim of `devtools` is to make your life as a package developer
easier by providing R functions that simplify many common tasks.
Devtools is opinionated about how to do package development, and
requires that you use `roxygen2` for documentation and `testthat` for
testing. Future version will relax these opinions - patches are
welcome! You can track (and contribute to) development of
2023 Jan 07
1
gmp::bigq vs. MASS::fractions
On Sat, 7 Jan 2023 17:29:35 +0100
Sigbert Klinke <sigbert at wiwi.hu-berlin.de> wrote:
> > x <- (0:7)/7
>
> > MASS::fractions(x)
>
> [1] 0 1/7 2/7 3/7 4/7 5/7 6/7 1
>
> > gmp::as.bigq(x)
>
> Big Rational ('bigq') object of length 8:
>
> [1] 0
> 2573485501354569/18014398509481984 2573485501354569/9007199254740992
>
2018 Jan 21
1
Split charts with ggplot2, tidyquant
Thanks for the reminder about lattice! I did some searching and there's
a good example of manipulating the size of subplots using the `position`
argument (see pp. 202-203 in the Trellis Users Guide:
http://ml.stat.purdue.edu/stat695t/writings/Trellis.User.pdf). This is
not within the paneling environment with the headers like in other
trellis plots though, so you'll have to do a bit
2007 Jun 25
3
fractional calculations
Hi All,
is there a function in R that allows me to work with fractions without
transforming them to floats (or whatever) in between?
Something that would calculate something like:
(1/2 + 1/8) * 1/2 = 5/16
without ever transforming to 0.5 and 0.125?
Best,
Federico
--
Federico C. F. Calboli
Department of Epidemiology and Public Health
Imperial College, St Mary's Campus
Norfolk Place,
2009 Nov 27
2
Modular inverses
I want to find the inverse of an integer k mod p (prime.) Is there a
function that can do this for me? I know i could simply write (k^(p-2)) %%
p, but i need to do this for large primes (above 100) and this gives the
warning message:
Warning message:
probable complete loss of accuracy in modulus
so this method does not work. Any ideas?
Thanks,
Samuel
--
2018 Jan 20
2
Split charts with ggplot2, tidyquant
For this kind of control you will probably need to move to base graphics
and utilize the `fig` argument in par(), in which case you would want to
run the plot() command twice: once with your first outcome and once with
your second, changing the par() settings before each one to control the
size.
On 01/19/2018 01:39 PM, Eric Berger wrote:
> Hi Charlie,
> Thanks. This is helpful. As
2018 Jan 20
0
Split charts with ggplot2, tidyquant
That (the need for base graphics) is false. It certainly **can** be done in
base graphics -- see ?layout for a perhaps more straightforward way to do
it along the lines you suggest.
However both lattice and ggplot are based on grid graphics, which has a
similar but slightly more flexible ?grid.layout function which would allow
one to size and place subsequent ggplot or lattice graphs in an
2018 Jan 19
0
Split charts with ggplot2, tidyquant
Hi Charlie,
Thanks. This is helpful. As mentioned in my original question, I want to be
able to plot a few such charts on the same page,
say a 2 x 2 grid with such a chart for each of 4 different stocks. Using
your solution I accomplished this by making
a list pLst of your ggplots and then calling cowplot::plot_grid(
plotlist=pLst, nrow=2, ncol=2 ) That worked fine.
The one issue I have is that
2006 Aug 12
0
anova.mlm for single model (one-way repeated measured anova)
On Sat, 12 Aug 2006, takahashi kohske wrote:
> Dear list members:
>
> I'd like to one-way repeated measured anova by using mlm.
> I'm using R-2.3.1 and my code is:
>
> dat<-matrix( c(9,7,8,8,12,11,8,13, 6,5,6,3,6,7,10,9,
> 10,13,8,13,12,14,14,16, 9,11,13,14,16,12,15,14),
> ncol=4, dimname=list(s=1:8, c=1:4))
>
2010 Mar 13
0
ggplot2: version 0.8.7
ggplot2 ------------------------------------------------------------
ggplot2 is a plotting system for R, based on the grammar of graphics,
which tries to take the good parts of base and lattice graphics and
avoid bad parts. It takes care of many of the fiddly details
that make plotting a hassle (like drawing legends) as well as
providing a powerful model of graphics that makes it easy to produce