Skip to content

Commit 95fb8ed

Browse files
Merge pull request #490 from StoXProject/develop
Develop
2 parents 4d3e8aa + 632a0f2 commit 95fb8ed

4 files changed

Lines changed: 35 additions & 35 deletions

File tree

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: RstoxData
2-
Version: 2.2.0-9011
3-
Date: 2026-01-23
2+
Version: 2.2.0
3+
Date: 2026-01-29
44
Title: Tools to Read and Manipulate Fisheries Data
55
Authors@R: c(
66
person(given = "Arne Johannes",

R/DefineAndUpdateVariables.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ translateVariables <- function(
312312

313313

314314
# Do the translations:
315+
316+
# For lists of lists use two loops (one for and one lapply):
315317
if(!data.table::is.data.table(data[[1]])) {
316318
for(ind in seq_along(data)) {
317319

R/RstoxData-package.R

Lines changed: 31 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,43 +11,41 @@
1111
# Global variables
1212
utils::globalVariables(c(
1313
".", "..Country", "..Organisation", "..SurveyName", "..atResolution", "..attribsNames",
14-
"..colList", "..columns", "..groupingVariables", "..keep", "..keys", "..parameterNames",
15-
"..relevantColumns", "..replacement", "..simpletags", "..sourceColumns",
16-
"..targetAndSourceVariables", "..toKeep", "..valueVariablesInTranslation", "..varToExtract",
17-
"..variableKeys", "..variablesInTable", "..x", "AcousticCategory", "Addition",
14+
"..colList", "..columns", "..groupingVariables", "..keep", "..keys", "..relevantColumns",
15+
"..simpletags", "..sourceColumns", "..toKeep", "..valueVariablesInTranslation",
16+
"..varToExtract", "..variableKeys", "..variablesInTable", "..x", "AcousticCategory",
1817
"AphiaIDPredator", "AphiaIDPrey", "BeamKey", "Channel", "ChannelDepthLower",
19-
"ChannelDepthUpper", "ChannelReferenceKey", "ChannelReferenceType", "Constant", "Count",
20-
"Country", "Cruise", "CruiseKey", "DataValue", "DateTime", "Day", "DigestionStage", "DoorType",
21-
"EDSU", "EchoType", "EffectiveTowDistance", "FishID", "Frequency", "Gear", "GearExceptions",
18+
"ChannelDepthUpper", "ChannelReferenceKey", "ChannelReferenceType", "Count", "Country",
19+
"Cruise", "CruiseKey", "DataValue", "DateTime", "Day", "DigestionStage", "DoorType", "EDSU",
20+
"EchoType", "EffectiveTowDistance", "FishID", "Frequency", "Gear", "GearExceptions",
2221
"GravMethod", "HaulNo", "HaulNumber", "ID", "IdentMet", "LengthClass", "LengthCode", "LocalID",
2322
"LogKey", "Month", "N", "NewValue", "Notes", "Number", "NumberAtLength",
2423
"NumberOfIndividualsToGenerate", "NumberOfSampledIndividuals", "Platform", "PreySequence",
25-
"Quarter", "ResolutionCode", "SaCategory", "Scaling", "Ship", "SpeciesCategoryNumber",
26-
"SpeciesCategoryWeight", "SpeciesCode", "SpeciesValidity", "StationNumber",
27-
"StatisticalRectangle", "StomachFullness", "SubFactor", "SubsampleWeight", "SubsampledNumber",
28-
"Survey", "SweepLength", "Time", "TotalCount", "TransducerOrientation", "Value",
29-
"VariableName", "Weight", "WeightMeasurement", "Year", "acocat", "age", "agingstructure",
30-
"aphia", "bottomdepthstart", "catchsampleid", "bottomdepthstop", "catCatchWgt", "catchcount",
31-
"catchpartnumber", "catchproducttype", "catchweight", "ch", "cruise", "currentReportingUnit",
32-
"direction", "distance", "fishingdepthcount", "fishingdepthmax", "fishingdepthmin", "freq",
33-
"gear", "gearflow", "i.replace_number", "inapplicableFormats", "individualweight",
34-
"integrator_dist", "interval", "iskey", "lat_start", "lat_stop", "latitudeend",
35-
"latitudestart", "lengthCode", "lengthintervalcount", "lengthintervalstart",
36-
"lengthmeasurement", "lengthresolution", "lengthsamplecount", "lengthsampleweight", "level",
37-
"liverweight", "lngtClass", "lngtCode", "log_start", "logstart", "lon_start", "lon_stop",
38-
"longitudeend", "longitudestart", "lsCountTot", "maturity", "maxFishID", "max_bot_depth",
39-
"meanW", "missionstartdate", "missionstopdate", "nInd", "nation", "newClass", "newLngtCode",
40-
"newLngtCodeNumeric", "newReportingUnit", "noMeas", "parasite", "pel_ch_thickness", "platform",
41-
"platformname", "preferredagereading", "preycategory", "preydigestion", "preyforeignobject",
42-
"preylengthid", "preysampleid", "readability", "reportingUnit", "res", "sa", "sampleFac",
43-
"serialnumber", "sex", "shortname", "specialstage", "specimenid", "start_time", "startyear",
44-
"station", "stationstartdate", "stationstarttime", "stationstopdate", "stationstoptime",
45-
"stomach", "stomachfillfield", "stomachweight", "stoxBioticObject", "subFactor", "subWeight",
46-
"suffixes", "sum_sa.x", "sum_sa.y", "sweeplength", "tagid", "tagtype", "target", "threshold",
47-
"tissuesample", "totalNo", "totalweight", "transceiver", "translationListOne", "trawldoorarea",
48-
"trawldoorspread", "trawldoortype", "trawldoorweight", "variableToTranslate",
49-
"verticaltrawlopening", "vesselspeed", "weightresolution", "winddirection", "windspeed",
50-
"wingspread", "wiredensity", "wirediameter", "wirelength", "xsdObjects"))
24+
"Quarter", "ResolutionCode", "SaCategory", "Ship", "SpeciesCategoryNumber",
25+
"SpeciesCategoryWeight", "SpeciesValidity", "StationNumber", "StatisticalRectangle",
26+
"StomachFullness", "SubFactor", "SubsampleWeight", "SubsampledNumber", "SweepLength", "Time",
27+
"TotalCount", "TransducerOrientation", "Value", "VariableName", "WeightMeasurement", "Year",
28+
"acocat", "age", "agingstructure", "aphia", "bottomdepthstart", "bottomdepthstop",
29+
"catCatchWgt", "catchcount", "catchpartnumber", "catchproducttype", "catchsampleid",
30+
"catchweight", "ch", "cruise", "currentReportingUnit", "direction", "distance",
31+
"fishingdepthcount", "fishingdepthmax", "fishingdepthmin", "freq", "gear", "gearflow",
32+
"i.replace_number", "inapplicableFormats", "individualweight", "integrator_dist", "iskey",
33+
"lat_start", "lat_stop", "latitudeend", "latitudestart", "lengthCode", "lengthintervalcount",
34+
"lengthintervalstart", "lengthmeasurement", "lengthresolution", "lengthsamplecount",
35+
"lengthsampleweight", "level", "liverweight", "lngtClass", "lngtCode", "log_start", "logstart",
36+
"lon_start", "lon_stop", "longitudeend", "longitudestart", "lsCountTot", "maturity",
37+
"maxFishID", "max_bot_depth", "meanW", "missionstartdate", "missionstopdate", "nInd", "nation",
38+
"newClass", "newLngtCode", "newLngtCodeNumeric", "newReportingUnit", "noMeas", "parasite",
39+
"pel_ch_thickness", "platform", "platformname", "preferredagereading", "preycategory",
40+
"preydigestion", "preyforeignobject", "preylengthid", "preysampleid", "readability",
41+
"reportingUnit", "res", "sa", "sampleFac", "serialnumber", "sex", "shortname", "specialstage",
42+
"specimenid", "start_time", "startyear", "station", "stationstartdate", "stationstarttime",
43+
"stationstopdate", "stationstoptime", "stomach", "stomachfillfield", "stomachweight",
44+
"stoxBioticObject", "subFactor", "subWeight", "sum_sa.x", "sum_sa.y", "sweeplength", "tagid",
45+
"tagtype", "target", "threshold", "tissuesample", "totalNo", "totalweight", "transceiver",
46+
"trawldoorarea", "trawldoorspread", "trawldoortype", "trawldoorweight", "verticaltrawlopening",
47+
"vesselspeed", "winddirection", "windspeed", "wingspread", "wiredensity", "wirediameter",
48+
"wirelength", "xsdObjects"))
5149

5250
.onLoad <- function(libname, pkgname) {
5351
# Initiate the RstoxData environment:

inst/extdata/functionArguments.rds

-29 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)