as_network: Coercion to ruta_network

View source: R/generics.R

as_networkR Documentation

Coercion to ruta_network

Description

Generic function to coerce objects into networks.

Usage

as_network(x)

## S3 method for class 'ruta_layer'
as_network(x)

## S3 method for class 'ruta_network'
as_network(x)

## S3 method for class 'numeric'
as_network(x)

## S3 method for class 'integer'
as_network(x)

Arguments

x

Object to be converted into a network

Value

A "ruta_network" construct

Examples

net <- as_network(c(784, 1000, 32))

fdavidcl/ruta documentation built on July 5, 2023, 6:32 p.m.