On Wed, 3 Feb 2010, David Winsemius wrote:
args <- commandArgs()
filename = args[6]
m = read.csv(filename, header=TRUE)
m = data.frame(scale(m, center=FALSE, scale = c(60, 1024^2, 1024^2, 1)))
mRSS = m[,c("time", "RSS")]
mVSZ = m[,c("time", "VSZ")]
mPERCENT = m[,c("time", "X.MEM")]
pdf(file=pa
Hi,
See the files at
http://bulldog.duhs.duke.edu/~faheem/R/
Usage is
$ Rscript memgraph.R meminfo.csv
Output is meminfo.pdf. As you can see, one of the lines (blue) runs off
the top of the graph. Can anyone suggest a way to avoid this happening?
Please CC me on any reply. Thanks in advan
Hi Charles,
Thanks for the reply.
On Sun, 30 Nov 2008, Charles C. Berry wrote:
On Sat, 29 Nov 2008, Faheem Mitha wrote:
Hi,
If I want to import the contents of a R file into another one, I can do
source("foo.R")
However, this imports everything from foo.R, including all func
Hi,
If I want to import the contents of a R file into another one, I can do
source("foo.R")
However, this imports everything from foo.R, including all functions and
global variables. Is there a way of selectively importing individual
functions etc., in a similar fashion to Python's
from fo
Hi,
This page is now Ok.
Thanks, Faheem.
On Mon, 24 Nov 2008, Faheem Mitha wrote:
Hi,
I'm getting an error from
http://stat.ethz.ch/R-manual/
linked from http://www.r-project.org/
as follows
**
Forbidden
On Tue, 25 Nov 2008, Uwe Ligges wrote:
See ?help and its argument "offline"
Uwe Ligges
Thanks, that's very helpful. This doesn't exactly print, but saves the
help page to a ps file, which is as good as.
help(write.table, offline=TRUE)
No latex file is available: shall I try to create i
Hi,
I'm getting an error from
http://stat.ethz.ch/R-manual/
linked from http://www.r-project.org/
as follows
**
Forbidden
You don't have permission to access /R-manual/ on this server.
Additionally, a 403 Forbidden err
Hi,
Does anyone know how to print help files from R's prompt?
One can read the help text for read.table by doing
?read.table
on the R prompt. In a similar fashion, can I print the help read.table
without having to resort to a web browser?
Please CC me on any reply.
Hi Hans,
Thanks for the reply.
On Tue, 18 Nov 2008, Hans Werner Borchers wrote:
Faheem Mitha email.unc.edu> writes:
Hi,
Does anyone know of an R ORM (Object Relational Mapper)? I'm thinking of
something similar to sqlalchemy (http://www.sqlalchemy.org/).
Alternatively or addi
Hi,
Does anyone know of an R ORM (Object Relational Mapper)? I'm thinking of
something similar to sqlalchemy (http://www.sqlalchemy.org/).
Alternatively or additionally, can people offer suggestions about managing
relational databases from R. I'm currently using postgresql, but would
like a
On Wed, 6 Aug 2008, milton ruser wrote:
Try this
foo1 = function(val)
{
return(d[val])
}
foo1("x")
Thanks for the suggestion. I appreciate it. My original question wasn't
just a pragmatic "how do I do this" type question. I was also wondering
about the language issues involved.
Hi,
Consider the following
x = c(1,2)
y = c(3,4)
d = data.frame(cbind(x,y))
d$x
[1] 1 2
d$"x"
[1] 1 2
foo = function(val)
+ {
+ return(d$val)
+ }
bar = function()
+ {
+ return(d$"x")
+ }
foo("x")
NULL
bar()
[1] 1 2
I'm a little surprised that R accepts both the form d$x and
On Wed, 30 Apr 2008, Prof Brian Ripley wrote:
What is wrong with
file.create("foo")
[1] TRUE
file.info("foo")$size
[1] 0
file.remove("foo")
?
Thanks, that works for me.
I really wonder what searches you did: help.search("file") come up with
file.info.
I did a Google search for "R
Hi,
Is there a way to check whether a file is empty in R. I did the customary
searches, but did not find anything. Please cc me on any reply.
Thanks, Faheem.
__
R-help@r-project.org mailing
On Wed, 26 Mar 2008, Prof Brian Ripley wrote:
> Where did you get that idea from? Not from the help page:
No. From direct observation. Ie. comparing what the function actually
returned vs actual elapsed time. In one case I observed, these two are
dramatically different. It is possible I made
Hi,
Can anyone point me to documentation of how R objects such as vectors,
lists, matrices and data frames are laid out in memory? For example, which
of these are laid out as a 1-d array, 2-d array and so forth?
The R Internals document seems like the natural place to look, but I don't
see it
Hi,
As far as I can tell, The R function unix.time calculates elapsed CPU
time. Is there a command within R to measure actual elapsed time (I think
this is sometimes referred to as wall time)?
For example, the time command from GNU time calculates the actual elapsed
time, as far as I can tell
On Fri, 21 Sep 2007, Greg Snow wrote:
> Look at the subset function (?subset), it may do what you want.
This looks useful. Thanks. However, how can I write an expression
selecting certain rows (subset argument) in the case of a matrix? when it
does not have named columns? The documentation do
Hi,
Consider the following example.
> a = c(1,2,3); b = c(4,5,6); c = cbind(a,b); c[(2 < c[,1]) & (c[,1] < 4),]
a b
3 6
So, the idea is to select rows for which the value in the first column is
between 2 and 4. This works, however, I don't like having to reference a
explicitly in this fashio
19 matches
Mail list logo