Re: [R] R and ATLAS

2010-05-27 Thread Jonathan Greenberg
-core machine, you will see CPU usage of nearly 400%. Note though that this will not discriminate ATLAS from other multi-threaded BLASes. HTH, Peter On Wed, May 26, 2010 at 2:16 PM, Jonathan Greenberg greenb...@ucdavis.edu wrote: Rhelpers: I recently installed the 64-bit version of R

[R] R and ATLAS

2010-05-26 Thread Jonathan Greenberg
Rhelpers: I recently installed the 64-bit version of R on my Debian system, and afterwards was asked if it was compiled using ATLAS. Is there a way to test to see if R is using ATLAS? --j __ R-help@r-project.org mailing list

Re: [R] intersect() without discarding duplicates?

2010-05-21 Thread Jonathan
Thank you, David and Gabor, for the creative solutions, and for introducing me to pmin() Jonathan On Thu, May 20, 2010 at 9:55 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: Try this one liner. The first argument of rep is the sorted intersection and the second argument

[R] max number from a list of numbers

2010-05-20 Thread Jonathan
[[]] : invalid subscript type 'symbol' max(husk[[1:length(husk)]]) Error in husk[[1:length(husk)]] : recursive indexing failed at level 2 max(husk[1:length(husk)]) Error in max(husk[1:length(husk)]) : invalid 'type' (list) of argument Any ideas would be appreciated! Best, Jonathan

[R] intersect() without discarding duplicates?

2010-05-20 Thread Jonathan
I going to need to program something from scratch (something like ordering the vectors and then looping through them)? ex: a - c(2,4,2,3) b-c(6,6,5,2,2,8,4) intersect(a,b) [1] 2 4 I'd hope the answer to be 2 2 4. Regards, Jonathan [[alternative HTML version deleted

Re: [R] intersect() without discarding duplicates?

2010-05-20 Thread Jonathan
: a - c(2,4,3) b-c(6,6,5,2,2,8,4) b[b %in% a] [1] 2 2 4 a[a%in%b] [1] 2 4 The second answer is correct, but I can't predict which variable to put in which position in the statement, so I'd need them both to be correct. Best, Jonathan On Thu, May 20, 2010 at 6:10 PM, David Winsemius dwinsem

Re: [R] operations between two aggregated data frames?

2010-05-15 Thread Jonathan
case, 'outer') to category 3 vs 4 (and 4 vs 5, etc.), instead of skipping category 3 altogether and moving to 4 vs 4. There's probably a way to mitigate that, but I suppose at this point, I can implement the method using merge(). Regards, Jonathan On Fri, May 14, 2010 at 6:44 PM, Gabor Grothendieck

[R] operations between two aggregated data frames?

2010-05-14 Thread Jonathan
, Jonathan [[alternative HTML version deleted]] __ 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

[R] Comparing histograms?

2010-05-13 Thread Jonathan Greenberg
Rhelpers: I'm curious what the appropriate analysis to use for testing the hypothesis that two histograms are statistically different from one another? Thanks! --j __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] RSQLite equivalent of .schema?

2010-05-12 Thread Jonathan Greenberg
Rhelpers: (Thanks for the previous help with getting a where statement working). Now on to my next question -- our database guru has asked me to run .schema on an sqlite database, and I was wondering if there is an equivalent in R to do this? Thanks! --j

[R] dbSendQuery with R variables

2010-05-10 Thread Jonathan Greenberg
Rhelpers: I'd like to modify this RSQLite statement: rs_stations-dbSendQuery(con_stations, select * from stations) so that stations is actually an R variable, e.g.: stations=c(stationA,stationB) How would I modify the above statement to query from stations[[1]] (aka stationA)? --j

[R] nested factors different with/out brackets - is this a design feature?

2010-05-06 Thread Jonathan Williams
with m2 or when comparing m3 with m4. With many thanks, in anticipation of your help in explaining this, Jonathan Williams Here is a simple sample code to generate the discrepancies:- set.seed(1) A=factor(rep(c(1:5),600)) B=factor(rep(c(0:2),each=1000)) b=as.numeric(as.character(B)) C=factor

Re: [R] reordering of matrix rows to maximize the sum of the diagonal

