| hosp_network | R Documentation | 
hosp_networkCreates an object of class hosp_network with the data and columns provided, allowing functions for hosp_network objects to be used
hosp_network(x, fromUnit = NULL, toUnit = NULL, fromRoom = NULL, toRoom = NULL)
x | 
 A   | 
fromUnit | 
 Optional, unquoted column name from   | 
toUnit | 
 Optional, unquoted column name from   | 
fromRoom | 
 Optional, unquoted column name from   | 
toRoom | 
 Optional, unquoted column name from   | 
An object of class hosp_network and data.frame
hn_data <- hosp_network_data # read in example data provided in package cleaned_hn_data <- clean_hosp_network(data = hn_data, uniqueID = UniqueEncountID, startDate = BeginDate, endDate = EndDate, unitName = UnitName, roomNum = RoomNumber) # clean the data using specific columns in the dataset hn_object <- hosp_network(x = cleaned_hn_data, fromUnit = UnitName, toUnit = next_unit, fromRoom = RoomNumber, toRoom = next_room) # create an object of class hosp_network hn_object2 <- hosp_network(x = cleaned_hn_data, fromUnit = UnitName, toUnit = next_unit) # create an object of class hosp_network, but only with unit data ## Not run: hn_object3 <- hosp_network(x = cleaned_hn_data, fromUnit = UnitName, toUnit = next_unit, fromRoom = RoomNumber) # will throw an error because the next room is not given, but the original room is ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.