Displaying 20 results from an estimated 2000 matches similar to: "how to not sort factors when plotting"
2008 Jan 31
3
too many open files....??
Hi all,
I''m fighting with an error message right now, that I don''t understand:
puppetmasterd[16269]: Could not write report for steinbeck.tnr.dk
at /var/lib/puppet/reports/steinbeck.tnr.dk/200801311728.yaml: Too
many open files
But an output from lsof states that there is only ~5500 files open -
not reaching any max I know of.
Anyone else experiencing this...?
--
Med
2018 Jun 01
2
Time-series moving average question
You are right that there are no NAs in the practice data. But there are NAs in the moving average data.
To see this, break your work into two separate steps, like this:
tnr.ma <- ma(dat3[1:28], order=3)
TNR_moving_average <- forecast(tnr.ma, h=8)
I think you will find that the warning comes from the second step.
Print tnr.ma and you will see some NAs.
-Don
--
Don MacQueen
Lawrence
2018 Jun 01
0
Time-series moving average question
Hi Don, wow, you are so right. I picked that piece up from the bloggers tutorial and since I am R naive yet, I thought it was all one step
moving_average = forecast(ma(tdat[1:31], order=2), h=5)
Truly, I usually print and check at every step I can, as painful as it is sometimes.
Great lesson for this novice usR.
So the first and last values are NA in each case? Do you know why? Should I replace
2011 Oct 04
1
ctdb issues
I have been running ctdb on our cluster for ~6 months to serve a gpfs filesystem
over nfs. It has been running a treat :) !
Recently the servers were upgraded to redhat 5.7 and ctdb-1.0.112-1.el5
is part of the package list. Since the upgrade the log file is filled with
messages
2011/10/04 12:35:37.933801 [ 1779]: basename: missing operand
2011/10/04 12:35:37.933850 [ 1779]: Try `basename
2006 Sep 17
2
histogram frequency weighing
Fellow R-helpers,
Suppose we create a histogram as follows (although it could be any vector
with zeroes in it):
R> lenh <- hist(iris$Sepal.Length, br=seq(4, 8, 0.05))
R> lenh$counts
[1] 0 0 0 0 0 1 0 3 0 1 0 4 0 2 0 5 0 6 0 10 0 9 0 4 0
[26] 1 0 6 0 7 0 6 0 8 0 7 0 3 0 6 0 6 0 4 0 9 0 7 0 5
[51] 0 2 0 8 0 3 0 4 0 1 0 1 0 3
2008 Oct 21
1
Scatterplot Matrix
Is there any way to make the points on my scatterplot matrix correspond to numbers instead of dots? I know how to do this on a regular 2-variable scatterplot but not on the matrix. Thanks!
-Lydia
[[alternative HTML version deleted]]
2018 Jun 01
0
Time-series moving average question
Hello Don, thank you for your response. I appreciate your help.
I am using the forecast package, originally I found it following a forecasting example on bloggers.com
https://www.r-bloggers.com/time-series-analysis-using-r-forecast-package/
And subsequently located the complete pdf https://cran.r-project.org/web/packages/forecast/forecast.pdf
Since I created this practice data using the
2018 Jun 01
2
Time-series moving average question
My guess would be that if you inspect the output from
ma(dat3[1:28], order=3)
you will find some NAs in it. And then forecast() doesn't like NAs.
But I can't check, because I can't find the ma() and forecast() functions. I assume they come from some package you installed; it would be helpful to say which package.
-Don
--
Don MacQueen
Lawrence Livermore National Laboratory
7000
2013 Apr 13
1
how can I convert a result (text) in table format in R?
Hi R user,
Could you please give me some hints on how I can convert text in table format in R?
I was doing model assessment using dismo package
for example:
bg <- randomPoints(current, 500)
pvtest <- data.frame(extract(current, occtest))
avtest <- data.frame(extract(current, bg))
e2 = evaluate(model, p=pvtest, a=avtest)
> e2
class : ModelEvaluation
n presences : 10
n
2013 Mar 14
1
ggplot2 problem
Hello all!
I have a problem with ggplot2 library. I want to do an heat map and the y
variables are the year months. If I use the following code, he y values are
in alphabetical order, but I want it in month order.
The code is:
library(reshape)
library(ggplot2)
library(scales)
p <- ggplot(data.m, aes(variable, Month)) + geom_tile(aes(fill = value),
2002 Sep 18
1
CSC-policy and offline files
I have not been able to find anything similar to this in the archives...
So, can anyone help me out with the csc-policy? What version of SAMBA was
this introduced in? I am currently running 2.2.3 and am finding that some
of my XP users as well as one W2K user are running out of disk space on
their machines - their client side caches are filling up. The folders that
they are syncing to on the
2011 Jul 11
1
Named numeric vectors with the same value but different names return different results when used as thresholds for calculating true positives
Dear List,
I have encountered an odd problem that I cannot understand. It stems
from the calculation of true and false positives based on two input
vectors x and y based on different thresholds of x, extracted using
the quantile function. I am in certain cases getting different values
of true positives for the same threshold value when the threshold was
found under different quantiles (e.g. the
2008 Jul 09
1
Question regarding lu in package Matrix
Dear R-helpers,
I have a question regarding LU-decomposition with function lu in package
Matrix. The following simple example confuses me: Why is as.matrix(elu$U)
not an upper triangular matrix?
u3 <-
matrix(c(1,1,1,1,1,1,-1,1,0,0,0,0,0,-1,1,0,0,0,-1,0,1,0,0,0,0,0,-1,1,0,0),5,6,byrow=T)
elu <- expand(lu(Matrix(u3,sparse=F)))
as.matrix(elu$U)
I only have very limited experience with the
2012 Mar 13
7
ROC Analysis
Hi everybody,
I have a data set with a value and a status (positive or negative case) and
I want make a ROC Analysis. So, with ROCR Package, I have got the ROC curve
(True Positive Fraction [tpf] according 1-True Negative Fraction [1-tnf]).
http://r.789695.n4.nabble.com/file/n4469203/01.png
But, now I want a new graphic which show the sum of true positive fraction
and true negative fraction
2011 Feb 17
2
sort by column and row names
Hello, All,
How can one sort on column and row names. For example:
How can this
X1 X3 X2
X1 1 0 0
X3 0 1 0
X2 0 0 1
become this?
X1 X2 X3
X1 1 0 0
X2 0 1 0
X3 0 0 1
Thank you for your time!
Jim
[[alternative HTML version deleted]]
2009 Aug 07
3
Simple Question: adding points to a boxplot
I apologize in advance for the simplicity of this question. I use R 2-3 times a year, and I seem to forget more in the intervening months than I learn during my days of panicked reading.... I HAVE tried looking at the help resources; I'm just not very good at understanding them.
I have a dataframe with 18 observations of 5 different things, and a second dataframe with and estimate for those
2005 Dec 29
2
loop
Dear All,
I have to use loop over an array so I am using following procedure
count<-1
repeat{
count<-count + 1
c(g[count],1:i[count]) ->qw
if(count>5)break
}
as a result qw is
[1] 0.9643836 1.0000000 2.0000000 3.0000000 4.0000000 5.0000000
[7] 6.0000000 7.0000000 8.0000000 9.0000000 10.0000000 11.0000000
[13] 12.0000000 13.0000000 14.0000000 15.0000000 16.0000000
2003 Jun 12
3
breaks
Dear R People:
I have a question about a "sorting" problem, please.
I have a vector xx:
> xx
[1] -2.0 1.4 -1.2 -2.2 0.4 1.5 -2.2 0.2 -0.4 -0.9
and a vector of breaks:
> xx.y
[1] -2.2000000 -0.9666667 0.2666667 1.5000000
I want to produce another vector z which contains the number of the class
that each data point is in.
for instance, xx[1] is between xx.y[1] and
2010 May 05
3
sort the data set by one variable
> #sort the data by predicted probability
> b.order<-bo.id.pred[(order(-predict)),]
> b.order[1:20,]
gene_id predict
43 637882902 0.07823997
53 638101634 0.66256490
61 639084581 0.08587504
41 637832824 0.02461066
25 637261662 0.11613879
22 637240022 0.06350477
62 639084582 0.02238538
63 639097718 0.06792841
44 637943079 0.04532625
80 640158389 0.06582658
3 637006517 0.57648451
2011 Nov 04
6
Matrix element-by-element multiplication
is there a way to do element-by-element multiplication as in Gauss
and MATLAB, as shown below? Thanks.
---
a
1.0000000
2.0000000
3.0000000
x
1.0000000 2.0000000 3.0000000
2.0000000 4.0000000 6.0000000
3.0000000 6.0000000 9.0000000
a.*x
1.0000000 2.0000000 3.0000000
4.0000000