Displaying 20 results from an estimated 10000 matches similar to: "Complex binning?"
2009 Jul 10
2
ReShape/cast question - sum of value in table
Hi,
I've tried to capture the basics of this problem I'm having. Been
working on this for a couple of days and just cannot get past it. As a
test of this list software I've attached is a small text file zipped
up. I hope it gets through but if it doesn't I'll post the actual text
which is only 26 lines. Put it somewhere sensible and change the first
line in the code to point
2012 Jan 11
3
summarizing a complex dataframe
I need some help summarizing complex data frames (small example below):
m1_1 m2_1 m3_1 m1_2 m2_2 m3_2
i1 1 1 1 2 2 2
i1 2 1 1 2 2 2
i2 2 2 1 2 2 2
For an arbitrary number of columns (say m1 ?. m199) where the column names have variable patterns,
and such that each set of columns is repeated (with potentially unique data) an
2005 Apr 28
4
wine-20050419 - where to set audio driver type?
Hi,
In a completely clean account that's never run Wine before I run
wine --version. Wine installs a new .wine directory but this Wine
directory has no config file. I looked in the 3 obvious files but none
of them seem to have an option for changing between OSS, Alsa and
JAck. where do I make this setting change now?
Thanks,
Mark
2009 Jul 06
2
ReShape chicks example - line plots
Hi,
In the examples from the ReShape package there is a simple example
of using melt followed by cast that produces a smallish amount of
output about the chicks database. Here's the code:
library(reshape)
names(ChickWeight) <- tolower(names(ChickWeight))
chick_m <- melt(ChickWeight, id=2:4, na.rm=TRUE)
DietResults <- cast(chick_m, diet + chick ~ time)
DietResults
My challenge
2007 Mar 23
1
Completely off topic, but amusing?
Folks:
Thought that many on this list might find this amusing, perhaps even a bit
relevant. Hope it's OK:
************
WASHINGTON - The government's estimate of the number of Americans without
health insurance fell by nearly 2 million Friday, but not because anyone got
health coverage.
The Census Bureau
<http://search.news.yahoo.com/search/news/?p=Census+Bureau> said it has
2005 Oct 23
1
Re: winebuild problems - wine-20050930 [SOLVED]
Sorry for the noise.
On 10/23/05, Mark Knecht <markknecht@gmail.com> wrote:
> On 10/23/05, Mark Knecht <markknecht@gmail.com> wrote:
> > Hi,
> > Does anyone know what happened to the --debug option in winebuild?
> > It seems to have disappeared in more recent versions of Wine.
> >
> > I am attempting to build a program that uses winebuild with
2009 Jul 22
5
Multi-line comments?
Hi,
I looked in the language definition and was surprised. Is there
really no multi-line/block comment defined in R?
I wanted to comment out 20 lines that I'm moving to a function but
didn't want to delete them. Is there no defined way to get around
using a # on each of the 20 lines?
Thanks,
Mark
2009 Jul 05
2
OK - I got the data - now what? :-)
OK, I guess I'm getting better at the data part of R. I wrote a
program outside of R this morning to dump a bunch of experimental
data. It's a sort of ragged array - about 700 rows and 400 columns,
but the amount of data in each column varies based on the length of
the experiment. The real data ends with a 0 following some non-zero
value. It might be as short as 5 to 10 columns or as many
2011 Oct 24
1
binning runtimes
Hello,
Suppose I have the dataset shown below. The amount of observations is too massive to get a nice geom_point and smoother on top. What I would like to do is to bin the data first. The data is indexed by Time (minutes from 1 to 120 i.e. two hours of System benchmarking).
Option 1) group the data by Time i.e. minute 1, minute 2, etc and within each group create bins of N consecutive
2009 Jul 07
4
Test for X=1 fails, test for >0 works, data in text file is 1
Hi,
I am apparently not understanding some nuance about either the use
of subset or more likely my ability to test for a numerical match
using '='. Which is it? Thanks in advance.
I've read a data file, reshaped it and then created MyResults by
keeping only lines where the value column is greater than 0. So far so
good. The data in MyResults looks good to me by eye.
The
2011 Jan 21
1
3D Binning
I am trying to do binning on three variables (3d binning). The bin boundaries
are specified by the user separately for each variable. I used the bin2
function in the 'ash' package for 2d binning that involves only two
variables but didn't any package for similar binning with three variables.
Are there any packages or codes available for 3d binning?? Thank you.
--
View this message in
2009 Jul 03
5
What command lists everything in a package?
Hi,
Two easy questions I'm sure.
1) As an example if I use the code
require(zoo)
then once it's loaded is there a command that lists everything that
zoo provides so that I can study the package?
Certainly help(zoo) gives me some clues about what zoo does but I'd
like a list. Maybe there's a way to query something but in Rgui under
Win Vista ls() returns nothing after zoo
2009 Jul 02
2
Plot two graphs with different ranges in one
Hi, I'm trying to plot two variables in one graph. One ranges between 0 and
1, while the other ranges between 50 and 500. Can I plot them in one graph
with similar scale?
Thanks
Harry
[[alternative HTML version deleted]]
2012 Jun 11
3
Simple Binning of Values
Hello
I am very new to R. I have an R task to complete that I have not been able to find a straightforward answer to as of yet. I have a list of values. I would like to count the number of values that are in one bin, the number that fall in the next bin, etc.
For example
My input file is: 123 48 342 442 43 232 32 129 191 147
I would like the output to be similar to:
0-100 3
100-200 4
2007 Nov 07
3
R as a programming language
Greetings -- coming from Python/Ruby perspective, I'm wondering about
certain features of R as a programming language.
Say I have a huge table t of the form
run ord unit words new
1 1 6939 1013 641
1 2 275 1001 518
1 3 3314 1008 488
1 4 14154 1018 463
1 5 2982 1006 421
Alternatively, it
2009 Jul 09
3
'scan' in a script?
When I use the scan function in the Rgui console it works as expected.
However it seems that when I put the same command in a script file it
doesn't wait for input.
Is there an option to scan to make it wait for input when used in a
script? Or is there possibly a different function that will do in a
script the same sort of thing as scan does in the console?
Thanks,
Mark
2009 Jul 26
2
More complicated multi-plot layouts?
Hi,
I made the attached picture by mocking up three separate plots sort
of like how I'd like to make a new plot. Hopefully it will get through
to the list.
Is there a way to do this directly using par somehow? Or one of the
other plotting packages? Basically, multiple larger plot above
multiple groups of smaller plots? The smaller plots are just
par(mrow=c(2,3)) things, and I can
2009 Jul 28
2
aggregating strings
I am currently summarising a data set by collapsing data based on common identifiers in a column. I am using the 'aggregate' function to summarise numeric columns, i.e. "aggregate(dat[,3], list(dat$gene), mean)". I also wish to summarise text columns e.g. by concatenating values in a comma separated list, but the aggregate function can only return scalar values and so something
2008 Dec 29
1
Trouble installing plyr
I want to learn how to use the reshape package. The reshape package is
not included in the Ubuntu repositories, so I attempted to install
reshape with:
install.packages("reshape")
This is what I got for output:
Warning in install.packages("reshape") :
argument 'lib' is missing: using
'/home/andy/R/i486-pc-linux-gnu-library/2.7'
2009 Sep 09
3
lag a data.frame column?
Sometimes it's the simple things...
Why doesn't this lag X$x by 3 and place it in X$x1? (i.e. - Na's in
the first 3 rows and then values showing up...)
The help page does talk about time series. If lag doesn't work on
data.frame columns then what would be the right function to use to lag
by a variable amount?
Thanks,
Mark
X=data.frame(x=seq(1:10))
X$x1=lag(X$x, 3)
X