Displaying 20 results from an estimated 11000 matches similar to: "perform t.test by rows and columns in data frame"
2011 Mar 12
1
Stepwise Discriminant... in R
Hello R list,
I'm looking to do some stepwise discriminant function analysis (DFA) based
on the minimization of Wilks' lambda in R to end up with a composite
signature (of metals "Al","Sb","Bi","Cr","Ba") capable of discriminating
100% of the source factors (LANDUSE: "A","B","C").
The Wilks' lambda
2010 Feb 10
2
sum sections of data of different lengths from within a data frame
Dear R Help:
I am trying to sum data from one column in a dataframe based on a value in another. I do not know how to do this easily in R.
For example:
Col A Col B
1 0
3 0
2 1
2 0
1 0
4 0
1 1
9 1
3 0
5 0
2 1
I would like to cumsum the values in Col A for all rows where Col B is 0, and a value of 1 in Col B will reset
2009 Mar 19
1
subtract values
Dear R-help
I am using R version 2.6.2. I am trying to subtract specific values from a larger data frame. I feel this should be straightforward, but I am struggling.
I have a dataframe "Bk" as follows:
DateTime cumPrecip
01/01/2008 00:00 348
01/01/2008 01:00 348
01/01/2008 02:00 348
01/01/2008 03:00 347
01/01/2008 04:00 348
01/01/2008 05:00 348
01/01/2008 06:00 349
2011 Jun 13
1
maintaining row connections during aggregate
Dear All,
I have several sets of data such as this:
year jday avg_m3s
1 1960 1 4.262307
2 1960 2 4.242308
3 1960 3 4.216923
4 1960 4 4.185385
5 1960 5 4.151538
6 1960 6 4.133846
...
There is a value for each day of multiple years. In this particular data set it goes up to 1974. I am am looking to obtain the minimum and maximum values for each year, but also know on which
2006 May 24
2
Has Many Through + Join Model + Forms + Confused?
Hello,
I''m trying to implement something like the following scenario. I''ve got
"Alloys" (blends of metals), "Metals" and "Percentages" I want to implement
this using a join model, not using a has_and_belongs_to_many relationship.
(If i''m wrong about that, let me know).
Basically, i have the following tables:
Metals
id
name
Alloys
2008 Jun 28
1
Mastercam in wine
I run mastercam X2 MR2 at work and I would like to be able to switch our boxes over to Linux. The biggest problem I have is not being able to use our programming software. Has anyone done Mastercam X2 Mr2 for Wine? I'm new at using Wine and Linux ( I installed Ubuntu), if it hasn't been done, where or who could I ask for help if at all possible? I would really appreciate any input on this.
2011 Jun 23
1
else problem
Dear R users,
I have run into a problem using if...else and I hope you can shed some light on it. I am using R version 2.2.0.1.
I have the following data frame:
> head(dat2f)
year tot_km3y
[1,] 1964 0.1876854
[2,] 1965 0.1835116
[3,] 1966 0.1915012
[4,] 1967 0.1869758
[5,] 1968 0.2249865
[6,] 1969 0.1916011
I need to pick out the median year, and since there are an even number of data,
2011 Oct 17
2
special language character in a pie chart
Dear List Members,
I am working on a below piece of code: Initially have created pie
charts with Enlish labels to present the data for Czech Republic, now
however I need to print the label with original Czech fonts.
When I copy paste from Word, certain fonts get 'simplified' distorting
original spelling. How can solve this problem? Is there a package I
can download which will support
2007 Apr 12
2
[LLVMdev] "Name that compiler"
Hi
The Dragon book, led my thoughts to "Here be dragons"
http://en.wikipedia.org/wiki/Here_be_dragons
"In another context, software programmers sometimes use it to indicate
especially difficult or obscure sections of code in a program so that others
do not tamper with them."
Why not some dragon name ? or maybe someone can use this idea to come up with
something else.
/f
2011 Feb 09
3
add error bars in a plot
Dear all
I have a dataset of how metal concentrations change through time. I have made a plot of date versus metal concentration. However I want to add error bars in the plot.
Could you help me?
Thanks
Maria
[[alternative HTML version deleted]]
2012 Dec 05
1
In factor analysis in the psych package, how can I work out which factors the columns in $scores relate to? How do I know what each of the scores is scoring?
Hi
I have used fa() to perform a factor analysis of a psychological battery which is thought to have 11 factors. I can identify which factors the loadings relate to easily enough because I can see which items are loading onto each of the columns in the $loading output. However, how can I identify which items or loadings are being used to create each of the columns in the $scores output? I have
2011 Dec 04
1
Complex multiple t tests in a data frame with several id factors
I have assayed the concentrations of various metal elements in
different anatomic regions of two strains of mice. Now, for each
element, in each region, I want to do a t test to find whether there
is any difference between the two strains.
Here is what I did (using simulated data as an example):
# create the data frame
> elemconc = data.frame(expand.grid(id=1:3, geno=c('exp',
2009 Dec 22
2
use of lm() and poly()
Hi all,
I want to fit data called "metal" with a polynominal function as dP ~ a.0 +
a.1 * U0 + a.2 * U0^2 + a.3 * U0^3 + a.4 * U0^4
The data set includes, the independant variable U0 and the dependant
variable dP.
I've seen that the combination of lm() and poly() can do that instead of
using the nls() function.
But I don't get how to interpret the results from the linear
2010 Apr 27
4
Icecast Server doesnt work.
I am very new on this list, so that I will first say hello to everybody.
I been this morning on the IRC and some guy there explained me that if I
want real help I must pay him 60 euros pe hour.
I hope you dont charge me 60 euros for readiung this email and giving a
hint.
I have tryed to install icecast2 and ices2 on my dedicated server and
followed allthe steps described on your site.
in the end
2008 Jul 30
1
Mixed effects model where nested factor is not the repeated across treatments lme???
Hi,
I have searched the archives and can't quite confirm the answer to this.
I appreciate your time...
I have 4 treatments (fixed) and I would like to know if there is a
significant difference in metal volume (metal) between the treatments.
The experiment has 5 blocks (random) in each treatment and no block is
repeated across treatments. Within each plot there are varying numbers
of
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
Hi all, I am trying to reproduce rails 3.2 behaviour with fields_for and
nested attributes.
class ControllerAction < ActiveRecord::Base
has_many :interactions, dependent: :destroy
has_many :roles, through: :interactions
scope :controllers, lambda {|name| where("controller_name_id = ?",
name)}
scope :actions, lambda {|name| where("action_name_id =
2001 Jul 02
5
Nullsoft Vorbis Decoder v.1.11a Bug Report
Hi, there.
While waiting for the encoder RC1, I will report some minor problems
I experienced with Peter's Winamp decoder.
First, I am using Nullsoft Vorbis Decoder v.1.11a with Winamp v.2.76
on Windows 98 SE.
1. When the buttons of Playlist Editor are extended, the part extended
in playlist screen seems to be flickering when an Ogg file is being played.
2. I check the option of
2011 May 21
4
request.format = :mobile causes error "undefined method `ref' for nil:NilClass"
I have a strange problem with setting request.format = :mobile
I can reproduce this problem on a completely fresh Rails 3.0.7 app
with no special gems. This seemed to work well in Rails 2 but for some
reason is hiccuping here, not sure what''s different in Rails 3 that
makes this hiccup. If you look at the stack track, it doesn''t even
pass through my app stack once -- weird --
2012 May 03
2
username map not working to 3.6.3 (security =ADS)
Hi all,
?
i'm working on solaris 10 with compiling samba version 3.6.3.
My box is client?of LDAP on solaris server
Server Samba is domain member of AD Windows 2008R2
Kerberos is configured to link to AD Windows 2008R2.
?
I'm not use windbind in my configuration.
?
I've got this messages
?
[2012/04/27 13:39:10.550408,? 3] auth/user_krb5.c:50(get_user_from_kerberos_info)
? Kerberos