strr_housing: Function to identify STRs located in housing

View source: R/strr_housing.R

strr_housingR Documentation

Function to identify STRs located in housing

Description

strr_housing takes an STR property file and adds a 'housing' field.

Usage

strr_housing(property, property_type = property_type)

Arguments

property

An STR property file.

property_type

The name of a field identifying the type of property a listing is located in.

Details

A function for adding a 'housing' field to an STR property file. The function reads the 'property_type' fields and categorizes the values into either housing or not housing.

Value

The output will be the input 'property' table, but with an additional 'housing' field added, with TRUE or FALSE values indicating if a given listing is located in housing (TRUE) or in a dedicated tourist accommodation facility such as a hotel or B&B (FALSE).


UPGo-McGill/strr documentation built on Feb. 24, 2024, 6:15 p.m.