Re: [R] How to reach the column names in a huge .RData file without loading it

2016-03-19 Thread Jan Kim
Barry: that's an interesting hack. I do feel compelled to make two comments, though, regarding the general issue rather than the scraping idea: (1) If your situation is that that image (.RData file) is the only copy of the data, you'll need to rescue the data from that as soon as possible

Re: [R] .Rdata files -- fortune?

2015-03-12 Thread Jan Kim
On Wed, Mar 11, 2015 at 09:00:15AM -0400, Prof J C Nash (U30A) wrote: Well put. I avoid them too, and go so far as to seek and destroy so they don't get loaded unnoticed and cause unwanted consequences. .RData files (the ones with nothing before the period) are just traps for your future

Re: [R] .Rdata files -- fortune?

2015-03-12 Thread Jan Kim
Dear Petr, dear All, On Thu, Mar 12, 2015 at 06:38:40AM +, PIKAL Petr wrote: Hi -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Jan Kim Sent: Wednesday, March 11, 2015 4:44 PM To: r-help@r-project.org Subject: Re: [R] .Rdata files

Re: [R] purpose of the set.seed(function)

2013-12-03 Thread Jan Kim
On Tue, Dec 03, 2013 at 02:42:42PM +0300, Charles Thuo wrote: what is the purpose of the subject function please see rule #6 of Ten Simple Rules for Reproducible Computational Research [Sandve et.al., PLoS Comput Biol 9(10): e1003285 doi:10.1371/journal.pcbi.1003285] Can't resist this

Re: [R] Use R to plot a directory tree

2013-10-24 Thread Jan Kim
perhaps as a somewhat tamer guess than Bert's, it's probably not very hard to write a function that pieces together a dendrogram (S3 class provided by the stats package), using the list.dirs and list.files functions. This could then be plotted via the plot function, and you could even designate

Re: [R] For loop output

2013-08-09 Thread Jan Kim
On Fri, Aug 09, 2013 at 12:33:44PM +0100, Jenny Williams wrote: To update on the use of this little string, I am trying to use it to automate files to be loaded into a raster stack. I think the issue I have with the string is related to the backslashes. I need to just read the pure text so

Re: [R] For loop output

2013-08-08 Thread Jan Kim
On Thu, Aug 08, 2013 at 04:05:57PM +0100, Jenny Williams wrote: I am having difficulty storing the output of a for loop I have generated. All I want to do is find all the files that I have, create a string with all of the names in quotes and separated by commas. This is proving more difficult

Re: [R] For loop output

2013-08-08 Thread Jan Kim
On Thu, Aug 08, 2013 at 11:38:33AM -0500, Charles Determan Jr wrote: Hi Jenny, Firstly, to my knowledge you cannot assign the output of cat to an object (i.e. it only prints it). Second, you can just add the 'collapse' option of the paste function. individual.proj.quote -

[R] Saved Session Pitfalls (was: ask help!)

2013-07-25 Thread Jan Kim
On Thu, Jul 25, 2013 at 08:01:50PM +1000, Jim Lemon wrote: On 07/25/2013 07:44 PM, mei_yuan wrote: Hi, In the R console, I have the following: runif(10) Error in runif(10) : '.Random.seed' is not an integer vector but of type 'list' Can someone advise me of the solution of the

Re: [R] regular expression strikes again

2013-07-09 Thread Jan Kim
On Tue, Jul 09, 2013 at 09:45:55AM +, PIKAL Petr wrote: Dear experts in regexpr. I have this dput(test[500:510]) c(pH 9,36 2, pH 9,36 3, pH 9,66 1, pH 9,66 2, pH 9,66 3, pH 10,04 1, pH 10,04 2, pH 10,04 3, RGLP 144006 pH 6,13 1, RGLP 144006 pH 6,13 2, RGLP 144006 pH 6,13 3) and