write_las: Write well log dataframe to las file format

Description Usage Arguments Value Examples

Description

Write well log dataframe to las file format

Usage

1
write_las(data, name, verbose = TRUE, do = FALSE)

Arguments

data

a dataframe. The curves names are taken from the column names of the dataframe.

name

variable to be used as .las file name. Usually in the form name = unique(.$id), where id was used as grouping variable. The extension .las is added automatically.

verbose

logical, define whether the function should print out the names of the writen .csv files. Dafault = TRUE.

do

logical, define if the output is a data frame. Dafault = FALSE. This is required if used with function dplyr::do, which requires to return a dataframe. The obtained dataframe can be dumped with rm(dataframe_name).

Value

write .las file. Additionally returns a dataframe if do = TRUE . As side effect, if verbose = TRUE prints out the names of the writen .las files

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
write_las(df , name = paste(unique(.$id), "_version01"))

dump_df <- df %>%
 dplyr::group_by(id) %>%
 do(write_las(. , name = unique(.$id), do = TRUE))
rm(dump_df)

## End(Not run)

ravenroadresources/petroreadr documentation built on May 23, 2019, 3:03 p.m.