similar to: stumped on how to reorder factors

Displaying 20 results from an estimated 5000 matches similar to: "stumped on how to reorder factors"

2020 Oct 01
0
summarize_all Function
The warning gives some suggestions. E.g., replace funs(sum,prod) with list(sum=sum,prod=prod). % R CMD Rscript -e 'library(dplyr,warn.conflicts=FALSE); data.frame(X=1:3,Y=c(11,13,17)) %>% summarize_all(funs(sum,prod))' X_sum Y_sum X_prod Y_prod 1 6 41 6 2431 Warning message: `funs()` is deprecated as of dplyr 0.8.0. Please use a list of either functions or lambdas:
2012 Apr 22
3
need advice on using excel to check data for import into R
I have created an S4 object type for conducting fire department data analysis. The object includes validity check that ensures certain fields are present and that duplicate records don't exist for certain combinations of columns (e.g. no duplicate incident number / incident data / unit ID ensures that the data does not show the same fire engine responding twice on the same call). I am
2007 Aug 15
2
has_many :through ... What am I missing?
class Ladder < ActiveRecord::Base has_many :players has_many :users, :through => :players end class Player < ActiveRecord::Base belongs_to :users belongs_to :ladders end class User < ActiveRecord::Base has_many :players has_many :ladders, :through => :players end When I try the following code (on the console) I get an error: @ladder = Ladder.find(1) @ladder.users I
2012 Feb 29
1
equivalent from gladder and ladder from stata
Dear community, Apologies, I'm still pretty newbie. Anyway, I am performing linar regression analysis. As a common cause of non-normally distributed residuals is non-normally predictor variables, i'm interested in achieving the best transformation of the predictors. I've seen some commands at R, but I would like to know if it exists a command equivalent to gladder (graphic display)
2009 May 08
1
glm fit
Hi, I try to ask here, because I hope someone will help me understand this problem- I have fittet a glm in R with the results > glm1 <- > glm(log(claims)~log(sum)*as.factor(grp),family=gaussian(link="identity")) > summary(glm1) Call: glm(formula = log(claims) ~ log(sum) * as.factor(grp), family = gaussian(link = "identity")) Deviance Residuals: Min 1Q
2006 Mar 27
2
:through and STI
Hi, I''m trying to use :through and STI using the trunk version of Rails, but I get the following error see bottom of this msg[1] here are my classes. class Player < ActiveRecord::Base end class Ladder < ActiveRecord::Base has_many :subscriptions has_many :players, :through => :subscriptions end class SingleLadder < Ladder end class Subscription <
2007 Jan 22
0
Recursive-SVM (R-SVM)
I am trying to implement a simple r-svm example using the iris data (only two of the classes are taken and data is within the code). I am running into some errors. I am not an expert on svm's. If any one has used it, I would appreciate their help. I am appending the code below. Thanks../Murli ####################################################### ### R-code for R-SVM ### use leave-one-out
2008 Jul 01
17
Memory leak scripts
Hola, I am trying to isolate the memory leak I suspect in a mailman installation ? I found: http://blogs.sun.com/sanjeevb/date/200506 It gives an error: god at irt-smtp-02:~ 9:21am 65 # ./memleak.d 10312 dtrace: failed to compile script ./memleak.d: line 3: probe description pid10312:libc.so.1:malloc:entry does not match any probes I am on SunOS 5.10 Generic_127112-07 i86pc i386 i86pc Are
2020 Oct 01
4
summarize_all Function
r-help Forum I'm using the dplyr:: summarize_all(funs(sum)) function and am receiving a warning message that the `funs()` is deprecated as of dplyr 0.8.0. Ok what should I be using to summarize all columns by sum? Jeff [[alternative HTML version deleted]]
2012 Mar 28
1
how to match exact phrase using gsub (or similar function)
trying to switch out addresses that have double directions, such as the following example: a = "S S Main St & Interstate 95" a = gsub(pattern="S S ", replacement="S ", a) … the problem is that I don't want to affect instances where this might be a correct address such as the following: "3421 BIGS St" what I want to say is switch out only if
2017 Jan 17
2
pcapsipdump or general sip debug question
Hello, There is a built-in tool in Wireshark for this : menu Telephony => Voip Calls, the select your call and click on "Flow Sequence". Best regards Jean Aunis Le 17/01/2017 ? 12:27, Yves a ?crit : > Hi, > > I am using pcapsipdump for debugging sip calls. > > when I have to debug a call, pcapsipdump generates two files per > call... one for the sip dialog
2011 May 17
1
OT, free software for SIP ladder diagrams?
I was debugging a turnup with Global Crossing the other day and they presented me with a web page that displayed a 'ladder diagram' of a call including a ton of detail all neatly organized in tabs and links so you could drill down to any level of detail needed. The copyright notice says 'Copyright? 2008 Empirix.' Is there any free software available to analyze a pcap or
2016 Jul 06
2
how to read sip debug
Another nice sip packet is sngrep Shows realtime the sip flows But i think you have to chk the asterisk answer in the dialplan logic to chk what context its hitting etc. ?????? 6 ????? 2016 10:05 PM,? "Steve Edwards" <asterisk.org at sedwards.com> ???: > On Wed, 6 Jul 2016, Victor Villarreal wrote: > > If you experience problems with inbound calls from a SIP trunk or
2012 Oct 26
1
using match-type function to return correctly ordered data from a dataframe
I am regularly running into a problem where I can't seem to figure out how maintain correct data order when selecting data out of a dataframe. The below code shows an example of trying to pull data from a dataframe using ordered zip codes. My problem is returning the pulled data in the correct order. This is a very simple example, but it illustrates a regular problem that I am running into.
2001 Mar 12
1
Problems with SSH2 display under OpenServer
Hello, There appears to be a display issue when connecting to an OpenServer system using SSH2. I've compiled OpenSSH 2.5.1p1 on SunOS 5.7, HP-UX 11, and OpenServer 5.0.5. Whenever the destination is the OpenServer system, the display has a step-ladder effect. This behavior exhibits itself no matter what box the origination point is. A quick inspection revealed that the stty settings of
2006 Aug 06
0
Reshape package: new version 0.7
Reshape 0.7 =================== Reshape is an R package for flexibly restructuring and aggregating data. It is inspired by Excel's pivot tables, and it makes it very easy to view your data the way you want. The reshape package (along with ggplot) received the John Chambers Award for Statistical Computing. You can find out more at http://had.co.nz/reshape. Reshape (hopefully) makes it easy
2006 Aug 06
0
Reshape package: new version 0.7
Reshape 0.7 =================== Reshape is an R package for flexibly restructuring and aggregating data. It is inspired by Excel's pivot tables, and it makes it very easy to view your data the way you want. The reshape package (along with ggplot) received the John Chambers Award for Statistical Computing. You can find out more at http://had.co.nz/reshape. Reshape (hopefully) makes it easy
2012 Jul 22
5
Reorder in decreasing order
reorder() is probably the best way to order the levels in a vector without manually specifying the order. But reorder() orders by default in an increasing order: "The levels are ordered such that the values returned by ?FUN? are in increasing order." Is there a way to do what reorder() does, but order the levels according to a _decreasing_ order of the values? Sverre
2009 Mar 01
1
projecting GIS coordinates for analysis with spatstat package
I am working on creating an R package for doing fire department analysis and am trying to create a function that can display emergency incident densities. The following code sort of does the trick, but I need a display that shows the number of incidents per square mile. I believe the code below shows incidents per square unit (in this case, degrees lat/long). To solve this problem, I believe
2006 Jul 18
1
dtrace: failed to enable ''prt_all_cmt2.d'': DIF program exceeds maximum program size
I need a bigger DIF. Please advise. rick -- Rickey C. Weisner Software Development and Performance Specialist Sun Microsystems, INC cell phone: 615-308-1147 email: rick.weisner at sun.com