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&
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
, 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
$
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
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)
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
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
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
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
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
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
: 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
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
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
, 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
___
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
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
. 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
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
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
20 matches
Mail list logo