2010-04-26 Thread Jonathan
(a)),] [,1] [,2] [,3] [1,]11 20 [2,] 3011 [3,]1 501 In this case, I would like to rearrange the original matrix into: [,1] [,2] [,3] [1,] 3011 [2,]1 501 [3,]11 20 Best, Jonathan On Sat, Apr 24, 2010 at 1:24 AM, Dennis Murphy

[R] reordering of matrix rows to maximize the sum of the diagonal

2010-04-23 Thread Jonathan
figured I'd ask if one of you R-ninjas might know of an existing function (or algorithm I could look up and then code) that can do this somewhat efficiently (or even just correctly!). Best, Jonathan __ R-help@r-project.org mailing list https

Re: [R] reordering of matrix rows to maximize the sum of the diagonal

2010-04-23 Thread Jonathan
://www.public.iastate.edu/~ddoty/HungarianAlgorithm.html Actually, it appears the seriation package in R could come in handy here.. I'll write back if I find more. Jonathan On Fri, Apr 23, 2010 at 4:20 PM, David Winsemius dwinsem...@comcast.net wrote: Can you specify how you would re-order

Re: [R] reordering of matrix rows to maximize the sum of the diagonal

2010-04-23 Thread Jonathan
2, and in the second matrix, it is 13 1 2. I'm looking to conserve the rows, but only reorder them vertically. Thanks, Jonathan On Fri, Apr 23, 2010 at 4:32 PM, Dimitris Rizopoulos d.rizopou...@erasmusmc.nl wrote: one way is: M - matrix(sample(13, 9, TRUE), 3, 3) n - ncol(M) ind - apply(M

Re: [R] SSH Through R Script

2010-04-13 Thread Jonathan Baron
Another way to solve the problem is to mount the remote server using sshfs and then access it as a directory on your local computer. This will require using the password once when you mount the server, but you can just leave it mounted until you shut down your computer. E.g., You have an empty

Re: [R] SSH Through R Script

2010-04-09 Thread Jonathan Baron
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron Editor: Judgment and Decision Making (http://journal.sjdm.org

Re: [R] Calling R from Perl

2010-03-30 Thread Jonathan Baron
interested to know that how it is possible to call R from Perl. I would like to read the file in Perl, store it in a data structure and would like to pass the data structure to R so that I can do the mathematical operations easily. Thanks. -- Regards, Ayush Raman -- Jonathan Baron

Re: [R] R on Linux - a primer

2010-03-14 Thread Jonathan Baron
on both 64 and 32 bit systems. Jon -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Vertical subtraction in dataframes

2010-03-12 Thread Jonathan Christensen
starting with 1 and increasing sequentially (1, 2, 3, ...) Jonathan Thanks in advance. Sam Note: I've already calculated the calib column in gnumeric for clarity. rep Count stain calib 1 1522 none 0 1 147 syto -1375 1 544.8 sytolec -977.2 1 2432.6 sytolec 910.6 1 234.6

Re: [R] see the example and help me

2010-03-11 Thread Jonathan Christensen
that it's actually a time series, R has plenty of tools for that too. Jonathan Thanks in advance chinna. -- View this message in context: http://n4.nabble.com/see-the-example-and-help-me-tp1587229p1588761.html Sent from the R help mailing list archive at Nabble.com

[R] ks.test; memory problems

2010-03-09 Thread Jonathan
:940,10),rep(1:940,800)) Error: cannot allocate vector of size 358.6 Mb Any ideas? OS: Windows 7 64-bit, R ver. 2.10.1, Memory: 4 gb Best, Jonathan Best, Jonathan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] ks.test; memory problems

