close

Close connections to FRED data servers

Syntax

close(c)

Arguments

c

FRED® connection object created with fred.

Description

close(c) closes the connection to the FRED data server.

Examples

collapse all

Connect to the data server at the URL https://research.stlouisfed.org/fred2/.

c = fred('https://fred.stlouisfed.org/');

Adjust the display data format for currency.

format bank

Retrieve all historical data for the US / Euro Foreign Exchange Rate series.

series = 'DEXUSEU'; 

d = fetch(c,series);

d contains the series description.

Close the FRED® connection.

close(c)

Introduced in R2006b