Displaying 20 results from an estimated 6000 matches similar to: "Hello & a simple question"
2005 Mar 02
8
Why should I answer a Newbie question, there thick!
It would be nice just for once to actually use a mailing list with people
who are a little more sympathetic to the fact that your not a rocket
scentist or molecular biologist and that you might actually need some
help,
without being made to feel like your completely useless and should be
cleaning toilets for a living.
"Ahhh man not another stupid newbie question! are these people completely
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
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
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.
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
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
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
2008 Dec 31
3
Plotmath with values?
I hope to use the plotmath facility to print titles that mix
math and values of R variables.
The help for "plotmath" has an example, which after repeated
reading, I find baffling. Likewise, I have read the help file
for "substitute" (wqhich seems to be needed) without ever
understanding what it does, other than being used in some magic
incantations.
I would like to do
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
2018 May 03
3
Package for Molecular Properties
All
Is there a package or library that will, given a nucleotide sequence
1. calculate the extinction coefficient at 260 nm for (Beer-Lambert's law)
2. calculate molecular weight
3. return it's complementary sequence
I was able to find several packages that can do similar calculations for an amino acid sequence for proteins but none for nucleic acids.
Any pointers, etc. would be
2009 Jan 09
3
Programming Question (setting ylim generally)
library(StreamMetabolism)
day <- (structure(c(10.08, 10.08, 10.05, 10.03, 10, 9.98, 9.96, 9.95,
9.95, 9.96, 9.96, 9.98, 10.01, 10.05, 10.06, 10.09, 10.11, 10.11,
10.13, 10.13, 10.15, 10.15, 10.13, 10.14, 10.11, 10.13, 10.14,
10.13, 10.12, 10.13, 10.14, 10.16, 10.18, 10.19, 10.23, 10.27,
10.33, 10.37, 10.45, 10.57, 10.6, 10.66, 10.73, 10.77, 10.84,
10.86, 10.87, 10.94, 10.98, 11.01, 11.05,
2018 May 03
0
Package for Molecular Properties
library(sos)
(mp <- findFn('{molecular properties}'))
????? ** found 7 matches in 4 packages and opened two web pages in my
default browser with (a) the 7 matches and (b) the 4 packages. The first
function was something for amino acids, like you suggested.? Two others
returned compound and substance information from PubChem.
????? Does this help?
????? Spencer
On
2005 Dec 20
4
Installing packages into updated R
A minor inconvenience in updating an R installation is remembering which
packages were installed previously. Has anyone written a script to
inspect a previous installation, then get & install the same packages
into the new installation?
--
Michael Prager
NOAA Center for Coastal Fisheries and Habitat Research
Beaufort, North Carolina 28516
Opinions expressed are personal, not official.
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
2008 Nov 24
4
Replace NaN with zero
I need help with replacing NaN with zero (the value '0') in my dataset.
The reason is that I can't get it to graph because of the NaN in the
dataset. I have tried:
data[is.nan(data)] <- 0
that others have suggested in the help archives but this does nothing so
I am not sure what I am doing wrong.
Thanks in advance for your help.
[[alternative HTML version deleted]]
2004 Dec 08
2
similarity matrix conversion to dissimilarity
I have a matrix of similarity scores that I want to convert into a
matrix of dissimilarity scores so that I can apply some clustering
methods to the data. That is, high values in my matrix signify
similarity and low values (zero being the lowest) signify no
similarity. What functions/options in R or its packages are available
for making this kind of transformation of a matrix?
2007 Mar 16
1
Rownames are always character?
Gurus,
Can I rely on the rownames() function, when applied to a matrix,
always returning either NULL or an object of type character? It
seems that row names can be entered as integers, but as of now
(R 2.4.1 on Windows) the function returns character vectors, not
numbers (which is my desired result).
I am using elements of the returned vector to index the matrix.
e.g.,
nams <-
2007 Jan 26
2
strange behaviour with equality after simple subtraction
hello,
today while trying to extract data from a list for subsequent analysis, i
stumbled upon this funny behavior on my system:
> x<-c(0.1,0.9)
> 1-x[2]
[1] 0.1
> x[1]
[1] 0.1
> x[1]==1-x[2]
[1] FALSE
> x[1]>1-x[2]
[1] TRUE
> x<-c(0.3,0.7)
> x[1]
[1] 0.3
> x[2]
[1] 0.7
> 1-x[2]
[1] 0.3
> x[1]==1-x[2]
[1] FALSE
but:
>
2008 Nov 03
1
IWLS vs direct ML estimation
Hi,
I am thinking about IWLS vs ML estimation. When I use glm() for a
2-parameter distribution (e.g., Weibull), I can otain the MLE of scale
parameter given shape parameter through IWLS. Because this scale parameter
usually converges to the MLE.
In this point, I am wondering:
i) can you say that the direct MLE, which is obtained by maximizing a
likelihood function, is equalvant to the indirect
2006 Oct 28
2
Package development on Windows - latest guidance?
I would like to start building R packages under Windows XP. I
have programming experience and a minimal but working knowlege
of many Unix (-like) programming tools. The package functions
(for now) will be from R source, not C or Fortran.
I've installed Rtools, Perl, the MS hhc, and so on. I am
setting up a command shell with the correct PATH for building
packages. (The master Windows PATH