Displaying 16 results from an estimated 16 matches similar to: "Grouping by 3 variable and renaming groups"
2018 May 26
0
Grouping by 3 variable and renaming groups
Hello,
See if this is it:
priceStore_Grps$StoreID <- paste("Store",
seq_len(nrow(priceStore_Grps)), sep = "_")
Hope this helps,
Rui Barradas
On 5/26/2018 2:03 PM, Jeff Reichman wrote:
> ALCON
>
>
>
> I'm trying to figure out how to rename groups in a data frame after groups
> by selected variabels. I am using the dplyr library to group my
2018 May 26
1
Grouping by 3 variable and renaming groups
Hello,
Sorry, but I think my first answer is wrong.
You probably want something along the lines of
sp <- split(priceStore_Grps, priceStore_Grps$StorePC)
res <- lapply(seq_along(sp), function(i){
sp[[i]]$StoreID <- paste("Store", i, sep = "_")
sp[[i]]
})
res <- do.call(rbind, res)
row.names(res) <- NULL
Hope this helps,
Rui Barradas
On 5/26/2018
2009 Sep 11
1
bar chart with means - using ggplot
Like this?
# example using qplot
library(ggplot2)
meanprice <- tapply(diamonds$price, diamonds$cut, mean);meanprice
cut <- factor(levels(diamonds$cut), levels = levels(diamonds$cut))
qplot(cut, meanprice, geom="bar", stat="identity", fill = I("grey50"))
dev.new() # create a new graph to compare with qplot
# Example using ggplot
ggdata <-
2012 Jan 16
2
ggplot2 stacked bar - sum of values rather than count
Hi,
I'm trying to create a stacked bar plot using ggplot2. Rather than
plotting the count of each of the 13 "Bar" factors on the Y axis, I
would like to represent the sum of the Values associated with each of
the 13 "Bar" factors. Is there a way to do that? Given the following
data, that would obviously mean that there would be some negative sums
represented. Here's
2010 Jan 26
2
Large dataset importing, columns merging and splitting
Dear All,
I have a large data set that looks like this:
CVX 20070201 9 30 51 73.25 81400 0
CVX 20070201 9 30 51 73.25 100 0
CVX 20070201 9 30 51 73.25 100 0
CVX 20070201 9 30 51 73.25 300 0
First, I would like to import it by merging column 3 4 and 5, since that is
the timestamp. Then, I would like to aggregate the data by splitting them in
bins of 5 minutes size, therefore from 93000 up to
2011 Dec 14
1
Hi
First PRoblem solved
> read.csv("KT80.csv")
X x
1 1 0.01331361
>
I ommitt "" in calling the file name...
2011/12/14 Trying To learn again <tryingtolearnagain@gmail.com>
> Hi all,
>
> I have 100 csv files always with this information (I Attach two example
> excels)
>
> KT80.csv contains:
> ,"x"
>
2011 Mar 22
1
help need on working in subset within a dataframe
Dear R-experts
Execuse me for an easy question, but I need help, sorry for that.
>From days I have been working with a large dataset, where operations are
needed within a component of dataset. Here is my question:
I have big dataset where x1:.....x1000 or so. What I need to do is to work
on 4 consequite variables to calculate a statistics and output. So far so
good. There are more vector
2010 Jun 12
0
No transparency in Google Sketchup's cursor
Dear ones,
In Google Sketchup the cursor changes according to the "tool" you're using.
What happens in Wine, is that the transparency doen't work. It seems that the transparent pixels of the cursor image are displayed as being white.
That shows as a cursor within a white square.
There's at least one bug reported that I know of:
http://bugs.winehq.org/show_bug.cgi?id=23096
2010 Sep 25
0
Unable to change guest vnc port in libvirt
Hi all!
I set in XML
<graphics type='vnc' port='5901'/>
But Libvirt assign first free port from 5900 and take 5900. Anb block
access to host console vnc (tightvnc-server-module).
Console access need not frequently. I do
# service libvirt-guests stop;killall Xorg; service libvirt-guests start
But it dirty hack
Im use Fedora 13
# env LANG=en_US virsh version
Compiled
2020 Feb 04
0
[PATCH 5/5] vdpasim: vDPA device simulator
On 2020/1/28 ??11:32, Dan Carpenter wrote:
> Hi Jason,
>
> url: https://github.com/0day-ci/linux/commits/Jason-Wang/vDPA-support/20200117-170243
> base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
Will fix this.
Thanks
>
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp at intel.com>
>
2020 Feb 20
1
Recommended backup procedure for standalone samba file server configuration?
Hi everyone, I am running Ubuntu 18.04 Bionic with Samba version
4.7.6-Ubuntu.
*Background / Problem Context*
I have recently setup a server where I wish to use a standalone Samba
file server in conjunction with SVN and git and then have all these
services share the same username and password credentials. I wish to
achieve this without using any centralised LDAP or Active Directory or
2004 Oct 06
1
[LLVMdev] Re: Starting with LLVM-GCC on Cygwin
"Chris Lattner" <sabre at nondot.org> wrote in message news:Pine.LNX.4.44.0410061044190.367-100000 at nondot.org...
> On Wed, 6 Oct 2004, Alex Vinokur wrote:
> > > have less impact than for a CPU bound program). In any case, I've added
> > > this program to the LLVM testsuite as
> > > SingleSource/Benchmarks/Misc-C++/bigfib.cpp, so we should have
2010 Dec 31
2
happy new years ssh key problem :)
Hi List,
Happy New Years and I was hoping to get some help on an ssh issue
that I am having. For some reason I am unable to scp to hosts on this
network using RSA keys. Here is what I am doing/what is going on;
scp the public key to remote host
[amandabackup at VIRTCENT18 ~]$ scp ~/.ssh/id_rsa_amdump.pub amandabackup at lb1:~
amandabackup at lb1's password:
id_rsa_amdump.pub
2007 Oct 17
0
28 commits - configure.ac debian/changelog debian/control debian/copyright debian/.gitignore debian/libswfdec0.dirs debian/libswfdec0.files debian/libswfdec0.shlibs debian/libswfdec-dev.dirs debian/libswfdec-dev.files debian/rules debian/swf-player.dirs
Makefile.am | 1
configure.ac | 1
debian/.gitignore | 1
debian/changelog | 54 -----------
debian/control | 36 -------
debian/copyright | 10 --
debian/libswfdec-dev.dirs | 2
debian/libswfdec-dev.files | 5 -
2008 Jun 30
4
Rebuild of kernel 2.6.9-67.0.20.EL failure
Hello list.
I'm trying to rebuild the 2.6.9.67.0.20.EL kernel, but it fails even without
modifications.
How did I try it?
Created a (non-root) build environment (not a mock )
Installed the kernel.scr.rpm and did a
rpmbuild -ba --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee
prep-out.log
The build failed at the end:
Processing files: kernel-xenU-devel-2.6.9-67.0.20.EL
Checking
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
Signed-off-by: Scott Seago <sseago at redhat.com>
---
AUTHORS | 17 ++++++
README | 10 +++
conf/ovirt-agent | 12 ++++
conf/ovirt-db-omatic | 12 ++++
conf/ovirt-host-browser | 12 ++++