2010-03-09 Thread Jonathan
cluster with a lot of memory to run this code on (presumably I'd be able to allocate those vectors then)? Jonathan On Tue, Mar 9, 2010 at 4:11 PM, Jonathan jonsle...@gmail.com wrote: Hi R-help,    I am interested in comparing two vectors of data observations to see if they come from the same

[R] Passing rq models to Fstats

2010-03-04 Thread Jonathan P Daily
a lm. Has anyone had this issue? -- Jonathan P. Daily Technician - USGS Leetown Science Center 11649 Leetown Road Kearneysville WV, 25430 (304) 724-4480 Is the room still a room when its empty? Does the room, the thing itself have purpose? Or do we, what's

[R] plotting ecdf; R is stalled

2010-03-04 Thread Jonathan
this a reasonable experience (and if so, is there a way to get the desired effect, or am I SOL)? I can't find anything in the help archives. OS: Windows 7 64-bit; R version 2.10.1; RAM: 4 gb Thanks, Jonathan __ R-help@r-project.org mailing list https

[R] R and screen (UNIX question)

2010-03-03 Thread Jonathan Greenberg
I'm having a mixed experience with using R and UNIX's screen function -- sometimes when I close a connection that used screen, the R process is killed (which, in theory, it shouldn't be -- it should be running in the background). Does anyone have any ideas on how well (or not) R behaves with

[R] subtracting 100 from strptime year vector generates missing values in POSIXct where none appear to exist in strptime year vector

2010-02-23 Thread Jonathan Williams
Thanks Don MacQueen for this reply to my initial query - please SEE MY REPLIES TO THESE IDEAS AND FURTHER INFORMATION BELOW From: Don MacQueen [m...@llnl.gov] Sent: 23 February 2010 21:25 To: Jonathan Williams; r-help@r-project.org Subject: Re: [R] Problem with strptime generating missing

[R] difftimes; histogram; memory problems

2010-02-15 Thread Jonathan
to call a hist command without actually building the said matrix.. I'd greatly appreciate any ideas! Best, Jonathan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] difftimes; histogram; memory problems

2010-02-15 Thread Jonathan
)) Error: cannot allocate vector of size 732.4 Mb Since it seems these matrices are too large, I'm wondering whether there's a better way to call a hist command without actually building the said matrix.. I'd greatly appreciate any ideas! Best, Jonathan On Mon, Feb 15, 2010 at 8:19 PM, Jonathan jonsle

Re: [R] logical operations with lists

2010-02-12 Thread Jonathan
This is probably not the best way, but (assuming you had vectors and not lists, since I'm not sure what your list looks like): C - B[which(B %in% A ==FALSE)] Regards, Jonathan On Fri, Feb 12, 2010 at 5:06 PM, Zoppoli, Gabriele (NIH/NCI) [G] zoppo...@mail.nih.gov wrote: Sorry, maybe it's easy

[R] data frames; maybe aggregate?

2010-02-12 Thread Jonathan Reichel
('id'=c('a','b','a','c','b','a'),'value'=c(6,4,2,9,1,7)) df id value 1 a 6 2 b 4 3 a 6 4 c 9 5 b 1 6 a 7 I'd like some kind of output resembling something along these lines: a: 6, 6, 7 b: 4, 1 c: 9 Any ideas would be appreciated! Best, Jonathan

[R] difftime result for days not an integer?

2010-02-11 Thread Jonathan
Anybody have an idea why I would get a non-integer value for the number of days here? difftime('2004-08-05','2001-01-03',units='days') Time difference of 1309.958 days Would you just round off? Best, Jon __ R-help@r-project.org mailing list

[R] data frames; matching/merging

2010-02-08 Thread Jonathan
4 If somebody could (relatively easily) figure out how to get closer to a solution, I'd appreciate hearing how. Also, I'd be interested to hear how you came upon the answer (so I can get better at searching the R resources myself). Regards, Jonathan

[R] Follow-up Question: data frames; matching/merging

2010-02-08 Thread Jonathan
V2 1 1 1996-11-18 2 2 1988-01-20 3 3 1997-05-15 Any idea how to produce the desired output? Thanks, Jonathan On Mon, Feb 8, 2010 at 12:11 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: Here are 3 solutions assuming DF contains the data frame: # 1. aggregate aggregate(DF[2

Re: [R] Problem accessing help files

2010-02-04 Thread Jonathan
good. Thanks so much, Jonathan On Thu, Feb 4, 2010 at 6:29 AM, S Ellison s.elli...@lgc.co.uk wrote: Might this be a firewall-like issue and nothing to do with html or R? If I understand the 2.10 help system, it operates by starting R as an http server - effectively a web server, operating

[R] Problem accessing help files

2010-02-03 Thread Jonathan
-project.org' denied Any thoughts? Thanks! Regards, Jonathan [[alternative HTML version deleted]] __ 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

Re: [R] Problem accessing help files

2010-02-03 Thread Jonathan
): setInternet2() [1] FALSE Warning message: In setInternet2() : internet routines were already initialized -- I'm open to further suggestions! Thanks again, Jonathan On Wed, Feb 3, 2010 at 4:34 PM, RICHARD M. HEIBERGER r...@temple.edu wrote: In addition to Marc's comments, you might want to use

