search for: villandl

Displaying 14 results from an estimated 14 matches for "villandl".

Did you mean: villandr
2009 Apr 14
2
matrix merge problem
Dear r-help contributors, I have two questions: first: I have a matrix A and a vector B. I want to make a new matrix C, which is made of the rows of A having a value included in B. Second: I have two matrixes A and B, of different dimensions. B has unique values in column 2 and A has not unique values on column 2. I want to merge this two matrixes by the values in the columns 2 of B and 2 of
2009 Apr 07
2
Frequency table to histogram
I have read a frequency table in to R called "temp." I now want to create a histogram table from it, but I obviously first have to expand the data - to the sample size of 100. I want to use the command rep(), but I'm not sure how to go about it..I tried using the code: temp1<-rep(temp$Chest,100) hist(temp1) But this creates a v. odd histogram so I know it must be wrong!
2009 May 26
4
Creating multiple graphs based on one variable
Dear List, I would like to create several graphs of similar data. I have x and y values for several different individuals (in this case fish). I would like to plot the x and y values for each fish separately. I can do it using a for loop, but I think I should be using "apply". Please let me know what I am doing wrong, or if there is a "better" way to do this. What I have
2009 May 27
2
Object-oriented programming in R
Dear R-users, I have very recently started learning about object-oriented programming in R. I am far from being an expert in programming, although I do have an elementary C++ background. Please take a look at these lines of code. > some.data = data.frame(V1 = 1:5, V2 = 6:10) ; > p.plot = ggplot(data=some.data,aes(x=V1, y=V2)) ; > class(p.plot) ; > [1] "ggplot" My
2009 Dec 11
1
ggplot: Problem with legend background
Dear R-users, I am preparing graphs for an upcoming article using the different functions of the ggplot2 package and I've been having problems with the legend background. It doesn't seem to scale when the text size is increased. Here's the mandatory reproducible example: library(ggplot2) repFrame <- data.frame(A= 1:10, B= rnorm(1:10), groupNum = rep(c("First group",
2009 Apr 30
1
Overlaying graphs from different datasets with ggplot
Dear R-users, I recently began using the ggplot2 package and I am still in the process of getting used to it. My goal would be to plot on the same grid a number of curves derived from two distinct datasets. The first dataset (called molten.data) looks like this : Column names : Perc, Week, Weight P10 21 333.3554 P90 21 486.0480 P10 22 452.6347 P90 22 563.8263 P10 23 575.0960 P90
2009 May 01
1
A beginner's question about ggplot
Dear R-users, I would have another question about the ggplot() function in the ggplot2 package. All the examples I've read so far in the documentation make use of a single neatly formatted data.frame. However, sometimes, one may be interested in plotting on the same grid information or objects derived from two totally different datasets and customize both displays. I still cannot tell how
2009 Dec 17
2
Sweave Makefile issue
Dear R-specialists, I am trying to create a Makefile that will first convert all my .Rnw files into .tex files and then, that will run the LaTeX compiler to produce a pdf document. This issue has been discussed before. Hence, I've basically adapted a Makefile I found at http://n4.nabble.com/R-Sweave-R-and-complex-latex-projects-td810020.html#a810023 to make it compatible with a Windows
2009 Jun 01
1
installing sn package
...              Live:  OO#.. Dead: OO#..  Playing Research Engineer (Solar/Batteries            O.O#.      #.O#.  with /Software/Embedded Controllers)              .OO#.      .OO#.  rocks...1k ------------------------------ Message: 61 Date: Wed, 27 May 2009 12:00:27 -0400 From: Luc Villandre <villandl@dms.umontreal.ca> Subject: [R] Object-oriented programming in R To: R Help <r-help@r-project.org> Message-ID: <4A1D639B.1090206@dms.umontreal.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Dear R-users, I have very recently started learning about object-oriented pr...
2009 May 05
1
self organizing map advice for categorical data
...JavaScript code in my R package and (ii) is it possible to copy this directory to the user's public_html path during installation ? Thanks! Markus [[alternative HTML version deleted]] ------------------------------ Message: 15 Date: Mon, 04 May 2009 09:40:09 -0400 From: Luc Villandre <villandl at dms.umontreal.ca> Subject: Re: [R] Need to clean a table, and compute mean and SD To: Thom_249 <thomas.jordan at heig-vd.ch> Cc: r-help at r-project.org Message-ID: <49FEF039.6030401 at dms.umontreal.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Thom_249 wrote:...
2009 Apr 01
1
lme between-group and within-group covariance
Dear R users, I would be interested in using the lme() function to fit a linear mixed model to a longitudinal dataset. I know this function allows for the specification of a within-group covariance structure. However, does it allow for the explicit specification of a between-group covariance structure? Being able to specify both separately would be very important in the context of my project
2010 May 20
1
Kate terminal window
Dear R-users, I've recently switched to Ubuntu and I've decided to use Kate to edit my R code. I really like how Kate allows one to simply pipe their code to the terminal. However, I would find it even better if I could actually get the Kate console to display error messages (or any console outputs in fact) in red and my input in a different color. The instance of xterm that Ubuntu
2009 Jul 02
1
Problem with groupedData and lme
Dear R-users, I'm currently having trouble with the implementation of a groupedData object in the lme() function. Executing the following function > applyScalingSimp <- function(input.population) > { > ## GA is a time value > varInOrder <- c("GA","weight","grouping","sex") > modelVar <-
2009 Apr 23
1
Loess over split data
Dear R users, I am having trouble devising an efficient way to run a loess() function on all columns of a data.frame (with the x factor remaining the same for all columns) and I was hoping that someone here could help me fix my code so that I won't have to resort to using a for loop. (You'll find the upcoming lines of code in a single block near the end of the message.) Here's a