Displaying 20 results from an estimated 123 matches for "mayin".
Did you mean:
main
2008 Mar 17
4
How does one do simple string concatenation?
...ts c("a","b","c") and "d" into "abcd"?
> paste(c("a","b","c"), "d")
of course yields
[1] "a d" "b d" "c d"
--
Ajay Shah http://www.mayin.org/ajayshah
ajayshah at mayin.org http://ajayshahblog.blogspot.com
<*(:-? - wizard who doesn't know the answer.
2004 Mar 01
6
Find out the day of week for a chron object?
...eat them differently. So I need to run
the day.of.week function. But day.of.week() doesn't eat a chron
object, he insists he wants m,d,y. This seems quite odd. Any idea what
I can do?
Thanks,
-ans.
--
Ajay Shah Consultant
ajayshah at mayin.org Department of Economic Affairs
http://www.mayin.org/ajayshah Ministry of Finance, New Delhi
2008 Mar 18
3
Puzzled at generating combinations
...ata frame:
r1 R1
r1 R2
r1 R3
r2 R1
r2 R2
r2 R3
r3 R1
r3 R2
r3 R3
How would I go about doing this? I'm sure there's a clean way to do it
but I find myself thinking in loops.
--
Ajay Shah http://www.mayin.org/ajayshah
ajayshah at mayin.org http://ajayshahblog.blogspot.com
<*(:-? - wizard who doesn't know the answer.
2006 Mar 06
3
Interleaving elements of two vectors?
...c(x[1], y[1], x[2], y[2], x[3], y[3], x[4], y[4], x[5], y[5])
I couldn't think of a clever and general way to write this. I am aware
of gdata::interleave() but it deals with interleaving rows of a data
frame, not elems of vectors.
--
Ajay Shah http://www.mayin.org/ajayshah
ajayshah at mayin.org http://ajayshahblog.blogspot.com
<*(:-? - wizard who doesn't know the answer.
2008 Mar 07
4
Reading microsoft .xls format and openoffice OpenDocument files
...t openoffice is
gpl. I hunted a bit and couldn't find any. Does someone know how we
might approach this?
Am I correct in thinking that our goal is reading OpenDocument
files (http://en.wikipedia.org/wiki/OpenDocument) ?
--
Ajay Shah http://www.mayin.org/ajayshah
ajayshah at mayin.org http://ajayshahblog.blogspot.com
<*(:-? - wizard who doesn't know the answer.
2006 Jan 22
6
Making a markov transition matrix
...data.frame(prev=fixedup$state.85, new=fixedup$state.86)
)
# This is a bad method because it is hardcoded to the specific values
# of "year".
markov <- table(destination$prev.state, destination$new.state)
--
Ajay Shah http://www.mayin.org/ajayshah
ajayshah at mayin.org http://ajayshahblog.blogspot.com
<*(:-? - wizard who doesn't know the answer.
2006 Jan 26
2
Prediction when using orthogonal polynomials in regression
...mated model to do
prediction for a new set of x points e.g.
xnew <- seq(0,5,.5)
We know that the predicted values should be roughly sin(xnew). What I
don't know is: how do I use the object `d' to make predictions for
xnew?
--
Ajay Shah http://www.mayin.org/ajayshah
ajayshah at mayin.org http://ajayshahblog.blogspot.com
<*(:-? - wizard who doesn't know the answer.
2004 May 27
3
Date parsing question
How do I parse a date "yyyymmdd"? I tried asking chron(s, "ymd") but
that didn't work. Would the date parsing routines of the Date class of
1.9 grok this?
--
Ajay Shah Consultant
ajayshah at mayin.org Department of Economic Affairs
http://www.mayin.org/ajayshah Ministry of Finance, New Delhi
2008 Oct 15
2
"Heuristic optimisation"?
I wondered was people on this list felt about this article:
http://www.voxeu.org/index.php?q=node/2363
which talks about the problems of obtaining sound answers in numerical
optimisation in settings such as MLE or NLS.
--
Ajay Shah http://www.mayin.org/ajayshah
ajayshah at mayin.org http://ajayshahblog.blogspot.com
<*(:-? - wizard who doesn't know the answer.
2004 Jun 21
2
Elementary sapply question
...answers[i] = pythagorean(fixed.x, y.values[i])
}
?
I have read the sapply docs, and don't know how to tell him that the
list values that he'll iterate over "fit in" as y.values[i].
--
Ajay Shah Consultant
ajayshah at mayin.org Department of Economic Affairs
http://www.mayin.org/ajayshah Ministry of Finance, New Delhi
2007 Aug 31
2
Bugreport on integration of Sweave and latex beamer
I think I have isolated a problem with integration between Sweave and beamer.
Could you please see the file:
http://www.mayin.org/ajayshah/tmp/bugdemo.Rnw
Unfortunately, it uses some of my internal libraries, so you can't run
it. When I put it through Sweave, I get:
http://www.mayin.org/ajayshah/tmp/bugdemo.tex
which is, of course, a generic latex file which you can read and run.
When I try to use pdflatex,...
2004 Feb 19
6
R for economists (was: Almost Ideal Demand System)
Hi,
I did not find any web page about using R in economics and econometrics so
far. However, this does not mean that there is none (searching with google
for "R" and "economics" gives many pages about economics and a name like
Firstname R. Lastname on it ;-)).
Does anybody in the list does know such a web page?
If not, I will be happy if you, Ajay, could build and
2008 Mar 05
1
New data source - now how do we build an R interface?
...lked around a bit of it and I'm not able to map the resources to
predictable URLs which can then be wget. There's some javascript going
on that I'm not understanding. Perhaps someone on the mailing list can
think about this?
--
Ajay Shah http://www.mayin.org/ajayshah
ajayshah at mayin.org http://ajayshahblog.blogspot.com
<*(:-? - wizard who doesn't know the answer.
2009 Oct 17
2
How do I access with the name of a (passed) function
...# THIS DOES NOT WORK
sprintf("The %s of x is %.0f\n", s, g(x))
}
f(c(2,3,4), "median")
f(c(2,3,4), "mean")
and get the results
"The median of x is 3"
"The mean of x is 3"
--
Ajay Shah http://www.mayin.org/ajayshah
ajayshah at mayin.org http://ajayshahblog.blogspot.com
<*(:-? - wizard who doesn't know the answer.
2005 Dec 16
1
Bug in acepack (PR#2352)
...t, and cause R to crash. Acepack author and
maintainer Rob Tibshirani <tibs at utstat.toronto.edu> has been contacted
with this information. This is not a bug with R, but with acepack,
and should be closed.
Neha Pandey <neha.pandey at gmail.com>
Vikram Aggarwal <vikram at mayin.org>
--
Vikram Aggarwal: http://www.mayin.org/~aragorn/
2004 Jul 05
2
More difficulties in getting data into R
...23
> print(nrow(col4))
[1] 88746
Why might I be getting 89,323 and 88,746 obs for two files which `wc'
believes are each 89,323 lines long?
I checked, and there is no single quote or C-m in either file.
--
Ajay Shah Consultant
ajayshah at mayin.org Department of Economic Affairs
http://www.mayin.org/ajayshah Ministry of Finance, New Delhi
2005 Aug 19
1
Problem with get.hist.quote() in tseries
...t;High" "Low" "Close"
- attr(*, "tsp")= num [1:3] 33240 38582 1
- attr(*, "class")= chr [1:2] "mts" "ts"
I wonder what I'm doing wrong.
--
Ajay Shah Consultant
ajayshah at mayin.org Department of Economic Affairs
http://www.mayin.org/ajayshah Ministry of Finance, New Delhi
2009 Mar 15
1
cbind(NULL,zoo.object)?
...sage:
In merge.zoo(..., all = all, fill = fill, suffixes = suffixes, retclass = "zoo") :
Index vectors are of different classes: integer Date
Is there an easy workaround; or am I deeply confused; is there a way
out? :-)
--
Ajay Shah http://www.mayin.org/ajayshah
ajayshah at mayin.org http://ajayshahblog.blogspot.com
<*(:-? - wizard who doesn't know the answer.
2005 May 08
2
Need a factor level even though there are no observations
...2
In other words, how do I force education.man to have a factor with 3
levels - "School" "College" "Beyond" - even though there is no
observation in "Beyond".
--
Ajay Shah Consultant
ajayshah at mayin.org Department of Economic Affairs
http://www.mayin.org/ajayshah Ministry of Finance, New Delhi
2009 May 14
2
How to do a pretty panel plot?
...h are two
plots. Instead it looks like two separate plots.
* The x axis is Dates and the axis labelling doesn't get that.
How do I set about making a pretty panel plot of these two series,
both of which share a common time axis?
--
Ajay Shah http://www.mayin.org/ajayshah
ajayshah at mayin.org http://ajayshahblog.blogspot.com
<*(:-? - wizard who doesn't know the answer.