Displaying 20 results from an estimated 1000 matches similar to: "Removing leading and trailing spaces (string manipulation)"
2004 May 03
1
Speed up graphics output?
Hi all,
I've written some code to generate 4 maps per screen and write the output to a jpeg. The output is fairly quick at the start (about 5 jpegs per minute) and then slows down greatly (1-2 jpegs per minute).
Is there some way to speed it up? One of my thoughts is to keep the base map static on the screen and just update the points that are being plotted on the map (with the exception
2012 Sep 29
1
quota severe performace issue help
Dear gluster experts,
We have encountered a severe performance issue related to quota feature of
gluster.
My underlying fs is lvm with xfs format.
The problem is if quota is enabled the io performance is about 26MB/s but
with quota disabled the io performance is 216MB/s.
Any one known what's the problem? BTW I have reproduce it several times and
it is related to quota indeed.
Here's the
2015 Oct 20
2
Crear variable con condiciones
Buenas tardes a todos,
Quisiera crear una variable de acuerdo a ciertas condiciones. Me gustaria
llegar de "datain" a "dataout".
## entrada
datain <- structure(list(REF = c("999", "999", "999", "1099", "731", "731",
"731", "731", "1442", "1442", "1442",
2012 Apr 22
2
difficulty in Formatting time series data
Dear R-Gurus
I have a data frame (from CSV file) which has its first column called Date.
The Date is in the format mm/dd/yyyy. I was trying to get the weekday for
these dates and I tried using wday() and day.of.week() functions and both
of them gave me precisely the wrong answers. I think the issue lies in the
proper formatting of dates. The class of this column is a factor class and
hence I
2015 Oct 21
3
Crear variable con condiciones
Muchas gracias Javier por tu respuesta.
Si. Para obtener "dataout" se utilizan filas anteriores de acuerdo con la
disponibilidad de la variable TOENDREF para cada valor de la variable REF.
Por ejemplo, las filas 3 y 4 de "datain" son
#REF TIMEREF TOENDREF
#3 999 360 150
#4 1099 30 480
En la fila 3, el valor de TOENDREF es 150. Esto indica que hay 150
2011 Jan 31
2
Storing loop output in matrix
Hello
I am trying to store output from a loop into an empty matrix. The
current code I am using is:
> M<-mat.or.vec(11,89)
> for (j in list(3,91))
+ {M[,(j-2)]<-pic(datain[,j], mytree)}
datain is a matrix (11,91). I only want to use the pic() function on
the columns 3:91.
When I use this code output is stored into the 1st column of M and the
89th column of M but no other columns.
Any
2004 Feb 13
3
Re: Re: Find Closest 5 Cases?
Art (and group),
I'm doing this as a form of missing value analysis. Approximately 30% of the cases are missing data for one variable. To impute values for those cases, I'd like to match those cases that are missing the variable to all other cases and then take an average of those to infill.
I realize there are many methods for imputing data. I'm not well versed on any in
2004 Feb 24
3
Calculate Distance and Aggregate Data?
Hi all,
I've been struggling learning R and need to turn to the list again.
I've got a dataset (comma-delimited file) with the following fields: recid, latitude, longitude, population, dwelling and age. For each observation, I'd like to calculate the total number of people and dwellings and average age within 2 k.m. Distance could be Euclidean, however, a proper distance
2010 Feb 16
0
Strange routing(?) Issue
I have a Model event and the following two lines in routes.rb
1 - map.connect "events/:action", :controller => ''events'', :action => /
[a-z_]+/i
2 - map.resources :events, :has_many => :comments, :has_one
=> :address #, :collection => {:mapit => :get}
I have #1 so that I can call custom actions from a link_to_remote link
from my index page t0 update a
2018 Jan 15
2
consolidate three function into one
Hi Richard,
Thank you so much!! I understand the problem now, I assign a name to the "ggsurvplot" object and then add print(fig) at bottom of function definition, now figure gets printed on screen.
Ding
# function to generate RFS curves
RFS <- function( inputfile, N ) {
cluster<- survfit(Surv(RFS_days2, OV_Had_a_Recurrence_CODE) ~ clusters,
data =
2018 Jan 14
2
consolidate three function into one
Hi Bert,
I am sorry to bother you on weekend.
I am still struggling on defining a correct function.
I first defined the function RFS (see below), then run it by provide the two argument.
m52.2cluster <-RFS(inputfile =allinfo_m52, N=2 )
I do not get error message, but no figure displays on screen. I do not know what is going on.
Can you help me a little more on this issue?
Thank you,
2007 Apr 10
1
Several clusters in the same matchine
Hi,
is it possible to have several ocfs2 clusters in the same machine?
We have webserver1 and webserver2 that should belong to cluster1 and
cluster2 "workgroup".
Cluster1 should be made of webserver1, webserver2 and application_server1
Cluster2 should be made of webserver1, webserver2 and application_server2
Is this possible?
Thanks,
Nuno Fernandes
2018 Jan 14
0
consolidate three function into one
FAQ 7.22
You must print a ggplot object, for example with
print(m52.2cluster)
For the FAQ, run the line
system.file("../../doc/FAQ")
in R on your computer.
Open up the resulting filepath in your favorite editor and scroll down to 7.22
On Sun, Jan 14, 2018 at 4:21 PM, Ding, Yuan Chun <ycding at coh.org> wrote:
> Hi Bert,
>
> I am sorry to bother you on weekend.
>
2004 Apr 12
2
FW: cluster1 error
I am trying to use:
ocfs-support-1.0.10-1
ocfs-2.4.21-EL-smp-1.0.11-1
ocfs-tools-1.0.10-1
with RedHat AS 3.0, 2-node cluster with shared SCSI. 2 dell 1650s, dual
CPUs, PERC 3/DC cards chained to a PowerVault 220S.
I am using lvm, and here is my layout:
[root@cluster1 archive]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 32G 5.1G 25G
2018 Jan 15
0
consolidate three function into one
That is certainly OK, but you can also just use
print(ggsurvplot(...))
as your final statement.
out <- RFS( ...)
would then return the ggsurvplot object *and* graph it.
Any good R tutorial or a web search will provide more details on function
returns, which you might find useful.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
2018 Jan 15
1
consolidate three function into one
Thank you, your suggestion is simpler and logically better. I had impression that the last object in a function gets returned, so I did not add the print function at the bottom line of the function definition. Returning an object and graph the object are different process, I am a beginner for writing R function and need to find a good guide source about writing R functions. If you know a good
2005 Sep 21
2
locking.tdb: expand_file ftruncate to 8192 failed (Permission denied)
Hi,
I'm hunting a bug in 3.0.x (tested on 3.0.10 and 3.0.20). Users can
create and modfy files, but cannot delete them. The logs show
[2005/09/21 20:48:14, 0, pid=18388, effective(4019, 412), real(4019, 0)] tdb/tdbutil.c:tdb_log(767)
tdb(/srv/physik.fu-berlin.de/data/.samba/cluster1-test/cache/locking.tdb): expand_file ftruncate to 8192 failed (Permission denied)
[2005/09/21 20:48:15, 0,
2009 Feb 01
2
Using arrays to generate parameters
My external node classifier returns some arrays in the list of
parameters. Example output (names have been changed to protect the
innocent):
$ ./node_classifier a.b.com
--- %YAML:1.0
"classes": ["class1", "class2", "class3"]
"parameters":
"hostname": "a"
"name": "a"
"domain":
2016 Apr 12
1
Dissimilarity matrix and number clusters determination
Hi,
I already have a dissimilarity matrix and I am submitting the results to
the elbow.obj method to get an optimal number of clusters. Am I reading
the below output correctly that I should have 17 clusters?
code:
top150 <- sampleset[1:150,]
{cluster1 <- daisy(top150
, metric = c("gower")
, stand = TRUE
, type = list(symm
2002 May 24
1
Fisher
Hello.
I had a big collection of Web pages. Now I have this collection divided into
clusters. Every page can be relevant or not. I made a table:
relevant non relevant
cluster1 1 20
cluster2 0 15
cluster3 3 35
. . .
. . .
. . .
I cluster1 I have 21 Web pages, 1