Displaying 20 results from an estimated 3000 matches similar to: "web address for R-project"
2023 Mar 09
1
web address for R-project
? Thu, 9 Mar 2023 14:43:49 +0100
G?ran Brostr?m <gb at ehar.se> ?????:
> Is it someone's mirror (authorized) of R-project?
It's not currently in the official list of mirrors [*], but anyone can
create a CRAN mirror for their own needs as long as they don't overload
the CRAN master site: https://cran.r-project.org/mirror-howto.html
NexR call themselves a "total data
2002 Feb 20
3
Pointer to covariates?
In the first line, use the dist function, found in library mva,
to get the distance between each pair of rows. From this
calculate an incidence matrix for which element i,j is true if
row i in dat equals row j in dat (and false elsewhere).
In the second line, for each row calculate the indices of
the matching rows and take the minimum of those as the key.
incid <-
2020 Jul 15
2
Openblas?
On 2020-07-15 14:36, Dirk Eddelbuettel wrote:
>
> G?ran,
>
> This is not an easy email to reply to because it _contains nothing
> reproducible_.
Thanks Dirk,
Sorry about that, but my real question was (see below): "Is the problem
that openblas uses C versions of blas?" That is, do I need to change
F77_CALL(name)(...);
to
cblas_name(...);
everywhere? And if so, is
1999 Dec 07
4
Finding indices with a certain property
I want the indices i for which x[i] < 0 (say):
> x <- c(1, -1, 3, 3, -2)
> where.negative(x)
[1] 2 5
Surely where.negative is something simple, but how?
G?ran
--------------------------------------------------------------
G?ran Brostr?m
Department of Statistics tel: +46 90 786-5223
Ume? University fax: +46 90 786-6614
S-90187 Ume?, Sweden
2023 Feb 01
1
Detpack package
Hello I've successfully installed the package "Detpack" and remembered to
call it via library() But when I try to use the functions i get this:
chi2testuniform(vals, 0.05)
Error in chi2testuniform(vals, 0.05) :
could not find function "chi2testuniform"
And yet this function (amongst other which also are not recognised) are all
listed on the CRAN page:
2012 Sep 20
1
SQL query with Multicore option on R -linux
Hi all,
I have the following sql query that I am executing on a machine with single
core. I want to know how can I execute the same sqery on a maching that is
running with 4 cores. Please provide me the code.
NEW_TABLE <- rhive.query("SELECT A, B, COUNT(C) FROM TABLE_A WHERE
A>='01-01-2012'")
Also let me know how can I leverage only 2 / 3 cores of the machine.
2003 Jun 07
2
Ordering long vectors
I need to order a long vector of integers with rather few unique values.
This is very slow:
> x <- sample(rep(c(1:10), 50000))
> system.time(ord <- order(x))
[1] 189.18 0.09 190.48 0.00 0.00
But with no ties
> y <- sample(500000)
> system.time(ord1 <- order(y))
[1] 1.18 0.00 1.18 0.00 0.00
it is very fast!
This gave me the following idea: Since I don't care
2005 Aug 19
2
Handling dates
I have a problem with some functions handling dates, in packages 'date' and
'survival' (they seem to be identical). For instance, from the documentation,
--------------------
mdy.date {survival}
R Documentation
Convert to Julian Dates
Description
Given a month, day, and year, returns the number of days since January 1, 1960.
Usage
mdy.date(month, day, year, nineteen = TRUE,
2011 Sep 09
2
get and save
I have a data frame 'tmp' and a vector 'name' containing 'd2'.
I want to save 'tmp' under the name hidden in 'name', and the file must have
the same name, plus the extension '.rda'.
So I try
> tmp
x y
1 1 3
2 2 4
> name
[1] "d2"
> assign(name, tmp)
> summary(get(name))
x y
Min. :1.00 Min. :3.00
1st
2023 Apr 06
1
"prob" package alternative
>>>>> peter murage
>>>>> on Tue, 4 Apr 2023 06:24:56 +0000 writes:
> Which package in R replaced package prob?
Well, if you google that you should quickly be lead to
(something I even think makes sense to memorize as "rule"
package=<pkg> ) :
https://CRAN.R-project.org/package=prob
which now says that the package was archived as it
2016 Apr 15
1
help on moving data from local to HDFS using RODBC in R
Hi,
I have requirement to move the data from Linux local path( ex
/home/user/sample.txt) to hadoop HDFS using RODBC in R
I knew that we can move the data using rhive comamnds like *rhive.put*
and *rhive.get
*but looking for similar commands using RODBC as well.
I would appreciate for your inputs.
Regards,
Divakar
Phoenix, USA
[[alternative HTML version deleted]]
2024 May 16
1
Extracting values from Surv function in survival package
Hi Dennis,
look at the help page for summary.survfit, the Value n.event.
G?ran
On 2024-05-15 22:41, Dennis Fisher wrote:
> OS X
> R 4.3.3
>
> Colleagues
>
> I have created objects using the Surv function in the survival package:
>> FIT.1
> Call: survfit(formula = FORMULA1)
>
> n events median 0.95LCL 0.95UCL
>
2002 Oct 08
2
Frailty and coxph
Does someone know the rules by which 'coxph' returns 'frail', the
predicted frailty terms? In my test function:
-----------------------------------------------
fr <- function(){
#testing(frailty terms in 'survival'
require(survival)
dat <- data.frame(exit = 1:6,
event = rep(1, 6),
x = rep(c(0, 1), 3),
2002 Oct 17
2
'text' can't find "x"
I wanted to add some text to a plot and got (R-1.6.0, Linux):
> text(x = c(1, 4), y = 5, labels = x)
Error in text.default(x = c(1766, 1895), y = 5, labels = x) :
Object "x" not found
With the default value of 'labels':
> text(x = c(1, 2), y = 5, labels = seq(along = x))
Error in seq(along = x) : Object "x" not found
A scoping bug? :)
But
>
2011 May 02
3
ID parameter in model
Hello,
I am apparently confused about the use of an id parameter for an event
history/survival model, and why the EHA documentation for aftreg does
not specify one. All assistance and insights are appreciated.
Attempting to specifiy an id variable with the documentation example
generates an "overlapping intervals" error, so I sorted the original
mort dataframe and set subsequent entry
2014 Aug 04
6
[hivex] Segfault for an integer value to node_set_value
Hi,
When an integer argument is passed as value, node_set_value
segfaults. Reproducer is at the end of this message
The backtrace points at hivex-py.c, function get_value. While obj
is non-NULL, `bytes = PyUnicode_AsUTF8String (obj);` returns NULL.
Kind regards,
Peter
https://lekensteyn.nl
#!/usr/bin/env python3
import hivex, sys
h = hivex.Hivex(sys.argv[1])
print(h)
val = {
2014 Aug 16
7
[hivex] [PATCH 0/6] Python fixes for node_set_value
Hi,
This patch series is based on a prior patch[1], splitting off changes as
requested and incorporating feedback from Richard Jones. It introduces type
validation to avoid segmentation faults (instead, it reports an exception) and
fixes handling of the bytes type in Python 3.
Major changes since that series:
- Drop newly introduced support for integer types for DWORD/QWORDS
- Reject Unicode
2016 Feb 18
1
default destfile in download.file()
A nice default value for the `destfile` argument in download.file() would
be `basename(url)` i.e. the name of the downloaded file. This would
correspond to default behavior in many other web/ftp clients and makes code
slightly more concise:
download.file("https://svn.r-project.org/R/trunk/doc/CRAN_mirrors.csv")
mirrors <- read.csv("CRAN_mirrors.csv")
[[alternative
2013 Oct 16
2
How to obtain restricted estimates from coxph()?
Hello,
I'm trying to use coxph() function to fit a very simple Cox proportional
hazards regression model (only one covariate) but the parameter space is
restricted to an open set (0, 1). Can I still obtain a valid estimate by
using coxph function in this scenario? If yes, how? Any suggestion would be
greatly appreciated. Thanks!!!
[[alternative HTML version deleted]]
2005 Mar 30
1
Mistype in CRAN mirror list(doc/CRAN_mirrors.csv) (PR#7759)
Full_Name: Masafumi OKADA
Version: 2.0.1
OS: Windows
Submission from: (NULL) (130.158.158.65)
In the list of CRAN mirrors($R_HOME/doc/CRAN_mirrors.csv), I found a mistyping.
Mirror in University of Tsukuba is described as "Tsukaba", not "Tsukuba".
I know "Tsukuba" is correct, because I'm webmaster of this mirror :-)
Current:
"Japan