Re: [R] Problem accessing help files

2010-02-03 Thread Jonathan
time I want to read the entry for a particular function.. Happy to hear any other ideas! Best, Jonathan On Wed, Feb 3, 2010 at 5:00 PM, RICHARD M. HEIBERGER r...@temple.edu wrote: If you paste http://127.0.0.1:12300/library/base/html/sum.html directly into an IE window, will it find

Re: [R] Problem accessing help files

2010-02-03 Thread Jonathan
rebooted my machine. I'm still getting the same error. Any other ideas? Thanks, Jon On Wed, Feb 3, 2010 at 5:57 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 03/02/2010 5:14 PM, Jonathan wrote: Rich: Both IE and Firefox are unable to find the link you supplied. However, that's only because

[R] Using auto.key with two variable plots

2010-01-30 Thread Jonathan Greenberg
? Thanks! --j -- Jonathan A. Greenberg, PhD Postdoctoral Scholar Center for Spatial Technologies and Remote Sensing (CSTARS) University of California, Davis One Shields Avenue The Barn, Room 250N Davis, CA 95616 Phone: 415-763-5476 AIM: jgrn307, MSN: jgrn...@hotmail.com, Gchat: jgrn307

[R] Data frame of different sized lists in a function call

2010-01-28 Thread Jonathan Greenberg
before running the function, if at all possible. Thanks! --j -- Jonathan A. Greenberg, PhD Postdoctoral Scholar Center for Spatial Technologies and Remote Sensing (CSTARS) University of California, Davis One Shields Avenue The Barn, Room 250N Davis, CA 95616 Phone: 415-763-5476 AIM: jgrn307, MSN

[R] unidentifiable problem..

2010-01-26 Thread Jonathan
Hi All, My R installation is acting strangely and I'm hoping somebody might have an idea what's going on: I can't seem to load the RMySQL function. It seems to have installed without a problem, but when I enter: library(RMySQL) R tells me: Error in utils::readRegistry(SOFTWARE\\MySQL AB,

Re: [R] unidentifiable problem..

2010-01-26 Thread Jonathan
the list). I installed MySQL, but I get the same error. My operating system is Windows 7 64-bit. Any ideas? Best, Jonathan On Tue, Jan 26, 2010 at 5:05 PM, Duncan Murdoch murd...@stats.uwo.cawrote: On 26/01/2010 4:54 PM, Jonathan wrote: Hi All, My R installation is acting strangely

[R] Fwd: unidentifiable problem..

2010-01-26 Thread Jonathan
with the version I installed from the server via install.packages(RMySQL), so perhaps I'll be alright with the older version. Best, Jonathan -- Forwarded message -- From: Phil Spector spec...@stat.berkeley.edu Date: Tue, Jan 26, 2010 at 5:07 PM Subject: Re: [R] unidentifiable problem

Re: [R] unidentifiable problem..

2010-01-26 Thread Jonathan
-project.org http://www.r-project.org/'http://www.r-project.org/%3E'denied Any other ideas? Jon On Tue, Jan 26, 2010 at 5:39 PM, Duncan Murdoch murd...@stats.uwo.cawrote: On 26/01/2010 5:32 PM, Jonathan wrote: Hi Duncan, I tried: browseURL(http://www.r-project.org http://www.r-project.org

[R] x,y plot question (two sets of labels)

2010-01-20 Thread Jonathan Greenberg
for any help you can give me! --j -- Jonathan A. Greenberg, PhD Postdoctoral Scholar Center for Spatial Technologies and Remote Sensing (CSTARS) University of California, Davis One Shields Avenue The Barn, Room 250N Davis, CA 95616 Phone: 415-763-5476 AIM: jgrn307, MSN: jgrn...@hotmail.com, Gchat

