Build_Uncalibrated_Dataset: Build the Uncalibrated Dataset for further use in...

Description Usage Arguments Value Examples

View source: R/Build_Uncalibrated_Dataset.R

Description

Build the Uncalibrated Dataset for further use in SizeExctractR

Usage

1
Build_Uncalibrated_Dataset(path, var.names)

Arguments

path

A Directory path within which holds the text files outputted from SizeExtractR imageJ tools and protocol. The directory path should be given in double quotes in the same format as that returned by the function getwd()

var.names

A vector object of variable names which relate to the directory structure of the directory given by the 'path' argument. This vector should be set using SizeExtractR::CheckSet_DirecVars VEctor length should be equal to the number of subdirectory levels within the directory given by the 'path' paramter.

Value

Returns a dataframe object of all regions of interest (ROIs) from all text files within the directory given by the 'path' argument. Directory strings are recoded into dataframe variables with title referring to the 'var.names' parameter.

Examples

1
2
3
4
5
6
7
8
# load in the output of CheckSet_DirecVars
mypath = paste0(.libPaths()[1],"/SizeExtractR/TextFiles")
print(mypath)
data(varnames)

# Run the function
Database = Build_Uncalibrated_Dataset(mypath, varnames)
head(Database)

liamlachs/SizeExtractR documentation built on Feb. 13, 2022, 9:46 p.m.