Displaying 20 results from an estimated 10000 matches similar to: "unsubscribe from mailing list help!"
2013 Apr 09
3
Remove data 3 standard deviatons from the mean using R?
Hi Everyone,
I have a very long list of data-points (+2300) and i know from my histogram
that there are outliers which are affecting my mean.
I was wondering if anyone on here knows a way i can quickly get R to
calculate and remove data which is 3 standard deviations from the mean? I am
hoping this will tidy my data and give me a repeatable method of tidying for
future data collection.
2015 Jul 19
2
Building r-devel fails on Ubuntu (old and new as well)
Am 16.07.2015 um 14:08 schrieb Martin Maechler:
>>>>>> G?bor Cs?rdi <csardi.gabor at gmail.com>
>>>>>> on Thu, 16 Jul 2015 07:18:00 -0400 writes:
>
> > ...
> > making array.d from array.c
> > array.c:33:23: fatal error: duplicate.h: No such file or directory
> > compilation terminated.
> > ...
>
2020 Jun 07
7
use of the tcltk package crashes R 4.0.1 for Windows
Hi,
The following code, from the examples in ?TkWidgets , immediately crashes R 4.0.1 for Windows:
--------------------- snip --------------------
library("tcltk")
tt <- tktoplevel()
label.widget <- tklabel(tt, text = "Hello, World!")
button.widget <- tkbutton(tt, text = "Push",
command = function()cat("OW!\n"))
tkpack(label.widget,
2017 Aug 23
3
Getting all possible combinations
On 23/08/2017 6:25 PM, Bert Gunter wrote:
> Doesn't sort by size of subgroup. I interpret the phrase I asterisked as:
You were fooled by Peter's tricky single negative.
Duncan Murdoch
>
> Your code does the following:
>
> First subsets of size 1 are given.
> Then all subsets of size 2.
> Then all subsets of size 3.
> etc.
>
> Your code does not do this
2019 Jul 05
3
CRAN down ?
There seems to be another outage of the Vienna CRAN server [1] though from
what I can from afar not related to DNS outage [2].
Could anyone confirm and possibly alert the local team in Vienna?
Dirk
[1] https://twitter.com/d_olivaw/status/1147161883797086214
[2] The DNS resolves on a few sites but eg simple pings stall
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
2013 Mar 30
2
R/Sweave/cairo/freetype bug fix.
The problem was first seen with R/Sweave (#c0) then reproduced directly with cairo (#c10) and was eventually traced to freetype. The 5-part bug fix:
610ee58e07090ead529849b2a454bb6c503b4995
da11e5e7647b668dee46fd0418ea5ecbc33ae3b2
e1a2ac1900f2f16ec48fb4840a6b7965a8373c2b
869fb8c49ddf292d6daf4826172a308973d3e11f
d56e544d653b09c657911629557ffc5277a503e3
was committed to freetype in January and will
2013 Mar 30
2
R/Sweave/cairo/freetype bug fix.
The problem was first seen with R/Sweave (#c0) then reproduced directly with cairo (#c10) and was eventually traced to freetype. The 5-part bug fix:
610ee58e07090ead529849b2a454bb6c503b4995
da11e5e7647b668dee46fd0418ea5ecbc33ae3b2
e1a2ac1900f2f16ec48fb4840a6b7965a8373c2b
869fb8c49ddf292d6daf4826172a308973d3e11f
d56e544d653b09c657911629557ffc5277a503e3
was committed to freetype in January and will
2011 Jul 05
4
if else lop
I am trying to use if...else loop and have included a code snippet which I
might like to expand.
Maybe you could steer me in the right direction.
library(stats)
library(prob)
{
a <- sample ( 1:4,100, replace=T,prob=c(0.1,0.2,0.5,0.3))
b<-sample(3:6,100,replace=T,prob=c(0.2,0.2,0.2,0.4))
}
dd <- data.frame(a,b)
if (subset finds a vector) ( print that vector)
(else
2013 Aug 27
1
return the name of source.
Is there a fuction that will allow me to retrun the filename for a script
from within that script.
fir instance
If I have a script "myscript.r":
FileName<-unknown.fucntion()
print(FileName)
and run it
source("myscript.r")
will return
"myscript.r"
Thanks
Nevil Amos
[[alternative HTML version deleted]]
2016 Mar 10
3
rmultinom.c error probability not sum to 1
Hi all,
I should have given a better explanation of my problem. Here it is.
I extracted from my code the bit that gives the error. Place this in a file called test.c
#include <math.h>
#include <R.h>
#include <Rmath.h>
#include <float.h>
#include <R_ext/Print.h>
int main(){
double prob[3] = {0.0, 0.0, 0.0};
double prob_tot = 0.;
prob[0] = 0.3*dnorm(2, 0,
2016 Feb 27
3
Unable to Install Packages from Binaries on Windows for R 3.2.3
Installing packages from binaries on Windows seems broken, when using
mirrors that are up to date with CRAN
install.packages(
'httr',
type = 'binary',
repos = "https://cran.rstudio.com/"
)
Changing repos to the Kansas CRAN mirror installs the package as expected,
but that could be because the KS mirror has not yet synced.
Someone pointed out that the PACKAGES.gz
2017 May 16
3
stopifnot() does not stop at first non-TRUE argument
switch(i, ...)
extracts 'i'-th argument in '...'. It is like
eval(as.name(paste0("..", i))) .
Just mentioning other things:
- For 'n',
n <- nargs()
can be used.
- sys.call() can be used in place of match.call() .
---------------------------
>>>>> peter dalgaard <pdalgd at gmail.com>
>>>>> on Mon, 15 May 2017 16:28:42
2012 Jul 30
3
cannot install RSTAR, MSVAR, and MSVECM packages
*Hi all,
I got problems installing RSTAR, MSVAR, and MSVECM packages. *
> install.packages("RSTAR")Installing package(s) into ‘C:/Program Files/R/R-2.15.1/library’
(as ‘lib’ is unspecified)Warning in install.packages :
package ‘RSTAR’ is not available (for R version 2.15.1)
> install.packages("MSVAR") Installing package(s) into ‘C:/Program
Files/R/R-2.15.1/library’
2011 Nov 12
2
cygwin R-2.14.0 build fail
I tried to build R-2.14.0 on cygwin using the commands:
./configure --with-x=no
make
I started to get a whole lot of errors starting with:
/cygdrive/c/Users/mcarter/src/R-2.14.0/src/modules/internet/Rhttpd.c:275: undefined reference to `_R_InputHandlers'
which I have pasted at
http://pastebin.com/GFb2pq92
I'm aware that there is a cygwinports ports, but it seems outdated, and when I
2017 Nov 07
2
Using MLE on a somewhat unusual likelihood function
So I am trying to use the mle command (from stats4 package) to estimate a
number of parameters using data but it keeps throwing up this error message:
Error in solve.default(oout$hessian) :
Lapack routine dgesv: system is exactly singular: U[1,1] = 0
This error sometimes indicates that the list of starting values is too far
from optimum but this is unlikely since I picked values close to where
2017 May 15
3
stopifnot() does not stop at first non-TRUE argument
I think Herv?'s idea was just that if switch can evaluate arguments selectively, so can stopifnot(). But switch() is .Primitive, so does it from C.
I think it is almost a no-brainer to implement a sequential stopifnot if dropping to C code is allowed. In R it gets trickier, but how about this:
Stopifnot <- function(...)
{
n <- length(match.call()) - 1
for (i in 1:n)
{
nm
2016 Feb 19
2
should `data` respect default.stringsAsFactors()?
Aha... Hadn't noticed that stringsAsFactors only works via as.is in read.table.
Yes, the doc should probably be fixed. The code probably not -- packages loading different data sets depending on user options is an even worse idea than hav?ng the option in the first place... (I don't mean having the possibility, I mean the default.stringsAsFactor thing).
In general, read.table() gets
2017 Jun 26
2
Odd behaviour in within.list() when deleting 2+ variables
>>>>> peter dalgaard <pdalgd at gmail.com>
>>>>> on Mon, 26 Jun 2017 13:43:28 +0200 writes:
> This seems to be due to changes made by Martin Maechler in
> 2008. Presumably this fixed something, but it escapes my
> memory.
Yes: The change set (svn -c46441) also contains the following NEWS entry
BUG FIXES
o
2019 Jun 25
3
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
**Maybe this bug needs to be understood further before applying the
patch because patch is most likely also wrong**
Because, from just looking at the expressions, I think neither the R
3.6.0 version:
omittedSig <- omittedSig && (signature[omittedSig] != "missing")
nor the patched version (I proposed):
omittedSig <- omittedSig & (signature[omittedSig] !=
2012 Feb 21
5
help error: In dweibull(x, shape, scale, log) : NaNs produzidos
Guys,
I'm having an error when I use the command:
library(MASS)> dados<-read.table("inverno.txt",header=FALSE)> vento50<-fitdistr(dados[[1]],densfun="weibull")Mensagens de aviso perdidas:1: In dweibull(x, shape, scale, log) : NaNs produzidos2: In dweibull(x, shape, scale, log) : NaNs produzidos3: In dweibull(x, shape, scale, log) : NaNs produzidos4: In