Displaying 20 results from an estimated 209 matches for "0.54".
Did you mean:
0.5
2011 Oct 04
1
Matching two datasets and updating values
Dear R forum
I have two datafarmes with category and cat_val forming one dataframe and cust and cust_category forming another dataframe.
category = c("C", "D", "B", "A")
cat_val = c(0.10, 0.25, 0.40, 0.54)
cust = c("cust_1", "cust_2", "cust_3", "cust_4", "cust_5", "cust_6", "cust_7",
2007 Jul 19
3
help with heatmap - how to remove annoying "X" before numeric values?
Hello All,
I have a simple question based on how things are labeled on my heat map;
particularly, there is this annoying "X" that appears before the numeric
value of all the labels of my columns.
Let's say I have the following silly data, stored in "temp.txt"
1905 1910 1950 1992 2011 2020
Gnat 0.08 0.29 0.29 0.37 0.39 0.43
Snake
2013 Mar 06
3
About basic logical operators
Hello everyone,
I have a basic question regarding logical operators.
> x<-seq(-1,1,by=0.02)
> x
[1] -1.00 -0.98 -0.96 -0.94 -0.92 -0.90 -0.88 -0.86 -0.84 -0.82 -0.80 -0.78
[13] -0.76 -0.74 -0.72 -0.70 -0.68 -0.66 -0.64 -0.62 -0.60 -0.58 -0.56 -0.54
[25] -0.52 -0.50 -0.48 -0.46 -0.44 -0.42 -0.40 -0.38 -0.36 -0.34 -0.32 -0.30
[37] -0.28 -0.26 -0.24 -0.22 -0.20 -0.18 -0.16
2005 Apr 25
4
panel ordering in nlme and augPred plots
Dear all
I am trying nlme together with Pinheiro/Bates book. I constructed
grouped data object with suitable plotting layout (according to
some common factor, panels from bottom to top are in increasing
order).
When I do nlme(... some stuff...) I get fitted object which I can plot
with
plot(augPred(fit.nlme6, level=0:1))
but it results in completely different ordering. Is there any way
2012 Aug 21
1
make check fails two tests on RHEL 6 build
I am installing R 2.15.1 onto RHEL 6, using gcc 4.7.0 with Intel MKL
10.3.7 and the following environment:
export BLAS_LIBS="-Wl,--start-group
/usr/caen/intel-12.1/mkl/lib/intel64/libmkl_gf_lp64.a
/usr/caen/intel-12.1/mkl/lib/intel64/libmkl_sequential.a
/usr/caen/intel-12.1/mkl/lib/intel64/libmkl_core.a -Wl,--end-group
-lpthread"
export LAPACK_LIBS="-Wl,--start-group
2007 Oct 22
2
Help interpreting output of Rprof
Hello there,
I am not quite sure how to interpret the output of Rprof (in the following the output I was staring at). I was poking around the web a little bit for documentation but without much success. I guess if I want to figure out what takes so long in my code the 2nd table $by.total and the total.pct column (pct = percent) is the most helpful. What does it mean that [ or [.data.frame is
2003 Apr 11
2
princomp with not non-negative definite correlation matrix
$ R --version
R 1.6.1 (2002-11-01).
So I would like to perform principal components analysis on a 16X16
correlation matrix, [princomp(cov.mat=x) where x is correlation matrix],
the problem is princomp complains that it is not non-negative definite.
I called eigen() on the correlation matrix and found that one of the
eigenvectors is close to zero & negative (-0.001832311). Is there any
way
2015 May 04
2
Problem with adding slots to S4 object
Dear all,
I'm trying to create a virtual S4 class with some subclasses. I noticed
that adding slots to this class increases the memory use and slows the
functions down. Note that I'm adding very small slots (integer or character
both of length 1).
I've made a reproducible example at
https://github.com/ThierryO/testvirtualclass. The R CMD check --as-cran
fails on the tests.
Some of
2015 May 05
1
Problem with adding slots to S4 object
There are too many arguments in the signature of the my_inla generic. The
signature defaults to every argument in the formals, which are probably
already over-specified. Typically, one defines a generic with the formals
(x, ...), or perhaps in this case (x, model, ...), but more on that below
Unrelated to this issue, the my_inla generic is defined incorrectly. It
should call
2013 May 15
1
x and y lengths differ
I have a problem with R. I try to compute the confidence interval for my
df. When I want to create the plot I have this problem: Error in
xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ.
I try this code:
library(dplR)
df.rwi <- detrend(rwl = df, method = "Spline",nyrs=NULL)
write.table(df.rwi,file="rwi.txt",quote=FALSE,row.names=TRUE)
2015 May 05
0
Problem with adding slots to S4 object
Dear all,
I did some more work in this.
- put all the metadata in a dedicated subclass (see metadataclass branch in
github repository). This doesn't solve the problem.
- test the code under R 3.1.2. This gives the same problem. So this is NOT
a bug introduced by R 3.2.0 :-)
- Profiling the code. Below the summary (code is on GitHub). It seems like
most of the time is spent by paste(). Note
2006 Sep 14
1
hist for two sets
A quick question, please.
x = c(0.0001, 0.0059, 0.0855, 0.9082)
y = c(0.54, 0.813, 0.379, 0.35)
where A = 1st set, B = 2nd set, C = 3rd set, D = 4th set respectivley.
How do you make hist plot side by side for x & y?
i.e. 0.0001 and then to the right 0.54, 0.0059 and then to the right 0.813,
etc.
thx much
[[alternative HTML version deleted]]
2003 Mar 03
1
using data() in an example
Hi all,
I'm trying to put together examples in an R package, and am having trouble
reading data from the package's data directory. The data are in
comma-separated variable files, so to read a file like gw.csv, I include
in the data directory both bailey.csv and a file bailey.R which contains:
bailey <- read.csv("bailey.csv",na.strings=".");
so that typing
2009 Oct 19
2
how to get rid of 2 for-loops and optimize runtime
Short: get rid of the loops I use and optimize runtime
Dear all,
I want to calculate for each row the amount of the month ago. I use a matrix with 2100 rows and 22 colums (which is still a very small matrix. nrows of other matrixes can easily be more then 100000)
Table before
Year month quarter yearmonth Service ... Amount
2009 9 Q3 092009 A ...
2008 Jun 18
4
inverse cumsum
I've a matrix like this:
1985 1.38 1.27 1.84 2.10 0.59 3.47
1986 1.05 1.13 1.21 1.54 0.21 2.14
1987 1.33 1.21 1.77 1.44 0.27 2.85
1988 1.86 1.06 2.33 2.14 0.55 1.40
1989 2.10 0.65 2.74 2.43 1.19 1.45
1990 1.55 0.00 1.59 1.94 0.99 2.14
1991 0.92
2012 Jul 06
3
estimating NA values against selected slots
Dear R Users,
Could you please help me on the following issue?
I have a real large yearly data set. For each year I have
365 flow values. Some of the flow values are not known and that’s why you will
see NA written in those slots. I wanted to know, is there a way that I can
estimate those values? I tried approx command but it seems least helpful for
the kind of issue I am up against.
2006 Jul 20
2
how to print table with more columns per row?
When printing a table it is broken at some point (depending how long are
the associated names)
>>> see example below.
Is there a way to control number of columns being printed for a given
chunk of the table?
Best regards,
Ryszard
> z5
AAAAAAA BBBBBBB CCCCCCC DDDDDDD EEEEEEE FFFFFFF GGGGGGG HHHHHHH
IIIIIII
AAAAAAA 1.00 -0.69 -0.54 -0.88 NA NA NA
2011 Mar 11
5
How to calculate means for multiple variables in samples with different sizes
Hello R-helpers:
I have data like this:
sample replicate height weight age
A 1.00 12.0 0.64 6.00
A 2.00 12.2 0.38 6.00
A 3.00 12.4 0.49 6.00
B 1.00 12.7 0.65 4.00
B 2.00 12.8 0.78 5.00
C 1.00 11.9 0.45 6.00
C 2.00 11.84 0.44 2.00
C 3.00 11.43 0.32 3.00
C 4.00 10.24 0.84 4.00
D
2010 May 21
2
plotting the following data
Hi,
I need to plot $time on the x-axis and $f on the y-axis for the following
data:
time f
0h 0.00
0.5h 0.54
1h 1.15
2h 2.33
4h 1.57
6h 2.19
18h 1.45
24h 1.79
I want the order of the data-points to be retained and the x-coordinates of
each of the 8 data-points to be equally spaced.
however, using plot($time, $f) completely scrambles the ordering of the
points.
Any
2013 Jul 29
3
duda reemplazar valores en data frame según condición
Estimados quería realizarles una consulta:
Trabajo con una tabla con 23 registros, la cual tiene en la columna "*ar4*"
valores de una variable llamada ranking para cada registro, y una columna
"percentil" donde le voy a colocar el nivel de percentil en el que se
encuentra ese valor (ar4) de cada uno de esos 23 registros.
La tabla es la siguiente::
código padre n ar4