Displaying 20 results from an estimated 500 matches similar to: "subtotal, submean, aggregate"
2009 Feb 07
3
Re-post data format question (apologies)
Hello all,
I have a *.csv file that looks like this (actual file is orders of magnitude
larger):
Site taxa no.ind
forest LMA 1
forest LCY 1
forest SCO 1
meadow LMA 2
meadow LCY 1
meadow PNT
2007 Aug 28
1
subcripts on data frames (PR#9885)
I'm not sure if this is a bug, or if I'm doing something wrong.
=20
=46rom the worms dataframe, which is at in a file called worms.txt at
=20
http://www.imperial.ac.uk/bio/research/crawley/therbook
<http://www.imperial.ac.uk/bio/research/mjcraw/therbook/index.htm>=20
=20
the idea is to extract a subset of the rows, sorted in declining order
of worm density, with only the maximum
2007 Jul 05
3
data messed up by read.table ? (PR#9779)
Full_Name: Joerg Rauh
Version: 2.5.0
OS: Windows 2000
Submission from: (NULL) (84.168.226.163)
Following Michael J. Crawley "Statistical Computing" on page 9 the worms.txt is
required. After downloading it from the book's supporting website, which is
http://www.bio.ic.ac.uk/research/mjcraw/statcomp/data/ I visually check the data
against the book and they look identical. Then I do
2003 Jul 21
1
Setting name attributes to a vector - join?
I have a vector of land cover class data from a GIS:
> landcov[1:10,2] #the first ten examples of a large (100k+) object
1 2 3 4 5 6 7 8 9 10
12 12 01 12 01 15 15 15 15 15
etc.
I also have a lookup table for the class data that gives the cover type
as a string:
> cnd.names #the look up table, i.e., landcov[3,2] == 1 == "Montane
Meadow"
CndVal
2017 Jun 17
1
(no subject)
I have 4 years of data and for each year, I have initialize the value so now for fitting the model, I want to remove the initial value and get the model based on remaining data set. Could anyone can help on this?
I want to get linear model based on fourth column and 13th column but need to remove the initial value for each year and each treatment ( the second column I have 1:36) .
Thank you,
2008 Oct 02
2
aggregate empty row for pretty appearance also subtotal if possible
Hi,
To pretty print aggregates by various dimensions I needed to add a
empty row in output of aggregate.
For example.
d<-(aggregate(data[,cbind("x")], by=list(data$group1,data$group2),
sum))
Group.1 Group.2 x
1 A N 3
2 A Y 2
3 B N 420164905
Is there a way to add an empty
2003 Oct 17
1
netbios and samba
Hi all
Bear with me on this one...
We have a problem connecting to a specific port via Oracle TNSPING
There are two PC's in our office that are on the same network as the server
(i.e. my desktop PC can not get to the server)
The server has multiple network interfaces, the primary is a gigabit fibre
card on IP xx.16.
The secondary is a megabit card on IP xx.80
The tnsping command fails
2013 Apr 19
5
how to subtotal by rows
Dear R-users,
I have a dataset as like below, and I want to subtotal the values of rice,wheat and maize by year for each fid.
fid year rice wheat maize
------------------------------------------------
1 1995 5 NA NA
1 1995 NA 3 NA
1 1995 NA NA 2
1 1996 4 NA NA
1
2003 Jul 22
1
Making a group membership matrix
Hi Helpers:
I have a factor object that has 314k entries of 39 land cover types.
(This object can be coerced to characters neatly should that be easier
to work with.)
> length(foo)
[1] 314482
> foo[1:10]
[1] Montane Chaparral Barren Red Fir Red Fir
[5] Red Fir Red Fir Red Fir Red Fir
[9] Red Fir Red Fir
39 Levels:
2011 Feb 18
1
Using Weights in R
I am new to R. I have a data set like this (given below is a fictional
dataset):
AgeCat FINWT
1 98
2 62
1 75
3 39
4 28
2 47
2 66
4 83
1 19
3 50
I need to calculate the weighted distribution of the variable AgeCat.
In SAS i can do:
proc freq data=ageval;
tables agecat;
weight finwt;
run;
What or is there an equivalent in R?
TIA,
Krishnan
--
Krishnan Viswanathan
1101 High Meadow Dr
2011 Jun 01
1
git push heroku master - has error
I am trying to put my app on heroku, following the instructions, when
I get here I get this error:
$ git push heroku master
Enter passphrase for key ''/c/Users/Laurence/.ssh/id_rsa'':
Counting objects: 277, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (246/246), done.
Read from remote host heroku.com: The connection was aborted
fatal: sha1 file
2017 Dec 01
1
Timezone problem with 3.4.2
From Peter Dalgaard announcement earlier today.
CHANGES IN R 3.4.3:
INSTALLATION on a UNIX-ALIKE:
* A workaround has been added for the changes in location of
time-zone files in macOS 10.13 'High Sierra' and again in
10.13.1, so the default time zone is deduced correctly from the
system setting when R is configured with --with-internal-tzcode
(the default on
2017 Dec 01
0
Timezone problem with 3.4.2
Mark
Thanks for pointing this out. I did a default installation of R. Does this mean that I need to reinstall from the command line?
Dennis
Dennis Fisher MD
P < (The "P Less Than" Company)
Phone / Fax: 1-866-PLessThan (1-866-753-7784)
www.PLessThan.com <http://www.plessthan.com/>
> On Nov 30, 2017, at 6:42 PM, R. Mark Sharp <rmsharp at me.com> wrote:
>
>
2012 Apr 03
1
Compare by row and insert previous row value (Or non Time Series Lag)
I have the following sample dataset (CSV input here:http://goo.gl/YR8LP.
CSV output here: http://goo.gl/EFCC8) which I want to transform as follows.
For each person in a household I want to create two new variables OrigTAZ
and DestTAZ. It should take the value in TripendTAZ and put that in
DestTAZ. For OrigTAZ it should put value of TripendTAZ from the previous
row. For the first trip of every
2011 Jan 28
1
Help with ape - read.GenBank()
Hi,
I am trying to work with the ape package, and there is one thing I am
struggling with. When calling the *read.GenBank()* function, I can get it
to work with an object created like this:
*>x <- c("AY395554","AY611035", ...)*
*>read.GenBank(x)*
However, I am trying to use the function to fetch several hundred sequences
at once. So I have been testing with small
2011 Feb 19
1
Conditional recoding
I am trying to recode a variable into another variable and while the package
'car' works well when it is only recoding A into B, I am not sure I can do
the same with recoding (A or C) into B. If i can use recode please advise on
how to. So i am using an if/else if conditions.
My sample dataset is below along with the code and the warning and results i
get.
TIA
Krishnan
#****Code****
2011 Oct 30
5
Fatal error: The remote end hung up unexpectedly
Hi,
I''d like to create my first ROR application on Heroku but I can''t deal
with one step in this tutorial:
http://devcenter.heroku.com/articles/quickstart
I''ve spent all my day for this and I have no idea what is wrong...
I cannot deal with last one in 3th part -> Create your Heroku
application
What I did:
I''ve installed eveything what I need
1.
switch to
2012 Oct 17
3
subtotals based on price bands?
I would like to create a subtotal table with custom bands.
seq1 = seq(0, 100, by = 5)
seq2 = seq(100, 1000, by = 100)
Bands = c(seq1, seq2)
#Prices
Prices = sample(1:1000, 200, replace=F)
#corresponding size for the given price above.
size = sample(1:1000, 200, replace=F)
How would I find the subtotal of the size based on a given price falls
within a band?
--
View this message in
2002 Sep 11
2
fitting a linear mixed effects model
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1284 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20020911/e68e2ecc/attachment.bin
2011 Apr 28
1
using lme4 with three nested random effects
Hi all,
I'm trying to fit models for data with three levels of nested random
effects: site/transect/plot. For example,
modelincrBS<-glmer(l.ru.ba.incr~shigo.av+pre.f.crwn.length+bark.thick.bh+Date+slope.pos.num+dens.T+dbh+leaf.area+can.pos.num+(1|site/transect/plot),
data=rws30.UL, family=gaussian, na.action=na.omit)
but I get the following error:
Error: length(f1) == length(f2) is not