showClass("SlicedData")
SNP_file_name = 'Sample_Data/SNP.txt';
snps = SlicedData$new();
snps$fileDelimiter = "t"; # the TAB character
snps$fileOmitCharacters = "NA"; # denote missing values;
snps$fileSkipRows = 1; # one row of column labels
snps$fileSkipColumns = 1; # one column of row labels
snps$fileSliceSize = 10000; # read file in pieces of 10,000 rows
snps$LoadFile(SNP_file_name);
## Display the dimensions and the number of slices
snps$nRows()
snps$nCols()
snps$nSlices()
Run the code above in your browser using DataLab