Displaying 20 results from an estimated 3000 matches similar to: "Converting character strings to numeric"
2016 May 25
1
Slow RAID Check/high %iowait during check after updgrade from CentOS 6.5 -> CentOS 7.2
On 2016-05-25 19:13, Kelly Lesperance wrote:
> Hdparm didn?t get far:
>
> [root at r1k1 ~] # hdparm -tT /dev/sda
>
> /dev/sda:
> Timing cached reads: Alarm clock
> [root at r1k1 ~] #
Hi Kelly,
Try running 'iostat -xdmc 1'. Look for a single drive that has
substantially greater await than ~10msec. If all the drives
except one are taking 6-8msec, but one is very
2003 May 14
2
Is there a simple method of changing text into 'Proper Ca se'
Yes and no. Given your response it appears that "Proper Case" is not a term
that everyone uses. In Excel there is a function "Proper" which in essence
changes "this line into something like this" into "This Line Into Something
Like This."
My look at casefold seesm to be that is is a wrapper of two functions to
change text into either Lower or Upper case.So
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)
2003 May 14
1
Is there a simple method of changing text into 'Proper Case'
I am probably just looking in the wrong place. I am sure there are a number
of ways to do this. If anyone could point me in the right direction it would
be very much appreciated.
Thanks
_________________________________________________
Tom Mulholland
Senior Policy Officer
WA Country Health Service
189 Royal St, East Perth, WA, 6004
Tel: (08) 9222 4062
e-mail:
2005 Jan 07
3
Basic Linear Algebra
I don't normally have to go anywhere near this stuff , but it seems to me that this should be a straight-forward process in R.
For the purposes of this enquiry I thought I would use something I can work out on my own.
So I have my matrix and the right hand results from that matrix
tdata <- matrix(c(0,1,0,-1,-1,2,0,0,-5,-6,0,0,3,-5,-6,1,-1,-1,0,0),byrow = T,ncol = 5)
sumtd <-
2004 Nov 22
4
How to correct this
Hi there,
I tried to add a few circles on an existing figure using the following
codes
grid.circle(x=0.5, y=0.5, r=0.1, draw=TRUE, gp=gpar(col=5))
grid.circle(x=0.5, y=0.5, r=0.3, draw=TRUE, gp=gpar(col=5))
grid.circle(x=0.5, y=0.5, r=0.5, draw=TRUE, gp=gpar(col=5))
points(0.5, 0.5, col = 5) # centre of the circle
, but all circles moved away from the centre. Could we do any
2003 Jul 11
3
postscript/eps label clipping
The following code produces an eps file with the tops of each of the ylabs
clipped off.
par(mfrow=c(2,2))
plot(runif(10),
ylab="Function(Lengthy Expression)",xlab="Prediction")
plot(runif(10),
ylab=expression(Delta * Beta^2),xlab="Prediction")
plot(runif(10),
ylab="Function(Lengthy Expression)",xlab="Prediction")
2003 Jul 17
1
Recode from 2 variables
I am trying to create a new variable which uses the suburb names if HR
and HRRES are the same but which uses HRRES if they are different. Any
assistance would be appreciated as my brain has just packed up. I'm not
sure I can teach myself anymore new tricks this afternoon.
HR HRRES SUBURB
What I am trying to get
954 Wheatbelt
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
2003 Dec 03
1
R and Memory
I would suggest that you make a more thorough search of the R-Archives.
(http://finzi.psych.upenn.edu/search.html) If you do you will find this
discussion has been had several times and that the type of machine you
are running will have an impact upon what you can do. My feeling is that
you are going have to knuckle down with the documentation and understand
how R works and then when you have
2005 Mar 30
5
2d plotting and colours
Hi!
I am new to R just 3 days in it and i apologize if my questions seem very
trivial and consumed your valuable time.
I am coding in perl and i stumbled upon R regarding plotting good
statistical graphs.
I tried the kmean clustering for a large matrix ,say > 150 * 150 . I tried
the example code given in the tutorial to perform 2d plot
# i ranges from 2 to 10
cl <- kmeans(x, i, 20)
2003 Nov 21
2
Who can provide me RWeb installation
Hi,
RWeb web site is down past couple days, I am insterested in this
project and want to try it for my projects. Deos anyone have this
installation and user guide? Thanks!
Best Regards,
WeiQiang Li
2004 Dec 23
1
How do you generate multiple sequences
I thought it would be quite simple to generate a number of sequences, but my only answer is to loop and this doesn't seem in keeping with R's capabilities.
In short I have the start and finish positions of several (well thousands probably) sequences. So I am looking at how do I take
x <- c(2,6,13,20)
y <- c(4,10,16,24)
and produce a list with four components with the appropriate
2003 Jul 03
4
Generating a vector for breaks in a histogram
Hi
I have two lots of numbers which I would like to histogram using the hist() function. For comparative reasons, I want them to be on the same scale, which I can use the xlim and ylim options to achieve.
However, having them on the same scale is meaningless unless they have the same "breaks". Consulting the documentation, there are 4 ways of defining the number of breaks, only one
2005 Apr 20
2
fSeries Technical Analysis rsiTA problem
fSeries Technical Analysis rsiTA problem
Hello,
I?m trying to use the rsiTA() function but keep getting this error:
>rsiTA(tsx,14)
Error in "[.timeSeries"(close, 1:(length(close) - 1)) :
only 0's may be mixed with negative subscripts
Here?s is the first three lines of my data:
>tsx[1:3,]
close
2004-04-18 20:00:00 8702.82
2004-04-19
2015 Jan 24
4
Indexing Mail faster
Hi,
I am trying to get faster search results on our webmail client(Roundcube).
Besides using Lucene for FTS are there other options?
Would having all mails indexed give fast results?
Currently the time it takes to search 25,000mails is 4mins. If indexed how
much faster are we looking at?
Really appreciate if someone could advise about this.
Thanks
Kevin
2003 Jun 04
4
Strip location and grid colour in Lattice
I am probably missing something quite obvious, but any help would be
appreciated. I am continually getting people misreading the lattice plots
because they are expecting the strip (with the factor names in them) to be
below the graph. Is there anyway of achieving this.
Secondly, from a more personal note I find the grid formed by the axes to be
a bit overpowering and would like to make it a
2004 Dec 03
4
factor matrix
Sorry if this is a FAQ.
Is there a good reason why a factor has to be
a one-dimensional vector and cannot be a matrix?
I want to construct matrices of categorical values.
Vain attempts like
matrix(factor(c(T,F,F,T), 2,2)
yield a matrix of character strings representing the factor levels,
not the levels themselves, while
factor(matrix(c(T,F,F,T), 2,2))
converts the matrix to a
2005 Sep 02
9
The Perils of PowerPoint
Hi all,
Below is a URL for an editorial published today in our local newspaper,
the Minneapolis StarTribune. It was originally published in the
Washington Post a couple of days ago:
http://www.washingtonpost.com/wp-dyn/content/article/2005/08/29/AR2005082901444.html
but that site requires registration. The 'Strib" site seems to be open
for the moment:
2016 May 27
2
Slow RAID Check/high %iowait during check after updgrade from CentOS 6.5 -> CentOS 7.2
All of our Kafka clusters are fairly write-heavy. The cluster in question is our second-heaviest ? we haven?t yet upgraded the heaviest, due to the issues we?ve been experiencing in this one.
Here is an iostat example from a host within the same cluster, but without the RAID check running:
[root at r2k1 ~] # iostat -xdmc 1 10
Linux 3.10.0-327.13.1.el7.x86_64 (r2k1) 05/27/16 _x86_64_ (32 CPU)