Displaying 20 results from an estimated 700 matches similar to: "a decimal aligned column"
2007 Jan 16
3
plot portion of a line
Dear HelpeRs,
Given:
x <- rnorm(50)
y <- rnorm(50)
plot(x,y)
abline(lm(x ~ y))
Is there a way to plot just a portion of the line? Say for values of x
> 2.0 or x > -2.0 and x < 4.0. (Still fitting all the points.)
Thank you,
jab
--
John Bollinger, CFA, CMT
www.BollingerBands.com
If you advance far enough, you arrive at the beginning.
2006 Dec 27
3
stacked plots
Dear helpeRs,
Is there a better method of producing stacked charts than
par(mfrow(3,1)), plot(x), plot(y), plot(z)? What I would like to do is
produce a chart of several panes stacked vertically with no space
between them so they appeared to be a single figure. I've attached a
small example, though it is not clear that it will make it, as the
posting guide doesn't say which sort of images
2006 Aug 29
1
passing namees
R 2.3.1
I wrote a little script to do some cross correlations. The symbols are
in a text file like so:
symbols.txt
ibm
dd
csco
"""
require(tseries)
symbols <- scan("symbols.txt", what = 'character')
for(line in 1:(length(symbols)-1)) {
assign(symbols[line], get.hist.quote(instrument = symbols[line],
start = "2005-09-01", quote =
2006 Aug 30
10
.Rprofile under Windoze.
I am (for my sins) having to do some work using R under Windoze. I
wanted to set up a .Rprofile to control my set-up. The docs on
.Rprofile say that it can/should be placed in ``the user's home
directory''. ``An Introduction to R'' observes lucidly that this
concept needs to be clarified under Windoze.
Following the suggestions in An Introduction to R, I tried
putting a
2006 Dec 27
1
how to suppress a "loading required package: ..." message
Hi,
how to suppress a "loading required package:... " message?
Kind regards
Jaci
--
2006 Oct 05
11
Block comments in R?
Hello list,
Is there any way to perform a block comment in R? In C++, anything in
between a /* and */ is considered a comment, and it allows
programmers to comment out chunks of code for testing and debugging.
Is there such a feature in R?
Cheers,
Wee-Jin
2016 Apr 09
1
Quantmod abline and axis configuration
Hi all,
I have this code
I want to add two ablines like this
abline(h=2400, lty=3, col="lightgrey")
abline(h=400, lty=3, col="lightgrey")
But doesnt wotk.
I alo try to set ylim from 0 to max "Foa"+1000 but I?m not able ?Is it
posible?
require(latticeExtra)
require(ggplot2)
require(reshape2)
suppressPackageStartupMessages(require(googleVis))
require(quantmod)
2006 Sep 08
1
Connecting to R using Perl?
Hi there
Can anyone tell me please if I can access R though a perl script?
And whether there are some internet resources/books I can use to help me?
Thanks
[[alternative HTML version deleted]]
2006 Sep 21
2
Command area in SciViews 0.8.9 - second try
Dear all
I am writing again with a question I posted a few weeks ago (to no avail). I have a problem with SciViews for R. It's probably a slightly stupid question but I cannot find a solution to a very elementary problem. I am using SciViews 0.8.9 on with R 2.3.1pat on a Windows XP Home machine. R is set to SDI mode, I start R, enter "library(svGUI)", SciViews starts properly, I can
2006 Dec 13
3
Install R in Linux
Hi, Is it possible to install R in a linux box (Debian) without being a root. I know I can compile the R source code, but there is no F77 compiler on the box. So is it possible to install binary R without being a root?
Send instant messages to your online friends http://uk.messenger.yahoo.com
[[alternative HTML version deleted]]
2005 Jan 29
2
Database Connection Problem with RMySQL package
Folks,
I failed to create a connection to the database under MySQL DBMS in
the R system via RMySQL's method dbConnection(...).
My setup is as follows:
Microsoft Windows XP 5.1.2600
MySQL 4.1.9
R 2.0.1
DBI 0.1-8
RMySQL 0.5-5
Both of DBI and RMySQL packages were downloaded from bell lab:
http://stat.bell-labs.com/RS-DBI/download/index.html
My case in R is as follows:
> library(DBI)
2006 Sep 17
2
currency or stock trading strategy
Hi,
are there any good charting and analysis tools for use with
currencies, stocks, etc. in R? I have some tools to download currency
data from the NYFRB using python and XML. Can we get and parse an XML
download using R? Can we have interaction in R plots? Does anyone
use R for back-testing trading strategies? Are there any forums for
discussion of using R for this specific purpose (apart
2006 Oct 17
4
cluster in R
hi,
is there some good summary on clustering methods in R? It seems there
are many packages involving it.
And I have two questions on clustering here:
1. Is there a way of evaluate the effecitives (or seperation) of
clustering (rather than by visualization)?
2. Is there a search method (like genetic search) which can help find
the best subset of attributes which gives best seperation?
Thanks,
2006 Sep 08
4
Connecting to a SQLBASE database with R
Hi,
I am trying to extract data from a database with R in order to produce monthly statistics.
I found in the R Website, the package RODBC, RSQLite and others ones which permit this kind of extraction.
The database I want to be connected with is a SQLBASE 7.0 database.
So, I would like to know if, using one of these package or another one, I could be able to connect with this type of database.
2006 Oct 17
4
Book recommendation for newbie to stats and R?
I'm trying to learn statistics and R at the same time. I have an
undergraduate science degree and one year of calculus (30 years ago),
but never took a stats course. I hope to take some stats courses in the
next year, but thought I would start to see how much I could teach
myself.
I work for an organization that analyses behavior change communication
programs regarding HIV/AIDS and
2006 Dec 31
4
Does SQL group by have a heavy duty equivalent in R
I have hundreds of humans who have undergone SNP genotyping at hundreds of
loci. Some have even undergone the procedure twice or thrice (kind of an
internal control).
So obviously I need to find those replications, and confirm that the results
are the same. If there is discordance then I need to address it.
I tried to use the aggregate function
nr.attempts
2006 Dec 23
7
OT: any recommendation for scripting language
Right now, I am using SAS and S+/R. As a new year resolution, I am
planning to learn a scripting language.
from statisticians' point of view, which scripting language is worth
to learn, perl, python, or any other recommendation? (Most likely, I
will be learning it in windows.) Since I am not in research, I will
prefer one widely used in industry and related to statistical work.
if you
2008 Dec 08
2
Stability unmatched!
I never did solve my "puzzle" as to how to kill a Linux process that seems
to be deadlocked in kernel space, but thought I would report to the list
that the server did manage to stay up and continue to process several
thousand calls per day:
ast% uptime
11:49:37 up 1000 days, 16:30, 1 user, load average: 1.00, 1.00, 1.00
ast%
Since for the past four weeks I have forced my poor
2009 Apr 10
4
split a character variable into several character variable by a character
Dear Mao Jianfeng,
"r-help-owner" is not the place for help, but:
r-help at r-project.org
(CC-ed here)
In any case, strsplit() does the job, i.e.:
> unlist(strsplit("BCPy01-01", "-"))
[1] "BCPy01" "01"
You can work with the whole variable, like:
splitpop <- strsplit(df1$popcode, "-")
then access the first part with
>
2009 Apr 09
2
failed when merging two dataframes, why
Hi, R-listers,
Failed, when I tried to merge df1 and df2 by "codetot" in df1 and "codetoto"
in df2. I want to know the reason and how to merge them together. Data
frames and codes I have used were listed as followed. Thanks a lot in
advance.
df1:
popcode codetot p3need
BCPy01-01 BCPy01-01-1 100.0000
BCPy01-01 BCPy01-01-2 100.0000
BCPy01-01 BCPy01-01-3 100.0000
BCPy01-02