delete_grid: Delete Grid from Nano Object

View source: R/delete_grid.R

delete_gridR Documentation

Delete Grid from Nano Object

Description

Deletes a specified grid from a nano objetct.

Usage

delete_grid(nano, model_no)

Arguments

nano

nano objected created by create_nano().

model_no

position of the grid to be deleted.

Details

Deletes a specified grid from a nano object. When the grid is deleted, all elements associated with the grid will be deleted as well. I.e. all the model_noth elements in each of the lists will be deleted. If deleting a grid which is not the last one, then subsequent elements are moved up the list by one and renamed appropriately. E.g. if there are three grids and the second grid is deleted, then the third grid will move to the second position and will be renamed from "grid_3" to "grid_2".

Value

a nano object with the specified grid deleted.

Examples

## Not run: 
if(interactive()){
 nano <- delete_grid(nano, 1)
 }

## End(Not run)

Nanoputian628/nano documentation built on Oct. 30, 2023, 3:28 p.m.