find_col_info: Find column information in a data.frame

View source: R/summarize_cols.R

find_col_infoR Documentation

Find column information in a data.frame

Description

For a data.frame, loop through the columns provided (cols_check) and summarise the number of non-NA entries and the groups that contain non-NA entries (for example if want to search trial, year, or filename), and return the first non-NA entry as an example

Usage

find_col_info(df, cols_check, by_col)

Arguments

df

A data frame

cols_check

A character vector of column names to check

by_col

A bare variable to summarise

See Also

Other summarize column functions: select_colsfromlist(), summarize_colnames(), summarize_ncol(), summarize_variables()


IdahoAgStats/facthelpeR documentation built on Jan. 29, 2024, 9:22 a.m.