search for: comma

Displaying 20 results from an estimated 2192 matches for "comma".

Did you mean: comms
2007 Dec 03
3
strsplit on comma, with a trailing comma in input
I have a comma-separated data file in which trailing commas sometimes occur. I am using strsplit to extract the data from this file, and it seems great except in cases with trailing comma characters. The example below illustrates. What I'd like is to get a fourth element in the answer, being an empty strin...
2007 May 11
14
Trailing commas [best practice survey]
I''m sure everyone has read and committed the Puppet Best Practice to memory by now (I joke). One of the things I''ve written in there deals with trailing commas, which I adopted from the way I used to do multiline in Perl, but I''ve noticed that most people don''t tend to do that in Puppet. Should I revise this or should we all start using the trailing commas? <https://reductivelabs.com/trac/puppet/wiki/PuppetBestPractice#syntax-and-...
2006 Feb 23
3
Decimal comma instead of decimal point (i18n issue)
Hello, What is the easiest way which enables usage of decimal comma "," instead of decimal point (".") . I would like to force all RoR views to display float numbers with comma instead of decimal point and also to allow insertion of float numbers with comma in forms. Thanks in advance, Karel -- Posted via http://www.ruby-forum.com/.
2009 Mar 14
2
gsub and regex to tidy comma-limited values
I am cleaning up comma-limited values, so that only one comma separates each value. Using the example below, as much as I try with regex, I can't remove the last comma. I hope to have a one-liner solution, if possible. gsub("^,*|,*$|(,)*", "\\1", ",,,apple,,orange,,,,,lemon,strawberry,,,,&qu...
2012 Jul 23
3
CSV format issues
...er with global settings in french or in english. Here is an exemple ouf data file : * English output Time,Value 17,-0.0753953 17.05,-6.352454E-02 * French output. Time,Value 32,-7,183246E-02 32,05,3,469364E-02 In the first case, I can totally retrieve both columns, splitting each line using the comma as a separator. In the second case, it's impossible, since the comma (in french) is also used to separate decimal. Usually, the CSV french file format add some quote, to distinguish the comma used as column separator from comma used as decimal, like the following : Time,Value 32,"-7,1832...
2010 Oct 08
4
function using values separated by a comma
Hello, I have a dataframe (tab separated file) which looks like the example below - two values separated by a comma, and tab separation between each of these. [,1] [,2] [,3] [ ,4] [1,] 0,1 1,3 40,10 0,0 [2,] 20,5 4,2 10,40 10,0 [3,] 0,11 1,2 120,10 0,0 I would like to calculate the percentage of the smallest number separated by the comma by: 1) summing the values e.g. for [1,3] where 40,10, 4...
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-tp24845721p2484572...
2014 Dec 09
4
Passing literals with commas to subroutine
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 or not.) Thanks, Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20141...
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" is the...
2017 May 14
0
[PATCH 2/3] Fix ERROR: Macros with complex values should be enclosed in parentheses
..._64-acpi-redef (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All error/warnings (new ones prefixed by >>): drivers//net/virtio_net.c:2647:20: warning: left-hand operand of comma expression has no effect [-Wunused-value] (VIRTIO_NET_F_CSUM, VIRTIO_NET_F_GUEST_CSUM, \ ^ >> drivers//net/virtio_net.c:2659:2: note: in expansion of macro 'VIRTNET_FEATURES' VIRTNET_FEATURES, ^~~~~~~~~~~~~~~~ drivers//net/virtio_net.c:2647:45:...
2007 Sep 12
7
[Bug 1361] New: ssh should handle leading comma in authentication method list
http://bugzilla.mindrot.org/show_bug.cgi?id=1361 Summary: ssh should handle leading comma in authentication method list Product: Portable OpenSSH Version: 4.7p1 Platform: ix86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: ssh AssignedTo: bitbucket at mind...
2007 Sep 24
3
Data manipulations with numbers which are in 'comma' format
...ind a solution... v=data.frame(a=c("1,234","2,345","5,567")) > v a 1 1,234 2 2,345 3 5,567 I need a column 'b', which is just the addition of column 'a' with 5. How do I do it? And, entries in column 'a' are with commas, always. Also, class(v$a)=factor. BR, Shubha [[alternative HTML version deleted]]
2006 Nov 29
3
comma delimiter & comma in text
...ne 2 was broken after King's Home, and by the Sea as placed in another line. and so i eneded up with more number of rows than in the data. when i tried temp <-read.csv(addresses, sep = "," , flush = TRUE) i got things right number of rows, but column 3 was truncated till the 3rd comma. Is there a way i can specify to R that "King's Home, by the Sea" is one word? u r pal, al _________________________________________________________________ All-in-one security and maintenance for your PC.? Get a free 90-day trial!
2012 Sep 10
3
How to remove last comma when iterating through hash in erb template
I need to produce a line in a config file in the format x = "ip1,ip2,ip3" I am using the method below to sort the hash before iterating over it. However, as you can see there will always be a final comma which breaks the app that uses this config file. Does anyone know how I could remove the final comma? ipv4_bind_addresses = "<% routes.sort_by {|key, v| key}.each do |key, v| -%><%= net %>.<%= v[''pubnet''] %>.1,<% end -%>" -- You received thi...
2010 Jan 28
2
[LLVMdev] llc generated machine assembly code for NASM
...1.s:4: error: parser: instruction expected cg1.s:6: error: binary format does not support any special symbol types cg1.s:9: error: attempt to define a local label before any non-local labels cg1.s:10: error: parser: instruction expected cg1.s:12: error: parser: instruction expected cg1.s:15: error: comma, colon or end of line expected cg1.s:16: error: comma, colon or end of line expected cg1.s:17: error: comma, colon or end of line expected cg1.s:18: error: comma, colon or end of line expected cg1.s:19: error: comma, colon or end of line expected cg1.s:20: error: comma, colon or end of line expecte...
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=&qu...
2015 Sep 28
3
Parse Instruction
...mber of operands! :-/ > > Any help is highly appreciated. > > On Mon, Sep 28, 2015 at 10:53 AM, Sky Flyer <skylake007 at googlemail.com > <mailto:skylake007 at googlemail.com>> wrote: > > Hi all, > > in most of the architectures, assembly operands are comma-separated. > I would like to parse an assembly code that is space-separated and > I am having a bit of problem. > In *ParseInstruction* function, I don't know what is the easiest > way to figure out how many operands a mnemonic expected to have. > In comma-sep...
2003 Dec 05
1
How to use Sys.setlocale("LC_NUMERIC")?
Can you help me to use Sys.setlocale("LC_NUMERIC", "cs_CZ") (comma as a decimal point) in some useful way, without all the workarounds? After switching to Sys.setlocale("LC_NUMERIC", "cs_CZ"): -- How do I set attributes in read.csv2() not to get columns of real numbers (decimal point = comma, field separator = semicolon) as factors? Wokrkaro...
2015 Sep 28
2
Parse Instruction
Hi all, in most of the architectures, assembly operands are comma-separated. I would like to parse an assembly code that is space-separated and I am having a bit of problem. In *ParseInstruction* function, I don't know what is the easiest way to figure out how many operands a mnemonic expected to have. In comma-separated assembly code, it just consuming comma...
1999 Mar 31
0
ace () - again
...if this is suspicious I go for the most recent version now). Any pointers or ideas are appreciated. Regards, Lorenz g77 -O2 -fpic -c ace.f -o ace.o ace.f: In subroutine `mace': ace.f:322: warning: 590 format( 15h0eigensolution i2, 1h:) ^ Missing comma in FORMAT statement at (^) ace.f:323: warning: 600 format( 15h eigensolution i2, 23h r**2 = 1 - e**2 =g12.4) ^ Missing comma in FORMAT statement at (^) ace.f:323: warning: 600 format( 15h eigensolution i2, 23h r**2 = 1 - e**2 =g12.4)...