[R] Spearman rank correlation

2013-03-15 Thread Zia mel
Hi If I get a p-value less than 0.05 does that mean there is a significant relation between the 2 ranked lists? Sometimes I get a low correlation such as 0.3 or even 0.2 and the p-value is so low , such as 0.01 , does that mean it is significant also? and would that be interpreted as significa

Re: [R] Delete NA from a dist object

2008-06-05 Thread mel
Birgitle a écrit : Many thanks. Is there a way to give me the number of the row, if I have the row name? B. a= object 'w' = name > match('w', names(a)) # or > which(names(a)=='w') # or but deletion should work with the number and/or with the name. _

Re: [R] Delete NA from a dist object

2008-06-05 Thread mel
Birgitle a écrit : I have a dist object containing 1 row that is only NA (not very intelligent to have bas dataset with one NA speciesanyway). I would like to delete this row from this object. newDistObject = distObject[-unwantedRow, ] hih __ R

Re: [R] find directories

2008-04-23 Thread mel
Prof Brian Ripley a écrit : > On Wed, 23 Apr 2008, mel wrote: > >> Hello, >> Function dir() is very useful for finding files. >> However, is there a analog function for finding directories >> based eg on a pattern ? > > No. > >> Apologies if

[R] find directories

2008-04-23 Thread mel
Hello, Function dir() is very useful for finding files. However, is there a analog function for finding directories based eg on a pattern ? Apologies if I've missed something obvious. Thanks Vincent __ R-help@r-project.org mailing list https://stat.ethz.

Re: [R] Research Notes

2008-04-22 Thread mel
Tom Chr Backer Johnsen a écrit : > What has become more and more obvious to me after I started using R > about two years ago is that I have collected a large number of data > files, scripts, and workspaces (.Rdata files) in several catalogs on my > computer. It is also obvious that my memory i

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-07 Thread mel
Tribo Laboy a écrit : > Hello, > I am new useR, I have written some functions, which I currently use by > "source"-ing them from the files. > That's OK, but when I my functions start counting in the tens and > hundreds I'd be glad to be able to type > "help.search("my_obscure_fun")" and get a sens

Re: [R] Stopping a function execution automatically after a given time

2008-04-02 Thread mel
Lukas Rode a écrit : > Nowever, with regard to #2, I am lost. I would like to set a maximum time > limit (say, 1 minute) and if my procedure is still running then, I would > like to move on to the next model. begin_time = as.difftime(format(Sys.time(), '%H:%M:%S'), units='secs'); for(...) {

Re: [R] access networked PCs directories/files with R ?

2008-04-01 Thread mel
Prof Brian Ripley a écrit : > On Tue, 1 Apr 2008, mel wrote: > >> access networked PCs directories/files with R ? >> >> Dear group, >> >> I would like to know if there is an "easy" way to access several >> networked PCs directories/files from

[R] access networked PCs directories/files with R ?

2008-04-01 Thread mel
access networked PCs directories/files with R ? Dear group, I would like to know if there is an "easy" way to access several networked PCs directories/files from one PC with R ? Concerned OS is windows. I can for instance use dir() on my current PC. Is there a way to do dir() on a connected PC ?

Re: [R] re cognizing patterns

2008-02-12 Thread mel
Paul Artes a écrit : > DeaRs, > i'm looking for some references on a statement as follows: > "Humans are good at spotting trends and patterns in data, but they are also > good at spotting those patterns where none really exist". This is not > verbatim but there must be some scholarly work on this.

Re: [R] Saving a big table or matrix

2008-02-02 Thread mel
Atte Tenkanen a écrit : > Dear R-users, > How do you save a big table or matrix I use write.table() to save and read.table() to read __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http:

Re: [R] How to read Directory

2008-01-27 Thread mel
?dir __ 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 commented, minimal, self-contained, reproducible code.

Re: [R] data frame to matrix

2008-01-22 Thread mel
My Coyne a écrit : > I have a data frame and would like to convert it into a matrix, how do I do > that? either use the df for the initialisation values mat = matrix(df, ...) or as.matrix() could do the trick. __ R-help@r-project.org mailing list https:

Re: [R] Pause on graphics

2008-01-16 Thread mel
Vu Nguyen a écrit : > My R script needs to pause or wait for a key or mouse on each graph. I used > the following statement after each plot > par(ask=TRUE) > This works on Windows but not on MacOS. > Is there any way to pause on graph in MacOS? > Thanks, > Vu scan() should work __

Re: [R] How to interrupt a loop by pressing a key?

2008-01-16 Thread mel
Bruno Jesus a écrit : > Does anyone know a way of interrupting a loop > by pressing a key (besides ctrl-c)? No hit key solution sorry, but may help : if (file.exists('zefile')) stop() allows to stop given zefile is created __ R-help@r-project.org mai

[R] close connection, closeAllConnections()

2008-01-09 Thread mel
close connection, closeAllConnections() Hello, For windows2000 and windowsXP, R.2.6.1 I have a little problem with the following lines > socketConnection('127.0.0.1', port=7496, server=F, blocking=F, open='wb', encoding=''); description class mode text

Re: [R] know java version

2007-10-05 Thread mel
Bio7 a écrit : > If you use the java version fom the classpath you can type inside R: > system("java -version") > or type "java -version" in the shell or console. This works for my config : R.2.5.1. under windowsXP. (apologies for forgetting precising it). Many thanks for your answer. Vincent _

[R] know java version

2007-10-05 Thread mel
Dear list, My R program has to deal with a 3rd party java program. I would like to know, automatically, which version of java is used when both programs are speaking together. Does anybody have an idea how to obtain such info from R ? Thanks Vincent __ R

Re: [R] Separate colour for comments in scripts

2007-09-24 Thread mel
[EMAIL PROTECTED] a écrit : > Is it possible to assign a separate colour for comments written with #, http://www.crimsoneditor.com/ I find it very practical. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do re

Re: [R] Storing Variables of different types

2007-09-15 Thread mel
Garavito,Fabian a écrit : > Hi there, > I have an ixjxk array where I want to store dates in the first column of > all sub-matrices (i.e. j=1 is a column with dates) and real numbers in > the rest of the columns...I have been trying many things, but I am > not getting anywhere. > Thank you ve

Re: [R] starting with a capital letter

2007-09-15 Thread mel
kevinchang a écrit : > I am wondering if there is any built-in funcion that can determine whether > words in a character vector start with a captial letter or not. Help, > please. Thanks. DIY with tolower(). apply tolower() on 1st letter and compare. __

Re: [R] Print to file

2007-09-14 Thread mel
Alessandra Marmo a écrit : > Hello list I'M new > I need help about print to file > How i can Print more table in a file (in append) > using xtable and print functions? ?write.table __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi