Displaying 20 results from an estimated 3000 matches similar to: "How to include files in .R?"
2007 Nov 06
3
Produce a multiple formats graphic
Is it possible to produce the same graphic in different formats
in one shot?
Now if I want to produce the same graphic in pdf, ps and jpeg
I run the producing code, but I change the graphic device, and
I choose successively :
pdf(...)
ps(...)
jpeg(...)
So in this case I run the same code 3 times, or I have
to choose a format and use converters...
Is it possible to produce the 3 graphics in once
2008 May 02
1
Phil Spector's book
Since we're on the topic of book reviews, I just received Phil Spector's
new R book called "Data Manipulation with R" and it is also quite a
nice book. I haven't gone through it all and I won't give a detailed
review but I have gotten a lot out of the first 100 pages that I have
read.
Note that I've been using R for almost 1.5 years so , for me, it's a
2012 Jan 18
4
R package dev: how to export constant?
Hi,
i create two constants kilo and milli in [1]. These should be available
after loading
library(sitools)
How should i export them and what have i done wrong?
(Other suggestions for improving the package are welcome too)
The ready to use .tar.gz and the source can be found on github [2,3]
kind regatds,
[1] https://github.com/jonasstein/sitools/blob/master/init.R
[2]
2007 Nov 27
1
Export in pdf, png, jpg, eps, etc...
Dear R-users,
I have created a bunch of R scripts that automatically create multiple
plots, all saved in a pdf device. I initially chose pdf output in order
to easily access to multiple plots in a single file.
Now, I am trying to play with different devices, like png or eps and I
realize that the settings I used to have nice plots in a pdf device are
giving awful outputs with the other
2007 Dec 15
1
modify a data.frame within a function
Hello all,
I'm trying to modify a single column of a data frame to remove randomly half of the values. I want to do it within a function, but can not assign the modified column back into the data frame. It was easy and successful without a function, so I suspect the problem is the call of the single column within the function.
removedata<-function(datafull,var.removed)
{
attach(datafull)
2008 Mar 13
1
factanal and plotting?
Hi there!
To make a good choice for the estimation of the number of usefull
factors. And I'd like to plot a graph like:
http://de.wikipedia.org/wiki/Bild:Parallelanalyse.jpg
where I don't need the green line (random values).
But with
str(factanal(data, factors=10)) I cannot figure out where I can find the
values for plotting.
Can you please help me in this question?
Thanks,
Martin
2008 Apr 14
2
how to write a table to pdf
Hi,
Is there a way to write a table to pdf ? I have checked write.table, it only
writes to text file.
[[alternative HTML version deleted]]
2007 Sep 06
2
larger decimal numbers get rounded ....
Hi,
I am sure there is a reason but ...... why larger decimal numbers get rounded to the nearest integer?
Example:
a <- 3308000.5
a
[1] 3308001
I would like my numbers to be decimals .... since they do represent coordinates and i don't want them rounded .... how can i keep them as they are?
Thanks,
Monica
_________________________________________________________________
2012 Jan 16
2
howto test a package without installation
Hi,
how can i play around with my first selfwritten package [*]
without to install it to my debian system?
I think of something like doing this:
/tmp/$ R
R version 2.11.1 (2010-05-31)
Copyright (C) 2010 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
> library(/tmp/sitools)
3 * kilo
[1] 3000
[*] https://github.com/jonasstein/sitools
--
Jonas Stein <news at
2007 Oct 27
1
Package Installer Fails in OSX 10.5 Leopard
Hello all,
I apologize in advance if this is not the correct list to post these sorts
of issues. When attempting to install the latest stable build of R (2.6) or
the most recent nightly build from R.research.att.com, the installer
disables the ability to actually install R or any of the other bundled
frameworks (i.e. the list is unchecked and grayed out). Before I start
trying to either coerce the
2008 Jun 03
2
merge two data sets
I would like to merge ?data1 ?that contains 100 unique ID?s with another
data set ?data 2? with 150 ID?s and the age of those individuals ( the ID in
data1 is a subset of the ID in data 2) I would like to merge these data1
with data2 and have the result of the merge to have the ID ordered as in
data1.
Can this be done in R?
--
View this message in context:
2007 Jul 13
2
R file via SSH
Goodmorning everybody,
I need to run an R program via SSH. Usually I open R, I run the
program and I stay logged-in, waiting for the output. As a matter of
fact, if I close the connection with SSH I loose the calculations and
the output of my R program. What command I have to use in order to
preseve the calculations and the output without staying logged-in a SSH
connection?
thanks in advance
2007 Aug 04
2
bars' values on barplot
Hi,
I need bars' values on barplot, and I don't know how I can put it. I do my
barplot as:
data<-read.table("/my_path/file.dat",header=T, sep="\t")
barplot(as.matrix(data),log="y",beside=TRUE,main="my_title", xlab="x name",
ylab="y name").
How can I add the values on each bar?
Thanks..
[[alternative HTML version deleted]]
2007 Jun 29
2
\include-mechanism in Sweave?
Dear HelpeRs,
I'm very fond of Sweave and I use it as often as possible. It'a a pity
I can't use it for larger projects or can I?
For instance suppose I have three files file1.rnw, file2.rnw and
file3.rnw with Sweave code. Working on file2.rnw I whould like to
exclude file1.rnw and file3.rnw temporarily and joining all of them
later. This amounts to a mechanism similar to using
2008 Jan 06
3
run setwd at the launch of R
Dear all,
my R files (and the .csv files as well) are saved somewhere pretty
deep down my hard disk.
i have to chage to working directory therefore everytime i run R (i
run it on powerPC mac), which is disgusting.
using the setwd command at the beginning of an R script doesnt really
help because i have to find this file first by hand.
I am looking for possibility to run setwd during the
2009 May 26
2
Problem accessing "row number" from subset on a dataframe
I would like to use the "row number" information returned from performing a subset command on a dataframe.
For example, I would like to automatically delete some rows from a dataframe if they match a criteria. Here is my example below.
data(airquality)
names(airquality)
subset(airquality, airquality$Month == 6)
Now how do I delete the row numbers returned automatically?
I
2009 Jan 28
1
Faced Problems with RODBC package 1.2-5 and 1.2-4 for windows
Hi,
I am facing problems with RODBC package 1.2-5 and 1.2-4 built for
windows. I am using R 2.8.1 version.
I faced some problems when I was trying to execute sql procedure
from R with exec/execute statement .
Stored procedure contains code/statements :
1) Call to another procedure (R calls one procedure which itself
calls another procedure)
2)
2006 Nov 08
5
query in R
how to realize the following SQL command in R?
select distinct A, B, count(C)
from TABLE
group by A, B
;
quit;
Best Regards
---------------------------------
Sponsored Link
Get a free Motorola Razr! Today Only! Choose Cingular, Sprint, Verizon, Alltel, or T-Mobile.
[[alternative HTML version deleted]]
2006 Nov 08
2
Sweave and font problems
Dear All,
Having now successfully started using Sweave, I have just noticed an odd
side effect with fonts.
Using plain LaTeX, I have had no problems using \usepackage{palatino} or
\usepackage{times} and the font correctly changes.
However, once I convert the tex document into Snw, and run it through R
CMD SWEAVE, LaTeX seems to ignore this package directive. The LaTeX log
suggests the font
2007 Nov 25
2
how to wait after plotting in BATCH mode?
when i plot with the following command on console:
$ R CMD BATCH cp_messung.R
in the R-script i wrote x11() in the beginning, so it draws a nice plot on
my screen.
But sadly it disappeares after a second or two. How can i make it to wait
until i press a key or something?
thank you.
--
kind regards,
Jonas Stein <news at jonasstein.de>