dim.hdd: Dimension of a HDD object

View source: R/core.R

dim.hddR Documentation

Dimension of a HDD object

Description

Gets the dimension of a hard drive data set (HDD).

Usage

## S3 method for class 'hdd'
dim(x)

Arguments

x

A HDD object.

Value

It returns a vector of length 2 containing the number of rows and the number of columns of the HDD object.

Author(s)

Laurent Berge

Examples


# Toy example with iris data
iris_path = tempfile()
fwrite(iris, iris_path)

# destination path
hdd_path = tempfile()

# reading the text file with 50 rows chunks:
txt2hdd(iris_path, dirDest = hdd_path, rowsPerChunk = 50)

# creating a HDD object
base_hdd = hdd(hdd_path)

# Summary information on the whole data set
summary(base_hdd)

# Looking at it like a regular data.frame
print(base_hdd)
dim(base_hdd)
names(base_hdd)




hdd documentation built on Aug. 25, 2023, 5:19 p.m.