Re: [R] does any package have the functionality of ace() from old acepack?

2010-01-18 Thread Jonathan Baron
pretty well. Is there another package that has that sort of functionality? I haven't been able to locate one, but maybe I missed something. -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron

Re: [R] Finally, the first R spam!

2010-01-11 Thread Jonathan Greenberg
I got that same email from Steve Blum: Hi folks, Which is the best statistical package out there. I am out of work and looking to get the best buck for my money. Tx - ed --j Max Kuhn wrote: ... and this one I received this morning: Hi folks, Which is the best statistical package

Re: [R] Online R documentation

2010-01-08 Thread Jonathan Baron
) instructions. PS. If this fundraising initiative is successful and any R-core member would like to take over this task, I will happily send the money their way. -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron Editor: Judgment

Re: [R] Online R documentation

2010-01-08 Thread Jonathan Baron
On 01/08/10 14:56, Karl Ove Hufthammer wrote: On Fri, 8 Jan 2010 08:41:49 -0500 Jonathan Baron ba...@psych.upenn.edu wrote: Many people seem unhappy with the new documentation server because you need to have R running to access it, and it's not immediately obvious how to bookmark

Re: [R] Building static HTML help pages in R 2.10.x on Windows

2010-01-07 Thread Jonathan Baron
For what it is worth, I would gladly sacrifice this capability in order to be able to consult all my R help pages through a Firefox bookmark to the packages listing (which is what I used to do, and will do again, when I get time to either rebuild from source or get the forthcoming Fedora RPM,

[R] bio3d package not installing

2010-01-03 Thread Jonathan
Is it just me, or is the bio3d package no longer available? Is there another way to do a reasonable nucleic acid sequence alignment in R? Thanks, Jonathan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

Re: [R] Building static HTML help pages in R 2.10.x on Windows

2009-12-27 Thread Jonathan Baron
, but others might be following this thread. Jon -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] read.table: mysterious line omissions

2009-12-20 Thread Jonathan
Thanks everyone! The problem was definitely with the apostrophe being interpreted as a single quote. Jonathan On Sun, Dec 20, 2009 at 7:49 AM, jim holtman jholt...@gmail.com wrote: Most likely an unbalanced quote. put the following option in the read.table: quote='', comment.char

[R] integer(0) and NA do not equal FALSE

2009-12-19 Thread Jonathan
Hi, A noobie question: I'm simply trying to run a conditional statement that evaluates if a substring is found within a larger string. I find that if it IS found, my function returns TRUE (great!), but if not, the condition does not evaluate to FALSE. ex): if( grep(hi, hop, fixed = TRUE) )

Re: [R] integer(0) and NA do not equal FALSE

2009-12-19 Thread Jonathan
is not in your string On Sat, Dec 19, 2009 at 3:47 PM, Jonathan jonsle...@gmail.com wrote: Hi, A noobie question: I'm simply trying to run a conditional statement that evaluates if a substring is found within a larger string. I find that if it IS found, my function returns TRUE

[R] read.table: mysterious line omissions

2009-12-19 Thread Jonathan
commands using Cygwin in a Windows environment (though subsequently converted it to Windows format - R loads it exactly the same way, regardless of whether it's in linux or windows format) Regards, Jonathan [[alternative HTML version deleted

Re: [R] read.table: mysterious line omissions

2009-12-19 Thread Jonathan
Tried deleting several line above and below line 362; did that and changed the extension. Still finds the same number of rows (362). Strange! Jonathan On Sun, Dec 20, 2009 at 12:19 AM, David Winsemius dwinsem...@comcast.netwrote: On Dec 20, 2009, at 12:07 AM, David Winsemius wrote

[R] how to count the total number of (INCLUDING overlapping) occurrences of a substring within a string?

2009-12-19 Thread Jonathan
want to do:** I'm looking for a way to count all occurrences of the substring, including overlapping sets (so 'aa' would be found in 'aaa' two times, because the middle 'a' gets counted twice). Any ideas would be much appreciated!! Signing off and thanks for all the great assistance, Jonathan

Re: [R] SAS

2009-12-07 Thread Jonathan Lisic
Hi Marshall, Maybe I'm missing the point, but wouldn't read.fwf do most of what you want? Cheers, Jonathan __ 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

Re: [R] new help pages in R 2.10.0

2009-11-05 Thread Jonathan Baron
Ligges -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] new help pages in R 2.10.0

