Displaying 20 results from an estimated 1000 matches similar to: "read.csv, header=TRUE but skip the first line"
2009 Jun 28
1
newbie - read.csv creates a (data.frame, table, array, matrix, ...) and plotting one column
Hi all,
Newbie alert. OK, I'm reading the help file using Ted's suggestion
of ?read.csv or ?read.table, etc., and trying to understand exactly
what R has created for me when I do the read.csv command. The overall
header says read.table creates a 'data.frame', which is fine with me
as it works, but throughout the help file I run into the words table,
matrix, array and others. Are
2006 May 17
5
Convention difference in tseries.maxdrawdown (PR#8872)
Full_Name: Brian K. Boonstra
Version: 2.2.1
OS: WinXP, OSX
Submission from: (NULL) (63.172.178.137)
The maxdrawdown function in tseries defines the maximum drawdown in terms of
absolute dollars (or whatever units the input is in). Industry convention is to
do this in percentage terms. I have written the code below as
maximumdrawdown(), which retains backward compatibility with the current
2011 Aug 23
1
Testing Specific Hypothesis
Hi All!
I am interested in testing whether the means for the data I am investigating
are equal to a specific value - let's say 0.01. I have already run a
one-way ANOVA and know that the differences in the means are not
significant, so now I want to know what values the means take on. "otestme"
is the data I am working with (it would be hard for me to get into a form
that would be
2004 Sep 22
5
block statistics with POSIX classes
I have a monthly price index series x, the related return series y = diff(log(x)) and a POSIXlt date-time variable dp. I would like to apply annual blocks to compute for example annual block maxima and mean of y.
When studying the POSIX classes, in the first stage of the learning curve, I computed the maximum drawdown of x:
> mdd <- maxdrawdown(x)
> max.dd <- mdd$maxdrawdown
> from
2009 Feb 09
5
"reaper" is not picking up new changes to my application???
Hi,
Can anyone shed any light on why "reaper" (whilst seemingly working re
restarting my mongrel ruby process) does not pick up changes to my
application? (e.g. changing a title in a view for example). It''s like the
"mongrel_rails start etc..." is just restarting the current process but
ignoring the new details re where the new application directory is. That
is
2011 Sep 13
1
Deleting Rows based on Factor and Time Period
Hi All!
I have been messing around with this problem for about a week but to no
avail! The following data has been cut down in order to make my question
reproducible. The alldat data frame includes 2 columns: 1 date column and 1
factor column (equity names)).
2011 Oct 01
1
error using ddply to generate means
Dear list,
I encounter an error when I try to use ddply to generate means as follows:
fun3<-structure(list(sector = structure(list(gics_sector_name = c("Financials",
"Financials", "Materials", "Materials")), .Names = "gics_sector_name",
row.names = structure(c("UBSN VX Equity",
"LLOY LN Equity", "AI FP Equity",
2011 Feb 27
1
Plotting two lines on a graph when using par(mfrow=)
Basic question but still learning ....
How do I plot two lines (f$equity and f$bh.equity) on one of the three
graphs under mfrow ? I tried putting brackets around the first plot and
lines command but that didn't work.
par(mfrow=c(3,1))
{plot(f$Date,f$equity, col="blue", type="l", main="equity")
lines(f$bh.equity, col="gray")}
plot(f$Date,f$indicator,
2023 Jul 06
2
Plotting factors in graph panel
On Thu, 6 Jul 2023 at 15:21, Anupam Tyagi <anuptyagi at gmail.com> wrote:
>
> Btw, I think "lattice" graphics will provide a better solution than
> "ggplot", because it puts appropriate (space saving) markers on the axes
> and does axes labels well. However, I cannot figure out how to do it in
> "lattice".
You will need to convert Income to a
2023 Jul 06
1
Plotting factors in graph panel
Hi John:
Thanks! Below is the data using your suggestion. I used "ggplot" to make a
graph. I am not too happy with it. I am looking for something simpler and
cleaner. Plot is attached.
I also tried "lattice" package, but nothing got plotted with "xyplot"
command, because it is looking for a numeric variable on x-axis.
ggplot(TrialData4, aes(x=Income, y=Percent,
2023 Jun 29
1
Plotting factors in graph panel
Anupa,
I think your best bet with your data would be to tidy it up in Excel, read
it into R using something like the readxl package and then supply some
sample data is the dput() function.
In the case of a large dataset something like dput(head(mydata, 100))
should supply the data we need. Just do dput(mydata) where *mydata* is your
data. Copy the output and paste it here.
On Thu, 29 Jun 2023
2023 Jul 06
1
Plotting factors in graph panel
Btw, I think "lattice" graphics will provide a better solution than
"ggplot", because it puts appropriate (space saving) markers on the axes
and does axes labels well. However, I cannot figure out how to do it in
"lattice".
On Thu, 6 Jul 2023 at 15:11, Anupam Tyagi <anuptyagi at gmail.com> wrote:
> Hi John:
>
> Thanks! Below is the data using your
2009 Feb 11
1
Generating Correlation matrix
Dear R helpers,
I have generated a portfolio of Equity, Dollar Rate and say zero coupon bond. I have calculated the daily returns based on the prices available for last two years.
Now, I have three seperate csv files (Equity.csv, Dollar.csv and Bond.csv) containing the respective returns. I need to calculate the correlation matrix between the retuns of these assets. Please guide me how this
2005 Mar 28
2
Generating list of vector coordinates
Hi.
Can anyone suggest a simple way to obtain in R a list of vector
coordinates of the following form? The code below is Mathematica.
In[5]:=
Flatten[Table[{i,j,k},{i,3},{j,4},{k,5}], 2]
Out[5]=
{{1,1,1},{1,1,2},{1,1,3},{1,1,4},{1,1,5},{1,2,1},{1,2,2},{1,2,3},{1
,2,4},{1,2,
5},{1,3,1},{1,3,2},{1,3,3},{1,3,4},{1,3,5},{1,4,1},{1,4,2},{1,4,3},
{1,4,
2023 Jul 07
1
Plotting factors in graph panel
Hallo Anupam
I do not see much difference in ggplot or lattice, they seems to me provide almost identical results when removing theme part from ggplot.
library(ggplot2)
library(lattice)
ggplot(TrialData4, aes(x=Income, y=Percent, group=Measure)) + geom_point() +
geom_line() + facet_wrap(~Measure)
xyplot(Percent ~ Income | Measure, TrialData4,
type = "o", pch = 16, as.table =
2003 Jun 05
3
(no subject)
Hello,
I am interested in R as an alternative for a statistical tool at our firm. I
do know RATS an SPSS but not S+. As I read that R is close to S+, I would
like to know if you could recommend me any books as an introduction to S+ or
R.
Best regards
Marc
----------------------------------------------------------------------------
-
Marc Fohr, CFA
Equity Portfolio Manager
First Private
2023 Jul 07
1
Plotting factors in graph panel
Thanks! You are correct, the graphs look very similar, except ggplot is
scaling the text font to make it more readable. Is there a way to scale
down the x-axis labels, so they are readable?
On Fri, 7 Jul 2023 at 12:02, PIKAL Petr <petr.pikal at precheza.cz> wrote:
> Hallo Anupam
>
> I do not see much difference in ggplot or lattice, they seems to me
> provide almost identical
2013 Jul 09
1
Sending carbon copy mails from R
Hi,
I am using sendmailR package to send mails from R. I am not able to make
carbon copy work properly. If I specify multiple recipients in to field,
then they all receive individual emails and not carbon copies
My sample code is
require(sendmailR)
header <- list(cc="b.mali@abc.com")
to <-
2007 Apr 12
3
Method dispatch for print() in package its
Dear all,
in the package its the print() method does not seem to correctly work in all circumstances:
> selectMethod(print, "its")
Method Definition:
function (x, ...)
{
print(x@.Data <mailto:x@.Data> , ...)
}
<environment: namespace:its>
Signatures:
x
target "its"
defined "its"
> fundPME.lst[[1]]$irr
An object of
2008 Sep 23
4
perl expression question
If I have the string below. does someone know a regular expression to
just get the "BLC.NYSE". I bought the O'Reilley
book and read it when I can and I study the solutions on the list but
I'm still not self sufficient with these things. Thanks.
stock<-"/opt/limsrv/mark/research/equity/projects/testDL/stock_data/fhdb/US/BLC.NYSE"