Displaying 20 results from an estimated 6000 matches similar to: "read a file"
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.
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
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
2003 Nov 06
2
Number of Days
Hi everyone,
I have been trying to compute numbers of days between two dates as follows:
> x <- c("1jan1960", "2jan1960", "31mar1960", "30jul1960")
> z <- format(x, "%d%b%Y")
> ex <- c("1jan1961", "15jan1960", "21mar1975", "10jul1981")
> ez <- format(ex, "%d%b%Y")
> ez-z
2003 Oct 29
2
constrained OLS on coefficient
Hi,
I would like to know if anyone has any idea of how to run an OLS with
constraints? I need to contraint a coefficient estimate in the model equal to
1, and I am not sure how to include it into the OLS estimation...
I was hoping to find something like "cnsreg" in STATA..
thank you
Soyoko
______________________________________
Ms. Soyoko Umeno
Graduate Research Assitant for the
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
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"
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:
2008 May 30
4
Request: Documentation of formulae
In working through material on p.272 of MASS (4th ed.), I came
across the following model formula:
pet1.lm <- lm(Y ~ No/EP - 1, Petrol)
I was at a loss to understand the use of "/" until I looked in
"An Introduction [!] to R," where I found the explanation.
My request is that more complete material on model formulae be
lifted from "Introduction to R" (or
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
2006 Mar 10
2
2nd R console?
hello all, i'm forwarding this question for a colleague.
"Is it possible to open a 2nd R Console?"
regards,
mark+
--
mark garey
ucsf
department of epidemiology and biostatistics
division of biostatistics
185 berry street, suite 5700
san francisco, ca. 94107-1739
415.514.8147
2004 Feb 05
2
I am totally lost on how to install R . . .
First . . . SUBSCRIBE (I want to subscribe to the list).
Second, I am trying to install R on windows XP. In looking at the
instruction manual I get the following:
The simplest way is to use 'rw1081.exe' or 'miniR.exe'. Just
double-click on the icon
and follow the instructions. If you installed R this way you can
uninstall it from the Control Panel.
How do I get the
2002 Oct 02
2
R vs Fortran
Dear R experts
I work in computational fluid dynamics in 2D: I have a 200-by-200
array of fluid properties such as density and velocity and these
evolve in time (the precise equations depend on the problem).
Up to now, I've been using Fortran and the code is very very messy.
It works, but a professional programmer friend of mine saw the source
code once, and had to be strapped down for his
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
2007 Jan 24
4
Text position in Traditional Graphics
R 2.4.1 on Windows XP.
Question: In traditional graphics, is it possible to find out
the height of a line of text in units that can be used in
arithmetic and then in calls to text()?
Context: I have written a function that draws a plot and then,
depending on whether some arguments are TRUE or FALSE, draws
various lines of text in the plot. The text lines may be turned
on or off individually
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
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),
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
2008 Jul 18
3
Change font-face in title
Dear List,
Is there a possibility to change the font-face for a part of the title
of a plot?
For example I have the following...
plot(nirs, type="l", xlab="Wellenl?nge [nm]", col="darkslategray",
main = "Spektrum Deschampsia caespitosa")
...and I would like to change the part of the title-string "Deschampsia
caespitosa" to italics? Is