2009-11-05 Thread Jonathan Baron
() I will see how it works. But I may give up if it doesn't work. Jon On 11/05/09 21:59, Uwe Ligges wrote: Jonathan Baron wrote: I haven't tried this yet, but I should note that my Site Search page: http://finzi.psych.upenn.edu, and the associated R function RSiteSearch and related

[R] Safe way to automatically install required packages...

2009-11-02 Thread Jonathan Greenberg
way to do this -- any suggestions? --j -- Jonathan A. Greenberg, PhD Postdoctoral Scholar Center for Spatial Technologies and Remote Sensing (CSTARS) University of California, Davis One Shields Avenue The Barn, Room 250N Davis, CA 95616 Phone: 415-763-5476 AIM: jgrn307, MSN: jgrn...@hotmail.com

Re: [R] GGPLOT2 Different Layers Different X Values

2009-10-29 Thread Bleyhl, Jonathan
: Wednesday, October 28, 2009 6:59 AM To: Bleyhl, Jonathan Cc: r-help@r-project.org Subject: Re: [R] GGPLOT2 Different Layers Different X Values Hi John, Could you please provide a small reproducible example? Thanks, Hadley Sent from my iPhone On 26/10/2009, at 6:50 PM, Jonathan Bleyhl

[R] Aggregate and cross tabulation

2009-10-27 Thread Jonathan Greenberg
. table() and xtabs() appear to just count, rather than giving me access to sum() and mean(). Any ideas? Ideally I'd like to do this in a single step, as the aggregate output (above) produces a much larger data frame than a cross-tabulated output would (in my particular case). --j -- Jonathan

[R] splitting a vector of strings...

2009-10-22 Thread Jonathan Greenberg
in every element of the character vector. --j -- Jonathan A. Greenberg, PhD Postdoctoral Scholar Center for Spatial Technologies and Remote Sensing (CSTARS) University of California, Davis One Shields Avenue The Barn, Room 250N Davis, CA 95616 Phone: 415-763-5476 AIM: jgrn307, MSN: jgrn...@hotmail.com

Re: [R] splitting a vector of strings...

2009-10-22 Thread Jonathan Greenberg
: -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Jonathan Greenberg Sent: Thursday, October 22, 2009 7:35 PM To: r-help Subject: [R] splitting a vector of strings... Quick question -- if I have a vector of strings that I'd like to split

[R] ggplot2 scale_shape question

2009-10-14 Thread Jonathan Bleyhl
Is there a way to have some points solid and some points hollow? I have two classes of points and there are so many points, that it's hard to see just the difference in shapes. I'd like to have one of the classes be hollow in addition to being a different shape. Any help would be grand. Thanks,

Re: [R] plotting points in random but different colors based on condition

2009-10-13 Thread Jonathan Bleyhl
I guess I didn't mention that I'm trying to do this in ggplot2 where I have my color set up via: geom_point(aes(colour = Date)) Not sure how to implement your suggestion within the confines of ggplot2. Jim Lemon-2 wrote: On 10/10/2009 06:41 PM, Jim Lemon wrote: Oops, should be:

Re: [R] plotting points in random but different colors based on condition

2009-10-10 Thread Jonathan Bleyhl
On a similar note, I'm trying to plot continuous values on the y vs. categorical (dates) on the x and I want to color by date, but I want the colors to be random so points close to each other are easily distinguishable. Any thoughts? Thanks, Jon per freem-2 wrote: hi all, suppose I have

[R] Maintaining sort order when transpose

2009-10-01 Thread Dry, Jonathan R
Hi all - I have a data frame and have sorted it by a particular column, with rownames set to a different variable. I wish to transpose this data frame, naming columns by the rowname variable but maintaining the sorted order through to the order of columns in my transposed table, however use of

Re: [R] Scaling data

2009-09-30 Thread Dry, Jonathan R
Hello all I am manipulating some data and wish to expand/unmerge (i.e. do the opposite of aggregate) rows in a data matrix based on the values in a particular column and a seperator, e.g. Col1Col2 n1;n2 6 ...separating by ; becomes Col1Col2 num16 num26 Any ideas? Also

