Displaying 20 results from an estimated 600 matches similar to: "color coding a legend"
2003 Jul 02
2
using [i] to plot & label all vector elements
I'm using 1.6.2 on a win 2k box. (I know I'm due for an upgrade.)
I've used brute force to label a series of vectors, and I'm wondering if
there's a better way to do this. I wanted to create a biplot of the 2nd
& 3rd PCs, and did this:
test <- edit(loadings(cv.prc.spr))
test.1 <- test[,1]
test.2 <- test[,2]
test.3 <- test[,3]
x0 <- 0
y0 <- 0
i <-
2003 Feb 20
2
subset with NA
Easy question that I can't find an answer for. I'm trying to subset a
data frame and want to exclude the positive values, i.e. I want the NA
values.
My data:
> summary(temp$tuna)
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
1 2 3 3 4 5 1211
Querying for
subset(temp, tuna %in% "NA", select....
subset(temp, tuna == NA,
2002 Oct 17
4
Newbie Time Series Questions
I have a data set of monthly river flows from 1960-2000, which are
similar in structure to the nottem data:
> klam.flow
Oct Nov Dec Jan Feb Mar Apr May Jun Jul Aug Sep
1961 1461 1716 2524 1773 1906 2005 1756 1575 1387 983 1094 1382
1962 1907 2253 1985 1907 1769 1676 2634 1386 929 766 968 1309
...
I tried plotting with
> ts.plot(klam.flow)
Which quickly led me to
2002 Oct 25
1
reshape: duplicate rows to multiple cols
I have a dataframe that I'm trying to reshape, and need advice. My data:
> klam.merge[200:225,]
stream lulc x sumlength pct.lgth
200 1223030419685 92 0.25000000 9.89 2.52780586
201 1223030419686 23 0.00274154 4.73 0.05796068
202 1223030419686 41 0.75009917 4.73 15.85833341
203 1223030419686 42 2.65000000 4.73 56.02536998
204
2004 Jul 16
3
sas to r
I would be incredibly grateful to anyone who'll help me translate some
SAS code into R code.
Say for example that I have a dataset named "dat1" that includes five
variables: wshed, site, species, bda, and sla. I can calculate with the
following SAS code the mean, CV, se, and number of observations of
"bda" and "sla" for each combination of
2009 Apr 07
1
axis values on lattice log-scale plot
I'm plotting the following (stripped of inessentials)
xyplot(sd ~ distance | wshed,data=sdvar.df,scales=list(x=list
(log=TRUE),y=list(log=TRUE)))
sdvar.df is a data frame, sd and distance are numeric, wshed is an
ordered factor
trying to replicate the action of log="xy" in plot()
The plot works fine but the axis values at the ticks are in
scientific notation,
e.g. 10^1.5,
2002 Nov 26
1
Another Mozilla issue
This isn't an R issue per se, but given the recent issues with Mozilla
and help.search(), I figured I'd float it. I use mozilla on a WIN2000
box. I was using 1.0 and the help.search() wasn't working as has been
discussed over the past few days. Yesterday I upgraded to 1.1, and the
javascript help still does not work. (I checked and it is enabled.)
Another problem I noticed this morning
2008 May 06
2
list manipulation
Hello,
I have a set of one-liners (many thanks to previous responses from this
list) that I use to look at newly imported data sets with functions like
dim(), names(), str(), etc. within lapply(). Generally, these commands
work for me but, I am apparently still missing some aspect of list
manipulation. I don't understand why I get a set of NULL list elements
at the end of each output as
2012 Jun 26
1
Zero inflated: is there a limit to the level of inflation
Hello,
I have count data that illustrate the presence or absence of individuals in
my study population. I created a grid cell across the study area and
calcuated a count value for each individual per season per year for each
grid cell. The count value is the number of time an individual was present
in each grid cell. For illustration my data columns look something like
this and are repeated for
2018 Jan 18
1
[RFC] Half-Precision Support in the Arm Backends
Hi Sjoerd,
For ISel, I think having a separate register class will give you less headache. I wondering if you could get away with not touching the instructions descriptions at all, instead defining external pattens for the FullFP16 case, like so:
def VCVTBHS: ASuI<0b11101, 0b11, 0b0010, 0b01, 0, (outs SPR:$Sd), (ins SPR:$Sm),
IIC_fpCVTSH, "vcvtb",
2018 Jan 18
0
[RFC] Half-Precision Support in the Arm Backends
I would like to revive this thread, as I am struggling a lot with the FP16
implementation in the ARM backend. My implementation in
https://reviews.llvm.org/D38315 is finished (except one case), but a more
robust alternative implementation was suggested. One can indeed argue that my
current implementation is a bit fragile, because it involves manually patching
up the isel dags for a few cases. The
2002 Nov 27
1
polymars package
Does the polymars library exist anymore? I see reference to it at
http://rweb.stat.umn.edu/R/doc/html/packages.html, but not on CRAN
(looked in contrib and contrib/Old).
--
Rob Schick
Ecologist
NOAA Fisheries
Santa Cruz Lab
110 Shaffer Road
Santa Cruz, CA 95060
Phone: 831.420.3960
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2003 Jan 27
1
Conditioned file Import?
I'm using R 1.6.2 on Windows 2000.
I have two similar sets of files in two different directories. One
contains species presence data and environmental measurements; the other
contains species absence data and environmental measurements for the
same variables as the presence data.
The absence datasets contain many more observations than the presence
datasets, and I'd like to draw a
2019 Dec 18
2
Spilling to register for a given register class
Ok, thanks. Except the question was meant slightly different. Less w.r.t.
organizing the register classes, and more w.r.t. implementation. I've
noticed for instance that when trying to model this straight forwardly by
writing a vreg from spills and reading this from fills (not further
elaborated here), that the spiller can't handle vreg def-use pairs: there
are assertions making sure a
2009 Jul 12
1
variance explained by each predictor in GAM
Hi,
I am using mgcv:gam and have developed a model with 5 smoothed predictors
and one factor.
gam1 <- gam(log.sp~ s(Spr.precip,bs="ts") + s(Win.precip,bs="ts") + s(
Spr.Tmin,bs="ts") + s(P.sum.Tmin,bs="ts") + s( Win.Tmax,bs="ts")
+factor(site),data=dat3)
The total deviance explained = 70.4%.
I would like to extract the variance explained
2002 Nov 15
1
Scaling part of a data frame
I have a 30 x 27 data frame, which I'm trying to scale and transform.
Only I want to scale certain all variables except one (the dependent,
which I want to log+1 transform). I can use split() and then scale() and
log1p(), but I'm wondering if I can do this in one call.
I tried apply(), but I could only get the whole data frame, not a part
of it:
> test <- apply(chin.sub, 2, log1p)
2008 Oct 09
1
YALAQ - Yet Another LApply Question
Hello,
Two lapply questions (system info and sample data below):
1) Why does the first form of command1 add the name of y _after_ the
str() output rather than before as does the second (preferred) form?
# command1 version1
invisible(lapply(ls(pattern='bn'), function(y) cat(y, "\n",
str(get(y)), "\n") ))
# command1 version2 (preferred output)
2004 Jul 05
4
density(x)
Dear experts,
when trying to estimate an kernel density function with density(x) I get the following
error message with imported data from either EXCEL or text files:
Error in density(spr) : argument must be numeric.
Other procedues such as truehist work. If I generate data within R density works fine.
Does anybody have an idea?
Yours
--
Christoph Hanck
Wissenschaftliche Hilfskraft
2007 Oct 04
0
[LLVMdev] RFC: Tail call optimization X86
On 4 Oct 2007, at 00:22, Evan Cheng wrote:
>> ifeq ($(ARCH),x86)
>> LLCBETAOPTION := -regalloc=local -fast -tail-call-opt -tail-call-opt-
>> align-stack
> Please remove -regalloc=local -fast. We want to test this patch
> separately.
just did a test with
LLCBETAOPTION := -tail-call-opt -tail-call-opt-align-stack
this time only SPASS llc-beta fails (comparing with vanilla
2006 Jan 16
8
AJAX + Table.
Hello all.
I am trying ot load table rows using AJAX based on a search. The
following code results in:
1. Firefox renders correctly (Multiple rows inserted into page).
2. Opera renders the entire returned string in one <td> by the looks of
it (Bunched up under first header, the <> tags arne''t visible)
3. IE6 does nothing....great ;)
This is driving me nuts so any help