2011-04-05 16 views

Respuesta

8

En general, creo que la ayuda incorporada a ser bastante buena. Sin embargo, tiene razón en que la página de ayuda para boxplot menciona na.action sin indicar cuáles son las opciones.

En este caso, ?na.action y - después de allí - (. Estos son bastante general y también se aplica a las cosas que no sean boxplot) ?na.omit explicar las posibilidades

Handle Missing Values in Objects 

Description: 

    These generic functions are useful for dealing with ‘NA’s in e.g., 
    data frames. ‘na.fail’ returns the object if it does not contain 
    any missing values, and signals an error otherwise. ‘na.omit’ 
    returns the object with incomplete cases removed. ‘na.pass’ 
    returns the object unchanged. 

Usage: 

    na.fail(object, ...) 
    na.omit(object, ...) 
    na.exclude(object, ...) 
    na.pass(object, ...) 

Arguments: 

    object: an R object, typically a data frame 

    ...: further arguments special methods could require. 

Details: 

    At present these will handle vectors, matrices and data frames 
    comprising vectors and matrices (only). 

    If ‘na.omit’ removes cases, the row numbers of the cases form the 
    ‘"na.action"’ attribute of the result, of class ‘"omit"’. 

    ‘na.exclude’ differs from ‘na.omit’ only in the class of the 
    ‘"na.action"’ attribute of the result, which is ‘"exclude"’. This 
    gives different behaviour in functions making use of ‘naresid’ and 
    ‘napredict’: when ‘na.exclude’ is used the residuals and 
    predictions are padded to the correct length by inserting ‘NA’s 
    for cases omitted by ‘na.exclude’. 
+1

Publicar contenido completo de archivos de ayuda son no respuestas Un problema de '? Na.action' es que es difícil de entender. – buhtz

Cuestiones relacionadas