example_path() mostly wraps system.file(..., package = "fgeo.x").

example_path(path = NULL)

Arguments

path

Name of file or directory. If NULL, the example files and directories will be listed.

Value

A character string.

See also

Other datasets: datasets, download_data

Examples

example_path()
#> [1] "csv" "mixed_files" "rdata" "rdata_one" #> [5] "rds" "taxa.csv" "tsv" "vft_4quad.csv" #> [9] "view" "weird" "xl"
dir(example_path("rdata"))
#> [1] "tree5.RData" "tree6.RData"
example_path("taxa.csv")
#> [1] "/home/travis/R/Library/fgeo.x/extdata/taxa.csv"
str(read.csv(example_path("taxa.csv")))
#> 'data.frame': 163 obs. of 21 variables: #> $ ViewID : int 1 2 3 4 5 6 7 8 9 10 ... #> $ SpeciesID : int 56 57 58 59 60 61 62 63 64 65 ... #> $ SubspeciesID : logi NA NA NA NA NA NA ... #> $ Family : Factor w/ 57 levels "Anacardiaceae",..: 20 19 19 22 44 31 30 24 51 16 ... #> $ Mnemonic : Factor w/ 163 levels "AESAME","ALCFLO",..: 1 2 3 4 5 6 7 8 9 10 ... #> $ Genus : Factor w/ 116 levels "Aeschynomene",..: 1 3 2 4 99 5 6 7 8 9 ... #> $ SpeciesName : Factor w/ 145 levels " hirsuta","acuminata",..: 10 48 71 66 91 54 6 97 101 132 ... #> $ Rank : logi NA NA NA NA NA NA ... #> $ Subspecies : logi NA NA NA NA NA NA ... #> $ Authority : Factor w/ 110 levels "(A. DC.) A. Chev.",..: 40 10 106 65 63 107 37 52 86 7 ... #> $ IDLevel : Factor w/ 2 levels "genus","species": 2 2 2 2 2 2 2 2 2 2 ... #> $ subspMnemonic : logi NA NA NA NA NA NA ... #> $ subspAuthority: logi NA NA NA NA NA NA ... #> $ FieldFamily : Factor w/ 55 levels "Anacardiaceae",..: 20 19 19 20 40 30 29 22 47 16 ... #> $ Lifeform : logi NA NA NA NA NA NA ... #> $ Description : logi NA NA NA NA NA NA ... #> $ wsg : num 0.678 0.427 0.42 0.642 0.636 ... #> $ wsglevel : Factor w/ 4 levels "family","genus",..: 1 4 4 4 1 4 4 4 4 4 ... #> $ ListOfOldNames: logi NA NA NA NA NA NA ... #> $ Specimens : logi NA NA NA NA NA NA ... #> $ Reference : logi NA NA NA NA NA NA ...