Compatibility functions (to package ff) for getting and setting physical and virtual attributes.

# Default S3 method
physical(x)

# Default S3 method
physical(x) <- value

# Default S3 method
virtual(x)

# Default S3 method
virtual(x) <- value

# S3 method for class 'physical'
print(x, ...)

# S3 method for class 'virtual'
print(x, ...)

physical(x)

physical(x) <- value

virtual(x)

virtual(x) <- value

Arguments

x

a ff or ram object

value

a list with named elements

...

further arguments

Value

physical and virtual returns a list with named elements

Details

ff objects have physical and virtual attributes, which have different copying semantics: physical attributes are shared between copies of ff objects while virtual attributes might differ between copies. ff::as.ram() will retain some physical and virtual atrributes in the ram clone, such that ff::as.ff() can restore an ff object with the same attributes.

Author

Jens Oehlschlägel

Examples


  physical(bit(12))
#> $vmode
#> [1] "boolean"
#> 
  virtual(bit(12))
#> $Length
#> [1] 12
#>