[R] Scaling data

2009-09-28 Thread Dry, Jonathan R
this? Jonathan -- AstraZeneca UK Limited is a company incorporated in Engl...{{dropped:21}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] Spliting columns, strings or reg exp returning substrings

2009-09-25 Thread Dry, Jonathan R
Currently as the first column in a data frame I have string values in the format xx_yy - I want to create a new column with just the substring xx (for each row in turn). Three possible ways to do this might be (1) split the string by '_' using strsplit and paste the first of the resulting

[R] INSTALL html help (and vignettes) only?

2009-09-15 Thread Jonathan Baron
don't know how to do it so that it works. Jon -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Working with large matrix

2009-09-12 Thread Jonathan Baron
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. -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http

Re: [R] eps file with embedded font

2009-09-04 Thread Jonathan Baron
-- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron __ 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

[R] Stochastic (transition) matrices: how to determine distributions and variance?

2009-08-30 Thread Jonathan Greenberg
around these mean values? Since pXY are stochastic probabilities, it seems that the distribution and variance should be calculable. Thanks! --j -- Jonathan A. Greenberg, PhD Postdoctoral Scholar Center for Spatial Technologies and Remote Sensing (CSTARS) University of California, Davis One

[R] Best R text editors?

2009-08-27 Thread Jonathan Greenberg
Quick informal poll: what is everyone's favorite text editor for working with R? I'd like to hear from people who are using editors that have some level of direct R interface (e.g. Tinn-R, Komodo+SciViews). Thanks! --j -- Jonathan A. Greenberg, PhD Postdoctoral Scholar Center for Spatial

Re: [R] lmer with random slopes for 2 or more first-level factors?

2009-08-19 Thread Jonathan Baron
* IV2 | Subject)) -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] Plotting sigma symbol with unicode and turning into pdf

2009-08-18 Thread Jonathan R. Blaufuss
Paul, Thanks so much for the detailed help with this issue. I appreciate the time that you spent on this and I'm glad that you were able to fix a bug in the process! Thanks, Jonathan - Original Message - From: Paul Murrell p.murr...@auckland.ac.nz To: Jonathan R. Blaufuss blauf

[R] Using bold font with bquote

2009-08-12 Thread Jonathan R. Blaufuss
to a resource that will help me figure this out? Thank You, Jonathan __ 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

Re: [R] Using bold font with bquote

2009-08-12 Thread Jonathan R. Blaufuss
for your help, Jonathan - Original Message - From: Scott Sherrill-Mix shesc...@mail.med.upenn.edu To: Jonathan R. Blaufuss blauf...@carleton.edu Cc: r-help@r-project.org Sent: Wednesday, August 12, 2009 12:43:12 PM GMT -06:00 US/Canada Central Subject: Re: [R] Using bold font with bquote

[R] biOps load problem

2009-08-12 Thread Jonathan Lees
is missing - the installation did not indicate any problem, or any missing libraries. Thanks for any help on this. -- == Prof. Jonathan M. Lees Department of Geological Sciences 104 South Road, CB #3315, Mitchell Hall University of North Carolina Chapel

[R] Plotting sigma symbol with unicode and turning into pdf

2009-08-12 Thread Jonathan R. Blaufuss
=,)), font=2, col=blue) dev.off() Is it possible to make the unicode string function when writing to a pdf or do I need to form the sigma symbol some other way? Thanks for the help, Jonathan - Original Message - From: Paul Murrell p.murr...@auckland.ac.nz To: Jonathan R

[R] Paste symbol and calculation in plot

