Displaying 20 results from an estimated 2000 matches similar to: "displaying numbers not in scientific notation"
2007 May 09
3
Removing a list of Objects
Hi,
I have a simple beginner's question on removing a list of
objects. Say I have objects C243.Daily1, C243.Daily2...C243.Daily5 in my
workspace. I'd like to remove these without using rm five times.
So I write.
> a <- list(paste("C243.Daily",sep="",1:5))
> rm(a)
Obviously this wouldn't work, as it would only remove the object a.
But is there any way
2010 Feb 02
1
[R] Suppressing scientific notation on plot axis tick labels (PR#14202)
On 02/02/2010 6:20 AM, Dimitri Shvorob wrote:
> Ruben Roa has kindly suggested using 'scipen' option - cf.
>
>> fixed notation will be preferred unless it is more than ???scipen??? digits
>> wider.
>
> However,
>
> options(scipen = 50)
> x = c(1e7, 2e7)
> barplot(x)
>
> still does not produce the desired result.
This is strange. I see what
2003 May 02
2
Suppressing Scientific Notation
R gurus,
Every so often(*) someone asks how to suppress scientific notation in
printing, so I thought I'd give it a shot, but I need some help.
The formatting decision is made(**) on line 286 of src/main/format.c :
if (mF <= *m) { /* IFF it needs less space : "F" (Fixpoint) format */
where mF is the number of characters for "normal" printing and *m is the number
2010 Feb 02
2
Suppressing scientific notation on plot axis tick labels
Is there a better alternative to
x = c(1e7, 2e7)
x.lb = c(0,1e7,2e7)
s.lb = format(x.lb, scientific = FALSE, big.mark = ",")
barplot(x, yaxt = "n", ylab = "")
axis(side = 2, at = x.lb, labels = s.lb)
(I am sure there is a better alternative to line 2 :)).
Thank you.
--
View this message in context:
2010 Aug 10
1
axis labels defaulting to scientific notation
The labels on the x-axis are defaulting to scientific notation no matter
how small cex.axis is. How can I override scientific notation to get the
labels to print out as specified? Here is the code (UNIT here is
0.0105):
plot(xm,yv,log="xy",ylim=c(0.1,20)/UNIT,xlim=c(0.004,20)*UNIT,xaxt="n",t
ype="n")
axis(1,
2006 Feb 15
1
power law
Dear list,
Does anyone know how to fit the power law distribution?
I have the empirical distribution and would like to check whether it fits
power law (with the power estimated from the data).
Any hints are appreciated
Best regards
Galina
[[alternative HTML version deleted]]
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)
2007 Feb 22
1
how to install a package in R on a linux machine?
I downloaded the tar.gz file from r-project website (and saved it in a local
directory) and wish to use the package in R.
But I am not sure how to use the install.packages command. I tried a few
times and still couldn't figure out the correct way to install this package.
[[alternative HTML version deleted]]
2007 Oct 27
2
How to generate all permutation of 0-1 sequences in R?
Hi, folks:
I need to generate all 0-1 sequences with given length,say,n=3, the ideal
result would be
the following matrix:
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Any help would be appreciated.
--
View this message in context: http://www.nabble.com/How-to-generate-all-permutation-of-0-1-sequences-in-R--tf4704377.html#a13446919
Sent from the R help mailing list archive at Nabble.com.
2008 Jan 05
2
Cumulative sum of vector
Hi,
Maybe I have not been looking in the right spot, but, I have not been
able to fine a command to automatically calculate the running
cumulative sum of a vector. Is there such a command?
Example of current code:
> eig$values
[1] 678.365651 6.769697 2.853783
> prop<-eig$values/sum(eig$values)
> prop
[1] 0.986012163 0.009839832 0.004148005
>
2006 Jan 27
3
substituting an object not found
Is there any function in R like
is.not.found(x, y)
meaning if you can't find object x, then use object
y??
Mikkel Grum
2006 Apr 20
1
sna package: how to import data in linked list format
Hello,
I have several "linked list" format network files that I'd like to read into R. Although I found a function to export files in .dl format, I could not find a function to read files in such format.
Is there any quick way to read linked-list format files into R?
Thank you very much.
Jorge Colazo
PhD Student
University of Western Ontario
[[alternative HTML version deleted]]
2006 Apr 23
1
sna package: how to use dataframes
Hi,
I an new to R and I realize this may be a silly question, but I searched the manuals and the list archives and can't find the answer.
When I read data from R I get a dataframe with labels for rows and columns. SNA however asks for pure adjacency matrices, and if I try to use the dataframe gives an error message.
What should do?
Thanks a lot
Jorge A. Colazo
U. of Western Ontario
2006 Apr 23
1
converting similarity matrix formats
Dear all,
I am using a program that generates similarity matrices in the following
non-redundant pairwise format.
a b 0.4
a c 0.5
a d 0.3
b c 0.9
b d 0.6
c d 0.2
matrix(c('a','a','a','b','b','c','b','c','d','c','d','d',.4,.5,.3,.9,.6,.2),byrow=F,nrow=6)
I would like to convert this to a
2006 Jun 15
1
more function in R?
I'm an R newbie and I just have a simple question.
I'm using interactive R on a linux box and I'm trying to find out if there's
a more or a less function. The data I want to look at is larger then my
screen size and all I end up seeing is the last fews line of data. Is there
a way that I can paginate through the data and the results of my summary
functions?
thanks,
Heidi
2006 Jun 29
2
R server
Hi,
I just installed R in Windows, it seems to me that R is a standalone
desktop application. Do you know if R has its server version which could
handle multi-users, have several distinct R sessions and their own
variables in Unix or Windows?
I saw OpenStatServer, RStatServer available, can those handle
multi-sessions?
Thanks
Mike
[[alternative HTML version deleted]]
2006 Aug 22
2
Rgraphviz installation Problem
Dear Robert,
Thanks for your time.
I have downloaded Rgraphviz (windows binary) from www.bioconductor.org
and put inside R2.3.0 library then i installed from the local zip
its says package 'graph' couldnot be loaded.
Am i doing the installation correctly? Still the new user.
Can you guide me sir?
JJ
--
Lecturer J. Joshua Thomas
KDU College Penang Campus
Research Student,
University
2006 Sep 09
1
clustering coefficient
Hi all,
I've been looking for a function that calculates "clustering coefficient" either Newman's or Wattson's.
I have found different functions to calculate different "cluster" but I haven't found yet anything for clustering coefficient, it might be under a different name.
Any ideas?
Cuau
---------------------------------
Get your email and more,
2006 Oct 31
2
information about sna packages
Hello,
I'm a student who want to use the R social network analysis package. I have
a question: can this package analyse dynamical networks (network changing
over time)? I didn't find this functionality in the package's user manual.
Thank you
Davide
[[alternative HTML version deleted]]
2007 Jan 25
2
Unable to install gtkDevice ...
Hello!
I am trying to install gtkDevice package, but without success. It is
complaining about:
* Installing *source* package 'gtkDevice' ...
checking for gtk-config... no
checking for gtk12-config... no
ERROR: Cannot find gtk-config.
I am using Ubuntu 6.06, and I cannot find that package in the
repositories. Is there a remedy of any kind? What can I do?
Best,
Petar M.