This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (name in names(allData) ) { | |
if(is.numeric(allData[[name]])) { | |
new_tibble <- allData %>% | |
group_by(Label) %>% | |
summarise(name = mean(allData[[name]], na.rm = TRUE)) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> class(control) | |
[1] "tbl_df" "tbl" "data.frame" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- if current_account.owner.confirmed? | |
= render 'my_gear/items/manage_items_content' | |
- else | |
br | |
br | |
br | |
br | |
.bookingsShowGrid__bookingAlerts__alert | |
| You need to verify your email before you can list your gear. | |
br |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Showing D:/studmed/studmed/app/views/illnesses/_form.html.erb where line #49 raised: | |
undefined method `id' for #<Illness::ActiveRecord_Relation:0x0000000c9c1f60> | |
Did you mean? ids |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class IllnessesController < ApplicationController | |
before_action :set_illness, only: [:show, :edit, :update, :destroy] | |
# GET /illnesses | |
def index | |
@illnesses = Illness.all | |
end | |
# GET /illness/1 | |
def show |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class IllnessesController < ApplicationController | |
before_action :set_illness, only: [:show, :edit, :update, :destroy] | |
# GET /illnesses | |
def index | |
@illnesses = Illness.all | |
end | |
# GET /illnesses/1 | |
def show |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## I have to columns of data; one with time and the other with heart rate | |
{ time_1: heart_rate_1, time_2: heart_rate_2.. } | |
# or | |
{ time: [time_1, time_2, time_3], heart_rate: [hr1, hr2, hr3] } | |
# or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#<Kincom:0x00000004f76080 | |
@filename="BD214K Kincom template.xlsx", | |
@subject="BD214K", | |
@arm=0.26, | |
@stop_index=0.5, | |
@prestress_percentage=0.025, | |
@begin_percentage=0.025, | |
@time_values=[0, 30, 50, 100, 200], | |
@right={"r1"=>{:mvc=>2.43598, :mvc_n | |
ewton=>499.17622950819674, :mvc_nm=>129.78581967213117, :baseline=>0.03202000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def extract_data | |
kincom_settings = [:ms_dif_nm, :ms_dif_nms, :ms_dif_nmpc, :subject, :mvc] | |
p kincom_settings.map { |sym| [self.sym] }.to_h | |
#output_kincom_to_excel(self, kincom_settings) | |
end | |
# Error: NoMethodError: undefined method `sym' for #<Kincom:0x00000004227d98> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubyXL' | |
# This is a class. It does a lot of things on which I will elaborate later. | |
class Kincom | |
def initialize(file, name) | |
@filename = find_filename(file) | |
@subject = name | |
# Returns object with sheets | |
xlsx_sheets = load(file) |
NewerOlder