import_Data: Function to import .log files

Description Usage Arguments Value Note Examples

View source: R/import_Data.R

Description

This function imports a .log file to R and produces a data.frame to be used for further processing.

Usage

1

Arguments

file

character (required): Full path to a log file.

warnings

logical (optional): TRUE to show warnings produced by readLines.

Value

Returns a data.frame.

Note

The error code 65534 is converted to NA.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
# not run
data <- import_Data("~/PATH/TO/file.log", warnings = FALSE)

## End(Not run)

# An example data set can be loaded via
file <- system.file("extdata/raw.log", package = "roughness")
data <- import_Data(file)

# show first entries of example data set
head(data)

tzerk/roughness documentation built on May 3, 2019, 2:05 p.m.