similar to: Help formating data to display commas

Displaying 20 results from an estimated 200 matches similar to: "Help formating data to display commas"

2009 Dec 15
1
Supressing Scientific Notation
I'm trying to display my deciles without scientific notation, but have not found an option that will allow me to do so. According to web searches, the options(scipen=999) should remove scientific notation, but it seems not too. Does this option work with quantcut function? Is there any other option that can be used? I am using verison 2.10.0. library(gtools) library(gdata)
2009 Nov 13
1
need help formating plot axis to standard dollar formats
I create a lot of plots with a dollar amount as the y-axis. How do I change the formatting so comma and $ are in place. Like $1000,000 or to use common dollar abbreviations like 100K? Chris Anderson Data Analyst Medical Affairs wk: 925-677-4870 cell: 707-315-8486 Fax:925-677-4670 This electronic message transmission, including any attachments, contains information which may be confidential,
2010 May 14
2
help color coding map in R
I am trying to create a map with selected states based on highest to lowest mean cost. The following code properly selects the correct states, and the legend is properly color coded with ranges, but the colors per range does not match the state colors. I need help getting the state colors to match the ranges outlined in the legend. I have tried ordering the mean amounts and this correctly creates
2009 Dec 10
1
Need help creating multiple datasets using loops or vectorization
I am trying to create multiple dataset by group like the following using either a loop or vectorization: vocallGp1<-subset(vocallsub, Group==1) vocallGp2<-subset(vocallsub, Group==2) vocallGp3<-subset(vocallsub, Group==3) vocallGp4<-subset(vocallsub, Group==4) vocallGp5<-subset(vocallsub, Group==5) When I create the loop I get the following error:
2009 Dec 10
1
option for multi thread or multi core machines
I notice that R basic installation does not take advantage of multi-thread or multi-core processors. Is there an option for multi-threaded processors? I currently run all of my analysis on thinkpad laptop and most processing is very quick, however, when I run stepAIC with interaction terms it can take a couple of hours to complete. I have tried running the same process and a quad core machine 64
2010 May 04
1
help overlay scatterplot to effects plot
I have a process where I am creating a effects plot similar to the cowles effect example. I would like to add the point estimates to the effects plot, can someone show me the correct syntax. I have included the "R" effects example, so you can show me the correct syntax. Thanks mod.cowles <- glm(volunteer ~ sex + neuroticism*extraversion, data=Cowles, family=binomial)
2012 May 01
1
error bars for a barchart
Hi I have the following barchart to which I want to add error bars. library(lattice) barchart(Change~fTreat,groups=Process,change, auto.key=list(points=FALSE,rectangles=TRUE), panel=function(x, y,...){ panel.barchart(x,y,origin = 0,...); panel.abline(h=0,col="black",...); } ) I have tried
2012 May 07
1
How can I brake a label in two lines when using expression()?
I making an xyplot and the y label is too long and needs to be in two rows, but when I brake it there is a huge gap between the last text string and the expression, and I can't get rid of it. Any ideas? Data: structure(list(Temp = c(8L, 8L, 8L, 8L, 8L, 8L, 12L, 12L, 12L, 12L, 12L, 12L), CO2 = c(380L, 380L, 380L, 750L, 750L, 750L, 380L, 380L, 380L, 750L, 750L, 750L), Treat = structure(c(3L,
2009 Dec 03
0
AEL, 1.6, CUT and commas
Hello, How can you parse a comma separated list using function CUT and AEL ? I've tried but it displays error message (though is seems to find the correct value) : STRING=101,102 VAL=${CUT(STRING,\,,1)}; NoOp(VAL is ${VAL}); Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL:
2009 Dec 03
0
AEL, 1.6, CUT and commas [SOLVED]
2009/12/3 Olivier <oza-4h07 at myamail.com> > Hello, > > How can you parse a comma separated list using function CUT and AEL ? > > I've tried but it displays error message (though is seems to find the > correct value) : > > STRING=101,102 > VAL=${CUT(STRING,\,,1)}; > NoOp(VAL is ${VAL}); > > Cheers > Sorry for the noise but I mixed up with another
2014 Dec 11
0
Passing literals with commas to subroutine [SOLVED]
On Tuesday 09 Dec 2014, Daniel Gonzalez wrote: > Hi, > > Let's say I do: > > Set(data=xxx,yyy) > Gosub(my-sub,s,1(${data})) > > My subroutine will only receive "xxx" for ARG1. How can I pass a literal > with a comma to a single argument in a subroutine? > > (The point is: when calling the subroutine I do not know if the variable > has a comma
2014 Dec 29
0
Commas is variables problem
Hi, I'm running into a strange problem with commas is variables. I have the following contexts: [messages] exten => _+.,1,Noop(External SMS) same => n,Set(ACTUALTO=${CUT(CUT(MESSAGE(to),@,1),:,2)}) same => n,Macro(goip_sendsms,${ACTUALTO},"${MESSAGE(body)}") same => n,Hangup() [macro-goip_sendsms] ;Call Macro(goip_sendsms,number,message) exten => s,1,Noop(SMS
2018 Sep 02
0
GNOME, numeric keypad & commas
Hi, Our local school has a 100 % CentOS network on servers and desktops. Until recently, we were using a highly customized Xfce desktop environment. Last week I decided to migrate all desktops from Xfce to GNOME, which went quite well. Now I have to sand down some rough edges. The secretary complained that she can't use the numeric keypad as before. She's using LibreOffice Calc a lot,
2002 May 13
1
prettyNum inserts leading commas (PR#1548)
Under R-1.5.0 on Solaris 2.6: R> prettyNum(123456789, big.mark=",") [1] ",123,456,789" and that bad behavior (leading comma) spills into formatC as well: R> formatC(123456789, digits=0, format="f", big.mark=",") [1] ",123,456,789" Looks to me like a bug in src/library/base/R/format.R, in function prettyNum: B.[i.big] <-
2008 Sep 23
1
Newbie: Formatting numbers with commas
Hi, Search through the R archives, and couldn't find my answer... how do you format numbers with commas (standard American, one every three digits)? Thanks, Matt -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas
2009 Aug 06
2
Re move all punctuations except commas
Dear all, I wanted to remove all punctuations except commas from a string. I used: gsub("[[:punct:]]", "", string) but I don't know how to exclude the commas ",". Anyone would kindly answer my basic question? -- View this message in context: http://www.nabble.com/Remove-all-punctuations-except-commas-tp24845721p24845721.html Sent from the R help mailing list
2002 Mar 13
1
Commas in formatC
formatC() is great for formatting numbers! But it would be even better if it could optionally insert commas (or semicolons), e.g. R> formatC(1234567.89, digits=2, format="f", commas=T) [1] "1,234,567.89" Here's a snippet of code that does that, which could more or less just be inserted into at the end of formatC if any R-core guru were so inclined. "r"
2011 Jun 14
1
Putting commas in between character strings
I have a number of strings in a vector, and want the output to be seperated by commas. > t [1] "35004" "35005" "35006" "35007" "35010" "35014" "35016" So I want want it to look like: "35004", 35005", "35006", "35007",... Can anyone help? I initially thought strsplit would be the
2004 Aug 06
2
commas are status2.xsl?
in the status2.xsl there seems to be some extra commas ... --snippet of status2.xsl Global,Client:<xsl:value-of select="connections" /> Source: <xsl:value-of select="source_connections" />,,<xsl:value-of select="listeners" />,, <xsl:for-each select="source"> <xsl:value-of select="@mount" />,,<xsl:value-of
2009 Apr 06
2
Collapse data matrix with extra info separated by commas
Hello, I would like to reshape my data for presentation purposes from something like this: > test <- data.frame(a=c("A","A","A","A","B","B","B"),b=c(1,1,2,2,1,1,1),c=1:7) > test a b c 1 A 1 1 2 A 1 2 3 A 2 3 4 A 2 4 5 B 1 5 6 B 1 6 7 B 1 7 to something like this: a b c 1 A 1 1,2 3 A 2 3,4 5 B 1 5,6,7 This seems