# NOT RUN {
#--------------------------------------------------------
# Example 1
#--------------------------------------------------------
# Load the ocean current data
data("Current")
# Calculate the statistics
ref<-Current[["ref"]]
mod<-Current[["mod"]]
UV <- SailoR.Indices(ref,mod)
# Obtain the summary of the results
SailoR.Table(UV)
#--------------------------------------------------------
# Example 2: Table 2 from S<U+00E1>enz et al. (2020)
#--------------------------------------------------------
# Load Synthetic data
data(Synthetic)
ref<-Synthetic[["ref"]]
mod<-Synthetic[["mod"]]
# Calculate the statistics
UVtable=SailoR.Table(UV,round_digits = 4)
TotVar<-c((UVtable$sdUx^2+UVtable$sdUy^2)[1],
(UVtable$sdVx^2+UVtable$sdVy^2)[-1])
TotSigma<-UVtable$Sigmax^2+UVtable$Sigmay^2
UVtable<-cbind(UVtable[,1],TotVar,TotSigma,UVtable[,8:15])
UVtable<-round(UVtable[,-1],2)
#If you want to print it as a LaTeX table:
#library(xtable)
#oInfo<-xtable(UVtable)
#print(oInfo,type="latex",file="table.tex")
# }
Run the code above in your browser using DataLab