Skip to content

Commit

Permalink
update the function lang.gltc()
Browse files Browse the repository at this point in the history
  • Loading branch information
agricolamz committed Sep 20, 2024
1 parent 824090a commit aa66b1f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: lingtypology
Type: Package
Title: Linguistic Typology and Mapping
Version: 1.1.18
Version: 1.1.19
Depends: R (>= 3.5.0)
Imports:
leaflet,
Expand Down
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
lingtypology 1.1.19
- update `lang.gltc()` function

lingtypology 1.1.18
- update `wals` dataset after Michael Cysouw's comment #89

Expand Down
2 changes: 1 addition & 1 deletion R/lang.gltc.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ lang.gltc <- function(x) {
x <- unlist(x)
}
glottolog <- lingtypology::glottolog
x <- gsub("\\W", "", x)
x <- gsub("\\s{1,}", " ", x)
vapply(x, function(y) {
if(is.na(y)){
NA_character_
Expand Down
4 changes: 2 additions & 2 deletions vignettes/lingtypology_intro.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## ---- eval=FALSE--------------------------------------------------------------
## ----eval=FALSE---------------------------------------------------------------
# install.packages("lingtypology", dependencies = TRUE)

## ---- eval= FALSE-------------------------------------------------------------
## ----eval= FALSE--------------------------------------------------------------
# install.packages("remotes")
# remotes::install_github("ropensci/lingtypology")

Expand Down
8 changes: 4 additions & 4 deletions vignettes/lingtypology_intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<meta name="author" content="George Moroz" />

<meta name="date" content="2024-02-04" />
<meta name="date" content="2024-09-20" />

<title>lingtypology: introduction and installation</title>

Expand Down Expand Up @@ -51,7 +51,7 @@
</style>
<style type="text/css" data-origin="pandoc">
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span { line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
Expand Down Expand Up @@ -341,13 +341,13 @@
<h1 class="title toc-ignore"><code>lingtypology</code>: introduction and
installation</h1>
<h4 class="author">George Moroz</h4>
<h4 class="date">2024-02-04</h4>
<h4 class="date">2024-09-20</h4>



<div id="what-is-lingtypology" class="section level3">
<h3>What is <code>lingtypology</code>?</h3>
<p>The <code>lingtypology</code> package connects R with the <a href="https://glottolog.org/">Glottolog database (v. 4.8)</a> and
<p>The <code>lingtypology</code> package connects R with the <a href="https://glottolog.org/">Glottolog database (v. 5.0)</a> and
provides an additional functionality for linguistic typology. The
Glottolog database contains a catalogue of the world’s languages. This
package helps researchers to make linguistic maps, using the philosophy
Expand Down

0 comments on commit aa66b1f

Please sign in to comment.