Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R_basis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CAN
R_basis
Commits
c756428e
Verified
Commit
c756428e
authored
5 years ago
by
Laurent Modolo
Browse files
Options
Downloads
Patches
Plain Diff
web: add session1 web material
parent
f5489731
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
web/1_a
+10
-0
10 additions, 0 deletions
web/1_a
web/1_b
+6
-0
6 additions, 0 deletions
web/1_b
web/1_c
+10
-0
10 additions, 0 deletions
web/1_c
web/1_d
+10
-0
10 additions, 0 deletions
web/1_d
web/1_e
+3
-0
3 additions, 0 deletions
web/1_e
with
39 additions
and
0 deletions
web/1_a
0 → 100644
+
10
−
0
View file @
c756428e
Which of the following are valid R variable names?
min_height
max.height
_age
.mass
MaxLength
min-length
2widths
celsius2kelvin
This diff is collapsed.
Click to expand it.
web/1_b
0 → 100644
+
6
−
0
View file @
c756428e
base_test <- function(x, base){
log_result <- logarithm(x, base=base)
exp_result <- base^log_result
test_result <- x == exp_result
return(test_result)
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
web/1_c
0 → 100644
+
10
−
0
View file @
c756428e
base_test <- function(x, base){
print(x)
log_result <- logarithm(x, base=base)
print(log_result)
exp_result <- base^log_result
print(exp_result)
print(x)
test_result <- x == exp_result
return(test_result)
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
web/1_d
0 → 100644
+
10
−
0
View file @
c756428e
base_test <- function(x, base){
print(x)
log_result <- logarithm(x, base=base)
print(log_result)
exp_result <- base^log_result
print(exp_result)
print(x)
test_result <- isTRUE(all.equal(x, exp_result))
return(test_result)
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
web/1_e
0 → 100644
+
3
−
0
View file @
c756428e
base_test <- function(x, base){
return(isTRUE(all.equal(x, base^logarithm(x, base=base))))
}
\ No newline at end of file
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