Description Usage Arguments Details Value Examples
View source: R/remove_rows_n.R
This function removes any rows in which an 'NA' or an 'Inf' entry is found. The function is also able to remove records with 'Inf' entries, distinguishing it from the popular 'na.omit()' function in R.
1 | remove_rows_n(traj, id_field=TRUE, remove=1)
|
traj |
[data.frame (numeric)]: longitudinal data. Each row represents an individual trajectory (of observations). The columns show the observations at consecutive time points. |
id_field |
[numeric or character] Whether the first column
of the |
remove |
[integer] Type of missing entries to remove.
|
Given a matrix (or a dataframe) containing an 'NA' or an 'Inf' entry, the function returns only rows with complete observations.
A matrix with complete observations
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.