Looks like it is not exported from the package namespace... a packaging error.
--
Sent from my phone. Please excuse my brevity.
On May 28, 2017 1:53:29 PM PDT, Rui Barradas wrote:
>Hello,
>
>Can anyone explain why this error?
>
> > library(splines)
> >
> > knots <- c(6, 12, 22, 30, 35)
> > x <-
Hello,
Can anyone explain why this error?
> library(splines)
>
> knots <- c(6, 12, 22, 30, 35)
> x <- c(0.0, .25, 1.0, 2.0, 3.0)
> SCurve <- bs(x = x, knots = knots, intercept = FALSE, Boundary.knots
= c(0,3.5))
> class(SCurve)
[1] "bs" "basis" "matrix"
>
> ?predict.bs
> predict.bs(SCurve
This is the function in plain text because it looked messy before:
VaRfun <- function(x, lambda = 0.94) {
#create data.frame and order returns such that the lates return is the first
df <- data.frame(weight = c(1:length(x)), return = rev(x))
K <- nrow(df)
constant <- (1-lambda)/(1-lambda^(K
On 2017-05-28 8:16 PM, Erin Hodgess wrote:
I have actually just figured it out with some help from a JS website . Was
going to post the solution but maybe I shouldn't ?
Have you considered contacting them and asking at
"https://spotcrime.com/contact.php";?
The web site does
I have actually just figured it out with some help from a JS website . Was
going to post the solution but maybe I shouldn't ?
Sent from my iPhone
> On May 28, 2017, at 7:51 PM, Robert Sherry wrote:
>
> Erin,
>
> I do not think there is an R package that will enable you to get the data you
Erin,
I do not think there is an R package that will enable you to get the
data you would like from spotcrime.com.
You could write code, in R, or some other language, to extract the data
you want but that is going to be a changeling task and if
the website changes its format then your code m
1. Always cc the list, which I have done here (unless you want to say
something that truly should be private).
2. Ahh... I see. I don't believe you can do it using auto.key, which
feeds it's list to the simpleKey() function: the price you pay for
keeping it simple is that you lack fine control ove
Sorry!!!
It's spotcrime.com, and I would like to use it via R for crimes.
On Sun, May 28, 2017 at 2:19 PM, Jeff Newmiller
wrote:
> Can you please be just a little less vague? What API are you talking
> about, and how is this related to R?
> --
> Sent from my phone. Please excuse my brevity.
>
Can you please be just a little less vague? What API are you talking about, and
how is this related to R?
--
Sent from my phone. Please excuse my brevity.
On May 28, 2017 11:48:42 AM PDT, Erin Hodgess wrote:
>Hello!
>
>I would like to use a particular API for crimes (spot crimes) but I
>can't
>
Hello!
I would like to use a particular API for crimes (spot crimes) but I can't
find what components go into the API. I have gone into the website,but to
no avail
Has anyone used it please?
Thank you,
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Mathematical and Statist
Hallo Lorenzo,
In addition to Berts advice
try
> trellis.par.get("superpose.symbol")
which shows the default for superposed graphics
and set them with the par.settings parameter
> dotplot(VADeaths, type = "o",
+ auto.key = list(lines = TRUE, space = "right"),
+ main = "Death Rates in Virginia - 19
You will get better help if you read the Posting Guide mentioned at the foot if
every posting including this one carefully and pay attention.
A) You need to post in plain text, as your code came through the mailing list
damaged.
B) You need to include sample data and make your code run from a
(forgot to cc the list!)
-- Bert
-- Forwarded message --
From: Bert Gunter
Date: Sun, May 28, 2017 at 9:41 AM
Subject: Re: [R] Spacing Between Elements in Lattice Legend
To: Lorenzo Isella
See the "border" and "lwd" arguments in ?panel.barchart (checking the
panel function h
Hello,
Since function splines::bs returns an object of class bs in order to
read the help page for function predict you need
?predict.bs
The syntax would be
## S3 method for class 'bs'
predict(object, newx, ...)
Please read that help page and maybe you'll get the answer you need.
Hope this
This is exactly what I want. However, with my function it produces a vector of
NAs ...
Gabor Grothendieck schrieb am 16:23 Sonntag, 28.Mai
2017:
Maybe you want this.It computes VaRfun(r[c(i-500, i-1)] for each i for
which the argument to r makes sense.
rollapply(r, width = list(c(-500, -1)
If is specify a spline basis as follows
knots <- c(6, 12, 22, 30, 35)
x <- c(0.0, .25, 1.0, 2.0, 3.0)
SCurve <- bs(x = x, knots = knots, intercept = FALSE, Boundary.knots = c(0,3.5))
I would like to now get the spline value for new values of x. However, when I
use predict the new basis is retu
Dear All,
Please consider the short code at the end of the email.
It generates a barchart where everything is as I want, apart from some
minor tuning of the legend.
I can control the spacing between the text in the two rows of the
legend, but how do I force some separation between the red and the
Maybe you want this.It computes VaRfun(r[c(i-500, i-1)] for each i for
which the argument to r makes sense.
rollapply(r, width = list(c(-500, -1)), FUN = VaRfun),
On Sat, May 27, 2017 at 5:29 PM, Sepp via R-help wrote:
> Hello,
> I am fairly new to R and trying to calculate value at risk with ex
Dear All,
Here is a small example:
library(skmeans)
library(tm)
data("crude")
#Examine the first document
inspect(crude[[1]])
dtm <- DocumentTermMatrix(crude, control =
list(removePunctuation = TRUE,
removeNumbers = TRUE,
This looks an awful lot like you are trying to solve for d' in an
m-alternative forced choice experiment for an unbiased observer. Try
the function dprime.mAFC from the psyphy package. For comparison with
your example, it's code is:
psyphy:::dprime.mAFC
function (Pc, m)
{
m <- as.intege
20 matches
Mail list logo