Manuel Jesús López Rodríguez wrote:
Dear all,
I would like to know how could I execute a sequence or orders with just a
function, i.e, that just typing the function name, R gives me all the
parameters I want (for instance, if I want to see the summary, the standard
deviation, the number of
Dear all,
I would like to know how could I execute a sequence or orders with just a
function, i.e, that just typing the function name, R gives me all the
parameters I want (for instance, if I want to see the summary, the standard
deviation, the number of valid cases, etc of a dataframe just
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
On Behalf Of Manuel Jesús López Rodríguez
Sent: Sunday, November 29, 2009 12:17 PM
To: r-help@r-project.org
Subject: [R] sequence of commands in R
Dear all,
I would like to know how
You don't see the standard deviations because
only the final result (the output of summary() in
your case) is output by the function, not the
intermediate results (the results of the apply()
function in your case).
Try this:
resumen-function(x) {
print( apply(x,2,sd,na.rm=TRUE))
On 11/30/2009 07:17 AM, Manuel Jesús López Rodríguez wrote:
Dear all,
I would like to know how could I execute a sequence or orders with just a
function, i.e, that just typing the function name, R gives me all the
parameters I want (for instance, if I want to see the summary, the standard
5 matches
Mail list logo