Katharine Mullen kate at few.vu.nl writes:
It is not an R package, but rather a collection of Fortran functions
that R uses from netlib:
http://www.netlib.org/port/
Where is Martin Maechler when we need him?
That's not a package, that's a library! :-)
Ben
Hi,
is it possible to get content of ftp directory similar to list.files for
local files?
Directory is password protected.
Thanks
--
View this message in context:
http://www.nabble.com/ftp-directory-tp18368309p18368309.html
Sent from the R help mailing list archive at Nabble.com.
phoebe kong sityeekong at gmail.com writes:
I built a 1,273,230 by 6 data set named mydata2, it was saved in the
following command,
write.table(mydata2, mydata2.txt, row.name=F,col.name=T,quote=F,sep=\t)
The next day I read in above saved text file into R,
Hi everyone,
I have some data in a matrix, and I want to shift it down by one row. The
matrix in question has a date column. Does anyone know of a way to shift the
data by one row, whilst preserving the date column in the matrix - i.e.
shift the data and leave the date column in the current
Using this data as an example
dat - read.table(textConnection(Id myvar
12 1
12 2
12 6
34 9
34 4
34 8
65 15
65 23), header = TRUE)
closeAllConnections()
how can I create another data set that does not have duplicate entries
for 'Id', but the included values
are randomly selected from the
On Wed, Jul 9, 2008 at 3:09 PM, Ben Bolker [EMAIL PROTECTED] wrote:
Katharine Mullen kate at few.vu.nl writes:
It is not an R package, but rather a collection of Fortran functions
that R uses from netlib:
http://www.netlib.org/port/
Where is Martin Maechler when we need him?
That's not
Dear all,
I have problem when reading a table into R. The total row of read in table
has is much less than the original saved table.
I built a 1,273,230 by 6 data set named mydata2, it was saved in the
following command,
write.table(mydata2, mydata2.txt, row.name=F,col.name=T,quote=F,sep=\t)
On Wednesday 09 July 2008, Ben Bolker wrote:
Dylan Beaudette wrote:
| On Wednesday 09 July 2008, Ben Bolker wrote:
| ACroske Audy3272 at yahoo.com writes:
| I have a large matrix full of probabilities; I would like to convert
each
| probability to a 1 or a 0 using rbinom.
| How can I do
Can you provide commented, minimal, self-contained, reproducible code.
If you don't have code, at least provide a before/after version of
the matrix that you would like. It is easy to use indexing to move
stuff around, we just have to know what is it that you want to move.
On Wed, Jul 9, 2008
Try this:
do.call(rbind, lapply(split(dat, dat$Id),
function(x)x[sample(1:nrow(x), 1),]))
On 7/9/08, Juliet Hannah [EMAIL PROTECTED] wrote:
Using this data as an example
dat - read.table(textConnection(Id myvar
12 1
12 2
12 6
34 9
34 4
34 8
65 15
I built a 1,273,230 by 6 data set named mydata2, it was saved in the
following command,
write.table(mydata2, mydata2.txt, row.name=F,col.name=T,quote=F,sep=\t)
The next day I read in above saved text file into R,
temp-read.table(mydata2.txt,header=T,sep=\t,na.strings=NA)
However,
How about this:
dat - read.table(textConnection(Id myvar
+ 12 1
+ 12 2
+ 12 6
+ 34 9
+ 34 4
+ 34 8
+ 65 15
+ 65 23), header = TRUE)
closeAllConnections()
# split by the id and then choose one
x - lapply(split(dat, dat$Id), function(.grp){
+ .grp[sample(seq(length(.grp)), 1),]
+ })
on 07/09/2008 02:17 PM Juliet Hannah wrote:
Using this data as an example
dat - read.table(textConnection(Id myvar
12 1
12 2
12 6
34 9
34 4
34 8
65 15
65 23), header = TRUE)
closeAllConnections()
how can I create another data set that does not have duplicate entries
for 'Id', but the
On 7/9/08, David Afshartous [EMAIL PROTECTED] wrote:
On 7/9/08 1:07 PM, Deepayan Sarkar [EMAIL PROTECTED] wrote:
On 7/9/08, David Afshartous [EMAIL PROTECTED] wrote:
All,
I'm plotting points and lines for various groups.
I'd like subsequent plots done on subsets to
I am plotting a twelve panel plot of a zoo object. I have tried to raise
the cex from 0.6 to 1 to 2 and it does not seem to do anything. I am trying
to output this to a tiff file
tiff()
how do I get the labels of a larger font size
Stephen
--
Let's not spend our time and resources thinking
Query: what package is Reduce in?
(per GG's suggestion to use it)
thanks
Carl
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide
base , if you're not seeing it, upgrade your version of R to the latest.
Carl Witthoft wrote:
Query: what package is Reduce in?
(per GG's suggestion to use it)
thanks
Carl
__
R-help@r-project.org mailing list
on 07/09/2008 04:38 PM stephen sefick wrote:
I am plotting a twelve panel plot of a zoo object. I have tried to raise
the cex from 0.6 to 1 to 2 and it does not seem to do anything. I am trying
to output this to a tiff file
tiff()
how do I get the labels of a larger font size
Stephen
I had
This might not possible in R but I thought I would give it shot. I am have to
set up a 40 x 40 cm grid of 181 points equidistant from each other. Is there
any way to produce a graph with R that can do this for me? Actual sizes are
unimportant as long it is to scale. Thanks
--
View this message
I've determined that the problem with getting the subsetting to work with
the error bars was related to not dropping the unused levels of the Grouping
factor. The simplest solution was to follow a combination of Deepayan's
suggestions 1 and 2 below, i.e., supply one's own colors and subset
What do you mean by equidistant? You can have three points that are
equidistant on the plane, but there's no way to add another point and
have it be the same distance from all of the existing points. (Unless
all the points are in the same place)
Hadley
On Wed, Jul 9, 2008 at 5:02 PM, hippie
Right equidistant was clearly the wrong word. Sorry. I just meant that any
given point should have an equal distance from the four points immediately
surrounding it (x,-x,y-y) aside from those on the edge which will obviously
only have two or three points surrounding.
On Wed, Jul 9, 2008 at 3:12
Here is my problem
a - data$name[1]
b - data$name[2]
c - data$name[3]
a
apple
b
pear
c
banana
result - c( a = 2 , b=3, c=5)
output:
a b c
2 3 5
But I want my output
apple pear banana
2 3 5
[[alternative HTML version deleted]]
a - apple
b - pear
c - banana
result - c(2, 3, 5)
names(result) - c(a, b, c)
Qian R wrote:
Here is my problem
a - data$name[1]
b - data$name[2]
c - data$name[3]
a
apple
b
pear
c
banana
result - c( a = 2 , b=3, c=5)
output:
a b c
2 3 5
But I want my output
apple pear banana
Still not sure exactly what you want, but it sounds like the 'grid'
package may be of some help.
It has very flexible ways partitioning regions for plotting. Is this
anything like you're after?
library(grid)
for(i in 0:10)
for(j in 0:10)
grid.points(i / 10, j / 10, default.unit =
Basically, I want 181 points equally spaced over a 40 x 40 cm area. I want
to be able to specify the number of points and the area to which they are
plotted on. I think you are right that grid is what I am looking for but I
was the grid to have axes which your code below, although appreciated, did
I am still trying to get used to R, and apparently haven't found the right
place in the documentation to see how to do what I want in R. If I were to do
this in C++, there'd be no problem: I'd write it all myself, but I want to
learn R well enough it can save me a lot of coding time.
Here is
Ahhh. That worked perfectly. Thank you very much.
On Wed, Jul 9, 2008 at 4:19 PM, Dylan Beaudette [EMAIL PROTECTED]
wrote:
On Wednesday 09 July 2008, hippie dream wrote:
This might not possible in R but I thought I would give it shot. I am
have
to set up a 40 x 40 cm grid of 181 points
On Wednesday 09 July 2008, hippie dream wrote:
This might not possible in R but I thought I would give it shot. I am have
to set up a 40 x 40 cm grid of 181 points equidistant from each other. Is
there any way to produce a graph with R that can do this for me? Actual
sizes are unimportant as
Georg Otto wrote:
Hi,
I have a problem using figures in Sweave:
To save my figures, I use
\SweaveOpts{prefix.string=figures/figure}
I adjust the figure size for my pdf document using
graphicsFun, fig=TRUE, echo=FALSE, height=10, width=5, eval=TRUE=
this works fine. The file
Hi,
I have been trying to install the Matrix package on R running in Linux
(Fedora). But, I get the following error message (at the bottom). I am logged
in as the root user. Any help would be appreciated! Thanks!
-Hyunseung Kang
* Installing *source* package 'Matrix' ...
Using GNU make for
Thanks Gabor.
I was able to create a function that works really well. One more quick
question if you don't mind.
I want to report the number of observations also (i.e. n = 5420). What
function would do this? I really can't find anything that would just simply
count the number of x's.
Thanks
Ben:
Thanks for the reply. One further question, and this is where my novice
status at R shows through. The code makes sense, but what would I put it for
m? Is it the same number for all three (that was my first thought since it
was the same placeholder for all three). Number of rows in the
Yes I do want a random assignment, instead of rounding. (From what I
understand of the rbinom command, it will randomly assign 1 or 0, and the
higher the given probability, the higher the likelihood of a 1... Feel free
to correct me if I'm wrong!)
Ben Bolker wrote:
-BEGIN PGP SIGNED
Hi,
My question is how do I gain control over what values the X and Y axis show.
Below is a sample plot I have made and want the X axis to represent a time
vector with values taking the form Q1.60, Q2.60, Q3.60...Q1.90..etc...Currently
the X axis starts with value 0 and increases by 1 through
Original Table:
Date Apples Oranges Pears
1/7 2 35
2/7 1 47
3/7 3 810
4/7 5 72
5/7 6 35
What I want after shift (data shifted, dates left unchanged)
Date Apples
Hello all,
New user here. I have R 2.7.1. installed, but don’t have internet access in my
PC. Therefore, I downloaded the ISwR package (Introductory Statistics with R)
from CRAN and then moved it into my HD.
I can’t seem to install the local package under Windows Vista system. I've
tried
The two describe functions have it. Maybe the one in psych too?
Also see valid.n in the prettyR package and of course there is length,
nrows and dim.
On Wed, Jul 9, 2008 at 8:53 PM, nmarti [EMAIL PROTECTED] wrote:
Thanks Gabor.
I was able to create a function that works really well. One more
OK, never-mind. I found length(x). It's been a long day.
Gabor Csardi wrote:
Why don't you write it for yourself, it takes less time than writing
an email:
mysummary - function(x) {
require(plotrix)
require(e1071)
c(Mean=mean(x), Std.Error=std.error(x), Std.Deviation=sd(x),
Right click the R icon and choose Run As Administrator and then
install the package. This is only needed for package installation
if you don't have have a local library in your home tree
and also is not needed for just everyday running of R.
On Wed, Jul 9, 2008 at 9:15 PM, Luciano La Sala
[EMAIL
Maybe I am wrong about this, but I think your problem is actually:
Mutils.h:9:41: error: R.h: No such file or directory
Mutils.h:10:22: error: Rversion.h: No such file or directory
Mutils.h:11:56: error: Rdefines.h: No such file or directory
I think these are important files for compiling
If its a zoo or ts time series you can use the lag function.
On Wed, Jul 9, 2008 at 2:57 PM, rcoder [EMAIL PROTECTED] wrote:
Hi everyone,
I have some data in a matrix, and I want to shift it down by one row. The
matrix in question has a date column. Does anyone know of a way to shift the
Is this what you want:
x - read.table(textConnection(Date Apples Oranges Pears
+ 1/7 2 35
+ 2/7 1 47
+ 3/7 3 810
+ 4/7 5 72
+ 5/7 6 35), header=TRUE)
Indeed.
Presumably R was installed using an RPM from the Fedora repository and
the 'devel' RPM, which contains the requisite header files was not.
Using:
# yum install R-devel
should get you moving forward.
BTW, there is a new Fedora specific e-mail list for R. More info here:
Dear all:
I ‘m a newer. I have some problem when I check my package.
The error messages were as follows. It shows that the problem is about Rd
file. How can I find where the error is? How can I do??
c:\tempRcmd check bear
* checking for working pdflatex ... OK
* using log directory
Le mer. 09 juil. à 06:20, Rainer M Krug a écrit :
Hi
I tried to install rkward under ubuntu hardy heron, but it tried to
use the one from the cran repository which was newer, but it did not
install. To be able to install rkward, I had to disable the cran
repository, install rkward, lock it's
Hi all,
By default a call to xyplot from the Lattice package when using 2
factors [eg xyplot( dv~iv | XY * AB ) ] yields the following shingle
structure:
|_A_|_A_|_B_|_B_|
|_X_|_Y_|_X_|_Y_|
However, I'm wondering if it is possible to merge the upper shingle
within levels of that factor,
Thanks! I'll use the which.min function. I've been learning R from the pdfs
on the CRAN website, but I find the texts to be generally introductory, not
comprehensive, and focused on one niche purpose. Can anyone suggest a good
self-teach guide?
Thanks again!
R_Learner wrote:
I have a long
Mike
see ?strip.custom and strip.default
Basically you need to create a string of factor levels equal to the number
of panels.
Below is an example for a plot of 24 panels 4 columns and six rows.
so that row 1 is:
2000 Summer | 2000 Autumn | 2000 Winter | 2000 Spring
and so on for the
101 - 149 of 149 matches
Mail list logo