oops, that should have been:
by(data$Z,data[,c("X","Y")],summary)
Jim
On Tue, May 26, 2020 at 9:00 AM Jim Lemon wrote:
>
> Hi Jamie,
> Your seem to want some descriptive statistic applied to subsets of
> your data frame "data" (maybe a more imaginative name would help).
> I'll guess that your d
Hi Jamie,
Your seem to want some descriptive statistic applied to subsets of
your data frame "data" (maybe a more imaginative name would help).
I'll guess that your data frame contains variables X, Y and Z among
others. Further, I'll guess that you want the summaries of variable Z
subset by Y and X
Hello,
Inline.
Às 13:26 de 25/05/20, Burgess, Jamie escreveu:
Dear all,
I hope this message finds you well. I am currently trying to subset my data by two variables, so far, I have tried two different ways to stratify participants into groups.
I don't understand what you mean by this, do yo
Dear all,
I hope this message finds you well. I am currently trying to subset my data by
two variables, so far, I have tried two different ways to stratify participants
into groups. I would like to use the �summary� and �table� arguments to
characterise the data of participants based on the pre
Your subset problem has been solved already but i'd like to add a
comment on this:
> I want all rows where TTE is equal to 0.024657534
Comparing floating point numbers for equality with '==' is problematic
so a simple df[df$TTE == 0.024657534, ] can easily fail. have a look
at help("=="), especi
Thanks. I have no idea how I did not try that. Sigh!
all good now!
Worik
On Wed, Sep 2, 2009 at 7:04 PM, Stefan Grosse wrote:
> On Wed, 2 Sep 2009 17:12:18 +1200 Worik R wrote:
>
> WR> I have a data frame, df that I want to extract some rows from
>
> What you need is subset, see
> ?subset
>
On Wed, 2 Sep 2009 17:12:18 +1200 Worik R wrote:
WR> I have a data frame, df that I want to extract some rows from
What you need is subset, see
?subset
Example:
df<-data.frame(TTE=(0:10)/100,SOME=rnorm(11))
df
# subset with all columns
subset(df,TTE<0.02)
# the same as:
df[df$TTE<0.02,]
When y
Friends
I have a data frame, df that I want to extract some rows from
Here is a sample of the data
> head(df)
TDate Expiry Underlie Strike CSettle PSettle Futures ExDate
TTE
1 20080102 200801 200803 0.840 0. 0 0.9207 20080104
0.005479452
2 20080102 200801 200803 0.850 0
8 matches
Mail list logo