similar to: "how to set the number format to pure numeric?" was SOLVED

Displaying 20 results from an estimated 100000 matches similar to: ""how to set the number format to pure numeric?" was SOLVED"

2004 Aug 24
2
how to set the number format to pure numeric?
Hello, I want to export a numeric matrix in pure numeric format, i.e. I want 0.0001 to appear as "0.0001". But it seems the default setting for write.table is scientific notation, i.e. it will appear as "1e-04". how to set the number format to pure numeric? Thank you very much for your help. cheers, lichi shi
2008 Jul 25
2
How to preserve the numeric format and digits ?
Instead of > m <- c(400000000, 50000000000) > paste("A", m, "B", sep="") [1] "A4e+08B" "A5e+10B" I want "A400000000" and "A50000000000"
2010 Jun 24
1
how to change the format of numeric variable
Hi, The format problem is really annoying. How to get rid of it? x [1] 1e+06 And also when I do barplot, x=rnorm(100,mean=1000) barplot(table(cut(x,breaks=c(0,50,100,150,200,250,300,350,400,450,500,1000,2000,5000,10000)))) The data will show as scientific format, when it is larger than 999 (1e+03, 5e+3). I would like all the data in the digit format (1000, 5000). Does any function works
2010 Oct 24
1
Optimize parameters of ODE Problem which is solved numeric
Hi, I have a data-matrix: > PID sato hrs fim health 214 3 4.376430 6.582958 5 193 6 4.361825 3.138525 6 8441 6 4.205771 3.835886 7 7525 6 4.284489 3.245139 6 6806 7 4.168926 2.821833 7 5682 7 1.788707 1.212653 7 5225 6 1.651463 1.436980 7 4845 6 1.692710 1.267359 4 4552 5 1.686448 1.220539 6
2010 Jun 20
1
how to convert a set of strings to a list of unique numeric id?
Hi, I have been a matlab user and is learning R. I want to convert a large list of strings to a list of unique numeric ids to reduce storage space. For example, there is a string list (there are duplicates) ABCDDDD ACCDEDF ACCGEDF ACCGEGF ..... ACCDEDF ACCGEGF and I want to have a corresponding numeric id list 1 2 3 4 .... 2 4 In matlab, the 'unique' function can do this in
1999 Nov 05
4
Purely numeric service name
Hi I have a problem accessing NT boxes which have a service (host) name which is purely numeric, smbclient insists on treating it as an ip number. For example:- /opt/samba/bin/smbclient \\\\06842\\BACKUP xxxxx -U xxxxx returns :- Connecting to 0.0.14.34 at port 139 Connection to 06842 failed I am using HPUX 10.2 and samba version 2.0.4b. Surely it should be possible to connect to NT
2011 Jun 24
4
How to capture console output in a numeric format
Hi, I would like to know how to capture the console output from running an algorithm for further analysis. I can capture this using capture.output() but that yields a character vector. I would like to extract the actual numeric values. Here is an example of what I am trying to do. fr <- function(x) { ## Rosenbrock Banana function on.exit(print(f)) x1 <- x[1] x2 <- x[2]
2003 Nov 05
3
How to represent pure linefeeds chr(10) under R for Windows
I need to write out with write.table() a csv file allowing for line feeds (pure chr(10)) as part of character field (not as a line seperator). How can I do that? Best regards Jens Oehlschl?gel --
2011 Aug 24
1
as.numeric() and POSIXct format
Hi! I'm confused by this: > as.numeric(as.POSIXct(518400,origin="2001-01-01")) [1] 978822000 I guess the problem is that as.numeric() assumes a different origin, but cannot find any default origin. How can I get back the seconds from the POSIXct format? In other words, which the inverse function of as.POSIXct()? I've tried as.numeric and unclass() using a origin=
2009 Jun 08
1
Regex question to find a string that contains 5-9 alpha-numeric characters, at least one of which is a number
Hi, This is not exactly an R question but I am trying to use gsub to replace a string that contains 5-9 alpha-numeric characters, at least one of which is a number. Is there a good way to write it in a one line regex? Thanks, Richard
2012 Jun 14
3
Lowest number in a numeric string
Hi all, I've got a very long numeric string. I want to find the lowest number that isn't in that string. E.G String = 123456 Therefore 7 is the lowest number not in that string E.G.2 String = 1234567891011 Therefore 13 is the lowest number not in that string. Any thoughts? p.s. I'm an R noob. -- View this message in context:
2011 Feb 09
5
Problem with long number (from character to numeric class)
Hello, I have a text file with one column containing long number but stored as string. I download the file with read.table (and colClass) and the first row of this column is : "095842087016731010" As I need to make some calculations with these numbers, I tried to convert them using as.numeric. But then I get as.numeric("095842087016731010") 95842087016731008 I understand
2008 Feb 26
4
numeric format
Hi! I'm an R newbie and this should be a trivial problem, but I can't make it work and cannot find what I'm doing wrong in the literature. I entered the the command: table<-data.frame(x, scientific=F, digits=4) table This prints a column of x with 16 useless decimal places after the decimal point. Also, it prints an unwanted index number (1-20) in the left column. How do I get rid
2005 Oct 19
2
Automatic rounding of values after factors , converted to numeric, are multipled by a real number
I am wondering if someone would have any suggestion about my issue? I have the following code: wgts<-aggregate(subset(lendata,select=c(Length)),list(lendata$Cruise,len data$Station,lendata$Region,lendata$Total),mean) wgts<-wgts[order(wgts$Group.3,wgts$Group.1,wgts$Group.1),] names(wgts)<-c("Cruise","Station","Region","Total","MLen")
2011 Feb 08
1
Set a Numeric Field To Blank
Hi, I have one of those questions that I suspect is very simple, but hard to classify, so I have been searching for quite some time and am not able to find it. If I have a data frame and I want to change all the values of one of the columns to blanks, what is the syntax? I tried a few different spellings of Null, etc., but can't get it. Can someone please send me what I suspect is a one
2009 Feb 17
2
[LLVMdev] Pure external functions
Lennart Augustsson mentioned on his blog that he got substantial performance improvements by conveying to LLVM when external functions (e.g. tanh) were pure. How is this done? -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e
2009 Feb 17
0
[LLVMdev] Pure external functions
Hi, > Lennart Augustsson mentioned on his blog that he got substantial performance > improvements by conveying to LLVM when external functions (e.g. tanh) were > pure. first note that tanh is not pure, because the result depends on the current floating point rounding mode. However, if you are willing to sacrifice complete numerical correctness, you can give llvm-gcc the -ffast-math
2009 Feb 17
2
[LLVMdev] Pure external functions
On Tuesday 17 February 2009 09:46:07 Duncan Sands wrote: > Hi, > > > Lennart Augustsson mentioned on his blog that he got substantial > > performance improvements by conveying to LLVM when external functions > > (e.g. tanh) were pure. > > first note that tanh is not pure, because the result depends on the current > floating point rounding mode. Ugh. > However,
2006 May 17
0
Need a little help with the pure Rubywin32-eventlog
> -----Original Message----- > From: win32utils-devel-bounces at rubyforge.org > [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of > Heesob Park > Sent: Tuesday, May 16, 2006 9:51 PM > To: Development and ideas for win32utils projects > Subject: Re: [Win32utils-devel] Need a little help with the > pure Rubywin32-eventlog > > > Hi, > >
2003 Feb 13
1
How to join a linux machine to a "pure" Active Directory Domain using Samba 3.0alpha21?
Hello. I've now compiled and installed Samba 3.0 alpha 21 on a Red Hat 8.0 box (since I sadly don't have a current Mandrake box available in our network). Now I'm somewhat lost - what do I have to do, to make the Samba server join the Active Directory (which doesn't support NT 4.0 Domains)? Is "net ads join" the only thing I've got to do? Where do I set which AD