mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2024-11-22 05:20:23 +01:00
remove duplicated line
This commit is contained in:
parent
5eaa46a0f6
commit
94383242dd
@ -40,7 +40,9 @@ read_redcap_tables <- function(uri,
|
|||||||
)) {
|
)) {
|
||||||
|
|
||||||
|
|
||||||
m <- REDCapR::redcap_metadata_read(redcap_uri = uri, token = token)[["data"]]
|
# Getting metadata
|
||||||
|
m <-
|
||||||
|
REDCapR::redcap_metadata_read (redcap_uri = uri, token = token)[["data"]]
|
||||||
|
|
||||||
if (!is.null(fields)){
|
if (!is.null(fields)){
|
||||||
|
|
||||||
@ -93,11 +95,7 @@ read_redcap_tables <- function(uri,
|
|||||||
d$redcap_repeat_instrument <- clean_redcap_name(d$redcap_repeat_instrument)
|
d$redcap_repeat_instrument <- clean_redcap_name(d$redcap_repeat_instrument)
|
||||||
}
|
}
|
||||||
|
|
||||||
# Getting metadata
|
# Processing metadata to reflect focused dataset
|
||||||
m <-
|
|
||||||
REDCapR::redcap_metadata_read (redcap_uri = uri, token = token)[["data"]]
|
|
||||||
|
|
||||||
# Processing metadata to reflect dataset
|
|
||||||
if (!is.null(c(fields,forms,events))){
|
if (!is.null(c(fields,forms,events))){
|
||||||
m <- focused_metadata(m,names(d))
|
m <- focused_metadata(m,names(d))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user