Hello William,
that's exactly what I needed. I didn't consider lapply'ing over
seq_along(data) instead of data, very useful.
Thanks a lot!
Giovanni
On Mon, Aug 14, 2017 at 10:02 PM, William Dunlap wrote:
> You could replace your 'depth' argument with one that shows where in
Carlos, nuevamente muchas gracias, la solución que me diste quedó con una
pequeña modificación; usé rowsum(x) en lugar de sum.
Me quedan unas dudas:
a) Los resultados me quedan en columnas y no en renglones ??.
b) Me da 'Error in rowsum.default(x) el argumento "group" está ausente,
sin valor por
Your example is not easily reproducible.
The REBayes requires Rmosek which requires a system command MOSEK.
Please try again with an example using data in base R.
Meanwhile, my guess is that you will need to do something like
explicitly specifying xlim and ylim so all panels have the same
limits.
Allaisone 1 allaisone1 at hotmail.com
Mon May 22 02:10:10 CEST 2017
Hi All—
I am curious as to whether there is a vectorized solution using base R
functions, instead of looping and if statements, to the problem below. I
have seen several posts that address a similar question which generally ask
I am trying to do some comparisons of density estimators using lattice.
The code below attempts to plot the same histogram in each panel and
then overplots a kernel estimate with different bandwidths. Finding
packet.number() was a bit arduous, but seems to do what I want. My
concern now is that
On 14/08/2017 2:18 PM, Huzefa Khalil wrote:
Hi Martin,
The corrected function would be
RANDU <- function(num) { return ((65539*num)%%(2^31)) }
You forgot the brackets for the return function.
Hence, what was returned was always (65539 * num)
Yes, this is one disadvantage of having a return
You could replace your 'depth' argument with one that shows where in the
original data you are at:
leaf.func <-
function(data, where) {
if(is.null(data)) stop("Null data at ", deparse(where))
return(mean(data))
}
visit.level <-
function(data, where = integer()) {
if
Thank you Hadley. This was so close, but actually the other way around: I
uninstalled the latest rlang v0.1.2 from ~10 Aug and reinstalled v 0.1.1, now
everything runs smoothly. -J
-Original Message-
From: Hadley Wickham [mailto:h.wick...@gmail.com]
Sent: Monday, 14 August, 2017
This is for the problem I posted about last Friday.
First, the happy part, a workaround:
$ cd ~/R/x86_64-redhat-linux-gnu-library/3.4
$ ln -sf /usr/share/R/library/* .
After that, all of the packages are found by R CMD check. R CMD check
looks in the ~/R/x86_64-redhat-linux-gnu-library/3.4
Hi, and sorry for asking such an unspecific question.
Does anybody know of statistical / data mining methods that are available in R
that are not in SAS ? With SAS I mean the SAS System Version 9.4 and SAS
Enterprise Miner. I don't expect a complete list, just two or three examples
or hints
Hello,
I'm writing a program that takes a tree in input (nested lists) and
returns a copy of it replacing the leaves with something else (eg: a
computation done on the original leaves).
In the example below, the tree is composed by countries and cities,
and the leaves (children of the cities) are
Hola,
Esta es una forma
#
myfun <- function(x) {
val_sum <- sum(x)
x_avg <- x/val_sum
return(x_avg)
}
datOut <- apply(datIn, 1, myfun)
#
Saludos,
Carlos Ortega
www.qualityexcellence.es
El 14 de agosto de 2017, 5:31, Jorge I Velez
Please look at ?datasets::randu
for David Donoho's translation of RANDU into R.
On Mon, Aug 14, 2017 at 12:49 PM, Martin Møller Skarbiniks Pedersen
wrote:
> Dear all,
>
> I am trying to learn functions in R and 3D plotting so I decided to try
> to plot
> the famous bad
The most likely explanation is you have a new version of dplyr/tibble
and an old version of rlang. Try re-installing rlang.
Hadley
On Mon, Aug 14, 2017 at 9:26 AM, Szumiloski, John
wrote:
> UseRs,
>
> When doing some data manipulations using the tidyverse, I am
> On Aug 14, 2017, at 11:10 AM, David Winsemius wrote:
>
>
>> On Aug 14, 2017, at 8:37 AM, Szumiloski, John
>> wrote:
>>
>> Thanks for the feedback Jeff. Before I pursue a bug report, let me give a
>> full example:
>>
>> ## begin
Hi Martin,
The corrected function would be
RANDU <- function(num) { return ((65539*num)%%(2^31)) }
You forgot the brackets for the return function.
Hence, what was returned was always (65539 * num)
On Mon, Aug 14, 2017 at 12:49 PM, Martin Møller Skarbiniks Pedersen
Dear all,
I am trying to learn functions in R and 3D plotting so I decided to try
to plot
the famous bad PRNG Randu from IBM(1).
However something is not correct in the function I have created.
First I define the function RANDU like this:
> RANDU <- function(num) { return
> On Aug 14, 2017, at 8:37 AM, Szumiloski, John wrote:
>
> Thanks for the feedback Jeff. Before I pursue a bug report, let me give a
> full example:
>
> ## begin console output
>
> R version 3.4.1 (2017-06-30) -- "Single Candle"
> Copyright (C) 2017 The R
> On Aug 14, 2017, at 10:49 AM, David Winsemius wrote:
>
>
>> On Aug 14, 2017, at 5:17 AM, peter dalgaard wrote:
>>
>>
>>> On 14 Aug 2017, at 13:43 , Spencer Graves
>>> wrote:
>>>
>>>
>>>
>>> On 2017-08-14
Ya vi la ayuda de rowMeans, y no quiero la media de una fila, sino la media
de cada elemento de la fila; es decir el promedio de ContaC[1,1] que vale
23, y, cómo la suma de la fila ContaC[1,] vale 134 el promedio es 0.1716 y
si nos referimos a ContaC[1, 3] entonces el promedio sera el resultado
> On Aug 14, 2017, at 5:17 AM, peter dalgaard wrote:
>
>
>> On 14 Aug 2017, at 13:43 , Spencer Graves
>> wrote:
>>
>>
>>
>> On 2017-08-14 5:53 AM, peter dalgaard wrote:
On 14 Aug 2017, at 10:13 , Troels Ring
Thanks for the feedback Jeff. Before I pursue a bug report, let me give a full
example:
## begin console output
R version 3.4.1 (2017-06-30) -- "Single Candle"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: i386-w64-mingw32/i386 (32-bit)
R is free software and
On Mon, Aug 14, 2017 at 5:29 AM, wrote:
Dear all
>
> I'm a newbie regarding netcdf data. Today I realized that I maybe do not
> understand some basics of the netcdf. I want to create a *.nc file
> containing three variables for Switzerland. All data outside of
This sounds an awful lot like a bug. Read the Posting Guide to know what to do
about bugs. And delaying making the reprex is _always_ a bad idea.
--
Sent from my phone. Please excuse my brevity.
On August 14, 2017 7:26:32 AM PDT, "Szumiloski, John"
wrote:
>UseRs,
>
UseRs,
When doing some data manipulations using the tidyverse, I am repeatedly getting
the same error message in now three separate situations. I can write up a
reproducible example, but want to lay out the high-level issues in case someone
recognizes exactly what is happening here.
The
> I have 204 "baskets" of three types corresponding to factor F, each of size
> from 2 to 33 containing measurements, and need to know if the standard
> deviation on the measurements in each basket,sdd, is different across
> types, F.
If you're just trying to confirm that there is a difference
Dear all
I'm a newbie regarding netcdf data. Today I realized that I maybe do not
understand some basics of the netcdf. I want to create a *.nc file containing
three variables for Switzerland. All data outside of the country are NAs. The
third variable is calculated from the first two
> On 14 Aug 2017, at 13:43 , Spencer Graves
> wrote:
>
>
>
> On 2017-08-14 5:53 AM, peter dalgaard wrote:
>>> On 14 Aug 2017, at 10:13 , Troels Ring wrote:
>>>
>>> Dear friends - I hope you will accept a naive question on lm: R version
On 2017-08-14 5:53 AM, peter dalgaard wrote:
On 14 Aug 2017, at 10:13 , Troels Ring wrote:
Dear friends - I hope you will accept a naive question on lm: R version 3.4.1,
Windows 10
I have 204 "baskets" of three types corresponding to factor F, each of size from 2 to 33
> On 14 Aug 2017, at 10:13 , Troels Ring wrote:
>
> Dear friends - I hope you will accept a naive question on lm: R version
> 3.4.1, Windows 10
>
> I have 204 "baskets" of three types corresponding to factor F, each of size
> from 2 to 33 containing measurements, and need to
I think, I succeeded in doing it with Hershey fonts:
plot(0,0,xlim=c(0,2),ylim=c(0,2))
text(1,1,"\\#H2380",vfont=c("serif", "plain"))
This is ok now!
Atte T.
14.8.2017, 9.16, Atte Tenkanen kirjoitti:
Hi,
I would like to draw some Unicode symbols like G- and f-clefs (used in
music
Buenas,
lo más sencillo si lo estás corriendo en Linux, puedes usar el comando htop
en la consola para ver todos los procesadores de tu máquina y ver si están
ejecutando trabajos. En windows (yo tengo 7, pero 10 creo que será igual)
puedes abrir el monitor de recursos y activar la pestaña de CPU,
Dear friends - I hope you will accept a naive question on lm: R version
3.4.1, Windows 10
I have 204 "baskets" of three types corresponding to factor F, each of
size from 2 to 33 containing measurements, and need to know if the
standard deviation on the measurements in each basket,sdd, is
Hi,
I would like to draw some Unicode symbols like G- and f-clefs (used in
music notation) in quartz-window. I succeed in producing sharp #,:
plot(0,0,xlim=c(0,2),ylim=c(0,2))
points(1,1, pch="\u266F",cex=2)
But for instance "b" (flat accidental) u266D and those clefs doesn't
work. G-clef
Hi
The error does not come from ggplot but from factor function.
factor(as.name(varnames[2]))
Error in unique.default(x, nmax = nmax) :
unique() applies only to vectors
>
If you does not intend to use facet it is easier to use aes with column numbers
and annotate from names
like
ggplot(df,
Hi
Yes that is exactly from where I found sec_axis example.
ggplot(mpg, aes(displ, hwy)) +
geom_point() +
scale_y_continuous(
"mpg (US)",
sec.axis = sec_axis(~ . * 1.20, name = "mpg (UK)")
)
which works if used as intended
p1<-ggplot(df,aes(x,y))+geom_point()+
scale_x_log10(
36 matches
Mail list logo