ImportCSV: Importing a CSV file containing the output of the MCMC...

Description Usage Arguments Value Author(s) Examples

View source: R/prog.R

Description

Use of the read.csv with th default values for CSV files extracted from ChronoModel software

Usage

1
  ImportCSV(file, dec = '.', sep=',', comment.char='#', header = TRUE)

Arguments

file

the name of the CSV file containing the output of the MCMC algorithm

dec

the character used in the file for decimal points for the use of read.csv()

sep

the field separator character for the use of read.csv()

comment.char

a character vector of length one containing a single character or an empty string for the use of read.csv()

header

a logical value indicating whether the file contains the names of the variables as its first line.

Value

Returns a dataframe containing a representation of the data in the file.

Author(s)

Anne Philippe <Anne.Philippe@univ-nantes.fr> and

Marie-Anne Vibet <Marie-Anne.Vibet@univ-nantes.fr>

Examples

1
2
3
4
  data(Events)
  write.csv(Events, "data.csv", row.names=FALSE)
  ImportCSV("data.csv")
  ImportCSV("data.csv", dec = '.', sep=',', comment.char='#', header = TRUE)

Example output



RChronoModel documentation built on May 1, 2019, 10:06 p.m.