Displaying 20 results from an estimated 8000 matches similar to: "screen wrapping"
2006 May 12
6
text plots?
Is there a way to do text plots in R?
I'd like to do some simple XY plots in R with the output in text
(ascii). For example, with gnuplot I can do the following:
echo 'set terminal dumb ; plot sin(x)' | gnuplot
To generate a simple sin wave. Since I connect to a remote Linux
machine using SSH, being able to generate a rough idea of what a plot
will look like in text would be
2006 May 11
2
R more Unix-like?
Is there a way to stream data into R so that it can be used in a
command pipe?
Most Unix commands read data via standard input and read the script
from the command line. For example:
$ seq 1 10 | sed -e 's/^/foo /'
$ seq 1 10 | awk '{print "foo " $1}'
$ seq 1 10 | perl -lane 'print "foo $F[0]"'
In contrast, R seems to read the script
2006 May 04
3
SQL like manipulations on data frames
Is there a cheat-sheet anywhere that describes how to do SQL-like
manipulations on a data frame?
My knowledge of R is rather limited. But from my experience it seems
as though one can think of data frames as being similar to tables in
a database: there are rows, columns, and values. Also, one can
perform similar manipulations on a data frame as one can on a table.
For example:
2006 May 05
5
large data set, error: cannot allocate vector
Why am I getting the error "Error: cannot allocate vector of size
512000 Kb" on a machine with 6 GB of RAM?
I'm playing with some large data sets within R and doing some simple
statistics. The data sets have 10^6 and 10^7 rows of numbers. R
reads in and performs summary() on the 10^6 set just fine. However,
on the 10^7 set, R halts with the error. My hunch is that
2006 May 09
3
Using DBI and RMySQL
Dear All,
I am having a bit of problem using the DBI and RMySQL
package. I have already installed DBI but now I want
to connect to MySQL. So how do I do it. The CRAN
package repository does not have RMySQL windows binary
to install from?
Regards,
Indrajit Sen Gupta
Business Analyst
Mu Sigma Business Solutions Pvt Ltd
#21/1-1, Nawab Towers
Cunningham Road
Bangalore 560 052, India
Tel: +91 80
2006 May 10
2
command completion?
Does R have command or object name completion?
R has several functions of modern shells built into it e.g. history
mechanism, command-line editing, emacs key bindings. However, it
doesn't seem to have command or object name completion. For example,
in bash I can begin typing a command and then press the tab key to
have the shell fill in the rest of the command (works for environment
2006 May 12
3
.Rprofile file and .First function
I am new to R ( and windows XP ) and am in the process of setting it up I put an options (repos=http://.fhcrc.org") file in my .Rprofile file
and it works but that's all I put in and i don'tknow what to put in my .First function. I understand that .Rprofile is used for more general options
and .First for options specific to that working directory.
would someone mind to send me an
2006 May 10
1
help with writing output from two different arrays to two columns in an output file
Hi,
I am very new to R and I have written the following block of code to
generate a gamma distribution for variable x (which is an array) and a
function "y" whose array values depend on the individual array values of
"x".
The code is as follows:
n=1000
x=rgamma(n,1.5,2)
y=vector("numeric",n)
for (i in 1:n){
y[i]=(2937/50000*exp(-1/1000*x[i])/x[i])
}
now I want to
2006 May 10
2
importing a list
Hi, all.
I'm trying to automate some regression operations in R leaving the
possibility to modify the predictors in the regression.
For example, I have saved in a list the results and then exported as a txt
file, in which we can modify the predictors, putting for example
lm(y~x^2) instead of having lm(y~x) as in the original model.
Now, I need to import in R the txt file as a list to
2006 May 16
2
split the data.frame
Dear R folks:
I wonder anyone has a elegent way of doing what I need to do.
I have a data frame called with four columns: V1, V2, A1 and A2:
V1 V2 A1 A2
A B 1.2 2.0
A D 1.2 4.0
A C 2.4 2.2
What I need to do is to convert it into the following data frame with a new column x, where x is just the stacked up of A1 and A2 placed with respective V1 and V2 in the first two
2006 May 10
3
Unique?
Hello,
I have sample data set that looks like:
YEAR MONTH DAY CONTINUE SPL TIMEFISH
TIMEUNIT AREA COUNTY DEPTH DEPUNIT GEAR TRIPID
CONVUNIT
1992 1 26 1 SP0073928 8
H 7 25 4 NA 1000000
02163399054 161
1992 1 26 1 SP0073928 8
H 7 25 4 NA 1000000
02163399054 8
1992 1 26 2 SP0004228 8
H 7 25 4 NA 1000000
02163399054 161
1992 1 26 2 SP0004228 8
H 7 25 4 NA 1000000
02163399054 8
1992
2006 Jan 18
2
Display an Image on a Plane
Hi,
I am new to R and I would like to display an image on a plane in a 3D plot,
i.e. I would like to be able to specify a theta and a phi parameters like in
the function persp to display a 2D image on an inclined plane.
Regards,
vincent
[[alternative HTML version deleted]]
2006 Jan 18
2
Display an Image on a Plane
Hi,
I am new to R and I would like to display an image on a plane in a 3D plot,
i.e. I would like to be able to specify a theta and a phi parameters like in
the function persp to display a 2D image on an inclined plane.
Regards,
vincent
[[alternative HTML version deleted]]
2005 Jun 03
2
R IRC channel?
Is there an IRC channel for R?
I have a bunch of relatively simple questions that I can't find
answers to. So it'd be nice to send them to an IRC channel rather
than clutter up the mailing list. I'm sure after a few examples and
pointers to the right docs I'll be able to find my way.
Regards,
- Robert
2006 Jan 05
2
Suggestion for big files [was: Re: A comment about R:]
[ronggui]
>R's week when handling large data file. I has a data file : 807 vars,
>118519 obs.and its CVS format. Stata can read it in in 2 minus,but In
>my PC,R almost can not handle. my pc's cpu 1.7G ;RAM 512M.
Just (another) thought. I used to use SPSS, many, many years ago, on
CDC machines, where the CPU had limited memory and no kind of paging
architecture. Files did
2006 Jun 04
4
xy.coords(MATRIX) bug in code or documentation (PR#8937)
Hi, people.
xy.coords() does not behave like its documentation says, when given some
matrices. ?xy.coords says:
If 'y' is 'NULL' and 'x' is a [...] formula [...] list [...]
time series [...] matrix with two columns [...]
In any other case, the 'x' argument is coerced to a vector and
returned as *y* component [...]
Now, consider this short
2005 Apr 11
2
R_LIBS difficulty ?
Hi, R people.
I'm shy reporting this, as a bug in this area sounds very unlikely. Did
I make my tests wrongly? I'm still flaky at all this. Let me dare
nevertheless, who knows, just in case... Please don't kill me! :-)
Not so long ago, I wrote to this list:
> (For now, [the library code] works only for me when I do _not_ use `-l
> MY/OWN/LIBDIR' at `R CMD INSTALL'
2006 Jul 16
2
Matrices given to pt? [was: [R] for loops and counters]
Hi, people.
I was a bit intrigued by the message quoted below. Indeed, if pt() is
given a matrix, it returns a matrix. Should this feature be documented?
?pt speaks about "a vector of quantiles", and says nothing about the
type of what it returns.
The same might presumably apply to other distribution-related functions.
----- Forwarded message from Martyn Plummer <plummer at
2007 Aug 29
1
Excel (off-topic, sort of)
Except for the ability to perform circular recalculation, I believe that the closest programming analogy to a spreadsheet is a functional programming language. Check out Haskell (or LISP or Erlang) to do what you describe.
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Fran?ois Pinard
Sent: Wednesday, August 29, 2007
2006 May 15
2
Truncated labels in hist (PR#8864)
Hi, people. Executing the following command:
hist(rpois(100,5), labels=TRUE)
yields a graphic in which some labels are truncated (on an X11 device).
The truncated labels are those over the highest bars. The hist function
should ideally manage enough room for the labels, automatically.
(Specifying ylim solves my problem, but yet, hist could be frienlier.)
--please do not edit the