Re: [R] Sorting a data frame by specifying a vector

2012-10-11 Thread ROLL Josh F
tober 11, 2012 10:33 AM To: ROLL Josh F Cc: R help Subject: Re: [R] Sorting a data frame by specifying a vector Hi, In your dataset, it seems like it is already ordered in the way you wanted to. df.. <- data.frame(Season=rep(c("Summer","Fall","Winter","Spring&

Re: [R] add leading zeros

2012-07-27 Thread ROLL Josh F
This solution was the most elegant. Thanks everyone. Josh -Original Message- From: R. Michael Weylandt [mailto:michael.weyla...@gmail.com] Sent: Thursday, July 26, 2012 9:55 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] add leading zeros Much easier than you think

Re: [R] Using object as literal value in list vector

2012-06-20 Thread ROLL Josh F
, 2012 1:14 PM To: ROLL Josh F Cc: R help Subject: Re: [R] Using object as literal value in list vector Hi, You can try: NewMeans<-split(matrix(unlist(MeanValues_)*0.80),1:nrow(matrix(unlist(MeanValues_)*0.80))) names(NewMeans)<-names(MeanValues_) NewMeans $ACC [1] 800 $RTL [1] 1600 $

Re: [R] Probably a good use for apply

2012-05-31 Thread ROLL Josh F
but you lose out on speed and that is my issue right now. I can do what I need to do using some for loops but its way way too slow. Any guidance is appreciated. Thanks guys Josh -Original Message- From: Sarah Goslee [mailto:sarah.gos...@gmail.com] Sent: Thursday, May 31, 2012 1:35

Re: [R] I bet apply has a solution

2012-02-06 Thread ROLL Josh F
Ah. That's the one. Thank you. -Original Message- From: Ista Zahn [mailto:istaz...@gmail.com] Sent: Monday, February 06, 2012 11:12 AM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] I bet apply has a solution Hi Josh, How about apply(Data, 1, function(row) sd(row)

Re: [R] To Try or to TryCatch, I have tried to long

2011-12-06 Thread ROLL Josh F
Dunlap [mailto:wdun...@tibco.com] Sent: Tuesday, December 06, 2011 11:42 AM To: gleyne...@gmail.com; ROLL Josh F Cc: r-help@r-project.org Subject: RE: [R] To Try or to TryCatch, I have tried to long Or, Google for 'R catching warnings' and third entry is the excellent http://www.st

Re: [R] Oh apply functions, how you confuse me

2011-09-01 Thread ROLL Josh F
Dang Jim this looks to do the trick though I never heard of a data.table, interesting, I will explore more. Thanks you very much. -Original Message- From: jim holtman [mailto:jholt...@gmail.com] Sent: Thursday, September 01, 2011 11:20 AM To: ROLL Josh F Cc: r-help@r-project.org

Re: [R] Summarize by two or more attributes

2011-05-17 Thread ROLL Josh F
I will take a look. In my real data I need to interpolate the 16 points into 64 points for each of the categories. Thanks Marc JR -Original Message- From: Marc Schwartz [mailto:marc_schwa...@me.com] Sent: Tuesday, May 17, 2011 1:09 PM To: ROLL Josh F Cc: r-help@r-project.org

Re: [R] Summarize by two or more attributes

2011-05-17 Thread ROLL Josh F
Marc, How could I also apply the spline function to each of the 'columns' found in the result from tapply(Df$Rate,list(Df$Bin,Df$Type),sum) ?? -Original Message- From: Marc Schwartz [mailto:marc_schwa...@me.com] Sent: Tuesday, May 17, 2011 12:42 PM To: ROLL Josh F

Re: [R] Loading mdb

2011-03-22 Thread ROLL Josh F
n a 64 bit machine. I cant seem to locate a 64 bit counterpart. -Original Message- From: Phil Spector [mailto:spec...@stat.berkeley.edu] Sent: Tuesday, March 22, 2011 1:01 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] Loading mdb I believe that you are misinterpreting

Re: [R] Loading mdb

2011-03-22 Thread ROLL Josh F
only tool to read in mdb's from MS Access? I feel like it should be easier than this? Thoughts? Thanks Phil JR -Original Message- From: Phil Spector [mailto:spec...@stat.berkeley.edu] Sent: Tuesday, March 22, 2011 1:01 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: R

Re: [R] List elements of NULL to value

2010-11-29 Thread ROLL Josh F
: Monday, November 29, 2010 12:58 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] List elements of NULL to value Does A = lapply(A,function(x)if is.null(x) 0 else x) or for(i in 1:length(A))if(is.null(A[[i]]))A[i] = 0 do what you want

Re: [R] proportion

2010-09-13 Thread ROLL Josh F
Sure I tried that and it works but I was formerly using just 'proportion ' so I find it strange that this has occurred. -Original Message- From: Phil Spector [mailto:spec...@stat.berkeley.edu] Sent: Monday, September 13, 2010 4:08 PM To: ROLL Josh F Cc: r-help@r-project.org S

Re: [R] Setting breaks to data more appropriately

2010-03-23 Thread ROLL Josh F
46 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] Setting breaks to data more appropriately On Mar 22, 2010, at 1:49 PM, LCOG1 wrote: > > Basic question. For the below data, i would like to but each of the > values in a bin that represents their value. So the below would

Re: [R] matching on two criteria

2010-02-23 Thread ROLL Josh F
, 2010 9:06 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] matching on two criteria Exactly what results are you expecting? Your 'match' has the same variables in both locations and will therefore return the first match: > match(TazProperties..$Props,TazProperties..$Pr

Re: [R] Procedure not working for actual data

2010-02-18 Thread ROLL Josh F
___ From: jim holtman [mailto:jholt...@gmail.com] Sent: Wednesday, February 17, 2010 5:09 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] Procedure not working for actual data Try this on your real data: > #Sample data > Bldgid<-c(1000,1000,1001,1002,1003,1003) > Maplot&l

Re: [R] Procedure not working for actual data

2010-02-17 Thread ROLL Josh F
Sorry Just a generic list Is<-list() forgot to add that from my actual code From: jim holtman [mailto:jholt...@gmail.com] Sent: Wednesday, February 17, 2010 3:58 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] Procedure not working for actual d

Re: [R] Procedure not working for actual data

2010-02-17 Thread ROLL Josh F
. Perhaps you have a suggestion of a different way of doing it using my sample data? From: jim holtman [mailto:jholt...@gmail.com] Sent: Wednesday, February 17, 2010 4:04 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] Procedure not working for actual

Re: [R] Selecting single TAZ based on area proportion

2010-02-10 Thread ROLL Josh F
It dopes appear that this code works but entering a NA into the TAZ values goofs things up. Any ideas of how to remedy this problem? -Original Message- From: Nikhil Kaza [mailto:nikhil.l...@gmail.com] Sent: Monday, February 08, 2010 4:51 PM To: ROLL Josh F Cc: r-help@r-project.org

Re: [R] Create a multi dimensional array from a data frame

2010-01-21 Thread ROLL Josh F
is anyone willing to give it a shot i would appreciate it. From: Dennis Murphy [mailto:djmu...@gmail.com] Sent: Thursday, January 21, 2010 3:25 PM To: ROLL Josh F Cc: r-help@r-project.org Subject: Re: [R] Create a multi dimensional array from a data frame Hi: Bef