ReadInSpiral: ReadIn of Spiral Measurements

Description Usage Arguments Value Examples

View source: R/WoLF_functionsV2.R

Description

Reads in the spiral measurements from an excel template with multiple sheets necessary for the calculation of the growth-invariant and growth-independent meristic characters used for analysis of morphology in nummulitid foraminifera.

Usage

1
ReadInSpiral(Inputpath, Inputsheets, sheetlength, rad_degree)

Arguments

Inputpath

source path for the excel sheet

Inputsheets

vector containing names of existing sheets in the template; sheet names may be changed, but the order of the sheets must remain the same Summary -> marginal radius -> chamber base length -> backbend angle -> septal angle -> chamber area -> chamber perimeter

sheetlength

max. number of rows to read from excel

rad_degree

TRUE or FALSE statement if radians and degree columns are present in the marginal radius sheet

Value

the function returns the dataframes Sum (Summary table), MR (marginal radius), CBL (Chamber base length), BBA (Backbend angle), SA (Septal angle), CA (chamber area), CP (chamber perimeter), CL (chamber length) and PR (Perimeter ratio)

Examples

1
2
3
system.file("extdata","input_data.xlsx", package = "WoLF")
sheets<-c("summary","marginal radius","chamber base length","backbend angle","septal angle", "chamber area", "chamber perimeter")
ReadInSpiral(Inputpath = "C:/Users/user/Desktop/Input_data.xlsx",Inputsheets = sheets,sheetlength = 50,rad_degree=TRUE)

weder90/WoLF_R documentation built on Jan. 21, 2020, 12:18 a.m.