Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
H
Harmonize_Scripts
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Uncover
Harmonize_Scripts
Commits
81ad5fcd
Commit
81ad5fcd
authored
Mar 06, 2023
by
Pepe Márquez Romero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
saltos de linea con cat
parent
4d7f99ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
valid_variables_script2.R
valid_variables_script2.R
+2
-2
No files found.
valid_variables_script2.R
View file @
81ad5fcd
...
...
@@ -219,7 +219,7 @@ check_values_format <- function(valid_columns, codebook_param){
next
if
(
!
row_names
[
i
]
%in%
value_format
){
variables_out_of_range
<-
paste
(
variables_out_of_range
,
current_column
,
"the range should be:"
,
possible_values
,
sep
=
" "
)
variables_out_of_range
<-
paste
(
variables_out_of_range
,
"
\n"
,
sep
=
"
"
)
variables_out_of_range
<-
paste
(
variables_out_of_range
,
"
"
,
sep
=
"\n
"
)
print
(
paste
(
current_column
,
"does not follow the established format"
,
sep
=
" "
))
print
(
paste
(
"It should follow the following format:"
,
possible_values
))
print
(
paste
(
"Instead of:"
,
paste
(
row_names
,
collapse
=
" "
)))
...
...
@@ -283,7 +283,7 @@ check_valid_columns <- check_column_names(codebook ,data_colnames)
valid_columns
<-
as.data.frame
(
check_valid_columns
$
colnames
)
res
<-
""
res
<-
check_values_format
(
valid_columns
,
codebook
)
prin
t
(
res
)
ca
t
(
res
)
datashield.logout
(
connections
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment