Displaying 20 results from an estimated 5000 matches similar to: "R-alpha: Equations in Plots"
2013 Oct 21
0
Error de markdownToHTML al parsear LATEX
Copiando tus códigos llego a esto (adjunto)
En mi caso veo bien las fórmulas excepto en el índice.
Estas son mis versiones de los paquetes:
R version 3.0.2 (2013-09-25)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=Spanish_Spain.1252 LC_CTYPE=Spanish_Spain.1252
[3] LC_MONETARY=Spanish_Spain.1252 LC_NUMERIC=C
[5] LC_TIME=Spanish_Spain.1252
attached base packages:
[1] stats
2013 Oct 21
2
Error de markdownToHTML al parsear LATEX
Hola.
Intento crear un archivo .html a partir de un .Rmd que tenga Toc, LaTeX y tablas.
Empleo RStudio (v. 0.97.551), pero aparece un error en la función "markdownToHTML"
Pasos:
1) creo un fichero Rmd (adjunto ejemplo) => con knitr (v. 1.0.5) crea un fichero ".md"
2) Si quiero añadirle el TOC (table of contents) necesito emplear la función "markdownToHTML" del
2013 Oct 22
3
Error de markdownToHTML al parsear LATEX
Hola, primero de todo muchas gracias.
He probado a ejecutar el programa en una máquina virtual y efectivamente
funciona.
La única diferencia con mi ordenador está en locale, que me aparece esto:
> sessionInfor()
locale:
[1] LC_CTYPE=es_ES.UTF-8 LC_NUMERIC=C
[3] LC_TIME=es_ES.UTF-8 LC_COLLATE=es_ES.UTF-8
[5] LC_MONETARY=es_ES.UTF-8
1997 Sep 01
1
R-alpha: old Rdoc 2 new Rdoc
--xk+LtGr+JJ
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Attached is a conversion script for converting current R doc files to
the proposed new format ... I'm not sure if it handles everything
correctly, as I made just some random checks. The main purpose for
posting the thing to the list is such that those interested can get a
look at the new format.
Of
1997 Jun 25
3
R-alpha: lbeta, ctrl-C and crashes
1. lbeta and beta do not work properly: lbeta returns its first
argument and beta gives the lbeta result.
In names.c lines 245-6, the codes for these should be 2 and 3 instead
of 1 and 2
2. crtl-C does not work (except the first time) on Red Hat elf Linux
(which has many many other problems as well) nor on the previous
version of Linux for Amiga. It worked on Slackware aout Linux and now
works
1997 Jun 25
3
R-alpha: lbeta, ctrl-C and crashes
1. lbeta and beta do not work properly: lbeta returns its first
argument and beta gives the lbeta result.
In names.c lines 245-6, the codes for these should be 2 and 3 instead
of 1 and 2
2. crtl-C does not work (except the first time) on Red Hat elf Linux
(which has many many other problems as well) nor on the previous
version of Linux for Amiga. It worked on Slackware aout Linux and now
works
2010 Jul 21
1
function of an integral
Hi All,
I have a problem to create a variable that is a function of an integral of
another function.
The problem is the following:
I have a variable called cip. I have to create another variable called bip
that is a function of the former variable cip and also the cumulative
distribution function of the variable cip.
Consider the equation below:
1997 Apr 08
1
R-alpha: rbind
rbind() does something strange to dimnames
R : Copyright 1997, Robert Gentleman and Ross Ihaka
Version 0.50 Beta (April 1, 1997)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type "license()" for details.
> test1 <- data.frame(time= c(4, 3,1,1,2,2,3),
+ status=c(1,NA,1,0,1,1,0),
+ x= c(0,
2008 Aug 25
1
Displaying Equations in Documentation
I'm currently working on writing up some documentation for some of my
code, but am having the darndest time coding in equations. For
example, the equation in the following:
\details{ Calculated the R Squared for observed endogenous variables
in a structural equation model, as well as several other useful
summary statistics about the error in thoe variables.
R Squared values are
1997 Apr 28
1
R-alpha: R-beta:matrix & vector multiplication.
Both of these used to work and seem useful and harmless:
R> matrix(1,ncol=1)%*%c(1,2)
Error in matrix(1, ncol = 1) %*% c(1, 2) : non-conformable arguments
R> matrix(1,ncol=1)*(1:2)
Error: dim<- length of dims do not match the length of object
Thomas Lumley
-----------------------------------------------------+------
Biostatistics : "Never attribute to malice what :
Uni of
1997 Apr 28
1
R-alpha: R-beta:matrix & vector multiplication.
Both of these used to work and seem useful and harmless:
R> matrix(1,ncol=1)%*%c(1,2)
Error in matrix(1, ncol = 1) %*% c(1, 2) : non-conformable arguments
R> matrix(1,ncol=1)*(1:2)
Error: dim<- length of dims do not match the length of object
Thomas Lumley
-----------------------------------------------------+------
Biostatistics : "Never attribute to malice what :
Uni of
1997 Aug 27
2
R-alpha: Proposal for a new R doc source format
With help by Kurt and Martin I have written a short proposal for a new
R doc source format that should be easier to parse using, e.g.,
perl. There should be especially a clearer distinction between text
and keywords.
Here we go, please make comments, corrections, etc.
Best,
Fritz
**********************************************************
Conversion:
-----------
A perl module providing
2015 Jan 03
4
Potential cross-platform package building issue
I am using 32-bit R 3.1.2 on Windows 7.
I recently conducted an `R CMD check --as-cran` on a recently-developed
package and received only the 'New submission' note. Research on
StackOverflow and on R-devel suggested this could be ignored. I also used
devtools::build_win() and received no notes or warnings, other than the one
mentioned previously. Lastly, I conducted an `R CMD check` with
1997 Jun 23
1
R-alpha: comparing alpha and numeric
Is this behavior correct? (R 0.49 on SunOS 4.1.4)
> "a">1
TRUE
> "a"<1
FALSE
> "a"==1
FALSE
> "a">2
TRUE
> "a"<2
FALSE
(I know, this is like the old joke: "Doctor, it hurts when I do this."
"Well, don't do that!" But it might be useful to have this caught by an
error or warning message
2013 Jun 19
1
solving equations symbolically
Dear R People:
I have the following equation:
$1 - \frac{R}{100} = \frac{2y}{10000}$
and I was wondering if there was a way in R to solve for R (no pun
intended).
I'm experimenting with Ryacas, but nothing yet.
Version R-3.0.1 on Windows 7.
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto:
1997 Apr 15
1
R-alpha: Bug & Patch in dbeta.c (0.50 - PreR 7)
dbeta(1, a,b) would return 1 instead of 0.
Here is the patch for ..../src/math/dbeta.c :
--- dbeta.c~ Sun Nov 24 23:43:10 1996
+++ dbeta.c Tue Apr 15 21:25:30 1997
@@ -23,9 +23,7 @@
{
if (a <= 0.0 || b <= 0.0)
DOMAIN_ERROR;
- if (x <= 0)
+ if (x <= 0 || x >= 1.0)
return 0.0;
- if (x >= 1.0)
- return 1.0;
return MATH_CHECK(pow(x, a - 1) * pow(1.0 - x, b - 1.0) /
1997 Apr 28
1
R-alpha: R-W95
Seems to be working very nicely (and what a relief to see it actually
working!), I've found only a few problems till now:
a) Characters outside 0-0x7f seem to get encoded as CP850 or
something, not Latin 1 (æøå keys on DK keyboard gives
mu,degree,sigma).
b) Infinite recursion crashed R. (I forget details, but it was
something stupid like f<-function(x){if (x < 1) 1 else f(x)*(x-1)})
1997 Apr 30
2
R-alpha: write()
Following my posting of a write.table() function, Martin suggested that
one could have a generic write() function and special methods for
e.g. time series, data frames, etc.
Well, a month has passed since ...
What does everyone think? Is it a good idea, or would write.table() be
enough? If we think that it is not enough, which arguments should the
write methods typically allow? What about
1997 May 21
2
R-alpha: factors ...
Perhaps someone can enlighten me here:
R> x <- factor(LETTERS[1:3])
R> x
[1] A B C
R> mode(x)
[1] "factor"
R> class(x)
[1] "factor"
R> mode(unclass(x))
[1] "factor"
S-PLUS has
> x <- factor(LETTERS[1:3])
> mode(x)
[1] "numeric"
> class(x)
[1] "factor"
> mode(unclass(x))
[1] "numeric"
???
1997 May 21
1
R-alpha: Plot: Title above 'mfrow=c(2,2)' ??
In S, I can have an "overall" title in a multi-figure plot :
par(mfrow=c(2,2), oma = c(0,0,2,0))
frame() #- !
mtext("Sine Functions", cex=2, outer =T)
x_1:100
for(i in 1:4) plot(x, sin(i*pi*x/100), main=paste(i), type = 'l', col = 1+i)
In R, this doesn't work as it should, with and without the 'frame()'
statement.
((where is the bug?