Learn R Programming

vegtable (version 0.1.3)

read_juice: Importing ‘Juice’ tables.

Description

This function imports vegetation tables exported from ‘Juice’ (http://www.sci.muni.cz/botany/juice).

Usage

read_juice(file, encoding="LATIN-1", sep=";", na="", ...)

Arguments

file

Character value indicating the name of the file exported from ‘Juice’.

encoding

Argument passed to readLines.

sep

Separator used to split rows into columns.

na

Character used as not available values.

...

Further arguments passed to readLines.

Value

A list with two elements:

cross_table

A data frame of species by plot.

header

A data frame with header data.

Details

For a properly import, you may strictly follow the export steps in ‘Juice’:

  • Menu File -> Export -> Table -> to Spreadsheet Format File

  • Check the option Export covers in %

In the header (see Value), the first column (juice_nr) corresponds to the plot number assigned by ‘Juice’ at import, while the column db_nr is the number originally assigned to the plot (e.g. ‘Turboveg’ ID).

Examples

Run this code
# NOT RUN {
library(vegtable)

## Installed 'Juice' version of 'Wetlands_veg'
Veg <- file.path(path.package("vegtable"), "juice", "Wetlands_juice.txt")
Veg <- read_juice(Veg)
names(Veg)
# }

Run the code above in your browser using DataLab