create_physical.Rd
Create the information of the physical format of the dataset based off of EML standards.
create_physical(
file_path,
number_of_headers = "1",
record_delimiter = "\\n",
attribute_orientation = "column",
field_delimiter = c(",", " ", "\\t", ":"),
data_url = NULL
)
The file path of the data set being documented. The file size and authentication checksums will be generated from this input.
Number of header lines preceding the data. A default of "1" is assigned if no input is given. Please refrain from inputting any other value if possible as it is bad practice to do so.
Character used to delimit records. If no value is inputted the default value of '\n' is assigned.
The orientation of the attributes. A default of "column" will be assigned if no input is given.
Character used to delimit each field. The options provided are commas (","), space (" "), tab ("\t"), or colon (":"). The default is comma, as csv's are most common.
(Optional). A url, if possible, of which the data file can be downloaded.
A complete set of information on the physical format.
create_physical(file_path = "User/data/example.csv",
number_of_headers = "1",
record_delimiter = "\\r\\n",
attribute_orientation = "column",
field_delimiter = ",",
data_url = "https://mydata.org/etc")
#> $objectName
#> [1] "example.csv"
#>
#> $size
#> $size$unit
#> [1] "bytes"
#>
#> $size$size
#> [1] "0"
#>
#>
#> $authentication
#> $authentication$method
#> [1] "MD5"
#>
#> $authentication$authentication
#> [1] "d41d8cd98f00b204e9800998ecf8427e"
#>
#>
#> $dataFormat
#> $dataFormat$textFormat
#> $dataFormat$textFormat$numHeaderLines
#> [1] "1"
#>
#> $dataFormat$textFormat$recordDelimiter
#> [1] "\\r\\n"
#>
#> $dataFormat$textFormat$attributeOrientation
#> [1] "column"
#>
#> $dataFormat$textFormat$simpleDelimited
#> $dataFormat$textFormat$simpleDelimited$fieldDelimiter
#> [1] ","
#>
#>
#>
#>
#> $distribution
#> $distribution$online
#> $distribution$online$url
#> $distribution$online$url$url
#> [1] "https://mydata.org/etc"
#>
#> $distribution$online$url$`function`
#> [1] "download"
#>
#>
#>
#>
create_physical(file_path = "User/data/example.csv",
data_url = "https://mydata.org/etc")
#> $objectName
#> [1] "example.csv"
#>
#> $size
#> $size$unit
#> [1] "bytes"
#>
#> $size$size
#> [1] "0"
#>
#>
#> $authentication
#> $authentication$method
#> [1] "MD5"
#>
#> $authentication$authentication
#> [1] "d41d8cd98f00b204e9800998ecf8427e"
#>
#>
#> $dataFormat
#> $dataFormat$textFormat
#> $dataFormat$textFormat$numHeaderLines
#> [1] "1"
#>
#> $dataFormat$textFormat$recordDelimiter
#> [1] "\\n"
#>
#> $dataFormat$textFormat$attributeOrientation
#> [1] "column"
#>
#> $dataFormat$textFormat$simpleDelimited
#> $dataFormat$textFormat$simpleDelimited$fieldDelimiter
#> [1] ","
#>
#>
#>
#>
#> $distribution
#> $distribution$online
#> $distribution$online$url
#> $distribution$online$url$url
#> [1] "https://mydata.org/etc"
#>
#> $distribution$online$url$`function`
#> [1] "download"
#>
#>
#>
#>