Description
This function retrieves number of rows in a tibble or data.frame object.
Usage
td_nrow(x)
Arguments
x |
Required Argument |
Value
Returns the number of rows in a data.frame or a tibble object.
Examples
# Get remote data source connection con <- td_get_context()$connection # Create a dataframe. df <- data.frame(column1 = c(1, 2, 3), column2 = c('teradata', 'vantage', 'release'), column3 = c(TRUE, FALSE, TRUE)) # Returns the number of rows for data.frame. td_nrow(df) # Create table from R dataframe "df". copy_to(con, df, name = "test_table", analyze = TRUE, overwrite = TRUE) # Create remote tibble object. test_table <- tbl(con, "test_table") # Returns the number of rows for tibble object. td_nrow(test_table)