Displaying 20 results from an estimated 1000 matches similar to: "2nd R console?"
2005 Feb 08
4
Renaming columns in data.frame, inserting/removing columns from data.frame
Hello,
I'm hoping that there is an easier way to rename columns in a data frame
other than by using the names() assignment, which requires you to type in
all the column names at once for a data.frame, in the case that I simply
want to rename a single column in a data frame.
Also, is there an easy way to move columns in a data frame around relative
to the other columns?
Thanks in
2004 Jul 15
3
More on global environment
To follow up on my previous question, suppose a user R session wants to
unload one workspace and load another within an R session. Is the
following the correct sequence?
1. save.image() to save the current workspace as .Rdata in the current
working directory.
2. rm(list=ls()) to remove everything from the workspace.
3. setcwd("xxx") to set the new working directory.
4.
2005 Jan 17
3
How do I format something as "0.000"?
Hi,
I would like to use the format function to get numbers all with three
digits to the right of the decimal point, even in cases where there is no
significant digit left. For example, I would like to get
c(0.3456789,0.0000053) as "0.346" "0.000".
It seems that it is not possible to force format to print a "0.000", i.e.
without any significant decimal places.
Is it
2006 Apr 24
4
GUI font size
Dear R People:
On the Edit menu, there is a GUI preference tab.
On the Font option, the highest value is 18.
Has anyone ever had the font size set larger than that will any
success, please?
Thanks,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgess at gator.uhd.edu
PS Windows, R 2-2-1
2005 Nov 21
3
Warning message help
I am trying to great a new column of effort data from an existing vector
of gears used.
It is a simple code where
effort[Gear==300]=(DIST_TOW*7412)
effort[Gear==301]=(DIST_TOW*7412)
The code appears to work for some of the data but fails for others and
inserts a NA value
I also get this warning message
Warning message:
number of items to replace is not a multiple of replacement length
Can
2006 Feb 07
1
Reading in FORTRAN data using R
Hi There:
I was wondering if there is a way to read FORTRAN list data (similar to
IDL's readf function). I often use FORTRAN for most of my number
crunching, and use something like IDL to visualize and perform
statistical analysis on that data. Since the each file is rather large
(>100 Mb), formatting the output into columns or tables is impractical,
hence the "list"
2002 Dec 23
1
Plot scales
I remember reading somewhere that locations on plots (in my case, arguments
x and y for legend()) can be specified in several scales besides the usual
data scale. I would like to set x and y as proportions of total plot size
or something similar. Can anyone steer me to documentation on how to do it?
--
Michael Prager, Ph.D. <Mike.Prager at noaa.gov>
NOAA Center for
2002 Aug 08
1
PR #1833 Clarification (PR#1890)
This is (correctly) filed under "non-reproducible."
The corresponding notes say "solved by re-installing Windows (private
comm)." I would like to clarify that this was solved by re-installing the
patch known as "Windows 2000 Service Pack 2," not by reinstalling Windows
itself. Perhaps my original message was not clear.
I point this out because installing the
2006 Feb 14
4
R and Power Point
Dear R People:
I'm using R in a time series class. This class is being
broadcast live to 2 remote sites via closed circuit TV.
My people at the remote sites are having a terrible time
seeing the computer screen as it is broadcast(resolution issues). I have
decided to put together Power Point slides for the teaching.
I am currently saving the R screen as WMF files and inserting them
into
2006 Feb 13
2
Plotting contour & filled.contour in one graph
Dear All,
I have a question on overlaying a filled.contour (e.g. on soil properties data) and contour (by elevation) in one graph. Both have the same z matrix dimension. I'm able to overlay both graph, but the plots dimension did not overlap well on the same plots. How can I have both filled.contour and contour on the same graph? The commands that I have written are as follows:
2005 May 11
3
Graphics file to disk
Dear All,
I have some code that works in S-Plus for writing saving a graphics file to disk :-
graphsheet(type = "auto", format = "WMF", file = "G:\\north0l.wmf",
pages = "auto", print.background = F,
orientation="landscape",
color.style="color")
plot(x,y)
dev.off()
This works fine in S-Plus.
I have tried playing
2005 Jul 12
1
Calling R from fortran
Hi,
The following may sound stupid so please forgive my stupidness. I have a
question which I don't know how to name it so I have to start from the
beginning. In an attempt to gain better understand how a photochemical
air qaulity model works, I plotted hourly ozone concentration contour
from the model's standard output to observe the changes in simulation.
Because the model actually
2004 Oct 14
5
beginner questions: objects and scripts
hi,
I got some questions on using R,
1. How do I check and edit definition of an object?
for example,
>x <- 1:100
then after a while I want to check how x is defined.
list(x) or whatever functions I know only list its
content, but I want to see its definition, without
scrolling up and down, and edit it like "fixing" a
function.
2. How to save my work in current session as a
2005 Dec 14
2
Problem with dir.create (R2.2.0 Windows XP 2002 SP 2)
I've run into a problem with dir.create on R2.2.0 Windows XP 2002 SP 2.
setwd("d:/")
print(dir.create("d:\\otis-sim\\rdata", recursive=T))
print(dir.create("d:\\otis-sim\\", recursive=T))
Both return false and fail to create the directories.
setwd("c:/")
print(dir.create("d:\\otis-sim\\rdata", recursive=T))
Returns true and succesfully
2004 Jan 09
2
r: fortran help
Hi all
I would like to know if anybody knows of either a good book or web site
that explains one how to use Fortran. I would like to call some of the
Fortran subroutines but before I can do that I first want to learn how
to code in Fortran.
Regards
Allan
2004 Dec 20
2
Producing "Editable" Graphs for PowerPoint
Hello,
(apologies, I'm not entirely sure whether this question is about R or my
limitations with PowerPoint). I've submitted a paper (which has been
accepted) but the journal now require me to submit graphs that are
"editable in PowerPoint". I would be grateful for suggestions as to
how I should do this.
The best route seems to be to copy-and-paste the figures from the
2006 Feb 15
2
common title for graphs in a (1x2) layout
Dear all,
Many thanks for the help suggesting the use of "layout" cmd.
How to insert a title in a 1x2 layout? The title is related to both graphs.
I looked for it in help, unsuccessfully.
Thanks in advance,
Rodrigo.
my reproductible code:
----------------------------------------------------------------------
def.par <- par(no.readonly = TRUE)
nf <- layout(matrix(c(1,2),
2003 Oct 18
2
Oceanographic lattice plots?
R 1.8.0 on Windows XP Professional. A huge THANK YOU to the R Team for
this marvelous software.
I am making lattice plots of oceanographic data. The usual layout does not
conform to plotting conventions that marine scientists use when depth is
the independent variable. Under those conventions, plots are made with the
origin at the upper left, depth on the vertical axis (increasing as it
2005 Sep 22
7
Automatic creation of file names
Dear R-Help members,
I have a question about how to save to the hard drive the one thousand
datasets I generated in a simulation. The datasets are created in a
"for" loop that repeatedly creates normally distributed datasets, such
as the example below:
Library(MASS)
for (number in 1:1000) {
dataset = mvrnorm(n = 400, mu = c(0,0,0),
Sigma =
2006 May 10
3
Contour plot overlayed with line plot
I apologize for what may be a newbie question: I have two sets of data, one
is X,Y,Z data that I'd like to make a contour plot of (Z defining the
contours), and a second set of X,Y data (Y as a function of X) which I would
like made into a line plot OVERLAYED on the contour plot (X and Y from both
plots are in the same units and will have overlapping values). Any
suggestions on how to do this