Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GOSe-6mo-imputation-paper
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Kevin Kunzmann
GOSe-6mo-imputation-paper
Commits
cebcdb26
Commit
cebcdb26
authored
Feb 02, 2019
by
Kevin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed nasty csv import problem
parent
b984e090
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
reports/prepare_data.Rmd
reports/prepare_data.Rmd
+2
-1
scripts/import_neurobot_data.R
scripts/import_neurobot_data.R
+1
-1
No files found.
reports/prepare_data.Rmd
View file @
cebcdb26
...
...
@@ -49,7 +49,8 @@ df_deaths <- df_baseline %>%
) %>% as.numeric
) %>%
filter(complete.cases(.))
```
```{r}
df_baseline <- df_baseline %>%
select(-Subject.DeathDate) %>%
mutate(
...
...
scripts/import_neurobot_data.R
View file @
cebcdb26
...
...
@@ -10,7 +10,7 @@ in_files <- sprintf("%s/%s", in_folder, list.files(path = in_folder, pattern = "
if
(
length
(
in_files
)
!=
5
)
stop
(
"must have exactly 5 input files"
)
for
(
f
in
in_files
)
{
tmp
<-
read
.
csv
(
f
)
tmp
<-
read
_
csv
(
f
)
if
(
"Subject.Age"
%in%
names
(
tmp
))
saveRDS
(
as_tibble
(
tmp
),
file
=
sprintf
(
"%s/df_baseline.rds"
,
out_folder
))
if
(
"Outcomes.DerivedCompositeGOSE"
%in%
names
(
tmp
))
...
...
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