2009-08-11 Thread Jonathan R. Blaufuss
which I am asking it to calculate. text(2.2,0.25,expression(paste(sigma, = ,round(sd(Data),digits=3 Can someone please point me to a resource that will help me figure this out? Thank You, Jonathan __ R-help@r-project.org mailing list https

Re: [R] Paste symbol and calculation in plot

2009-08-11 Thread Jonathan R. Blaufuss
Scott, Thanks! That works great. I appreciate the help. Jonathan - Original Message - From: Scott Sherrill-Mix shesc...@mail.med.upenn.edu To: Jonathan R. Blaufuss blauf...@carleton.edu Cc: r-help@r-project.org Sent: Tuesday, August 11, 2009 4:18:18 PM GMT -06:00 US/Canada Central

Re: [R] Adding picture to graph?

2009-07-29 Thread Jonathan Baron
/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. -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron Editor: Judgment

[R] aggregating strings

2009-07-28 Thread Dry, Jonathan R
I am currently summarising a data set by collapsing data based on common identifiers in a column. I am using the 'aggregate' function to summarise numeric columns, i.e. aggregate(dat[,3], list(dat$gene), mean). I also wish to summarise text columns e.g. by concatenating values in a comma

Re: [R] Multi-line comments?

2009-07-22 Thread Jonathan Baron
'comment-region) So now I do it with alt-R. That key may have had some other purpose, but not one I ever used. I think the alt key is something else on a Mac. And I have no idea whether this will work on Windows. Jon -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home

[R] strata -- really slow performance

2009-07-11 Thread Jonathan Greenberg
-- I don't see why a stratified sampling would take hours to run -- I am about to recode this as a series of subset statements which I'm sure will take only minutes... --j -- Jonathan A. Greenberg, PhD Postdoctoral Scholar Center for Spatial Technologies and Remote Sensing (CSTARS) University

[R] file.copy returning FALSE?

2009-07-09 Thread Jonathan Greenberg
I'm running the command: file.copy(fnhdr,outdir,overwrite=TRUE) Which successfully copies the file I want to the directory I want, but each time it prints FALSE -- what does this mean, and how do I suppress this output? --j -- Jonathan A. Greenberg, PhD Postdoctoral Scholar Center

Re: [R] Testing memory limits in R??

2009-07-06 Thread Jonathan Greenberg
__ 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. -- Jonathan A. Greenberg, PhD

Re: [R] Memory issues on a 64-bit debian system (quantreg)

2009-07-01 Thread Jonathan Greenberg
:www.econ.uiuc.edu/~rogerRoger Koenker emailrkoen...@uiuc.eduDepartment of Economics vox: 217-333-4558University of Illinois fax: 217-244-6678Urbana, IL 61801 On Jun 24, 2009, at 5:04 PM, Jonathan Greenberg wrote: Yep, its

Re: [R] Error: cannot allocate vector of size 332.3 Mb

2009-07-01 Thread Jonathan Greenberg
://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. -- Jonathan A. Greenberg, PhD Postdoctoral Scholar Center for Spatial Technologies and Remote Sensing (CSTARS) University

Re: [R] Error: cannot allocate vector of size 332.3 Mb

2009-07-01 Thread Jonathan Greenberg
. -- Jonathan A. Greenberg, PhD Postdoctoral Scholar Center for Spatial Technologies and Remote Sensing (CSTARS) University of California, Davis One Shields Avenue The Barn, Room 250N Davis, CA 95616 Cell: 415-794-5043 AIM: jgrn307, MSN: jgrn...@hotmail.com, Gchat: jgrn307

[R] Memory issues on a 64-bit debian system (quantreg)

2009-06-24 Thread Jonathan Greenberg
Rers: I installed R 2.9.0 from the Debian package manager on our amd64 system that currently has 6GB of RAM -- my first question is whether this installation is a true 64-bit installation (should R have access to 4GB of RAM?) I suspect so, because I was running an rqss() (package

Re: [R] Memory issues on a 64-bit debian system (quantreg)

2009-06-24 Thread Jonathan Greenberg
on the full dataset to begin with) -- I'd like to fit a spline to the upper 1% of the data, I'll just wait until my new computer comes in next week which has more RAM. Thanks! --j roger koenker wrote: Jonathan, Take a look at the output of sessionInfo(), it should say x86-64 if you have a 64bit

Re: [R] Spatial Statistics on Grids

2009-06-23 Thread Jonathan Greenberg
Peter: Definitely check out the sp package and the rgdal package -- these will allow you ACCESS to the raster data, but can you be more specific about what sort of spatial distributions you are talking about? There are a lot of non-spatial packages in R which could be used to generate the

<    1   2   3   4   5   6   >