Hi Naresh
Try
xyplot(y + y.fit ~ x | name, data = my.df,
type = c("p","l"),
distribute.type = TRUE,
panel = panel.superpose
)
Your code seems to be a direct copy from the command line; sometimes it
makes it clearer to arguments and functions within the panel function
On Oct 4, 2015, at 7:39 PM, Duncan Murdoch wrote:
> You'll get what you want if you use as.matrix(datentabelle)[,1]
> instead of datentabelle[,1].
This happens to work in this particular case, but fails if the data frame
contains text columns.
Example:
datentabelle
In line
On 03/10/2015 23:56, Steven Yen wrote:
Thanks Bill. Simplified content of max.calls.R (with repeated calls to
maxLik removed) are shown below in the message. No, fn does not exist in
the environment.
Which explains why R cannot find it.
I call a routine (say probit.R compiled into a
It is likely you have some list structure you should not.
Check the class of the elements of your matrixes, to see if any list class
shows up.
Not clear from your code what is "y" passed to densregion(..).
Anyway, one way to reproduce your error is the following:
# this does not work
> a <-
I need to estimate the density from the other time series, similarly to what
denstrip does (however, I need a whole region, and not just a strip).
This is my updated example, where I tried to estimate the density from my
bootstrapped projections using density() - as in denstrip:
Hola Jos� si importas el archivo csv ver�s que hay columnas que tienes
valores num�ricos y caracteres, por ejemplo Costa Rica. Adem�s debes
modificar la importaci�n para que te tome los valores num�ricos dec=","
. En una palabra abre el fichero csv con excel y encolumna adecuadamente
las
Does the following pattern resemble what you have?
Here are a couple of functions that use the same code for finding the
location of the minimum of a function fn:
f1 <- function(x) {
fn <- function(beta) {
sum((x-beta)^2)
}
argMinFn <- function() {
Hi guys,
I ran ca.jo(data,type="trace", ecdet="none",k=2) i.e. Johansen's Trace test
on R-Studio (package: "urca")and got the output below:
I have 3 questions about this:
A> How do I programmatically access the columns("test", "10pct" etc) in any
row corresponding to, say, r < = 1 in the
Dear Madam/Sir,
I am trying to understand R and I have come to a stumbling block. i
have written:
>Empl <- list(employee="Anna",family=list(spouse="Fred",children=3,
+child.ages=c(4,7,9)),employee="John",family=list(spouse="Mary",children=2,
+child.ages=c(14,17)))
>Empl[c(2,4)]$family$spouse
lists in R can have multiple elements with the same name but if you
try and access elements by name you only get the first.
For example:
> a = list(x=99, x=23, x=456)
> a$x
[1] 99
Its just the way it is.
Note you might find the `str` function useful to see the structure of R objects:
>
You need to break down your expression into parts and see what the data is:
> Empl[c(2,4)]
$family
$family$spouse
[1] "Fred"
$family$children
[1] 3
$family$child.ages
[1] 4 7 9
$family
$family$spouse
[1] "Mary"
$family$children
[1] 2
$family$child.ages
[1] 14 17
> Empl[c(2,4)]$family #>>
On Oct 4, 2015, at 11:31 AM, FERNANDO MANSITO CABALLERO wrote:
> Dear Madam/Sir,
>
> I am trying to understand R and I have come to a stumbling block. i
> have written:
>
>> Empl <- list(employee="Anna",family=list(spouse="Fred",children=3,
>
Good question.
> str(Empl[c(2,4)])
List of 2
$ family:List of 3
..$ spouse: chr "Fred"
..$ children : num 3
..$ child.ages: num [1:3] 4 7 9
$ family:List of 3
..$ spouse: chr "Mary"
..$ children : num 2
..$ child.ages: num [1:2] 14 17
>
> Empl[c(2,4)][1]
$family
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On 04/10/2015 3:31 PM, Jutta Wrage wrote:
> Hi!
>
> According to this I tried to create a barplot:
>
> https://de.wikibooks.org/wiki/GNU_R:_barplot
>
> Input Data (Tab delimeted)
>
> Range Anzahl Prozent 36-40 12 1.92 41-45 21
Hi!
According to this I tried to create a barplot:
https://de.wikibooks.org/wiki/GNU_R:_barplot
Input Data (Tab delimeted)
Range Anzahl Prozent
36-40 12 1.92
41-45 21 3.36
46-50 48 7.68
51-55 87 13.92
56-60 92 14.72
61-65 131 20.96
66-70 67
15 matches
Mail list logo