I set out to appeal to this list for help with disentangling
a bewildering anomaly that was produced by some dynamically loaded
Fortran code.
In composing an email to explain the nature of the anomaly, I *FINALLY*
spotted the loony! I had an expression in a nested do loop:
j = npro +
I want to thank all of you for your help the past few days. I now have all
data sets imported, datetime columns added, and distribution stats
calculated for each. No errors.
My searches on the web for what to do when problems() produces no results,
and the few comments on my stackexchange post,
apply() is also a (disguised) loop, though.
I think you will find that indexing via rowSums is a lot faster:
## The example
set.seed(111) ## for reproducibility
a<-matrix(sample(1:20,350,TRUE),ncol=10) ## 35 rows
## A one-liner
a[rowSums(a != 1) == 10, ] ## 20 rows
Bert Gunter
"The trouble
Okay, if I understand this, you want to remove all rows that have, for
example, a 1 in any of ten columns:
a<-matrix(sample(1:20,350,TRUE),ncol=10)
# check it out
a
# first do it with a loop
b<-a
for(i in 1:ncol(b)) b<-b[b[,i]!=1,]
b
# now get tricky and do it in one operation
Bert Gunter:
"Have you consulted ?plot.survfit ? "
Marc Schwartz
"The 'mark.time' argument for plot.survfit() is FALSE by default."
Great thanks, Bert, for explanation in which documentation to view information!
Thank you very much, Marc!
Yes, specification required:
plot (km, mark.time=TRUE)
1. Dear John, thank you for the important point!
2. Dear Duncan, thank you for the clear clarification!
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
Thank you Professor and sorry for question on personal email.
From: peter dalgaard
Sent: Monday, January 4, 2016 2:15 AM
To: Muhammad Kashif
Cc: Group R-help
Subject: Re: Thanks and further question
Please keep on-list (cc'ed), for
Please keep on-list (cc'ed), for various good reasons. Comments inline.
-pd
> On 03 Jan 2016, at 22:02 , Muhammad Kashif wrote:
>
> Dear Peter dalgarrd
>
> Thanks and i really appreciate your answer. Actually i am new in r
> programming. using your answer i run the
HI Greg,
Sorry, I misunderstand your question.
I am not sure whether it works with numSummary() from library(Rcmdr).
You could use other ways, such as:
test-read.table(text=
id year incidents
100 1 0
101 1 1
102 1 21
100 1 27
101 1 3
102
Hi Uwe,
thank you very much for this great help,
jsut perfect what I needed to know :)
cheers,
Yakamu
--- On Wed, 10/3/12, Uwe Ligges lig...@statistik.tu-dortmund.de wrote:
From: Uwe Ligges lig...@statistik.tu-dortmund.de
Subject: Re: [R] how can I adjust the ranges of my y-axis in barplot?
To:
DeaR R-fellows,
I got a lot of help from you concerning the generation of heat maps,
so I was able to write and work with a script for this purpose at
last. Some visitors of our Ecological Station asked about the
generation of the graphs and so I decided to write down a small
description.
Is it
I think more important to R-core is that you cite R in the paper
directly as well as packages used (use citation() to get the relevant
info). There's not an official R wiki that I know of, but sciviews has
one (http://rwiki.sciviews.org/doku.php?id=start) you might use. Not
sure if there are
Thanks for your help, Rui! That works and will save me a lot of trouble.
--Kelly
-Original Message-
From: Rui Barradas [mailto:ruipbarra...@sapo.pt]
Sent: Tuesday, July 10, 2012 2:24 AM
To: Vining, Kelly
Cc: r-help@r-project.org
Subject: Re: [R] boxplot with cut
Hello,
Maybe this iss
Thanks Don and Jim,
Get did the trick! That command is new to me, and is exactly what this
problem needed. The syntax that worked is actually slightly simpler than what
was suggested. This is what worked:
all.comps - ls(pattern=^res)
for(i in all.comps){
obj = get(i);
...
Thanks again.
Thanks to Michael Weylandt and Josh Wiley for pointing me to the View()
function. It worked like a charm - once I learned that R is case-sensitive.
I told you I am new to R!
Ed
Ed Heaton
10318 Yearling Drive
Rockville, MD 20850-3517
Voice: (301) 424-8186
Mobile: (301) 520-7414
Fax: (301)
Hi,
Many many thanks to your such an elaborative effort and help.
Chitra
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide
Martin,
Thank you very much for posting a great reply.
Cheers,
Chris Bartlett
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide
Hi Bart, Thanks for the answer.
connecting to a db, extracting the data you want, analyse this and put in a
report, with graphs isn't that hard, but if you are starting out, you have
to accept that you will have to learn the basics.
I am learning R .after some reserch now i am
Chinna,
glad to hear that you are connected to your db.
About your reports: we don't know what you are looking for, so how on earth
can we help you.
As already pointed out:
List Requirements:
PLEASE do read the posting guide
[1]http://www.R-project.org/posting-guide.html
and provide
Hello,
thanks for the two replies. The following code worked as expected:
pos - 1:10
lab - letters[pos]
ll - parse(text = paste(pos,*phi[,lab,],sep = ))
xyplot(1:10~1:10,scales = list(x = list(labels = ll,at = 1:10)))
Best regards,
Albart
-Original Message-
From: Coster, Albart
Hi all,
I just wanted to send a general word of thanks to the list for
making my first week using R successful (by my measures) and
reasonably pleasurable. (Not a single literal RTFM!) ;-)
I appreciate all the help I've received from folks. I have a long
way to go but I'm starting to get
As I said, I am new to R after spending far too many years using SAS. I'm
slowly getting the hang of R and like it very much.
Thanks for your insights and help.
Murray M Cooper, Ph.D.
Richland Statistics
9800 N 24th St
Richland, MI, USA 49083
Mail: richs...@earthlink.net
Dear colleagues,
I'm trying to have a look at the Assortative and Disassortative (
http://en.wikipedia.org/wiki/Assortative_mixing) of the network I have.
But it seems that the igraph hasn't mentioned that yet.
I have to get the in/out degree of the vertices of each edge and calculate
the
Please stay on the list to make the archive more useful. Here is the
conclusion of the thread.
Gabor
On Sat, Dec 27, 2008 at 2:59 PM, Weijia You weiji...@gmail.com wrote:
Sorry to trouble you, but I have got the answer to this problem.
When I turn el - get.edgelist(g) to el -
Thanks for your help
the codes you gave me worked vey well!
cheers
Maria
--
-
[EMAIL PROTECTED]
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
Hi All,
I am a PhD student in forestry science and I am working with LiDAR data set
(huge data set). I am a brand-new in R and geostatistic (SORRY, my
background its in forestry) but I wish improve my skill for improve myself.
I wish to develop a methodology to processing a large data-set
-help@r-project.org; [EMAIL PROTECTED]
Oggetto: Re: [R-sig-Geo] LIDAR Problem in R (THANKS for HELP)
you can try
memory.limit(size=4000)
only if you have 4GB of memory on the system
This is not guaranteed to solve your problem though
With big datasets like lidar, you are much better off
¬ 5 agosto 2008 13.24
A: Alessandro
Oggetto: Re: R: [R-sig-Geo] R: LIDAR Problem in R (THANKS for HELP)
If an extra GB of memory will solve the problem, you might try doing a google
search on '3 GB Switch Windows Vista' and see if it's possible to do such a
thing (it probably is possible
you can try
memory.limit(size=4000)
only if you have 4GB of memory on the system
This is not guaranteed to solve your problem though
With big datasets like lidar, you are much better off getting access to a
64bit system with a ton of RAM (64GB).
Cheers
Matt
On Tue, Aug 5, 2008 at 1:47 PM,
: martedì 5 agosto 2008 14.25
A: r-help@r-project.org
Oggetto: Re: [R] LIDAR Problem in R (THANKS for HELP)
On Tuesday 05 August 2008, Alessandro wrote:
Hi All,
I am a PhD student in forestry science and I am working with LiDAR data
set (huge data set). I am a brand-new in R
Let's not cross-post! I'll pick up only one point of general relevance on
this list (R-help).
On Tue, 5 Aug 2008, Matt Oliver wrote:
you can try
memory.limit(size=4000)
only if you have 4GB of memory on the system
This is not guaranteed to solve your problem though
Assuming this is
closest to this number that I have, let's
say
5.43. How would I do this without writing a for loop (I have to do
this
many times for several lists)? Is there a lookup function in R?
Thanks!
--
View this message in context:
http://www.nabble.com/Find-the-closest-value-in-
a-list
list of numbers [3.4,5.4,3.67,], and I basically want to
find the index of the number closest to this number that I have, let's say
5.43. How would I do this without writing a for loop (I have to do this
many times for several lists)? Is there a lookup function in R?
Thanks!
--
View
Thanks guys!
I think [[ seems to be the easier way, but I also spent an hour (while my
post was pending approval) to find that the following also works:
temp- eval(parse(text=paste(data$column_title)))
Marc Schwartz wrote:
on 07/02/2008 02:10 PM R_Learner wrote:
raw -
on 07/03/2008 10:35 AM R_Learner wrote:
Thanks guys!
I think [[ seems to be the easier way, but I also spent an hour (while my
post was pending approval) to find that the following also works:
temp- eval(parse(text=paste(data$column_title)))
To quote Thomas:
fortune(parse())
If the answer
Haha I'll definitely keep that in mind...parse does complicated things.
Marc Schwartz wrote:
on 07/03/2008 10:35 AM R_Learner wrote:
Thanks guys!
I think [[ seems to be the easier way, but I also spent an hour (while my
post was pending approval) to find that the following also works:
Dear R Users!
Thanks very much!
I really don't know why the scale function didn't come to my mind when
writing my silly question.
But anyway thanks to all of you.
Yukihiro Ishii
2-3-28 Tsurumakiminami, Hadano, 250-0002 Japan
+81463691922
__
Mark, Henrique, and Jorge,
Thank you all very much for your replies. I'm really impressed by your
knowledge of R: I'd never even heard of of some of these functions
(especially split() and unlist().)
I went with the Henrique-Mark solution and it is working fine. Thanks
again!
David
Dear Everybody,
thank you for helping me with R recently. I have published the result
here. Appreciate it or not.
Yours,
Mag. Ferri Leberl
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
39 matches
Mail list logo