Filter a cleaned tibble based on user input

data_filter(df, min_price, max_price, sqrt_ft, num_bedroom_input, city_input)

Arguments

df

tibble

min_price

number minimum price

max_price

number maximum price

sqrt_ft

number footage of the unit

num_bedroom_input

number number of bedrooms

city_input

char the chosen city

Value

tibble

Examples

data_filter(tibble::tibble( "listing_url" = c("example.com"), "price" = c(1000), "num_bedroom" = c(1), "area_sqft" = c(500), "city" = c("vancouver") ), 1000, 2000, 500, 1, "Vancouver")
#> # A tibble: 1 x 5 #> listing_url price num_bedroom area_sqft city #> <chr> <dbl> <dbl> <dbl> <chr> #> 1 example.com 1000 1 500 vancouver