Generic to convert an object of class 'bigdist'

as_bigdist(x, file, ...)

Arguments

x

Object coercible to bigdist

file

File to write the 'bigdist' matrix

...

additional arguments

Value

An object of class 'bigdist'

Details

Writing distances to FBM can be parallelized by setting up a future backend

Examples

temp3 <- as_bigdist(dist(mtcars), file = file.path(tempdir(), "temp_ex4"))
#> ----
#> Location: /tmp/RtmpNBdlQr/temp_ex4_32_double.bk
#> Size on disk: 0 GB
#> #> Attaching package: ‘purrr’
#> The following object is masked from ‘package:testthat’: #> #> is_null
#> completed!
#> ----
temp3
#> $fbm #> A Filebacked Big Matrix of type 'double' with 32 rows and 32 columns. #> #> attr(,"class") #> [1] "bigdist"