Hello R Forum members.
I have installed for my statistician user, apparently without error, both
the concord and geepack packages. The target system is R 2.10.1 on a
64-bit RedHat Enterprise Linux platform.
However when she attempts to invoke a function in geepack, for example...
Dear R users,
Please assist me with the following problem. I have a dataset that looks like
the following:
dat-data.frame(
'id'=rep(c(1,2,3),each=3),
'time'=rep(c(1,2,3),3),
'y'= c(2,2,NA,2,NA,NA,2,5,7)
)
I wish to create a variable for dropout time in dataframe 'dat' such that the
Greigiano Jose Alves alves...@gmail.com writes:
I am working on an article forecasting, which use the dynamic linear model,
a model state space. I am wondering all the commands in R, to represent the
linear dynamic model and Kalman filter.
I am available for any questions.
There are a few
I received by email an R package (file.tar.gz) that was created in Linux.
The package was already installed in another computer in linux using
install.packages and it worked
I am not familiar with installing packages but I would like to install it on
Windows
I downloaded the Rtools29.exe and
It depends on what you C shell scripts are doing. If they are simply
invoking R, then you can install R, and the required packages, on the
Windows PC and then use batch files under Windows to call your
scripts. Running R in the background on Windows is not a problem.
On Sat, May 29, 2010 at
Hi Richard,
First thank you for your attention. Actually
the way it approached the examples of statements do not like a lot,
because the calculations are done separately for each factor of
interest to the interaction. Why will not it pleases me so much? Tukey's tests
as for example using the
I am trying to use the function 'filter.NA=TRUE' in Geneland. The function
appears to be set on TRUE by default, as it appears as TRUE in the
'parameter.txt' file output and hence I do not need to enter the function
per se (as it is an 'Unused argument otherwise') . Hence all my missing
data
Can you suggest me any way to remove a column of a data frame by the column
number,not by the column name.
Thanks,
Suman Dhara
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
Sir,
I want to store the column name of a data frame as a vector and use the
vector to remove a column of the data frame ,if required.
Thanks,
Suman Dhara
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
Hi M. Ribeiro,
For Windows you need to download the correct
package (*.zip) not the Linux package. Once the windows
package has been downloaded into a directory,
you can install it directly from the R shell, see
Packages install packages from local zip files.
Once the package has been installed
Hi,
I am performing experiments in the field of visual perception where
we often apply balanced designs. Within a group of normal subjects,
we vary different stimulus conditions (like contrast, luminance,
temporal frequency of stimulation) and derive some psychophysical or
df - data.frame(x = runif(10), y = runif(10), z = runif(10))
colnames - names(df)
df2 - df[!colnames %in% c(x, y)]
df2
Cheers!!
Albert-Jan
~~
All right, but apart from the sanitation, the medicine, education, wine, public
Hi:
Here are a few ways:
(1) ave():
transform(dat, dropout.time = ave(y, id, FUN = function(x) sum(!is.na(x
(2) same as (1) without the transform() statement:
dat$dropout.time - ave(y, id, FUN = function(x) sum(!is.na(x)))
dat
(3) ddply() in the plyr package:
library(plyr)
snisna -
Hi,
I have a list of 100 data frames, each data frame has 50 obs of 377
variables.
I would like to replace all the NAs with 0 in all the dataframes.
Should I have a for loop for every data frame?
Below is an extract of how the data looks like.
List of 100
$ :'data.frame':50 obs. of
Hi
I'm trying to run an admb model from R by using the system () command.
The admb model runs fine when running it from the admb command line or
when using emacs. However when I try it with system() then R crashes
every time.
And I tried using the R command line and RGui and in both it
Hello fellow R users,
I have an issue that has me a little confused - sorry if the subject makes
little sense, I wasn't sure how to refer to this problem. I have a data set
I've extracted from ArcInfo (a section is shown below). It is spatial data,
showing the distance from one ID to another. I
Hi all:
As to the heatmap function, the default style is red and yellow,and red
refers to low level and yellow refers to high level.
How can I change the style to the contrary: red refers to high level and yellow
refers to low level?
Thanks a lot!
My best
[[alternative HTML version
Thanks a lot for your help. That’s the time period I was looking for.
I’ve got one more question: for further analyses I need the respective maximum
values
within these time periods (between the green and red lines). Preferably in
combination
with the date the maximum event happened.
Thank
I would consider trying the plyr package using the llply function.
With something like:
require(plyr)
func - function(xx)
{
xx[is.na(xx)] - 0
return(xx)
}
llply(your.df.list, func)
What I wondering is why you want to do this.
Best,
Tal
Contact
I checked your data. Now I have to get some sense out of your code. You do :
G - vowel_features[15]
cvc_lda - lda(G~ vowel_features[15], data=mask_features,
na.action=na.omit, CV=TRUE)
Firstly, as I suspected, you need to select a column by using
vowel_features[,15] . Mind the comma!
I've rolled up R-2.11.1.tar.gz a short while ago. This is an update release,
which fixes a number of mostly minor issues. The most annoying one was probably
the problem with format.POSIXlt causing C stack overflow on long date vectors.
See the full list of changes below.
You can get it from
Dear R-community,
maybe someone can help me with this:
I've been using the loess() smoother for quite a while now, and for
the matter of documentation I'd like to resolve the acronym LOESS.
Unfortunately there's no explanation in the help file, and I didn't
get anything convincing from google
We're running Monte Carlo repeated measures for several groups.
The goal is to determine the number of time each group has the highest
score.
A toy example:
[,1] [,2] [,3]
0.1 0.2 0.3
0.1 0.2 0.3
0.1 0.2 0.3
0.1 0.3 0.2
0.1 0.3 0.2
0.2 0.3 0.1
For this example:
Hi:
Here's one approach. Let x be your matrix; then
table(apply(x, 1, which.max))
2 3
3 3
If you prefer the result in data frame form, then
as.data.frame(table(apply(x, 1, which.max)))
Var1 Freq
123
233
HTH,
Dennis
On Mon, May 31, 2010 at 2:39 AM, Noah Silverman
data(airquality)
head(airquality)
Suppose you want to remove the 1st and the 3rd column this will do
airquality[,-c(1,3)]
suman dhara wrote:
Can you suggest me any way to remove a column of a data frame by the
column
number,not by the column name.
Thanks,
Suman Dhara
Dear all,
I am a new user of R, here I have a question about remove the previous
restored workspace. I saved the workspace last time, but R always
automatically load the workspace when I open it. I try to remove the
object and then close R without saving. But next time when I open R, it
On 2010-05-31 0:46, Denis B wrote:
Hello R Forum members.
I have installed for my statistician user, apparently without error, both
the concord and geepack packages. The target system is R 2.10.1 on a
64-bit RedHat Enterprise Linux platform.
However when she attempts to invoke a function in
Dear Dennis,
thank you for your fast response. Perhaps I should have described the
experimental situation in more detail.
This tells you that Subject is being treated as a random block
factor, and that
Conditions 1 and 2 are combinations of treatments applied to each
subject. In
other
See http://en.wikipedia.org/wiki/Loess . It is not an acronym:
the derivation is given in the reference given by ?loess, p.314.
On Mon, 31 May 2010, Peter Neuhaus wrote:
Dear R-community,
maybe someone can help me with this:
I've been using the loess() smoother for quite a while now, and
M.Ribeiro wrote:
I received by email an R package (file.tar.gz) that was created in Linux.
The package was already installed in another computer in linux using
install.packages and it worked
I am not familiar with installing packages but I would like to install it on
Windows
I downloaded the
Using read.table now on large files. Scan should be faster reading and
parsing the files if a 'what' list is provided.
How would I generate a what list that repeats the the last 4 elements n
(n=14 or 10 or 8) times?
whatlist=list(Tstamp=,Condition=0,A1=0,B1=0,C1=0,D1=0)
All are numeric,
Hi all,
I am trying to find the autocorrelation of some time series. I
have say 100 files, some files have only missing values(-99.99, say). I dont
want to exclude these files as they represent some points in a grid. But
when the acf command is issued i get an error.
Error in
Readers,
I have entered a file into r:
,column1,column2
row1,0.1,0.2
row2,0.3,0.4
using the command:
dataframe-read.table(/path/to/file.csv,header=T,row.names=1)
When I try the command:
dataframe[,2]
I receive the response:
NULL
I was expecting:
row1 0.2
row2 0.4
What is my error with
Hi,
I have an error with fisher.alpha from the vegan package.
fisher.alpha(data[[1]])
Error in nlm(Dev.logseries, n.r = n.r, p = p, N = N, hessian =
TRUE, ...) :
missing value in parameter
I am trying to find fisher alpha for a list of 100 data frames, and I
tried it on individual data
Thanks, it works except that I had to add xx - as.data.frame(xx)
into func.
I am trying to calculate diversity indices using the vegan package,
and the functions require zeroes instead of NAs.
Thanks.
Kang Min
On May 31, 5:09 pm, Tal Galili tal.gal...@gmail.com wrote:
I would consider trying
Hi,
Take a look at the heatmap.2 function in the library gplots, and the
brewer.pal in the library RColorBrewer. With this combination you have a far
bigger flexibility on the colors and the output, plus you get a colorcoded
legend. There used to be a bug in that function distorting the legend
On May 31, 2010, at 12:53 PM, Duncan Murdoch wrote:
That's the one that stopped the install. Apparently the Rtools bin directory
is not being found by Windows in your PATH. The Rtools installer can put it
there; maybe you should just reinstall Rtools and choose that option.
Also notice
Use read.csv or read.table(..., sep = ,). Also note that if you
delete the first comma of the header (as in the second example below)
you won't have to specify row.names since it can figure it out from
the fact that there is one fewer column name than data fields.
Lines - ,column1,column2
+
On 05/31/10 10:16 AM, Peter Dalgaard wrote:
I've rolled up R-2.11.1.tar.gz a short while ago. This is an update release,
which fixes a number of mostly minor issues. The most annoying one was probably
the problem with format.POSIXlt causing C stack overflow on long date vectors.
See the full
On 31/05/2010 7:07 AM, Alex van der Spek wrote:
Using read.table now on large files. Scan should be faster reading and
parsing the files if a 'what' list is provided.
How would I generate a what list that repeats the the last 4 elements n
(n=14 or 10 or 8) times?
Hi,
Let's create your data.frame:
dataframe - structure(list(column1 = c(0.1, 0.3), column2 = c(0.2,
0.4)), .Names = c(column1,
column2), row.names = c(row1, row2), class = data.frame)
dataframe[,2]
[1] 0.2 0.4
dataframe[,2, drop=FALSE]
column2
row1 0.2
row2 0.4
So I don't
This is the paper on which the loess algorithm is based in general:
http://www.econ.pdx.edu/faculty/KPL/readings/cleveland88.pdf
The explanation about the origin of the term LOESS is given on page 597.
Cheers
Joris
On Mon, May 31, 2010 at 11:33 AM, Peter Neuhaus pneuh...@pneuhaus.dewrote:
On May 31, 2010, at 1:38 PM, Dr. David Kirkby wrote:
On 05/31/10 10:16 AM, Peter Dalgaard wrote:
CHANGES IN R VERSION 2.11.1
INSTALLATION
o Command 'gnutar' is preferred to 'tar' when configure sets
TAR. This is needed on Mac OS 10.6, where the default
Could you specify the problem and give a minimal example that represents
your datastructure and reproduces the error? See also the posting guides :
http://www.R-project.org/posting-guide.htmlhttp://www.r-project.org/posting-guide.html
Cheers
Joris
On Mon, May 31, 2010 at 1:12 PM, nuncio m
I recently updated R 2.10.1 Patched (2010-02-20 r51163)
This morning I reinstalled biomaRt using biocLite.
Now I can no more connect to biomaRt and even the following instruction is
hanging for a while until
the same error message pops up.
listMarts()
Error in value[[3L]](cond) :
Request to
Hi there,
Take a look at
http://www2.warwick.ac.uk/fac/sci/moac/currentstudents/peter_cock/r/heatmap/
HTH,
Jorge
On Mon, May 31, 2010 at 3:54 AM, å欣 wrote:
Hi all:
As to the heatmap function, the default style is red and yellow,and red
refers to low level and yellow refers to high
On May 31, 2010, at 5:10 AM, Yanwei Tan wrote:
Dear all,
I am a new user of R, here I have a question about remove the
previous restored workspace. I saved the workspace last time, but R
always automatically load the workspace when I open it. I try to
remove the object and then close
Hi
I'm trying to read a data file with output from another program (admb)
into R for further analysis. However I'm not very successfull. The file
extension for the data file is file.rep but it also doesn't help when I
change it to file.txt
I have two problems/questions:
1. The file is a
Try using 'scan' to read in the data:
x - scan(textConnection(3709.17 2660.93 2045.36 2090.33 2096.93 2205.65
2083.72 1797.53 1884.61 1946.59 2101.66 2220.03 2080.04 2097.07 2332.9
2325.47 2091.67 2091.54 2072.38 2025.31 1919.54 1781.95 1867.96 1685.12
1826.31 1654.25 1593.84 1430.96
Hi,
For your first question, scan() might do what you want.
I have never used it, but if I understood it well, it should do what
you're looking for. See ?scan
I would separate your 2nd file.
But someone else more competent probably knows a better way for both
questions
HTH,
Ivan
Le
On 2010-05-31 7:47, Benedikt Gehr wrote:
Hi
I'm trying to read a data file with output from another program (admb)
into R for further analysis. However I'm not very successfull. The file
extension for the data file is file.rep but it also doesn't help when I
change it to file.txt
I have two
If you start R, type :
unlink(.RData)
This deletes the workspace file.
Cheers
Joris
On Mon, May 31, 2010 at 11:10 AM, Yanwei Tan t...@nbio.uni-heidelberg.dewrote:
Dear all,
I am a new user of R, here I have a question about remove the previous
restored workspace. I saved the workspace
On May 31, 2010, at 9:47 AM, Benedikt Gehr wrote:
Hi
I'm trying to read a data file with output from another program
(admb) into R for further analysis. However I'm not very
successfull. The file extension for the data file is file.rep but it
also doesn't help when I change it to
Here is the answer to your second part. You can use the one file and
look for some type of indicator between each section. I used the
example you sent:
input - readLines('/temp/tempxx.txt')
Warning message:
In readLines(/temp/tempxx.txt) :
incomplete final line found on '/temp/tempxx.txt'
The easiest way (I use WIndows) is to start each session without
loading the previous workspace. I explicitly save what I need and
then explicitly restore it. In most cases, I always reconstruct the
data I need.
I use the '--no-restore --no-save' options.
On Mon, May 31, 2010 at 10:04 AM,
try this:
x - read.table(textConnection(TO DISTID
+ 1 2.63981 'A1'
+ 2 0 'A1'
+ 3 6.95836 'A1'
+ 4 8.63809 'A1'
+ 1 0 'A1.1'
+ 2 2.63981 'A1.1'
+ 3 8.03071 'A1.1'
+ 4 8.90896 'A1.1'
+ 1 8.90896 'A2'
here ,I want to plot two lines in one figure.But I have two problems
1) how to move one of the y-axis to be the right ? I tried to the
commandaxis(2),But I failed.
2) how to add the axis information correctly.Since I have use the cmommand
axis(1,at=1:6,labels=gradeinfo$gradenam)
but it seems
Hi,
I'm trying to create a histogram with R. The problem is that the frequency
is high for a couple of x-axis categories (e.g. 1500) and low for most of
the x-axis categories (e.g. 50)
http://r.789695.n4.nabble.com/file/n2237476/LK3_hist.jpg . When I create the
histogram, it is not very
Hi,
Not sure it is the best solution, but I would create the layout of the
plot part by part:
plot(type=n) #does not plot
axis(1, at=1:6,...) #set the x-axis at the bottom
axis(4,...) #set the y-axis on the right. I'm not sure that's what you
were looking for, didn't really understand it
A few ideas:
Make a log-scale y-axis like:
hist(my.data,...,log=y)
argument yaxp can help make the ticks look pretty...see ?par.
Or use various functions from the package `plotirx': axis.break and
gap.barplot might be helpful.
For those functions, you'll probably need to get your frequencies
On 31-May-10 14:49:43, Aarne Hovi wrote:
Hi,
I'm trying to create a histogram with R. The problem is that the
frequency is high for a couple of x-axis categories (e.g. 1500)
and low for most of the x-axis categories (e.g. 50)
http://r.789695.n4.nabble.com/file/n2237476/LK3_hist.jpg .
Thanks a lot...
... makes it a bit difficult to explain, though...
Peter
Quoting Joris Meys jorism...@gmail.com:
This is the paper on which the loess algorithm is based in general:
http://www.econ.pdx.edu/faculty/KPL/readings/cleveland88.pdf
The explanation about the origin of the term
On May 31, 2010, at 11:44 AM, Peter Neuhaus wrote:
Thanks a lot...
... makes it a bit difficult to explain, though...
We drink no wine before its time. Somewhat like trying to explain
splines to non-technical types:
On 31.05.2010 14:03, mau...@alice.it wrote:
I recently updated R 2.10.1 Patched (2010-02-20 r51163)
This morning I reinstalled biomaRt using biocLite.
Now I can no more connect to biomaRt and even the following instruction is
hanging for a while until
the same error message pops up.
On 31.05.2010 17:55, Uwe Ligges wrote:
On 31.05.2010 14:03, mau...@alice.it wrote:
I recently updated R 2.10.1 Patched (2010-02-20 r51163)
This morning I reinstalled biomaRt using biocLite.
Now I can no more connect to biomaRt and even the following
instruction is hanging for a while until
On 31-May-10 15:52:56, David Winsemius wrote:
On May 31, 2010, at 11:44 AM, Peter Neuhaus wrote:
Thanks a lot...
... makes it a bit difficult to explain, though...
We drink no wine before its time. Somewhat like trying to explain
splines to non-technical types:
Hello I am tryin to use the apply functions with two data frames I've got
and I am getting the following error message
Error en HistRio$SecSte : $ operator is invalid for atomic vectors
I don't understand why. when I use the apply I am doing:
PromP - function(HistRio,AnaQuim){
xx - c(0,0,0)
Ok,
I re-installed the Rtools (now Rtools211 because I was in another computer
with R version 2.10) , and the message now when I tried to install the
package was
Warning: invalid package 'GWSR_1.0.tar.gz'
Erro: ERROR: no packages specified
Warning message:
In install.packages(GWSR_1.0.tar.gz,
On 31 May 2010, at 13:03, mau...@alice.it mau...@alice.it wrote:
I recently updated R 2.10.1 Patched (2010-02-20 r51163)
This morning I reinstalled biomaRt using biocLite.
Now I can no more connect to biomaRt and even the following
instruction is hanging for a while until
the same error
Hi Peter,
If this article is correct:
http://www.r-bloggers.com/abbreviations-of-r-commands-explained-250-r-abbreviations/
Loess stands for:
[LO]cally [E]stimated [S]catterplot [S]moothing
Best,
Tal
Contact
Details:---
Hi :
try this: col=rev(your color)
Regards,
Sh.Z
On Mon, May 31, 2010 at 2:16 PM, Jorge Ivan Velez
jorgeivanve...@gmail.comwrote:
Hi there,
Take a look at
http://www2.warwick.ac.uk/fac/sci/moac/currentstudents/peter_cock/r/heatmap/
HTH,
Jorge
On Mon, May 31, 2010 at 3:54 AM, å欣
Thanks for all the help,
So let me undestand,
The Rtools is currently installed in
c:\Rtools\bin;
c:\Rtools\perl\bin;
c:\Rtools\MinGW\bin;
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
C:\Program Files (x86)\QuickTime\QTSystem\;
C:\Program Files (x86)\SAS\Shared
Thanks a lot David!
I use MacOSX and deleted the .RData file, then everything is fine.
Best wishes,
Wei
On 5/31/10 2:49 PM, David Winsemius wrote:
On May 31, 2010, at 5:10 AM, Yanwei Tan wrote:
Dear all,
I am a new user of R, here I have a question about remove the
previous restored
On 31/05/2010 10:49 AM, Aarne Hovi wrote:
Hi,
I'm trying to create a histogram with R. The problem is that the frequency
is high for a couple of x-axis categories (e.g. 1500) and low for most of
the x-axis categories (e.g. 50)
http://r.789695.n4.nabble.com/file/n2237476/LK3_hist.jpg . When I
Hi,
Is there a simple way to save my figures in png instead of pdf with
Sweave ??
Thanks in advance,
Gidas
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
Hi,
Here is what ?apply says:
Returns a vector or array or list of values obtained by applying a
function to margins of an array.
So apply() works on arrays, not on dataframes! Maybe lapply() would do
what you're looking for (don't have time to look more into it)
And you don't do exactly the
What is the meaning of \\1 here? Thanks.
desc - c(hsa-let-7a MIMAT062 Homo sapiens let-7a,hsa-let-7a*
MIMAT0004481 Homo sapiens let-7a*,hsa-let-7a-2* MIMAT0010195 Homo
sapiens let-7a-2*)
I'm missing something:
gsub( MIMA.*, \\1, desc)
[1] hsa-let-7ahsa-let-7a* hsa-let-7a-2*
gsub(
My mistake:
\\1 is a backreference - see replacement argument in ?gsub.
This work:
gsub((.*) MIMA.*, \\1, desc)
On Mon, May 31, 2010 at 2:00 PM, Juliet Hannah juliet.han...@gmail.comwrote:
What is the meaning of \\1 here? Thanks.
desc - c(hsa-let-7a MIMAT062 Homo sapiens
On 31/05/2010 9:13 AM, M.Ribeiro wrote:
Ok,
I re-installed the Rtools (now Rtools211 because I was in another computer
with R version 2.10) , and the message now when I tried to install the
package was
Warning: invalid package 'GWSR_1.0.tar.gz'
Erro: ERROR: no packages specified
Warning
There are a number of errors in the R manual about Solaris.
http://cran.r-project.org/doc/manuals/R-admin.html#Solaris
1) Firstly, Sun are now owned by Oracle, who bought them for $7 billion.
2) (Recent Sun machines are Opterons (‘amd64’) rather than ‘x86’, but 32-bit
‘x86’ executables are
Ivan is -partly- right. However, in the details it says as well that :
If X is not an array but has a dimension attribute, apply attempts to coerce
it to an array via as.matrix if it is two-dimensional (e.g., data frames) or
via as.array.
The main problem is the fact that what goes into the PromP
Hi Jim,
Many thanks - that has worked perfectly, thanks so much for your help!
Best wishes,
Ross
--
View this message in context:
http://r.789695.n4.nabble.com/store-and-repeat-data-based-on-row-names-loop-if-statement-tp2236928p2237628.html
Sent from the R help mailing list archive at
Try replacing a space followed by anything (.*) with the empty string:
x - c(hsa-let-7a MIMAT062 Homo sapiens let-7a,
+ hsa-let-7a* MIMAT0004481 Homo sapiens let-7a*,
+ hsa-let-7a-2* MIMAT0010195 Homo sapiens let-7a-2*)
sub( .*, , x)
[1] hsa-let-7ahsa-let-7a* hsa-let-7a-2*
On Thu,
Two different ways:
library(ggplot2)
x=5
size=50
A=data.frame(X=sample(x, size, replace=T), Y=sample(x, size,
replace=T),a=rep(1:2,each=25));A
# Facetting
qplot(X,Y,data=A) + geom_jitter(position=position_jitter(width=.03)) +
facet_grid(.~a)
# Or with vp
p=qplot(X, Y, data=A) +
M.Ribeiro,
You can install on Windows from the tar.gz using the RTools.
You need to set the PATH to find RTools and it looks like you skipped that
step.
Full details are in the R Extensions manual.
Here are my notes, from several years ago as you can see by the R-2.8.0
paths
and the Rtools29.exe
Hi,
Working on a report that is going to have a large number of graphs and
summaries. We have 80 groups with 20 variables each.
Ideally, I'd like to produce ONE page for each group. It would have two
columns of 10 graphs and then the 5 number summary of the variables at
the bottom.
So, perhaps
Use lattice.
require(lattice)
?lattice
?xyplot
[[alternative HTML version deleted]]
__
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
I have a data frame 10 by 12 with positive and negative numbers. I
want to select only the positive numbers and find the average.
This calculates the average of everything:
av5 - subset(ER9r, Day == 253, select = c (Depth1j:Depth0.75j)
av5 - mean(av5)
I need something along the lines of
Hi,
ggplot2 or lattice could help you in creating the plots. Adding a
summary will however require some play with Grid graphics; either
using gridBase to mix lattice / ggplot2 output with base R graphics
(e.g. textplot() from some package I forget), or you'll need to
produce the textual summary
On May 31, 2010, at 2:06 PM, ecvet...@uwaterloo.ca wrote:
I have a data frame 10 by 12 with positive and negative numbers. I
want to select only the positive numbers and find the average.
This calculates the average of everything:
av5 - subset(ER9r, Day == 253, select = c
Lattice looks nice, but how can I put some summary text at the bottom?
On 5/31/10 11:27 AM, RICHARD M. HEIBERGER wrote:
Use lattice.
require(lattice)
?lattice
?xyplot
__
R-help@r-project.org mailing list
You can save as png like this too:
library(ggplot2)
data=data.frame(
X=sample(10,1000,replace=T)
, Y=letters[1:10])
png(mypng.png)
qplot(X, data=data, geom='histogram') + facet_wrap( ~ Y)
dev.off()
Felipe D. Carrillo
Supervisory Fishery Biologist
Department of the Interior
US Fish Wildlife
Hi Karsten,
There's no easy way to do this because behind the scenes geom_ribbon
uses grid.polygon.
Hadley
On Sun, May 30, 2010 at 7:26 AM, Karsten Loesing
karsten.loes...@gmx.net wrote:
Hi everyone,
it looks like geom_ribbon removes missing values and plots a single
ribbon over the whole
With ggsave the graph windows pops up but using:
png(mypng.png)
qplot(X, data=data, geom='histogram') + facet_wrap( ~ Y)
dev.off()
The graph is saved in the background
Is there a way to hide the graph window when
using ggsave?
You can save as png like this too:
library(ggplot2)
data=data.frame(
the correct way to do it is
solve_TSP(tsp, 2-opt, control=list(rep=56))
-Michael
--
Dr. Michael Hahsler, Visiting Assistant Professor
Department of Computer Science and Engineering
Lyle School of Engineering
Southern Methodist University, Dallas, Texas
(214) 768-8878 *
On Mon, May 31, 2010 at 8:03 AM, mau...@alice.it wrote:
I recently updated R 2.10.1 Patched (2010-02-20 r51163)
This morning I reinstalled biomaRt using biocLite.
Now I can no more connect to biomaRt and even the following instruction is
hanging for a while until
the same error message
The data frame is lwf that records the survival of bushes over an 8 year
period. Years are called bouts. Dead bushes are recorded as zeros, and live
bushes as 1.
str(lwf)
'data.frame': 638 obs. of 9 variables:
$ bushno: int 1 2 3 4 5 6 7 8 9 10 ...
$ bout1 : int 0 1 0 1 1 1 0 1 0 1 ...
$
Dear Peter,
Sincere thanks. Problem solved!
Kind regards,
Denis
--
View this message in context:
http://r.789695.n4.nabble.com/geepack-installation-problem-tp2236893p2237868.html
Sent from the R help mailing list archive at Nabble.com.
__
On May 31, 2010, at 5:29 PM, Mr. Natural wrote:
The data frame is lwf that records the survival of bushes over an 8
year
period. Years are called bouts. Dead bushes are recorded as zeros,
and live
bushes as 1.
str(lwf)
'data.frame': 638 obs. of 9 variables:
$ bushno: int 1 2 3 4 5 6
Hi:
A simple diagnostic is to check how many distinct run lengths exist
in a row - ideally, it should be one or two. If it's more than two,
something
is amiss. Hence, define f() as a function to determine the number of
distinct
runs in a given row and call the apply() function with it:
f -
1 - 100 of 123 matches
Mail list logo