Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VISOR
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AG Seifert
VISOR
Commits
3f16fb10
Verified
Commit
3f16fb10
authored
1 year ago
by
Gärber, Florian
Browse files
Options
Downloads
Patches
Plain Diff
chore: Add data-raw for simplerspec_opus data set
parent
1dad218d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
data-raw/opus/.gitkeep
+1
-0
1 addition, 0 deletions
data-raw/opus/.gitkeep
data-raw/simplerspec_opus.R
+11
-0
11 additions, 0 deletions
data-raw/simplerspec_opus.R
with
12 additions
and
0 deletions
data-raw/opus/.gitkeep
0 → 100644
+
1
−
0
View file @
3f16fb10
This diff is collapsed.
Click to expand it.
data-raw/simplerspec_opus.R
0 → 100644
+
11
−
0
View file @
3f16fb10
## code to prepare `simplerspec_opus` dataset goes here
simplerspec_opus
<-
file.path
(
usethis
::
proj_path
(),
"data-raw"
,
"opus"
)
|>
dir
(
full.names
=
TRUE
)
|>
simplerspec
::
read_opus_univ
()
|>
simplerspec
::
gather_spc
(
spc_types
=
"spc"
)
|>
simplerspec
::
resample_spc
(
wn_lower
=
4000
,
wn_upper
=
11500
,
wn_interval
=
4
)
|>
simplerspec
::
average_spc
()
|>
simplerspec
::
preprocess_spc
(
select
=
"custom"
,
custom_function
=
"spc_raw"
)
usethis
::
use_data
(
simplerspec_opus
,
overwrite
=
TRUE
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment