Displaying 20 results from an estimated 1000 matches similar to: "how to use "lapplyBy" function of "doBy" package"
2009 Jun 09
4
how to substitute missing values (NAs) by the group means
Dear Ruser's
I ask for helps on how to substitute missing values (NAs) by mean of the
group it is belonging to.
my dummy dataframe is:
> df
group traits
1 BSPy01-10 NA
2 BSPy01-10 7.3
3 BSPy01-10 7.3
4 BSPy01-11 5.3
5 BSPy01-11 5.4
6 BSPy01-11 5.6
7 BSPy01-11 NA
8 BSPy01-11 NA
9 BSPy01-11 4.8
10 BSPy01-12 8.1
11 BSPy01-12 6.0
12
2009 Jun 16
1
How to replace outliers by group median?
Dear R-helpers,
Very small amount of outliers can greatly affect the mean and many other
statistic of a numeric variable. So, usually we must deal with the outliers
properly in the process of data analysis. Here, I want to replace outliers
with the group median of the variable. But, I can not construct a good way
to do that efficiently, because of I am a newbie to R and programming.
Can anybody
2010 Jul 08
2
transformation of data.frame
Hello all R users,
I have a problems transforming (or maybe better regrouping) a data.frame.
I have a big data.frame, which I would like to sum up according to a
specific column.
This is an example of my matrix:
ID gen
0042787 gen2
0016070 gen2
0016070 gen3
0007409 Gen1
0007409 gen3
0006511 gen2
0006417 gen3
0016070 gen4
0006511 gen4
I want to rearrange the matrix
2009 Oct 06
2
Unable to load 'doBy' package
Hi all,
I am trying to load the doBy package, and I am getting the following error:
> library(doBy)
Error in loadNamespace(i[[1L]], c(lib.loc, .libPaths())) :
there is no package called 'Hmisc'
Error: package/namespace load failed for 'doBy'
I tried updating R to the current version (2.9.2) and installing the most
recent version of the doBy package (4.0.2), and the error
2010 Dec 08
1
Trouble Loading doBy and coin Packages
Good Evening R-Help Community:
I have attached a file that contains the output from sessionInfo() and a summary
of my Win XP system. I am?running R 2.12.0 and using Tinn-R 2.3.6.2 as my
interface. When I attempt to call either the doBy or coin packages R generates
an error that I do not understand and have so far not been able to resolve by
searching R resources.
I exchanged a couple of
2010 Dec 10
1
New Installs, Same Trouble Loading doBy and coin Packages
I tried Tal's suggestion of deleting the doBy and coin packages and then
reinstalling them from a different mirror. The first install was from the
Harvard mirror and the second was from the Case Western Univ. mirror. The new
packages generate the same errors when I call them using the library() command.
Also, I tried to load these packages using R and its script editor thinking that
the
2010 Apr 23
1
doBy and Hmisc on R version 2.11.0
I installed R 2.11.0, and I don't think I can load the doBy package
now. Any suggestions?
> library("doBy")
Loading required package: survival
Loading required package: splines
Error in loadNamespace(i[[1L]], c(lib.loc, .libPaths())) :
there is no package called 'Hmisc'
Error: package/namespace load failed for 'doBy'
> sessionInfo()
R version 2.11.0
2011 Dec 09
1
Can not install doBy
Every time I try to install the doBy package I receive this error message:
Warning in install.packages :
error 1 in extracting from zip file
Warning in install.packages :
cannot open compressed file 'mvtnorm/DESCRIPTION', probable reason 'No
such file or directory'
Error in install.packages : cannot open the connection
Has anyone run into this problem?
Thanks,
Jason
--
2011 Jun 29
1
library(doBy) will not load
Greetings R Community,
One of my favorite packages won't load and I'm not sure why. It loaded earlier today. The problem appears with the snow package, which doBy requires. I tried reinstalling both packages again ,shutting [R] down, reinstalling [R] in the workspace (shortcut). Here's the weird thing. The same exact library loads in another workspace using the same version of [R]
2017 Oct 30
0
R: dplyr, doBy, and ggplot2 in CentOS7
On Mon, Oct 30, 2017 at 10:27 AM, Larry Martell <larry.martell at gmail.com>
wrote:
> I have a R script that I am running from python with rpy2. On a debian
> system I run this:
>
> apt-get install R-cran-ggplot2 R-cran-caret
>
> And the script works. I want to move this to CentOS 7 system. There it
> cannot find R-cran-ggplot2 or R-cran-caret. Does anyone know what
2017 Oct 30
0
R: dplyr, doBy, and ggplot2 in CentOS7
You can install any R packages from CRAN using the ?"install.packages()"
command form within R itself. This will download, compile, and install the
packages into your personal user account. you might need to install some
supporting *-devel RPM packages via "yum", but otherwise, it should work.
---------------------------------------------------------------------------
Jason
2012 Nov 05
0
Diference in results from doBy::popMeans, multcomp::glht and contrast::contrast for a lme model
Hello R users,
I'm analyzing an experiment in a balanced incomplet block design (BIB). The
effect of blocks are assumed to be random, so I'm using nlme::lme for this.
I'm analysing another more complex experiments and I notice some diferences
from doBy::popMeans() compared multcomp::glht() and contrast::contrast().
In my example, glht() and contrast() were equal I suspect popMeans()
2017 Oct 30
2
R: dplyr, doBy, and ggplot2 in CentOS7
On Mon, Oct 30, 2017 at 10:56 AM Tony Schreiner <anthony.schreiner at bc.edu>
wrote:
> On Mon, Oct 30, 2017 at 10:27 AM, Larry Martell <larry.martell at gmail.com>
> wrote:
>
> > I have a R script that I am running from python with rpy2. On a debian
> > system I run this:
> >
> > apt-get install R-cran-ggplot2 R-cran-caret
> >
> > And the
2009 Aug 19
2
how to fill the area under the density line with semitransparent colors
Dear R-listers,
I have created a plot to display the density lines for the same
variable by different entities. Now, I want to fill the area under the
density lines with semitransparent colors.
Though I have checked that in web-searching and book-reading, I still
do not perform that.
Could anyone please give me any helps or advice? Thank you in advance.
The data and code I used listed below:
#
2011 Jun 24
0
lag and diff with transformBy
I have a question regarding?the very useful doBy package, and
specifically, the transformBy() function?with the lag() and diff()
functions. ?It is often useful to lag or difference data within a
panel, i.e., within a by-group. ?Is the following code a safe use of
transformBy? Is there an alternative?
First, does the initial "orderBy" statement guarantee that the Time
order will be
2017 Oct 30
2
R: dplyr, doBy, and ggplot2 in CentOS7
I have a R script that I am running from python with rpy2. On a debian
system I run this:
apt-get install R-cran-ggplot2 R-cran-caret
And the script works. I want to move this to CentOS 7 system. There it
cannot find R-cran-ggplot2 or R-cran-caret. Does anyone know what
packages in CentOS 7 I need for dplyr, doBy, and ggplot2?
2009 Aug 19
2
Why are there small circles in my plot
Dear R-listers,
There is my data and my codes to create a plot. I want to know why
there are two small circles in the upper right and lower left of the
plot respectively. Could you please share your experience or advice
with me?
# dummy data
factor<-rep(c("Alice","Jone","Mike"),each=100)
factor<-factor(factor)
traits<-c(rnorm(100, mean=1, sd=1), rnorm(100,
2011 Jan 13
1
how to calculate the consistency of different clusterings
Dear R-listers,
I do clustering on tens of individuals by thousands of traits. I have
known the assignment of each individual. I want to classify the
individuals by randomly resampling different subsets of the traits,
for example, randomly resampling 100 traits for 100 times, then 200
traits for 100 times, then 300 traits for 100 times, ,,,,,,. By each
subset of traits, I do clustering of the
2011 Oct 22
4
issue loading doBy library
Hello,
How can I fix this? I have the latest version of R 2.13.2 and I use Mac OS X 10.7.2
> library(doBy)
Loading required package: lme4
Error in dyn.load(file, DLLpath = DLLpath, ...) :
function 'cholmod_l_start' not provided by package 'Matrix'
Error: package 'lme4' could not be loaded
> library(lme4)
Error in dyn.load(file, DLLpath = DLLpath, ...) :
function
2008 Feb 08
1
reshape question
I know there are a lot of reshape questions on the mailing list, but I
haven't been able to find an answer to this particular issue.
I am trying to get a datafame structured like this:
> sub <- rep(1:5)
> ta1 <- rep(1,5)
> ta2 <- rep(2,5)
> tb1<- rep(3,5)
> tb2 <- rep(4,5)
> DF <- data.frame(sub,ta1,ta2,tb1,tb2)
> DF
sub ta1 ta2 tb1 tb2
1