blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 327 | content_id stringlengths 40 40 | detected_licenses listlengths 0 91 | license_type stringclasses 2
values | repo_name stringlengths 5 134 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 46
values | visit_date timestamp[us]date 2016-08-02 22:44:29 2023-09-06 08:39:28 | revision_date timestamp[us]date 1977-08-08 00:00:00 2023-09-05 12:13:49 | committer_date timestamp[us]date 1977-08-08 00:00:00 2023-09-05 12:13:49 | github_id int64 19.4k 671M ⌀ | star_events_count int64 0 40k | fork_events_count int64 0 32.4k | gha_license_id stringclasses 14
values | gha_event_created_at timestamp[us]date 2012-06-21 16:39:19 2023-09-14 21:52:42 ⌀ | gha_created_at timestamp[us]date 2008-05-25 01:21:32 2023-06-28 13:19:12 ⌀ | gha_language stringclasses 60
values | src_encoding stringclasses 24
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 9.18M | extension stringclasses 20
values | filename stringlengths 1 141 | content stringlengths 7 9.18M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d4c88e99464ec729ffc147e47e70736c19878e77 | 7ba5a802f9d02cd075c78e2c1c302c34bdfab48f | /man/AutoScore_testing_Survival.Rd | ffa4239ca1d83bd745b85525175c53ad5c3de2fd | [] | no_license | nliulab/AutoScore | 8b2e23be56d9f75504341df6c2f004d31d985ac4 | 6eeb658441a47560b841545862ce667b8861e6a7 | refs/heads/master | 2023-07-19T23:11:57.036461 | 2023-07-16T02:28:40 | 2023-07-16T02:28:40 | 201,586,484 | 25 | 6 | null | 2019-08-31T01:26:44 | 2019-08-10T05:51:07 | null | UTF-8 | R | false | true | 2,291 | rd | AutoScore_testing_Survival.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AutoScore_Survival.R
\name{AutoScore_testing_Survival}
\alias{AutoScore_testing_Survival}
\title{AutoScore STEP(v) for survival outcomes: Evaluate the final score with
ROC analysis (AutoScore Module 6)}
\usage{
AutoScore_testing_Survival(
... |
4314019ddf01a4df85214df9f939566c7923eeba | 2491ce3e1bd5762df5d129b7f4826c66723780df | /man/fun.plot.q.Rd | 8792f5c7ce29b799dea24ec0f36d040c4386c0d7 | [] | no_license | cran/GLDreg | 60e3cf2d6890604d98aad9cd09080bdc7758cb25 | 4d6ad22ceada267cf3a46ef8b4cab5b9006ae022 | refs/heads/master | 2022-06-04T22:22:08.379317 | 2022-05-13T06:30:09 | 2022-05-13T06:30:09 | 26,482,634 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,822 | rd | fun.plot.q.Rd | \name{fun.plot.q}
\alias{fun.plot.q}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
2-D Plot for Quantile Regression lines
}
\description{
This function plots quantile regression lines from \code{\link{GLD.lm}} and
one of \code{\link{fun.gld.slope.vary.int.fixed}},
\code{\link{fun.gld.s... |
09852d258ac94d28b966f25735579247d5f2697f | b2f61fde194bfcb362b2266da124138efd27d867 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query50_axquery_1344n/query50_axquery_1344n.R | 801b1c0b87e14151bb9da747f896ca858f520b30 | [] | no_license | arey0pushpa/dcnf-autarky | e95fddba85c035e8b229f5fe9ac540b692a4d5c0 | a6c9a52236af11d7f7e165a4b25b32c538da1c98 | refs/heads/master | 2021-06-09T00:56:32.937250 | 2021-02-19T15:15:23 | 2021-02-19T15:15:23 | 136,440,042 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 70 | r | query50_axquery_1344n.R | e650ec0669de0fba3ea4838216825026 query50_axquery_1344n.qdimacs 119 173 |
c54b93ecdee06b18eee40bb54b6180c602b3247e | 2f4dd001614dfe59c54c38cade59706c9ce5a770 | /Statslearningcourse/shiny_plotly/movies/global.R | b5b9ae5e763a3f44dd7f8337e4e9a28900f8fd6d | [] | no_license | amycook/cheatsheet | 6c45e258a863627408999b2c752ae819afe1b288 | 7bf77543f2fb91b9ade1262e2fbfda4c95330fb9 | refs/heads/master | 2020-03-19T11:38:42.573890 | 2018-12-10T12:58:54 | 2018-12-10T12:58:54 | 136,466,004 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 222 | r | global.R | # Golbal environment contains information needed in both the ui and server scripts
library(plotly)
library(shiny)
py <- plotly(username="rAPI", key="yu680v5eii", base_url="https://plot.ly")
source("plotlyGraphWidget.R") |
671c740b2fcef81cb35fc8ed1fb798d92f613a65 | 13f0b3f37544339d5821b2a416a9b31a53f674b1 | /man/plot_gaze.Rd | 9419af4018fbeaf1982d4627ef6bcb704f65619f | [
"MIT"
] | permissive | hejtmy/eyer | 1f8a90fd7a8af0a4c4c73790633589dc624edda2 | 0b49566c76ab659184d62e1cdd658b45b0d33247 | refs/heads/master | 2020-04-24T11:17:25.414641 | 2019-09-17T22:44:52 | 2019-09-17T22:44:52 | 171,920,561 | 0 | 0 | MIT | 2019-09-10T21:54:40 | 2019-02-21T18:08:07 | R | UTF-8 | R | false | true | 287 | rd | plot_gaze.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eyer-visualising.R
\name{plot_gaze}
\alias{plot_gaze}
\title{Plots gaze data}
\usage{
plot_gaze(obj, ...)
}
\arguments{
\item{obj}{object to plot the data with}
\item{...}{}
}
\description{
Plots gaze data
}
|
bfd561061c219a8d3b969a5ce6d72648be1be1b5 | 034dda406f1ce494c1c64ec47a05e7f4d780d561 | /plot2.R | 8e3335450218ed08afc922c3b716e627e37c498f | [] | no_license | WenWu5/ExData_Plotting1 | 7b55d963423b563f5bf50fb4f825a114352e8eb6 | 77721be223d190465d4af7bf150cf8d7aa3f5ae2 | refs/heads/master | 2021-01-18T12:20:36.421761 | 2016-06-05T23:01:14 | 2016-06-05T23:01:14 | 60,447,315 | 0 | 0 | null | 2016-06-05T06:53:27 | 2016-06-05T06:53:26 | null | UTF-8 | R | false | false | 1,109 | r | plot2.R | setwd("C:/Users/Wen/WorkingDirectory/Coursera/ExploratoryDataAnalysis/Week1")
zippedfileName <- "./data/household_power_consumption.zip"
unzippedFileName <- "./data/household_power_consumption.txt"
downloadPath <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
###downloading da... |
33416aa7cfd963b4c654245bd2bc55c49d54fd65 | c5a0fa9847f431cab5aa90849078d7db42779528 | /Gap Stat - different scaling methods - discard.R | 05c1cf86f5d9903cff9eba9ade5f7a0a23786e4e | [] | no_license | jckailun/MA-Thesis | 666f4d0e6b91a3ead1e207983e26a1f934ad027f | af01fda722da5c9967932790eb73c161cf0e9233 | refs/heads/master | 2023-07-02T09:51:23.233311 | 2020-09-23T15:27:58 | 2020-09-23T15:27:58 | 298,013,263 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,474 | r | Gap Stat - different scaling methods - discard.R | ##### Gap Statistic - trial for different scaling methods #####
d1.c = read.csv("NLSY79.csv")
d2.c = read.csv("NLSY97.csv")
vars1 = c("ASVAB_gs", "ASVAB_ar" , "ASVAB_wk" , "ASVAB_pc" , "ASVAB_no" , "ASVAB_cs", "ASVAB_mk", "ASVAB_mc", "ASVAB_ei",
"med", paste('acgrd', 1:13, sep = '_'), 'male', 'income', 'nu... |
a5e13cbae72bc7277679557908011d2966e81cd2 | 4041b67f1b305d7be511524e11f2c0325fdd60ba | /FichiersAtelierNouveauxOutils2_2019/III.2. Mesurer le texte/III.2. Mesurer le texte.R | 64212ec557cd8610cbe95d3f6588f0c61d77a37a | [] | no_license | nicolasperreaux/notredame | 3b97b4200774f4c566e44733ccb3aa43dc788cd1 | 1f04fd5e4604f053fc5011519185de895d8ee508 | refs/heads/master | 2020-08-14T23:00:17.674388 | 2019-11-24T14:01:04 | 2019-11-24T14:01:04 | 215,241,032 | 1 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 1,849 | r | III.2. Mesurer le texte.R | ######################################################################################################
# Script écrit pour l'atelier "Du parchemin à la fouille de données. Nouveaux outils pour la création,
# la formalisation et l'analyse des corpus médiévaux", Paris, 28-30 octobre 2019
# Paul Bertrand, Étienne Cu... |
c0c344ef6afe1ca2c271d92444c05a9a2828d9ed | 217d0e2f2d7c842c0b43a193edde2d78a7cbe038 | /Naive Bayes for loaning.R | e15e06ed1eeb83076b8532e919f7bd29eb04d4c1 | [] | no_license | cory1219/Naive-Bayes-for-loaning | 5e0bbd52d0918d1d9c1929a2e013783a0ec5ad2c | c2a1651568c172c0087575b5f98d2b7a0548c39d | refs/heads/main | 2023-02-08T16:24:03.031067 | 2021-01-04T10:01:33 | 2021-01-04T10:01:33 | 326,639,355 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,809 | r | Naive Bayes for loaning.R | library(tidyverse)
train = read_csv("loan-train.csv")
test = read_csv("loan-test.csv")
train <- train %>%
mutate(age = case_when(
age <= 25 ~ "<=25",
age > 25 & age <= 39 ~ "25-39",
age > 40 & age <= 59 ~ "40-59",
age > 60 ~ "60+",
TRUE ~ "NA"
))
test <- test %>%
mutate(age = case_when(
... |
e94d5a7eba0e34102d1ee5cb8069624c22e23904 | bfec3027143dcdeb600fd022d95bdb712ab3ed4a | /plot1.R | c4584771b6789cd272d8db2616440033ee5fdb17 | [] | no_license | cmblnd/ExData_Plotting1 | 251547bcc4f956b153c08ed11051d87d0d68a96b | 741d31c861056790a56fdc07ef16738d7c41e843 | refs/heads/master | 2020-12-31T05:40:08.674315 | 2014-09-07T15:27:45 | 2014-09-07T15:27:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 381 | r | plot1.R | con<-file("household_power_consumption.txt","r");
colname<-strsplit(readLines(con,1),";");
hhpc<-read.table(text=grep("^[1/2]/2/2007",readLines(con),value=T),sep=";",na.strings = "?");
close(con);
colnames(hhpc)<-colname[[1]];
with(hhpc,hist(Global_active_power,col="red",main="Global Active Power",xlab="Global Active P... |
103c482164c502f61dc338f06b4a42ee4e2fdeb1 | a0e4276f3f4d002263655d00f67d0878cacf6d3c | /lib/PKfit/R/iv.route.MD.R | 054f5eebc40b90c21bc6daca839ac837b6db9bdd | [] | no_license | shanmdphd/mypkfit | a4dff0b1181d89acce8ba7838dffde081a825ace | 508012aea85b47f77976a7d6cd8dfe55f090332c | refs/heads/master | 2021-01-01T16:43:18.814912 | 2017-07-21T03:20:37 | 2017-07-21T03:20:37 | 97,901,499 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,077 | r | iv.route.MD.R | iv.route.MD <- function(PKindex)
{
OutputFilez() ### reset all output file names
cat("***************************************\n")
cat(" MM elim: Michaelis-Menten elimination \n")
cat("***************************************\n\n")
cat("\n")
file.menu <- c("IV-Bolus & 1st-ordered elim .. (MD101)",
... |
1762070e36c3d8e7aac95f00cabb655b6f180ab0 | 0cf6713a7be091ef76a7704f23ce290c508e5876 | /1minite/readdata.R | d12b1d170d83be7bfab93d5ea7942fcf1982bddf | [] | no_license | mura5726/crypto | 268c291e68f19656b1a71e01799f2b7dbd53aab7 | f8f09eb1b6c511cbe3c02e5da4fe62922460beb6 | refs/heads/master | 2021-09-01T07:26:37.009304 | 2017-12-25T17:16:23 | 2017-12-25T17:16:23 | 115,352,728 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 280 | r | readdata.R | # getwd()
# > getwd()
# [1] "C:/Users/mura5/Documents/Crypto"
setwd("C:/Users/mura5/Documents/Crypto/1minite")
n = length(list.files())
D = read.csv(list.files()[1])
for(i in 2:n){
d = read.csv(list.files()[i])
D = rbind(D,d)
}
plot(D$time,D$lst)
|
db45f1aa370432d1ac0bc1dab392f3fe96d5d2f9 | 376c342e177096aca1224910e25420ffa1a7cec7 | /titanic/scripts/submission2 womenInFirstClass.R | 87cd529de585f56923daa94fa76c997c9e5b4a2e | [] | no_license | danielsfawcett/thirteam | 14af574cb743fe59f1275b3c5a2730d2ef1c94ff | d58728435222581cace4a7d1469023398f53ea67 | refs/heads/master | 2021-01-10T12:51:51.690428 | 2015-12-03T13:22:03 | 2015-12-03T13:22:03 | 46,505,324 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 630 | r | submission2 womenInFirstClass.R | train <- read.csv("train.csv", stringsAsFactors=FALSE) #load the training data
test <- read.csv("test.csv", stringsAsFactors=FALSE) #load the test data
prop.table(table(Class = train$Pclass, Sex = train$Sex, Survived = train$Survived), 1) #show the relationship between gender and survival based on the different classes... |
51ce1c0cfcc7972938d67e2a88b51b19ce675fe0 | 36b1b3297513fe2323593fbaf9b16a5f5197b71a | /man/bs_vars_global.Rd | 73d81cd658867a248e6f0fe5e810708739a7b120 | [] | no_license | cran/fresh | 471c468d0bc554b0bf8278797aa508dc2448ec84 | 3efcf4f118ff186b3b4b078756b6cdb27226f726 | refs/heads/master | 2020-12-21T23:31:48.064331 | 2020-05-29T13:40:02 | 2020-05-29T13:40:02 | 236,600,320 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,669 | rd | bs_vars_global.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vars-bootstrap.R
\name{bs_vars_global}
\alias{bs_vars_global}
\title{Bootstrap global variables}
\usage{
bs_vars_global(
body_bg = NULL,
text_color = NULL,
link_color = NULL,
link_hover_color = NULL,
line_height_base = NU... |
37aa63518809be4ffaff02212e5e898fb7613c3d | 61bcde0f794745bbc9bdd2f0ba2056dc0ed786df | /files/Task 2 - R. DataFrame - 18.11.2020.R | 7e3df0f53c18ccd9cfc09eff1016dcc5ec740859 | [] | no_license | bavn/ttax | 55ad16d1ddcd1e4ae8604ade1b1e9eadd7daba6a | f04c8834581e5549237a398ca622c4f35d48045b | refs/heads/main | 2023-01-20T14:33:23.880583 | 2020-11-28T15:32:32 | 2020-11-28T15:32:32 | 316,758,445 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 357 | r | Task 2 - R. DataFrame - 18.11.2020.R | # Dataframe of Employee Data
Name <- c("Amber", "Thomas", "Chris", "Sylvia", "Mike")
Age <- c("21", "25", "40", "52", "56")
Gender <- c("Female", "Male", "Male", "Female", "Male")
Role <- c("Sales", "Sales", "IT", "HR", "Sales")
Length_of_Service <- c("7", "9", "15", "11", "20")
frame <- data.frame(Name, Age, Gender, R... |
37d099b595dabbbd958d2915a9e28092b7a819d1 | c0709f304abf991f21ad27afa10fd7f2f917ec32 | /inst/app/server.R | d9edf21ffd8221aad0067733fde635efe33fd194 | [
"BSD-3-Clause"
] | permissive | msimmond/aip-analysis | dc8870fee30c5df498000af2821e23d6c80ceb50 | 7c1a7805eb3381c72d8dd1eaefaff0bb556aed2c | refs/heads/master | 2020-12-28T22:33:54.618898 | 2015-09-30T22:12:25 | 2015-09-30T22:12:25 | 43,081,281 | 0 | 1 | null | 2015-09-24T17:13:49 | 2015-09-24T17:13:49 | null | UTF-8 | R | false | false | 45,096 | r | server.R | # this sources the file that checks whether all the packages are installed. It
# might be a good idea to edit this source file (located in the app working
# directory, "AIP/inst/app") so that it checks the required version is installed
# too. Required versions can be found in the AIP package DESCRIPTION file
source('pk... |
db0d4e1de7748bdc02f2c76a396535fc732774f7 | 5dd990f03c615ba8900ce9cb0bf0bc111e4e503b | /man/flat_spots.Rd | 3b122788abe6c652db2a6180c7dead9e9d2e9f96 | [] | no_license | Sprinterzzj/feasts | 2c4ce92de7c3bc32def3b5da84af6a9d21d26a1d | 64c0f66af547c0ae42b1d8a03990de1387a1bc91 | refs/heads/master | 2020-05-26T09:03:31.104268 | 2019-05-17T00:45:00 | 2019-05-17T00:45:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 353 | rd | flat_spots.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/features.R
\name{flat_spots}
\alias{flat_spots}
\title{Number of flat spots}
\usage{
flat_spots(x)
}
\arguments{
\item{x}{a vector}
\item{...}{Unused.}
}
\value{
A numeric value.
}
\description{
Number of flat spots in a time series
}
\autho... |
f374358b8340585b7aa8669a780a15123f97cf3d | 24cc593a9e7b7c16ff3ccf2215a448137bc20f9c | /man/EMtetrahedron.Rd | 95ff68ead81dcff81207590d232ca04739959b8a | [] | no_license | cran/colourvision | 5c87425b154c7f3a77f9a54730eae538e8275f5b | f3d2de226b9378228217e51c85073259c53dcbf7 | refs/heads/master | 2021-11-26T03:29:37.382230 | 2021-08-01T22:10:11 | 2021-08-01T22:10:11 | 73,381,079 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,995 | rd | EMtetrahedron.Rd | \name{EMtetrahedron}
\alias{EMtetrahedron}
\title{
Endler and Mielke (2005) tetrahedron colour space}
\description{
Plots Endler and Mielke (2005) tetrahedron colour space for tetrachromatic animals.}
\usage{
EMtetrahedron(x, y, z, s.col = "red", f.col = "black",
vnames = c("u","s","m","l"), type = "p",
... |
765e9b8037111247827f9d3627e6fa84c0a853e1 | fa8a814d3f6f049b03a557c04479ca344b047047 | /Code_Raiho_et_al_2015/Deer_Model_Experiments_JAGS.R | de8c372d134b58b4fb45a6829b55a3cc1875de87 | [] | no_license | araiho/Deer | e97233944df201b3d931e9c0933ab61273253bba | 9c0dae47cce0122aeb8388c4d0e82fdde425a061 | refs/heads/master | 2016-09-10T22:14:15.924267 | 2015-10-29T17:03:45 | 2015-10-29T17:03:45 | 29,789,837 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,409 | r | Deer_Model_Experiments_JAGS.R | var N[4,T,Park], N.3yr[4,T,Park], N.1yr[4,T,Park], N.ster[4,T,Park], N.cull[4,T,Park], mu[4,T,Park], mu.3yr[4,T,Park], mu.1yr[4,T,Park], mu.ster[4,T,Park], mu.cull[4,T,Park]
model{
#####
##### Priors #####
#####
a ~ dgamma(mu.a^2/sd.a^2, mu.a/sd.a^2)
b ~ dgamma(mu.b^2/sd.b^2, mu.b/sd.b^2)
mean.a... |
80ffc1e6362dc27297fb3b2c0803c5b9dc673fd4 | 2c611b88d56740148087f6f7e76205ff11b1db20 | /cachematrix_test.R | 025bfb3a3b5bbce55c74891def8f5878b52cc120 | [] | no_license | paulcautereels/ProgrammingAssignment2 | 11f4fb0b646b7d8dfb58ad15c9c7d3b788418f02 | 35576b6538c344a8112b640b85a6d3c18e24a406 | refs/heads/master | 2021-01-15T10:35:49.963213 | 2014-11-21T18:16:52 | 2014-11-21T18:16:52 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 481 | r | cachematrix_test.R | source("cachematrix.R")
# create 2 regular matrices
m1 <- matrix(c(1,2,3,4), ncol=2, nrow = 2)
m2 <- matrix(c(2,3,2,3,2,2,2,2,3), ncol=3, nrow = 3)
# create the 2 caching version of these matrices
cm1 <- makeCacheMatrix(m1)
cm2 <- makeCacheMatrix(m2)
# take the inverse of each matrix twice
## the first time the inve... |
719e8317d456eb2773797b13daba6fa9f9f8698a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/PlayerRatings/examples/hist.rating.Rd.R | cc5a0620642e2579c9d74f1c2533ebbec829177a | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 378 | r | hist.rating.Rd.R | library(PlayerRatings)
### Name: hist.rating
### Title: Histogram Plotting for a Rating Object
### Aliases: hist.rating
### Keywords: hplot
### ** Examples
afl <- aflodds[,c(2,3,4,7)]
robj <- steph(afl)
hist(robj, xlim = c(1900,2500), density=TRUE)
afl <- aflodds[,c(2,3,4,7)]
robj <- steph(afl, history=TRUE)
hist(... |
a73bb3dae5a7c4bb19f154440b11893e30a1a5af | 8706b2ca975bd6c9885a1fef05fa0985870f1573 | /R/CACEcov.R | 4d9d0dd628e924227b576ad7deba22636fb3f8c7 | [] | no_license | kosukeimai/experiment | b453551758798c1155110ad62dd96dffe343f009 | 277bff9e30b9af86a163cd24ee27aa94a73f4389 | refs/heads/master | 2022-05-01T03:38:52.934007 | 2022-04-08T12:22:48 | 2022-04-08T12:22:48 | 90,753,473 | 13 | 9 | null | 2018-08-30T01:09:57 | 2017-05-09T14:13:13 | C | UTF-8 | R | false | false | 2,292 | r | CACEcov.R | ###
### Calculate the CACE with covariates and optional clustering using
### two-stage least squares
###
CACEcov <- function(Y, D, Z, X, grp = NULL, data = parent.frame(),
robust = FALSE, fast = TRUE){
call <- match.call()
Y <- matrix(eval(call$Y, data), ncol = 1)
N <- nrow(Y)
D <- matrix... |
427fe1b9cd8f8b3af1be040496061178bc8d5ca0 | a3a95b468a64492be0d6067a14b350b4d281a123 | /man/EQ5Dmap_table5.df.Rd | b07153e89c02234d3bcaa894884c031440b79753 | [] | no_license | sheejamk/valueEQ5D | 25555943195782d2b1f1ee6edbb16afe6a9edfb7 | 24a8cba859996fd8c61b38924c4362702c0dc1a8 | refs/heads/master | 2022-10-19T23:07:01.287073 | 2022-10-03T20:20:57 | 2022-10-03T20:20:57 | 197,168,794 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 398 | rd | EQ5Dmap_table5.df.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{EQ5Dmap_table5.df}
\alias{EQ5Dmap_table5.df}
\title{EQ-5D-5L mapping 5Lto 3L values}
\format{
A 31250 by 21 dataframe
}
\source{
Hernandez Alava et al (2017) <doi.org/10.1016/j.jval.2016.11.006>
}
\usage{
EQ5Dmap_t... |
d22228b2afac1a4141b1aaceba40ceee67fdfce0 | 41615de6999b278c76ff3a60db4af0d4dd7c7861 | /ecozoneBuffer.R | 1db09b3dc75b9440c6fdef0096f6a8ead0b0f379 | [] | no_license | dcyr/Montmorency-Hereford | b33b744e2b9017d4c085bbb546ae9061eb2c1257 | 003298b165dee1775753f821c95ad548835f6a49 | refs/heads/master | 2022-07-17T18:11:25.144495 | 2022-06-22T15:08:02 | 2022-06-22T15:08:02 | 206,645,965 | 0 | 0 | null | null | null | null | WINDOWS-1250 | R | false | false | 2,523 | r | ecozoneBuffer.R | ################################################################################
################################################################################
### Some code to produce a area extent within which we fetch NFI plots for
### study area calibration
### Dominic Cyr
#############
rm(list = ls())
ho... |
46e2e99c72dfd23a7d0f43ff8adbe5aa3a3a9fd9 | 870a947827505133bc5c4ea99d7374da9296ad5e | /SimpleXgbScript.R | 0fcac4c1646667ac360e50bb8758d9c7902b6f43 | [] | no_license | Frin63/Kaggle-San-Francisco-Crime-Classification | fb4c8578eefba361e6579289d287347cfefb930f | 9c34abf01111ef97d72744e0b19e3a075e6b83e3 | refs/heads/master | 2021-01-15T22:47:31.033360 | 2017-08-10T11:49:28 | 2017-08-10T11:49:28 | 99,917,051 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 767 | r | SimpleXgbScript.R | library(xgboost)
data("agaricus.train", package = 'xgboost')
data("agaricus.test", package = 'xgboost')
train <- agaricus.train
test <- agaricus.test
str(train)
dim(train$data)
dim(test$data)
class(train$data)[1]
class(train$label)
bstSpars <- xgboost(data = train$data, label = train$label, max.depth = 2, eta = 1... |
1d04ef94f32a5ec64f4f4780f20bdaa1151681e9 | 554eed183608577ff1116d5e4f16d40b1143fbae | /Plot3.R | b55ea721f6140af4058d08741f1c2f4947b93ef0 | [] | no_license | Oli2/Exploratory-Data-Analysis | 54e34eff38c204fcc36384e904afc540ee883dba | 725484505f73488ff990b774965f74f1796f5641 | refs/heads/master | 2016-08-12T15:29:17.180457 | 2016-02-06T11:07:11 | 2016-02-06T11:07:11 | 51,164,456 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,342 | r | Plot3.R | #first add the part which will download and unzip the file in the working
# directory
library(dplyr)
library(lubridate)
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
#creating the temp file which will be used to download and unzip the url
temp <- tempfile()
download... |
0204a4f6ca253d0fbb124044570c8316cdd48400 | a495b873b0c82b31b5a75ca3547c9febf3af5ddc | /array/DNAm/analysis/methodsDevelopment/compareNormalisation.r | 8efff36fe009faf50a85948bf15a4f3db1540481 | [
"Artistic-2.0"
] | permissive | ejh243/BrainFANS | 192beb02d8aecb7b6c0dc0e59c6d6cf679dd9c0e | 5d1d6113b90ec85f2743b32a3cc9a428bd797440 | refs/heads/master | 2023-06-21T17:42:13.002737 | 2023-06-20T12:35:38 | 2023-06-20T12:35:38 | 186,389,634 | 3 | 2 | Artistic-2.0 | 2022-02-08T21:45:47 | 2019-05-13T09:35:32 | R | UTF-8 | R | false | false | 4,339 | r | compareNormalisation.r | ##---------------------------------------------------------------------#
##
## Title: Comparision of normalisation strategies
##
## Purpose of script: compare effects of normalisation across all samples and within cell type.
##
## Author: Eilis Hannon
##
## Date Created: 2020
##
##----------------------------... |
8f56ef78078f2dcef93818f4262890f70e2b6ac7 | 85e7b5740b9d931f040cbb61d9c338b4d27cab1a | /MLR_R.R | c7a5553424c30af82493971260392eea0be9522d | [] | no_license | keyur-gohel/StartUp-Profit-Prediction- | c6150fd3c9b3df284c8c1d3ed607c7227364ca55 | a541d991a0f6fd469ee83a766b7fd422ea25dcf6 | refs/heads/master | 2023-07-17T15:29:23.745014 | 2021-08-17T09:50:38 | 2021-08-17T09:50:38 | 397,197,372 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,410 | r | MLR_R.R | # Multiple Lineaar Regression
# Data Preprocessing
# Preparing Dataset
dataset = read.csv('50_Startups.csv')
# Encoding Categorized Data
dataset$State = factor(dataset$State,
levels = c('New York', 'California', 'Florida'),
labels = c(1, 2, 3))
# Spliting Dataset into T... |
ea00acb0ac2f2775c2bc34c06036514dea610e86 | 81065561fcf172679aa3c04c727721050d32724f | /proc/treat-alerts-from-bestfscorers.R | 1eb7bf2046298d7b34529a2b62eeed2a5ca44b04 | [
"MIT"
] | permissive | cdc08x/automated-flight-diversion-detection | 018f9c838c43a565210d92d92e5bbd45529c55bc | 4c6f2f208e4f54492905f6f550c0c37b4635d360 | refs/heads/master | 2023-07-14T21:52:45.734583 | 2021-08-18T14:32:23 | 2021-08-18T14:32:23 | 200,355,999 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,962 | r | treat-alerts-from-bestfscorers.R | data <- read.csv2(
file="../etc/alerts-of-bestfscorers-on-noks.csv",
sep=";")
data$filenameNoExtension <- gsub('.xml', '', data$filename)
data$flightArea <- ifelse(grepl(pattern ="^[0-9][0-9]*$", x = data$filenameNoExtension), "EU", "US")
data$realFlightId <- ifelse(data$flightArea == "EU", data$filenameNoExtensio... |
fa62bb6ef21694f2418a02013b95b1363d2791e7 | 70fc84a220fff7fc26d6610abb2c5995e613947d | /Scripts/PlottingScripts/Chapter 2 Plotting Script.r | 332fd952fd79b8d81930c0f63a808bb7fba08dec | [] | no_license | mohriner/flowBook | b8b33a90a3cc9ae52b66ae49abec8f15adeb4bfd | faaec23176acf7af339fdda5b119f4aa586bbbda | refs/heads/master | 2020-04-01T21:57:44.605875 | 2020-02-13T15:29:46 | 2020-02-13T15:29:46 | 153,684,015 | 13 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,285 | r | Chapter 2 Plotting Script.r | source("Scripts/loadLibraries.r")
source("Scripts/PlottingScripts/PlotVerse.r")
load("DerivedData/FlowBookCorpus.rdata")
meta = read.delim("SourceData/verseMetadata.txt",header=T)
# Example 2.2. Chronological and geographical distribution of the corpus sample ----
# (n=225) and sub-sample (n=75)
a = meta %>% filter(gr... |
0c40ba231bfe56c5ac6415b75cf0a75f7327ad27 | 1aced36f0193b1cd8f5cc6b180d40b60d08ce994 | /man/compare.Rd | ba865f60cc91fec1e1f76962124bebe41973eb59 | [] | no_license | gasse/bnlearn-clone-3.1 | 28ffd5b50ca97ec7fe54fa6037bc4a7757a81315 | 2bd270be53eafb08e13bdadce448db27442e2978 | refs/heads/master | 2020-12-24T18:03:29.368563 | 2013-11-14T16:34:04 | 2013-11-14T16:34:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,478 | rd | compare.Rd | \name{compare}
\alias{compare}
\alias{all.equal.bn}
\alias{shd}
\alias{hamming}
\title{ Compare two different Bayesian networks }
\description{
Compare two different Bayesian networks; compute the Structural
Hamming Distance (SHD) between them or the Hamming distance
between their skeletons.
}
\usage{
compare(targ... |
177a74e83d025ff40eb32481d833446c9d9ecfd1 | 650e9a743bb3a72bc39c32509716651a1febe0c8 | /man/load_elec_data.Rd | 3a6aedc4045e0255690791aa6442d3e12348d539 | [
"MIT"
] | permissive | JGCRI/superwell | dc14b4b83933f8efdf5fc4fc6c29c4bb9100cb10 | 4d5e0c55936e784b438821769663ae1dfbb45910 | refs/heads/main | 2023-08-03T15:08:20.436680 | 2023-06-25T01:58:57 | 2023-06-25T01:58:57 | 199,896,734 | 2 | 2 | MIT | 2023-06-25T01:59:00 | 2019-07-31T17:00:59 | R | UTF-8 | R | false | true | 535 | rd | load_elec_data.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/superwell.R
\name{load_elec_data}
\alias{load_elec_data}
\title{Load electricity cost data for each countries}
\usage{
load_elec_data(el_cost_file)
}
\arguments{
\item{el_cost_file}{Full path with file name and extension to the input GCAM ele... |
ebd56091fe1c77a09db1d3754633551525d200fb | ce645e050e24c0b982ae6c3b45eb686bcfa36202 | /Scripts/05a_predicted_versus_observed.R | f1b912b51a9049d5d9d6bf294d630807c01eaf33 | [] | no_license | dmcalli2/adverse_events_older_people | fe2d008fc53a3e3737a4459a06c99d53665bd37b | 9ec0a84e32d2d35b5e2f2e37d9cd44238c18b7ed | refs/heads/master | 2023-05-10T00:30:55.312685 | 2021-06-17T16:33:37 | 2021-06-17T16:33:37 | 218,378,533 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,590 | r | 05a_predicted_versus_observed.R | library(tidyverse)
# library(msm)
library(truncnorm)
## data ----
coefs <- read_csv("SAIL_data/age_18_plus_fp_coef.csv")
vcov <- read_csv("SAIL_data/age_18_plus_fp_vcov.csv")
vcov <- subset(vcov, select = c(2:5))
names(vcov) <- coefs$X1
vcov <- as.matrix(vcov)
dfs <- readRDS("Processed_data/age_sex_bmi_a... |
1fe4347598dfb36edbad41b186b9269ec0cc0bd0 | 5bb91efaaac1ebc48723a2504e95333851f6a281 | /Rfunctions/CalculateAltitude.R | 8bc375a1dbe0317dc87e2f569a0c6491cd645cc8 | [] | no_license | RikvH/Project_WijdoenMEE | 365834d82e099021b7d5dbaa7fbd27ed5e7681e3 | bad4aa55ae96acc1fde8d24131be166bcc287b54 | refs/heads/master | 2021-01-13T05:31:12.409323 | 2017-02-02T16:29:05 | 2017-02-02T16:29:05 | 80,189,608 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 624 | r | CalculateAltitude.R | ###################################
## Wij doen MEE ##
## Rik van Heumen & Dillen Bruil ##
## 30 January 2017 ##
###################################
## Function to extract the altitude along the route from a DEM
## It prints the min altitude and the max altitude and their difference
## A... |
a71c5eaef2e9734e7eb5b615951feccabe0cc67f | ced776f0ae6d8a5605bde05590ee7cb33ac9569b | /data/examples/example-parties.R | a2d7ba00237d9914a78b7e8d926282acbf47b752 | [] | no_license | pdwaggoner/methods | e9ff0ff3cc03a059c309c5c9a1c4e0b03952f56a | 81b7904572c54422daba6d645445b528d9f60b09 | refs/heads/master | 2020-03-18T18:10:20.031335 | 2018-01-08T21:34:39 | 2018-01-08T21:34:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 465 | r | example-parties.R |
#' ---
#' title: "An Example with the `parties` Data Set"
#' author: "Carlisle"
#' ---
# set working directory
setwd(here::here())
# load packages
library(tidyverse)
library(rio)
# load data
parties_df <- import("data/parties.rds")
# quick look
glimpse(parties_df)
# scatterplot of eneg and enep by electoral syst... |
35c41171af73af0f5369a36b82a00bf94b2f3993 | 8eb87e4dea4f73397d0340be06abd2697a7a57e3 | /man/hg_converter.Rd | 15e77557b539f5ccf955b9d81cab49f2040a8971 | [] | no_license | BacemDataScience/cancereffectsizeR | 110c4c13ba27c0dff90b256d29e84d485b5a59f8 | 741db1c938993e551cc9f0150d2420e0e35dee4a | refs/heads/master | 2020-08-27T01:51:26.433520 | 2019-10-02T11:36:56 | 2019-10-02T11:36:56 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,433 | rd | hg_converter.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hg_converter.R
\name{hg_converter}
\alias{hg_converter}
\title{hg_converter}
\usage{
hg_converter(chain, maf_to_convert, chrom_col_name = "Chromosome",
new_build_name = "Converted_from_GRCh38_to_hg19")
}
\arguments{
\item{chain}{A directory... |
7e9367068b7b9b631b81c30884d1e2a512d8cf50 | f35b869a012fb5881a232ff6ca1d784b4e76e992 | /ui.R | 6cae234da06b17a3aaeb02cff229deddaf1ba9db | [] | no_license | Quentin62/jeia | ed0ae6382c0e82704900f2469fcc88478bd0c848 | f482d8242079327bd31843fc62b9952281ca5acf | refs/heads/master | 2020-04-23T02:32:26.808770 | 2019-03-12T08:38:07 | 2019-03-12T08:38:07 | 170,849,791 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,841 | r | ui.R | library(shiny)
library(shinyjs)
library(shinydashboard)
library(DT)
library(plotly)
dashboardPage(dashboardHeader(title = "JEIA 2019"),
dashboardSidebar(
sidebarMenu(id = "tabs",
menuItem("Pile ou face", tabName = "pile", icon = icon("coins")),
... |
65f77756a357abe8e4a31c920c280fda6a1ba107 | efb268d2e8648286b87ca51dee410f3130ace448 | /R/sandbox/plots.R | b03e417404ddcd9252ac12c63375705a00a2cb9f | [] | no_license | mkyriak/FRONTIER | 05be342b6a8d743a047e52af35db49854be1cad5 | 360c703a506a771e138934d3d1fc6806ae6cf508 | refs/heads/master | 2023-06-27T02:53:55.163078 | 2021-05-11T16:33:55 | 2021-05-11T16:33:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,069 | r | plots.R | load('results/FRONTIER.QC.filtered.normalized.anno.final.meta.Rdata')
meta = as.data.frame(pData(all_data)) %>% filter(Dataset == "VUmc")
library(tidyverse)
library(ggplot2)
pdf(file = "figures/violin1.pdf", width=11, height=8.5)
ggplot(meta, aes(x=Cell_Predict, y = purity)) +
geom_jitter() +
geom_violin(draw_qu... |
1c97e1461c93b41f24b938ab68f5020331c2bd3b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/saturnin/examples/account.for.prior.Rd.R | 9fdf3254ef544228d257fcef81c9f874cf93f86d | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 360 | r | account.for.prior.Rd.R | library(saturnin)
### Name: account.for.prior
### Title: Accounting for prior edge appearance probability.
### Aliases: account.for.prior
### Keywords: posterior edge probability
### ** Examples
library('saturnin')
data(data_gaussian)
W <- lweights_gaussian(data_gaussian)
prob <- edge.prob(W, log = TRUE)
prob.q0 ... |
6abda93c841de6b4a7cb597beb5ec5b39b64871f | e83edc59f6bb2424ab86375762b0c116000d0167 | /R/sfQuickInit.R | 5a493bcb9b61aa9462d933cfa06572125930cfa6 | [] | no_license | gearslaboratory/spatial.tools | 5f919f4474ef0792c37ba88bf47ce60229f65221 | 905954e12ed3092a56afaaa6f356d3f0a7e572c1 | refs/heads/master | 2021-01-04T02:51:21.597561 | 2020-02-13T19:34:33 | 2020-02-13T19:34:33 | 240,344,310 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,010 | r | sfQuickInit.R | #' Quickly initializes a parallel cluster and registers it with foreach.
#'
#' @param cpus Number of cpus. Will default to the max available cpus.
#' @param methods Logical. Load the methods package? (if FALSE, faster startup). Default=FALSE.
#' @param ... parameters to pass to sfInit()
#' @author Jonathan A. Gr... |
afdbee6e135c2e91a7c5abcce9f572c63c275c1b | 1585bd45e45049644c851b762119203873fc18b3 | /R/bs_repositories.R | a8b93071e3c19fa90c83d25c911feeca4ae3f2a2 | [
"MIT"
] | permissive | project-renard-survey/rbace | 8ac1c0f03f03b2864691d44a2da6e4b4cea268c6 | f0161ffea24c05c841e69df4372a1759bd08e4a3 | refs/heads/master | 2021-06-17T02:26:21.357924 | 2017-06-07T00:56:48 | 2017-06-07T00:56:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 781 | r | bs_repositories.R | #' List repositories
#'
#' @export
#' @param coll (character) collection code. For existing, pre-defined
#' collections see Appendix, section "Collection-related queries"
#' @param parse (character) One of 'list' or 'df'
#' @param ... curl options passed on to [crul::HttpClient()]
#' @return XML as character string if ... |
a901bc3637e40fd2d0f96925ebea359a34aee8c7 | 95a1a0b30a0bdbf716eca125edb92ca3111a49f6 | /man/plot.linreg.Rd | ee884943722d58938bfd269af799c7d6a8ad1293 | [
"MIT"
] | permissive | Marbr987/bonus_lab | a8bec3429f04d6ef2402f11070ca59cb67113c54 | 8b316fd2774bdf474ad6962e027a34ef74927e28 | refs/heads/main | 2023-08-27T22:02:13.508670 | 2021-10-29T23:58:24 | 2021-10-29T23:58:24 | 417,931,605 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 453 | rd | plot.linreg.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{plot.linreg}
\alias{plot.linreg}
\title{plot S3 method}
\usage{
\method{plot}{linreg}(x, ...)
}
\arguments{
\item{x}{An object of class linreg}
\item{...}{other arguments}
}
\value{
List containing the two plots.
}
\description{... |
84f2defb897baeb05e65ef1cda68c34ec444e18b | 233044bb5dae762c818e0b5a0996e2186dcb4d45 | /man/NBR2.Rd | ab39f8dc7904230d5aed192ae4eb958a0d66178a | [] | no_license | cran/nightmares | 52a4f1cc463806b3c7a25e19fd7d0f5b9545842f | 5262c05af76aa6843fbd2e4266a3fe7e44c5cc76 | refs/heads/master | 2022-12-18T14:24:07.441720 | 2020-09-21T05:50:10 | 2020-09-21T05:50:10 | 295,363,997 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,016 | rd | NBR2.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NBR2.R
\name{NBR2}
\alias{NBR2}
\title{NBR2 - Normalized Burn Ratio 2}
\usage{
NBR2(SWIR1, SWIR2)
}
\arguments{
\item{SWIR1}{A raster layer object with the reflectance values for the Short Wave Infrared 1 band.}
\item{SWIR2}{A raster layer o... |
ba87c24872289a890ad03a21a5c0cdab2f719fce | a6dbd574caa4be4796ee99765b8e43e3c3b6d838 | /man/region.Rd | 844d8aa602ab87edc46af4d51ccdf036359ec919 | [] | no_license | heike/rotations | 2356a863c2acfe6a70c85b358b64c3bfac3b1ce8 | 0040f4f673b328aa629f396d09365a76f935ac8e | refs/heads/master | 2020-05-18T00:06:21.259519 | 2013-06-18T20:53:32 | 2013-06-18T20:53:32 | 4,933,660 | 8 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,085 | rd | region.Rd | \name{region}
\alias{region}
\alias{region.Q4}
\alias{region.SO3}
\title{Confidence Region for Mean Rotation}
\usage{
region(Qs, method, alpha, ...)
\method{region}{Q4} (Qs, method, alpha, ...)
\method{region}{SO3} (Rs, method, alpha, ...)
}
\arguments{
\item{Rs,Qs}{A \eqn{n\times p}{n-by-p} matrix where each... |
75f6e64a80d5b68b4c5b8705398469d41dca3ec8 | f88009980e71fda893d0b0d9315eb9091e435eb1 | /r-scripts/mkt1_T_posteriorplot.R | 74903d386b983043efb8e6883d85eb4ae13a9d24 | [] | no_license | samiramarx/Bayesian-elasticities | 5ac12c5b263e12c41e28784b23bed6b765d1ef91 | 8c82ba1917cb4c54797cb71b2b6f00d671835181 | refs/heads/master | 2020-03-28T15:50:24.994884 | 2018-09-16T14:52:36 | 2018-09-16T14:52:36 | 148,630,953 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,837 | r | mkt1_T_posteriorplot.R | #=========================================
# MSc Transporte Economics
# TRAN 5911 Dissertation
# Samira Marx
#=========================================
#--------------------------------------
# library
#--------------------------------------
library(xtable)
library(ggplot2)
library(plyr)
library(dplyr)
library(reshape... |
3faa534cb63f9a25198a691ca977c6618151da3c | 6270ce269c59f9dbcbd27980ad4621c08a442681 | /activity7/activity7_script.r | 07fde9603ee38c8ae85186770d33ff96ad58ae17 | [] | no_license | Jbeniers/ENVST206 | 13f23145550b37d752a06a63f373b12fbcdf06cc | ec8fa5e11fc2b26a91b91bf67672e76a2aa2a0be | refs/heads/master | 2023-01-23T20:38:59.676015 | 2020-11-24T18:10:43 | 2020-11-24T18:10:43 | 292,412,106 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 777 | r | activity7_script.r | ## Activity 7 ##
## Question 1 ## (Answered in word doc)
## Question 2 ## (Answered in word doc)
## Question 3 ## (Answered in word doc)
## Question 4 ## (Answered in word doc)
## Question 5 ##
NYDrought <- read.csv("/Users/JonBeniers/Desktop/ENVST206/Activity 7 Data/dm_export_20191022_20201022.csv")
# Mean & SD of... |
3fd2e6206144540ffaba03d3008d9b5635cf30cc | 12ccdd95c02ca34822d0a3862a28bb17170955f5 | /R/cm.R | 656ee79437ebb8034d6b36f71f4b5460c155af91 | [] | no_license | cran/iRegression | d156b210e062f4548d5cd1fa8fc64cb00832b4f1 | 4d2c16e000ed423412f980b5fe7ff27519216fe3 | refs/heads/master | 2021-01-19T01:41:43.944423 | 2016-07-18T20:09:24 | 2016-07-18T20:09:24 | 17,696,732 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,144 | r | cm.R | cm <- function(formula1,formula2, data, ...){
UseMethod("cm")
}
cm.default <- function (formula1, formula2, data,...)
{
cmEst <- function(x1, x2, y1, y2)
{
xpm <- (x1+x2)/2
xh <- x2-x1
ypm <- (y1+y2)/2
yh <- y2-y1
qxpm <- qr(xpm)
coef <- solve.qr(qxpm, ypm)
df <- nrow(xpm)-n... |
c8f7b3e252ac60474ab4baf3bdbd1b360511942e | 4deb3ec8ef4f5f24b0a9fe82c6802c61e87e46ec | /Supervised Learning in R - Classification.R | e748407910cd610c2719f6eedc04aee15e27ecb7 | [] | no_license | wcaughey1984/datacamp | 52647f52867093626f80999faad227e0123a11e2 | f950a6b4a3e0a7283591dacd6956cf78c8e6dfd7 | refs/heads/master | 2023-02-23T12:24:09.351470 | 2021-01-27T16:00:53 | 2021-01-27T16:00:53 | 282,528,594 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 13,489 | r | Supervised Learning in R - Classification.R | #
# Title: Supervised Learning in R - Classification
# Purpose: (Personal Development) Code for the Supervised Learning in R Course
# Author: Billy Caughey
# Date: 2021.01.26 - Initial Build
#
##### Chapter 1 - k-Nearest Neighbors #####
# Classification: tasks that require predicting a categorical outco... |
198fa38a32bfd1107265fedc252e6dd404f7e138 | 96119c7b733cb899f9b92696745a481d73ce10d8 | /RandomForestSnowEmergency.R | cfa8f34c68e58316d72fe7d24e09d5f2630d86cf | [] | no_license | claraj/snow_emergency | c58b52eda2b2bbf75fa3a2d5f75c15ba3fc8b01f | 7e66c6ab0810b42133bc294ae38fe023df791252 | refs/heads/master | 2020-05-20T07:26:32.251562 | 2019-05-13T04:56:51 | 2019-05-13T04:56:51 | 185,451,165 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,367 | r | RandomForestSnowEmergency.R | # Using Random Forest prediction on sample snow emergency data
library("randomForest")
library("raster")
setwd("/Users/student1/Development/r/snow_proj/data")
dataframe <- read.csv(file="SNOW_TAG_TOW_TYPES_TESTING_R_SCRIPT_FAKE_FAKE_FAKE_DATA.csv")
head(dataframe)
# Ward (1, 2, 3....), Tow_Zone (1 - 6), Day (1, 2,... |
c63c28e6beb8bb5254423602cea4c258ce4ec68e | d7b1f6f13781ebf0daa817ac6e328513813db7e6 | /man/wpd_get_views_for_year.Rd | 3ce299237bd6b20720094dc2f29b0c6d0e5ea4b3 | [] | no_license | petermeissner/wikipediadumbs | 2d381d09d1925c921f753b371b21236177b051f5 | f8565d9796ee0273efede8f662809df251bafbf7 | refs/heads/master | 2020-08-06T11:10:49.340760 | 2018-11-20T09:07:50 | 2018-11-20T09:07:50 | 212,954,772 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 269 | rd | wpd_get_views_for_year.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wpd_get_views_for_year.R
\name{wpd_get_views_for_year}
\alias{wpd_get_views_for_year}
\title{wpd_get_views_for_year}
\usage{
wpd_get_views_for_year()
}
\description{
wpd_get_views_for_year
}
|
62b59d3a06a40f8b906226c54f1e417e329ce658 | 7d3e7c1d0a80ac881103bef9c1ba8a2a8693fddd | /R_Tutorials/Data_Problems/figure_resfit.R | 851a623bd27f28d37c9f5545d7a022f4be5c3d9f | [] | no_license | wagafo/Applied_Statistics | aa6c7418e14bad7154b1405847147e962d42cd47 | 3d1b9fe9ec4f8187b1bcb80c0b7a2cfa75b1460a | refs/heads/master | 2021-06-26T21:30:43.063498 | 2020-11-22T12:14:44 | 2020-11-22T12:14:44 | 184,111,016 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 251 | r | figure_resfit.R | parold <- par()
par(mfrow= c(1,2))
x <- runif(100, 0,100)
y <- 3 + 170*x + rnorm(100,0,1000)
fit <- lm(y~x)
plot(fit, which=1, main="Case A")
y <- 3 + 170*x - 2*x^2 + rnorm(100,0,1000)
fit <- lm(y~x)
plot(fit, which=1, main="Case B")
par <- parold
|
284ead0f6c2a5eb8f63719488cf41e4a446f89a2 | 4720a0a69ff2b9aa90440339b359f6ba4cdd873c | /tests/testthat/test-tau.estimate.R | 060ef38e9e8f7e99ab71b6c2c62faad86a6025f3 | [] | no_license | llrs/RGCCA | 170173c99d0bf686bd6f98206dd09b94f708a46f | 8a208d581b9dca50b8616938657b0aca250d7fcf | refs/heads/master | 2021-12-11T20:59:17.240348 | 2021-09-17T15:37:29 | 2021-09-17T15:37:29 | 101,992,036 | 2 | 1 | null | 2019-04-26T12:59:04 | 2017-08-31T11:05:13 | R | UTF-8 | R | false | false | 577 | r | test-tau.estimate.R | test_that("tau.estimate", {
data("Russett")
expect_equal(tau.estimate(Russett), 0.114279478757313)
})
test_that("implementations are coherent", {
data(Russett)
set.seed(45791)
X_agric <- as.matrix(Russett[, c("gini", "farm", "rent")])
s <- scale2_(X_agric, bias = TRUE)
t1 <- tau.estimate(s)
expect_tru... |
728dfef92728de7fa00ca49ebb31d4881e3e844a | 9c0b7c02ea33811c75ea02a020bbfc31e1a6724a | /gconcordopt/R/wrappers.R | 4e2260c5aeb39a9f0bb963281343d6d4d88119f8 | [] | no_license | hyoucs/heteropc | e458afbe807e1b48d875213b64d06560ddaf331e | 25d5516b479932955fbbb194c1db2e736925eaad | refs/heads/master | 2021-04-26T22:43:36.958703 | 2018-07-23T06:11:55 | 2018-07-23T06:11:55 | 124,137,515 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,568 | r | wrappers.R | #######################################
## CONCORD - ISTA
#######################################
#' @useDynLib gconcordopt
#' @export
concordista_e <- function(D, lam, pMat, penalize.diagonal = 0L, BBstep = 0L,
tol = 1e-5, maxit = 100L, info = FALSE,
trkeigs = FALSE, Di... |
baa4d20fb671d0742b3d2b4bf012434e3c703302 | ac1105166bd4a3616f41d7c9308de4f7ea07afdc | /AfricaSoil/xgboostModel.R | 36ab408f30faa7061abbec3750d00f4651eb4eb6 | [] | no_license | Shmekor/Kaggle | 5b6e94f6955bfaaeb164a9b34c2193ad1d0405bc | a51832a026633d03689e94e5c695757decc91534 | refs/heads/master | 2021-01-13T02:37:57.198732 | 2014-09-06T14:04:18 | 2014-09-06T14:04:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,130 | r | xgboostModel.R | kaggle.africa.xgboostModel.train <- function(ds, sFeatures, ...) {
trainModel <- function(tDS, target) {
dtrain <- xgb.DMatrix(as.matrix(tDS), label = target)
model <- xgboost(data = dtrain, objective = "reg:linear", eval_metric='rmse', ...)
model
}
result <- list()
result$sFeatures <- names(d... |
99a084599620f8de631d930ac4a8350bf4d52ed1 | 26f5865f149e0e7f87c074c035ebb10fc1bf3800 | /man/rfe_result.Rd | a1de9c42fb75057556369d4f2d34351d2768b209 | [] | no_license | elpidiofilho/labgeo | bfa3580b67f0f777f1c28e82dd826ee6ae89da32 | aebd001557b18832a2a6080c54892a3262a45162 | refs/heads/master | 2021-01-22T12:38:39.902086 | 2018-08-11T13:42:37 | 2018-08-11T13:42:37 | 102,354,346 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 600 | rd | rfe_result.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/recursive_feature_elimination.R
\name{rfe_result}
\alias{rfe_result}
\title{Recursive Feature Elimination plot results}
\usage{
rfe_result(fit.rfe)
}
\arguments{
\item{fit.rfe}{Results from recursive_feature_elimination function}
}
\descript... |
ce3ed0836af27eedefd79c2b5ad614abbee7449a | 9e7c75c97ab27056531f68ec0990e448d1740eea | /R/rle2.R | dcd94aef219dff8d5828fd174d3a2a8076b4745b | [] | no_license | AkselA/R-ymse | e3a235eca7b6b8368c6775af33295254d0ecb093 | 1d66631cc7e0cd36b38abcaee5d8111573723588 | refs/heads/master | 2020-03-28T12:42:24.854132 | 2020-03-19T11:25:13 | 2020-03-19T11:25:13 | 148,326,253 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,329 | r | rle2.R | #' Tabulate data
#'
#' Quick and simple function for creating contingency tables
#'
#' @param x a vector or factor object
#' @param na.rm should \code{NA}s be included
#' @param order how should the results be ordered, if any?
#'
#' @return
#' A \code{data.frame} with columns \code{val} (the original values and clas... |
ce95972cb7311080838a69c8d68390994f8e42b6 | c29a2534fb4e5224d49d3fed5e23f6c86987d055 | /R/moda.R | a9380ed17a5f4f1c9b26156f0e3cb182b04712e1 | [] | no_license | ddeweerd/MODifieRDev | 8c1ae2cd35c297a5394671e05d3198b6f3b6fcf8 | 5660de4df282b57cd2da20e8fe493e438019b759 | refs/heads/Devel | 2020-03-28T18:37:56.271549 | 2019-11-07T10:45:09 | 2019-11-07T10:45:09 | 148,896,901 | 4 | 0 | null | 2019-08-20T14:14:35 | 2018-09-15T11:42:06 | R | UTF-8 | R | false | false | 5,214 | r | moda.R | #' MODA
#'
#' An implementation of MODA co-expression based algorithm.
#' @inheritParams clique_sum_permutation
#' @inheritParams MODA::CompareAllNets
#' @inheritParams MODA::WeightedModulePartitionHierarchical
#' @param group_of_interest Numerical value denoting which group contains the condition of interest (1 or 2) ... |
aa0da909c83e64efa22c0f01d9c124104968688d | f19ab11dae48b4442b838eb4b2e367bceedbbcb1 | /r_programming/progs/rankhospital.R | 2f6a2d732cb7445b548d526297afad4f9165adc7 | [] | no_license | chrsaud/datasciencecoursera | 95be69d405bf80cdf5c8065e0eb3014c0c0e63c3 | 3330592ca3721fd17a3d9229ae49da9297f6ba3f | refs/heads/master | 2021-04-25T08:36:34.505682 | 2018-03-23T10:34:44 | 2018-03-23T10:34:44 | 122,195,294 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,883 | r | rankhospital.R | ## Week 4 Programming Assigment - function to find hospital with user specified ranking
## in a state
## Author: Chris Aud
## set working directory
setwd("C:/Users/Chris/Desktop/datasciencecoursera/r_programming/data")
## find hospital with given ranking
rankhospital <- function(state, outcome, num) {
## Read outco... |
40d33a933e4dbffec1c8558ec8b002ecbcf0fa55 | e8f282cec225e3678e8464050edf7475d6995a91 | /R/E-retMatrixCtoL.R | 3aa72954c6744c23e72e666bd8ce7a868059d497 | [] | no_license | stjordanis/tsconv | aca5eaa03c699bbbf4775a960af38dbfe33e8681 | 0d7e9bc63aaecfcbbda79cf588334af663c20102 | refs/heads/master | 2020-04-15T15:12:43.422059 | 2017-01-06T05:59:22 | 2017-01-06T05:59:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 397 | r | E-retMatrixCtoL.R | #' Convert continuous (log) returns to linear returns for a matrix
#'
#' @param CRetMatrix is a log return xts matrix
#'
#' @return a linear return xts matrix
#'
#' @examples
#' none
#'
#' @export
retMatrixCtoL <-function(CRetMatrix)
{
CtoLReturns <- lapply( X=CRetMatrix
, FUN=retVectorCtoL... |
d473270f62119fba66fb3a49e4411ea3d1c408b3 | 1c6d29bf84112963a95afa7324976d6a1e203d28 | /Assignments/Assignment 3 - Loess/loess.R | 2d619dbe1c9d5789e655f34dee421cbc31018773 | [] | no_license | john-james-ai/Practical-Statistical-Learning | eb95d6b590e0accadb22dfc9230acb8cb4abf496 | 6ecb06e222e45bb96480bc093c138f3b579a91dd | refs/heads/master | 2023-04-09T07:22:48.035241 | 2021-04-14T10:31:04 | 2021-04-14T10:31:04 | 346,923,377 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 706 | r | loess.R | lo.lev <- function(x1, sp){
## YOUR CODE: compute the diagonal entries of
## the smoother matrix S
}
onestep_CV <- function(x1, y1, sp){
## YOUR CODE:
## 1) fit a loess model y1 ~ x1 with span = sp, and extract
## the corresponding residual vector
## 2) call lo.lev to obtain the d... |
d94d9b6cd0e1d724a79691f6cfab679e519e72f6 | c5d3419daa51b54120a0acd5bdbe638a6591d62d | /1.0 Introduction/Exercise1.R | a45ce525dafc1ef56aae670dbfcd353699a3a769 | [
"MIT"
] | permissive | riyaaditya/Data-Science-Using-R | 5c87f1de9f8805cf74b84ceebc64f84043a954c7 | 78434dca2f763776bdf5ee4400968d6d7e849c57 | refs/heads/master | 2022-04-18T04:07:01.129726 | 2020-04-15T17:47:53 | 2020-04-15T17:47:53 | 262,352,618 | 1 | 0 | MIT | 2020-05-08T15:00:06 | 2020-05-08T15:00:05 | null | UTF-8 | R | false | false | 359 | r | Exercise1.R | # Exercise 1.1
exp(0-1/2)
exp(0+1/2)
x<-rnorm(1000)
y<-exp(x)
mean(y)
# Exercise 1.2
A<-1
B<-3
C<-1
options(digits=1)
my.vector<-c((-B+sqrt(B^2-4*A*C))/(2*A), (-B-sqrt(B^2-4*A*C))/(2*A))
my.vector
options(digits=6)
c(-0.4,-2.6)/my.vector-1
# Exercise 1.3
x <- rnorm(100, mean=.5, sd=.3)
mean(x)
sd(x)
hist(x)
hist... |
b7dab2d9d0e0a2a945b042dbedaed4bb8b050c6e | d67b72be70e10fa57dfc9f016c28d4babc7577c9 | /man/get_hue.Rd | 7386035c54e189de422544d267640307625ead64 | [] | no_license | ctross/DieTryin | 10e293ff914232fb9a5734ca6f82e556db96a491 | 45bd367cbdd2bbbd1b75ec10e59b2c948d68b840 | refs/heads/master | 2023-08-30T21:17:17.002468 | 2023-08-28T19:36:47 | 2023-08-28T19:36:47 | 132,165,318 | 3 | 0 | null | null | null | null | UTF-8 | R | false | true | 399 | rd | get_hue.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_hue.R
\name{get_hue}
\alias{get_hue}
\title{get_hue}
\usage{
get_hue(path)
}
\arguments{
\item{path}{Full path to image. file.choose() is often useful. Example: get_hue(file.choose())}
}
\description{
This is a helper function to identify... |
33bcd784f591a7ea6120db901ec07550f55d0b07 | 6c16bfabf987468553ab281cef9e872a017bbdd6 | /lucho/random_walk_indice.R | 9bd6b18bd76c8f8896d480bd794acb439b557d3e | [] | no_license | ZhengyangXu/r-strategies | 4bb714a7c28ef4db32c8793adcc13b21919f2164 | a7543720bbae975dbeb79202b266a0a294797712 | refs/heads/master | 2020-03-14T00:20:07.624730 | 2014-10-24T00:44:26 | 2014-10-24T00:44:26 | 131,354,530 | 1 | 0 | null | 2018-04-27T23:49:01 | 2018-04-27T23:49:01 | null | UTF-8 | R | false | false | 1,492 | r | random_walk_indice.R | library(PerformanceAnalytics)
library(quantmod)
symbol <- 'AAPL'
.from <- '2005-01-01'
.to <- '2014-04-17'
getSymbols(symbol, from=.from, to=.to)
stock <- get(symbol)
stock <- stock[,1:4]
names(stock) <- c("Open", "High", "Low", "Close")
stock$Lowest <- NA
stock$Highest <- NA
stock$ATR <- NA
k <- 14
columnas <- nco... |
daa15a0e66058e0a243e08a19387915a5eadf500 | f4a0ad6d68516fd86f764920fb33157162cfbecf | /R/bspline.R | d77c2b87d16abdd3fd393132cc397c6273673ed5 | [] | no_license | cran/spBayesSurv | c012af5247f90ec25b846ab18ea4bf8775a8652a | 9bf7201a51153a54f5a6192a5911fab18850a944 | refs/heads/master | 2023-05-25T00:36:22.423025 | 2023-05-17T18:00:02 | 2023-05-17T18:00:02 | 20,757,555 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,596 | r | bspline.R | # Modified from File src/library/splines/R/splines.R
# Part of the R package, https://www.R-project.org
bspline <- function(x, df = NULL, knots = NULL, Boundary.knots = range(x)){
degree <- 3
intercept <- TRUE
ord <- 1L + (degree <- as.integer(degree))
if(ord <= 1) stop("'degree' must be integer >= 1"... |
799b48c23bdbba5a4ab99b73483f6bc6e666ec15 | aa69b23062d8926bdd84716653cf961feb96ec1a | /plot4.R | d0f32f0064e3af146168e2ed7e84ee30fdc255ec | [] | no_license | raymiller13/ExData_Plotting1 | 002f0ddba323ace5b324482c5cf14615719af4ff | fd780dac9b2825212d17ccb85294a430951deded | refs/heads/master | 2021-07-21T23:42:49.882777 | 2017-10-29T23:37:44 | 2017-10-29T23:37:44 | 108,771,589 | 0 | 0 | null | 2017-10-29T21:09:47 | 2017-10-29T21:09:47 | null | UTF-8 | R | false | false | 1,888 | r | plot4.R | hcdata <- read.table("./household_power_consumption.txt", sep = ";", na.strings = "?", header = TRUE)
hcdata$dt <- lubridate::dmy_hms(paste(hcdata$Date, hcdata$Time))
hcdata$Date <- lubridate::dmy(hcdata$Date)
hcdata$Time <- strptime(hcdata$Time, "%H:%M:%S")
hcdata$Time <- strftime(hcdata$Time, format="%H:%M:%S")
hcdat... |
b37522a43ede04c13926dca642aa7d4b49bd20f8 | 057948809237491836bd0afbb55db34132128f46 | /data_visualization/squad_usage_gantt_chart.R | d1925cfbf14dc52d107ac91b13eeba45a77ea08f | [] | no_license | NlIceD/Football | 4f0e9ed103b8ca137071d10d85220d4b290824d3 | 38b76cdcfd5e0f7a007ecb89d60a1583de02a801 | refs/heads/master | 2020-06-18T15:49:00.600030 | 2019-04-10T16:17:54 | 2019-04-10T16:17:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,271 | r | squad_usage_gantt_chart.R | library(tidyverse)
source("C:/Users/Ray/Desktop/Football Data/Opta Data/Football/data_visualization/theme_ray.R")
theme_set(theme_ray())
# Code to plot single line gantt chart for team squad usage
df <- read_csv("C:/Users/Ray/Desktop/Football Data/Opta Data/tmp.csv")
# 4 columns: match, start, end, player
# each row ... |
bc1f9aed2e69b1f9ca651f5baaa65551923b8a03 | cb4788572dcb70ce1aea6fc56d2ddf567f4d037b | /pkg/R/factory.R | 58aabde30ab090a24cd136f6707f858636e45ab1 | [] | no_license | data-cleaning/validate | 1a287295bccfe517861010d6f2d5e334713b1ae4 | 9e2f4f2e324e16878a9cb299ed2c8c8f3c9544e9 | refs/heads/master | 2023-09-03T23:01:20.631922 | 2023-08-21T19:44:01 | 2023-08-21T19:44:01 | 17,057,497 | 394 | 49 | null | 2023-05-01T07:50:21 | 2014-02-21T13:50:42 | R | UTF-8 | R | false | false | 1,508 | r | factory.R | # factory function. Evaluate expressions, catch errors and warnings silently (per option).
factory <- function(fun,opts){
switch(opts('raise')
, 'none' = function(...) { # both errors and warnings are caught
warn <- err <- NULL
res <- withCallingHandlers(
tryCatch(outcheck(fun)(...), error=... |
3c08a25600e4e87a3868dcb4c2d87acf866a48ac | 4a7db6cb5e3adeec233b381bbf0b980aa29f65f1 | /R/TDR_corrected.R | f60e3b0effc1b514640c9c9a65fa3e6f33a9f072 | [
"MIT"
] | permissive | MiriamLL/spheniscus | 8a8c3b5a766d38702450c9a7b6ec8bd3c1d285d0 | 2b0c644cf06674693381612465803a64b882aab3 | refs/heads/master | 2023-04-07T16:35:03.174003 | 2021-05-19T16:47:09 | 2021-05-19T16:47:09 | 360,213,200 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 820 | r | TDR_corrected.R | #' Corrected data from TDRs
#'
#' EN:
#' The data includes pressure data obtained from a Humbolt Penguin at Tilgo, Chile
#' The information was collected during the breeding season 2018.
#' It contains 42388 obs from 6 variables: tStamp, Pressure, numeric_sequence, daytime, depth and corrected_depth
#' ES:
#' Los datos... |
b19c463cc07616e5711bbfd6c663e4f66792f597 | 29585dff702209dd446c0ab52ceea046c58e384e | /MetaPath/R/MAPE_P_gene_KS.R | 3f9eb1917f813a8d3608b46a911f98b9ecaae22f | [] | no_license | ingted/R-Examples | 825440ce468ce608c4d73e2af4c0a0213b81c0fe | d0917dbaf698cb8bc0789db0c3ab07453016eab9 | refs/heads/master | 2020-04-14T12:29:22.336088 | 2016-07-21T14:01:14 | 2016-07-21T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,803 | r | MAPE_P_gene_KS.R | MAPE_P_gene_KS <-
function(study,label,censoring.status,DB.matrix,size.min=15,size.max=500,nperm=500,stat=NULL,rth.value=NULL,resp.type){
if (is.null(names(study))) names(study)=paste('study.',1:length(study),sep="")
out=list()
for(t1 in 1:length(study)){
madata=study[[t1]]
testlabel=madata[[label]]
out[[... |
29fa182d16c9df1c78a6d0573a86846de64573de | c9e0c41b6e838d5d91c81cd1800e513ec53cd5ab | /man/gtkPanedGetChild2.Rd | f96e244395267893a17482376511adb652173fb9 | [] | no_license | cran/RGtk2.10 | 3eb71086e637163c34e372c7c742922b079209e3 | 75aacd92d4b2db7d0942a3a6bc62105163b35c5e | refs/heads/master | 2021-01-22T23:26:26.975959 | 2007-05-05T00:00:00 | 2007-05-05T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 439 | rd | gtkPanedGetChild2.Rd | \alias{gtkPanedGetChild2}
\name{gtkPanedGetChild2}
\title{gtkPanedGetChild2}
\description{Obtains the second child of the paned widget.}
\usage{gtkPanedGetChild2(object)}
\arguments{\item{\code{object}}{[\code{\link{GtkPaned}}] a \code{\link{GtkPaned}} widget}}
\details{ Since 2.4}
\value{[\code{\link{GtkWidget}}] ... |
798054cb033f9745e444a8ae4901acfba6811a7d | 214216cefc96120cd1fbd484f43e4c1c86904ecd | /R/blr-data-stepwise.R | 15b5ea627f3eb28d00109f92c86834871aeefd66 | [
"MIT"
] | permissive | rsquaredacademy/blorr | 9fa8a0fc18b4bbbe91d04124aa4a64f3a47051b3 | 073f672bb830080dd666c7cac4ff5d342b3ce0ac | refs/heads/master | 2023-08-30T17:01:49.220745 | 2021-07-08T11:25:36 | 2021-07-08T11:25:36 | 91,309,738 | 18 | 3 | NOASSERTION | 2021-07-08T11:25:37 | 2017-05-15T07:49:49 | R | UTF-8 | R | false | false | 29 | r | blr-data-stepwise.R | #' Dummy Data Set
"stepwise"
|
8b6410b272d8359e2927d93c71ef1a3bdbd65065 | 8acec86427472c50b2407efea07d5422b15829c8 | /R/conditional_dependency.R | fc27ace212b72428a8b56b4a0b354bcf1c53c228 | [] | no_license | tkonopka/ingredients | 42b381494ebbe79e6f4b612f42084cc6aaf4bd63 | e55d086a3d8cad65ad79dc7ca070a97c4b0d7f17 | refs/heads/master | 2020-06-14T19:15:44.966002 | 2019-07-25T16:25:51 | 2019-07-25T16:25:51 | 195,100,146 | 0 | 0 | null | 2019-07-03T17:32:12 | 2019-07-03T17:32:11 | null | UTF-8 | R | false | false | 5,137 | r | conditional_dependency.R | #' Conditional Dependency Profiles
#'
#' Conditional Dependency Profiles (aka Local Profiles) average localy Ceteris Paribus Profiles.
#' Function 'conditional_dependency' calls 'ceteris_paribus' and then 'aggregate_profiles'.
#'
#' Find more detailes in \href{https://pbiecek.github.io/PM_VEE/conditionalProfiles.html}{... |
7af381a70d9499f019df5d4877d79272a499ccc7 | 907aaa2ef40dd8beeb9d533fa519fac0afaf8e37 | /R/scrapeHTML.r | c7c474498a36c9bf247797fb9fd689e50b2919b1 | [] | no_license | AndreasFischer1985/qqBaseX | eaee341155d66d4ff92ca00d6b4d419c3bf1f28a | 98bec0ce041666d09d2c89a4ddc6b84a2349fa53 | refs/heads/master | 2022-09-14T18:58:05.493380 | 2022-08-26T11:52:38 | 2022-08-26T11:52:38 | 189,703,556 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,504 | r | scrapeHTML.r | #' Function scrapeHTML
#'
#' Extracts Information from HTML.
#' @param html A character element containing HTML-code.
#' @param short Logical value specifying whether only lines with verbal information or link should be returned. Defaults to F.
#' @param edit Logical value specifying whether the data.frame should be p... |
61038f63dba2973e6f07d4f41e7717c1153b57b5 | e0d842fd88dfe8511c73cfd41c2b57e945b43106 | /misc_metrics/setup.R | c9ac2ab5f005de347a8318b6f7a86f039c9ff546 | [] | no_license | meerapatelmd/omop_mapping | 361feb2ebf0844961d783a3d0f0669588fa67b54 | e006bc2d241355ca610931d41ffa92027a5f9134 | refs/heads/master | 2022-12-11T15:40:28.253098 | 2020-09-05T00:49:21 | 2020-09-05T00:49:21 | 272,284,490 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 212 | r | setup.R | if ("/Users/patelm9/GitHub/KMI/termite/Map_to_OMOP/misc_metrics" != getwd()) {
setwd("/Users/patelm9/GitHub/KMI/termite/Map_to_OMOP/misc_metrics")
}
source('utils.R')
path_to_input_dir <- "input/COVID"
|
313a52d0477e364fd90489845401184f0b461854 | 066e60e4c6730a945fcba528328fc646945beaa3 | /R/access.R | c29970c6ad24278ada88dc8c9717fceeb3493a35 | [
"CC0-1.0"
] | permissive | appling/unitted | 0b59a79a949e7405cb443306216d7038a30c29ad | d1f11723cd274297f44adbb5d1af4990eb0cdf06 | refs/heads/master | 2021-01-17T07:34:17.966050 | 2017-07-21T22:38:37 | 2017-07-21T22:38:37 | 18,263,678 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,794 | r | access.R | #' Extract parts of a unitted object
#'
#' The standard accessors \code{x[...]}, \code{x[[...]]}, and \code{x$name} are
#' all available for unitted objects.
#'
#' \code{x[...]} extracts elements with their units.
#'
#' @name unitted_access
#' @aliases [ Extract
#' @rdname unitted_access
#' @export
#' @seealso \code... |
346007153e9fe536b0b6776b71275c0dae4ab15b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/formula.tools/examples/terms.Rd.R | e290b3baf3cab01ef06636a8a83528d5bcae3a4b | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 271 | r | terms.Rd.R | library(formula.tools)
### Name: terms.call
### Title: terms
### Aliases: terms.call terms.expression terms
### Keywords: manip symbolmath utilities
### ** Examples
terms( quote( A + B ) )
data(iris)
x <- terms( quote( . - Species ) , data=iris )
|
b648a737af8fd26e4824e52299e3c6b24a5f066f | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/diffman/man/matrix_liens.Rd | 792b40c3f432a90b91ad3d65b5df43905ceeea47 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | true | 722 | rd | matrix_liens.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fct_reshaping.R
\name{matrix_liens}
\alias{matrix_liens}
\title{Créer la matrice de liens (ou matrice de contiguïté)}
\usage{
matrix_liens(m_crois)
}
\arguments{
\item{m_crois}{Matrice de croisement.}
}
\value{
En sortie on a une matrice carr... |
eda3d8b9c65d7dc9f4b8e7a6f2748f405c1e75de | 1be7bdfb44a4b4ae98cdc48046042f0739fefde1 | /proj/simu/type-L0.p2.R | e89a034a77c63c35c45e4e7a153efefa75f9de97 | [] | no_license | wzhy2000/LSKAT | c521ebe4247fb592a2bec3d2110a41a523e5ca2c | d1dee4cc874195eaaab854c9f5f812a4f17ad27b | refs/heads/master | 2020-04-15T10:53:49.427329 | 2018-06-22T20:21:00 | 2018-06-22T20:21:00 | 52,325,786 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,116 | r | type-L0.p2.R | source("long-simu-test-rare2.r");
source("test-nocorrelation.R")
ncores<-16;
par <- list(
test.type = "Joint",
mu = 1,
a = 0.5,
b = 0.5,
rho = 0.75,
sig_a = 0.8,
sig_b = 0.8,
sig_e = 0.8,
par1 = 0.7,
par2 = 0.8,
times = 8,... |
61c5321a60d420236ac7b8f64e118ee39fc2f379 | e990d7b84874be47f7967383750f3b504a63c580 | /R/stop_death.R | 949b0408e3590067d1b94a46bff909a5bfd0aefa | [
"MIT"
] | permissive | ronaldoalves-ms/stopdeath | 2700002bb6a89d39b38ac0ddd7eb2be0462b15aa | 15c7b898399225d885c9454e52f1b367c9664b87 | refs/heads/main | 2023-04-15T23:19:52.525594 | 2021-05-02T23:33:25 | 2021-05-02T23:33:25 | 363,734,428 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,218 | r | stop_death.R | #' Codificação de Causas de Óbitos Evitáveis na Infância
#'
#' \code{stop_death} é uma função de codificação de causas de óbitos evitáveis em crianças menores de 5 anos de idade. A função cria um vetor de códigos identificadores (code_class), cuja estrutura compreende variados níveis hierárquicos de classificação de ca... |
2ca9cea9824e4b7e6c418371bd168096e9d5d298 | ee909cdba5c91d30cc03e12b2d2effacfde365b1 | /clase_3/clase_3_ejercicio_1.R | 287e1ef724fdc97bec73d792151f7a1b47558a2f | [
"MIT"
] | permissive | ldgaribello/eia-esp-bd-fundamentos-analitica | eef3799d7f79ccc5b24f79cfdb044ee7e6b65f63 | d77c2325525cf70f264ec716599e4240bc27dddf | refs/heads/master | 2022-11-13T17:11:28.350511 | 2020-07-03T00:20:56 | 2020-07-03T00:20:56 | 271,153,115 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 676 | r | clase_3_ejercicio_1.R | setwd("~/Workspace/Study/Fundamentos Analitica/clase_3")
#### Load libraries ####
#### Load data ####
#### Data analitics ####
# E1: Generar un vector columna,
# distribucion normal,
# media = 10
# varianza = 5
x <- rnorm(50, 10, sqrt(5)) # Tercer parametro es la desviacion estandar
x
#E2
... |
6b7029a2d32890bd17c2805076a45146ec8906e3 | 9aafde089eb3d8bba05aec912e61fbd9fb84bd49 | /codeml_files/newick_trees_processed/6159_0/rinput.R | 353fe278c3ce93f3786676573dff8c108e35cb9b | [] | no_license | DaniBoo/cyanobacteria_project | 6a816bb0ccf285842b61bfd3612c176f5877a1fb | be08ff723284b0c38f9c758d3e250c664bbfbf3b | refs/heads/master | 2021-01-25T05:28:00.686474 | 2013-03-23T15:09:39 | 2013-03-23T15:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 135 | r | rinput.R | library(ape)
testtree <- read.tree("6159_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="6159_0_unrooted.txt") |
63c6763443b54e0a7c67f32448a0d9d533114c72 | 1d0465c228a1e8fd4e1c271fbde2262bf24ccb59 | /Data Analysis in R. Part 1/3.2.1.r | b048e71cfc7d150e8decbdd80b4debb6ab37f792 | [] | no_license | framirov/R-course | 536ab92111a2a54c0160f82fab960ed8047877a9 | a01439fa0b1e530385c303bedf7f44af239a6683 | refs/heads/main | 2023-01-27T20:38:50.428334 | 2020-12-04T08:26:30 | 2020-12-04T08:26:30 | 312,372,536 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 176 | r | 3.2.1.r | fill_na <- function(x){
fit <- lm(y ~ x_1 + x_2, x, na.action = 'na.exclude')
x$y_full <- predict(fit, x)
x$y_full <- ifelse(is.na(x$y), x$y_full, x$y)
return(x)
} |
cd5768264db32fcc021e32c0ee9cee2d8ea6a267 | 68143d94982e05496e9d65e25a5bee81d41451ba | /Task 6.2.R | 064896d488af6ab46eb4ebfd91c0a2e2addc7795 | [
"MIT"
] | permissive | jedisom/Yelp-projects | 780669563659fce6a7ce052198a5e756bc5c8bb4 | 774698ae3871157175ddc0a30e967664514118cb | refs/heads/master | 2021-01-21T13:57:12.632306 | 2016-05-20T10:11:20 | 2016-05-20T10:11:20 | 54,270,594 | 6 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,931 | r | Task 6.2.R | #Coursera Data Mining Capstone - UIUC
#Task 6
#Jed Isom
#October 5, 2015
library("pacman")
pacman::p_load(jsonlite, tm, slam, topicmodels, LiblineaR)
rm(list=ls())
setwd("./Capstone/Raw Data")
#Hygiene.dat file loading
filename <- "./Hygiene/hygiene.dat"
reviews <- readLines(filename)
#Hygiene.dat.labels file loadi... |
3143eea0876144e1c91c35e95a04e02a96e99533 | 0b91e58f2a016009abff9cdabd782a278962ab84 | /MLwithR/Practice/char3_KNN_R.R | 46f98bcc7317d19f6c8f5803f537c1bba350945d | [] | no_license | staAndZhh/R_WorkSpace | 4ac7bd6da9948ec7ef1265f7913a8a62bfc22c2f | ea7b246c9549026530308702bb5083d9ab77932b | refs/heads/master | 2021-06-06T17:26:59.993751 | 2018-11-06T11:35:50 | 2018-11-06T11:35:50 | 94,954,557 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 448 | r | char3_KNN_R.R | # min-max normalize
normalize <- function(x){
return((x-min(x))/(max(x)-min(x)))
}
as.data.frame(lapply(data,normalize))
# z-score
data_z <- scale(data)
# data_train <-
# data_test <-
# data_train_labels <-
# data_test_labels <-
install.packages('class')
install.packages('gmodels')
library(gmodels)
library(class)
d... |
b1c8fbc62b654a6ea0395ac82278de4db1fb73c8 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/dafs/examples/pvalue.Rd.R | 796ced78354cf70d6fde431aa26fd3bd4e82464b | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 159 | r | pvalue.Rd.R | library(dafs)
### Name: pvalue
### Title: Formats an P-value figure for LaTeX
### Aliases: pvalue
### Keywords: Book
### ** Examples
p = 0.04
pvalue(p)
|
76e47356a44cdc5dfd1deccde4a919b4dbce963b | 09fb2a455921488989b6f311a10231cb9f30665b | /Aula 4 - 06 Vetores.R | 92c1d8842278113fa1aca273da689abecc77d862 | [] | no_license | Henrique-RS/metedosHeuristicos | e872ee1a4f204b5d80cc570bf7f54da1d5ec9ba0 | 753ad6eb6cd50e9d76cf8ff5e392f2e54c10a48a | refs/heads/master | 2023-08-11T02:14:11.164517 | 2021-10-01T23:10:18 | 2021-10-01T23:10:18 | 398,546,159 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 617 | r | Aula 4 - 06 Vetores.R | # Vetor de String
vetor_caracter <- c("Unisinos", "Engenharia", "Produção")
vetor_caracter
# Vetor de Floats
vetor_numerico <- c(1.90, 45.3, 300.5)
vetor_numerico
# Vetor de Sequência / Utilizando uma seq()
vetor1 <- seq(1:10)
vetor1
# Utilizando rep()
vetor2 <- rep(1:10)
vetor2
# Indexação de Vetores
a <- rep(1:5)... |
e16c9ba37d46cbcf19259488eb2f245b5b91d4b3 | 4211e421263bbcc5c59195aba02ada15d1bf75a1 | /Dependencias/loadDependencies.R | 30c55d0f214902c9871a7d9a6ef78d8233ab2a84 | [] | no_license | hallucigeniak/reportesLaboratorios | f66e70a781642d7ab75bfebba65990978c4dfa42 | 4a79bab7c1f82e94ed49d3dcc018e4004e3ede14 | refs/heads/master | 2020-03-21T08:13:54.861160 | 2019-11-06T17:12:26 | 2019-11-06T17:12:26 | 138,325,499 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,979 | r | loadDependencies.R | ####################################
###--- MODULO DE DEPENDENCIAS ---###
####################################
#
#--- Declarar las librerias de R necesarias
dependencias<-c("shiny",
"shinydashboard",
"shinycssloaders",
"shinyjs",
"shinyBS",
... |
6d0070a1f6a112cac2b22e4df6299e2b3728e304 | 103cefcd0a90175d953b11b1a13a6c76adb28aef | /analyses/bb_analysis/maketables.forsupp/mod_table.R | a0056857f9db8d4f6ac2fb8e39bfe7bfa290767e | [] | no_license | lizzieinvancouver/ospree | 8ab1732e1245762194db383cdea79be331bbe310 | 9622af29475e7bfaa1b5f6697dcd86e0153a0a30 | refs/heads/master | 2023-08-20T09:09:19.079970 | 2023-08-17T10:33:50 | 2023-08-17T10:33:50 | 44,701,634 | 4 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,594 | r | mod_table.R | #This file makes a table of model summaries with 95 % credible intervalsfor the ospree budburst supplement
#would be good to add n_studies
#utah units, nonz
load("../../analyses/bb_analysis/stan/output/m2lni_spcompexprampfputah_nonz.Rda") # m2l.ni
fit.nonz <- summary(m2l.ni)$summary
#summary(fit.nonz)# min n_ef: 1104
... |
9bffb0002cf49be9dd3d8c65938535c5e868a60e | 15105f85792b860f76da45e0692d4865fab75402 | /man/screening-package.Rd | 50772980242de2fd4557b4b9172c091e05201084 | [] | no_license | bowerth/screening | 9ced4bed9502e354b09a126f2871d44d7259a2ae | 083ab104816dc2cbfee1344737bf1e9f0aa33f67 | refs/heads/master | 2020-07-03T12:33:16.526020 | 2014-07-22T23:03:37 | 2014-07-22T23:03:37 | 11,631,729 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 531 | rd | screening-package.Rd | \docType{package}
\name{screening-package}
\alias{screening-package}
\title{The screening Package}
\description{
Data Screening.
}
\details{
\tabular{ll}{ Package: \tab screening\cr Type: \tab
Package\cr Version: \tab 0.1\cr Date: \tab 2014-03-20\cr
Depends: \tab R (>= 2.10.0)\cr Encoding: \tab UTF-8\cr
Licen... |
bf4f9c54ad4838cdc3c6498d842206e74c9e3b5d | 6c7e1bead59eb9c4635a58f05eac19ece401ed69 | /cachematrix.R | 25a45949b022f954bb4ad02ebd4092bf99852e41 | [] | no_license | sabthami30/ProgrammingAssignment2 | 2da3ac9085f7e7eba49c670294a65510fec116c8 | 5217867af077f4313c8dc6a00eda50d9bc06cc6f | refs/heads/master | 2021-04-30T17:01:45.866136 | 2017-01-27T10:51:42 | 2017-01-27T10:51:42 | 80,171,528 | 0 | 0 | null | 2017-01-27T01:10:54 | 2017-01-27T01:10:54 | null | UTF-8 | R | false | false | 1,214 | r | cachematrix.R | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
inverse <- NULL ## set the initial value of inverse as NULL
set <- function(y) {
x <<- y
inve... |
268a99a87a79f5d90cf76f435a44c2b7d9348772 | 3b2242a9eaa35ddbb757300fa1f54c49ce4c5dab | /ui.R | 23669cabb7f9b3517127cba7d00c0f77a2e6c0f7 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | wikimedia-research/WhereInTheWorldIsWikipedia | 0a5915f923ffde99b649801182b83e53f7381bd9 | 53fd54374138acf1b6cebde525e3dcf7601a94a5 | refs/heads/master | 2020-06-04T18:28:43.589272 | 2015-03-05T14:29:37 | 2015-03-05T14:29:37 | 31,289,646 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,408 | r | ui.R | library(shiny)
library(shinythemes)
country_data <- read.delim("./data/language_pageviews_per_country.tsv", as.is = TRUE, header = TRUE)
shinyUI(fluidPage(
titlePanel(title = "", windowTitle = "Where in the world is Wikipedia?"),
h2("Where in the world is Wikipedia?"),
h4("Explore how traffic to Wikimedia projec... |
ff8630b1c2eaa6fa0ff3a20851cdc8417602378d | f60a70640a026dfed8d19651ffe866cef933fce2 | /scripts/Clustering/mclust_example.R | 06a1177d145b7faafb108c9e736c7f80ca8668af | [] | no_license | cdbarko/R | c34aca130615e33b363a093eadac485f95fea308 | d79613a491148209316562e02c538d49b63a5a59 | refs/heads/master | 2021-05-09T20:23:30.989657 | 2018-01-24T07:04:06 | 2018-01-24T07:04:06 | 118,687,688 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,036 | r | mclust_example.R | library(mclust)
# create some data for example purposes -- you have your read.csv(...) instead.
myData <- data.frame(x=runif(100),y=runif(100),z=runif(100))
# get parameters for most optimal model
myMclust <- Mclust(myData)
# if you wanted to do your summary like before:
mySummary <- summary( myMclust$BIC, data... |
9230e252720cb6ef2eb4e69f0219a4cb172bac1f | 5a51f0ce45b7f2f8f221d71f467950fb94645913 | /R_analysis/asis06_excess_deaths.R | 6ea2bd97395ef9aac3845d90a026c0f076b1c837 | [] | no_license | The-Strategy-Unit/708_effect_of_covid_on_pop_health | d2818815c2c2f8028bba5c30ce74e555cda2c68d | dc0084507e205a8403061d2dd552f2d2713e5ad2 | refs/heads/master | 2023-07-12T12:31:32.225609 | 2021-07-09T13:27:52 | 2021-07-09T13:27:52 | 375,490,786 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 11,834 | r | asis06_excess_deaths.R | # Estimate excess deaths from Covid
# What effect will Covid-19 have on key PH measures? (708)
# author Paul Seamer
# last edit "2021-03-04 09:45:40 GMT"
Sys.time()
# README ----------------------------------------------------------------------
# under-1s omitted from all models because of missing weekly exposure for... |
2f7b65aafb736b75fd6c0345008ea208b2d9d071 | dd1eaf4c1f9319bfae0b5ad5a87ac854438399d4 | /cost_driven_validation.R | dde87823ed70a94f5d69f0a50c8254e4c8221efe | [] | no_license | siddharthabingi/Credit_card_fraud_detection | 3207d2d6866d1a6c4745cf16f00dd39db84272c1 | 238824d00f55f86584b6726a1eef9143098ddc1c | refs/heads/master | 2020-08-24T15:26:25.778615 | 2019-10-22T16:07:00 | 2019-10-22T16:07:00 | 216,854,606 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,502 | r | cost_driven_validation.R |
cred <- credit.card1
cred <- credit.card1[!(credit.card1$Amount==0),]
nrow(cred[(cred$Amount>2825),])
cred <- (cred[!(cred$Amount>2825),])
set.seed(2222)
index <- createDataPartition(y = cred$Class, p = 0.70,list = F) #Using caret package
train.credit <- cred[index,]
test.credit <- cred[-index,]
... |
921c2bc3fefe544dc7e1b37ea07a43f2e1a9eb5b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/googleVis/examples/Stock.Rd.R | b59181bae0fe49310fdd33b522f0791619f89daa | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,189 | r | Stock.Rd.R | library(googleVis)
### Name: Stock
### Title: Stock: googleVis example data set
### Aliases: Stock
### Keywords: datasets
### ** Examples
## Create data as used by Google in their annotated time line example
Date <- as.Date(paste("2008-1-", 1:6, sep=""))
Pencils <- c(3000, 14045, 5502, 75284, 41476, 333222)
Pen... |
a02bcf5b68335278182b10c8b3951284adfd9869 | 2404d8c85199a306a7d107e0cf7b50623f5381ba | /HierarchialClusteringVisualization.R | 9d1eed5c51418f9aa622560df83237ed89ea37e1 | [] | no_license | Santosh-Sah/Hierarchial_Clustering_R | 187c48bd1375eb389831e167d31d01034f42b87a | b3c61ab8adda4aefa6ee5bca96422239a7e4233d | refs/heads/master | 2022-05-28T20:16:59.719415 | 2020-05-02T04:03:21 | 2020-05-02T04:03:21 | 260,609,386 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,775 | r | HierarchialClusteringVisualization.R | source("HierarchialClusteringUtils.R")
library(ggplot2)
library(cluster)
#reading dataset
hierarchialClusteringDataset = importHierarchialClusteringDataset("Hierarchial_Clustering_Mall_Customers.csv")
#reading HierarchialClustering model
hierarchialClusteringModel = readRDS("HierarchialClusteringModel.RDS")
#Using... |
74b6a0f84f337dfdb9be705b57c419014968f3ae | acb7f21a7d2ff171e4cf0f550aca30607a8f9866 | /pattern matching/AgnosticPatternMatching.R | a913b8337ae5d6748ae578ed6beddba14e114a3a | [] | no_license | ukparliament/data-analysis | 3e22a01d6e7b931f5bda7bd65bf25080ad829218 | 5f98a1fcca242309ac85d220c1361f5274800726 | refs/heads/master | 2020-03-25T17:44:51.790639 | 2019-02-20T16:49:09 | 2019-02-20T16:49:09 | 143,993,401 | 0 | 8 | null | 2018-12-06T12:42:14 | 2018-08-08T09:44:59 | R | UTF-8 | R | false | false | 491 | r | AgnosticPatternMatching.R |
# with a set of patterns and names in a data frame names rules, and a vector of strings called strings,
# this code will produce a data frame with the regex and name and all the strings it matches with for
# every match between the rules and the strings.
library(plyr)
library(stringr)
rules <- rules
strings = df2$... |
9d07b0b71e793a8372766da7f14a85b693b95ca7 | c58ec63a4bffeaa40546d7aca9cebdb15446430a | /dependency-decision-tree.R | 4e0dd7dff8aa812f60e03deaa519d5eecc8a8986 | [] | no_license | sudhir-voleti/decision-tree | ba4f88c1bae085a45a70fd513d5b9ba4345bd0cb | a89a536eaa6dd7d4f86dabfc27c15d583d09542b | refs/heads/master | 2023-01-20T22:44:28.833784 | 2023-01-19T09:28:58 | 2023-01-19T09:28:58 | 102,189,332 | 0 | 2 | null | 2023-01-19T09:29:03 | 2017-09-02T10:32:52 | R | UTF-8 | R | false | false | 914 | r | dependency-decision-tree.R |
suppressPackageStartupMessages({
if (!require('shiny')){install.packages('shiny')}; library(shiny)
if (!require('pastecs')){install.packages('pastecs')}; library(pastecs)
if (!require('rpart')){install.packages('rpart')}; library(rpart)
if (!require('dplyr')){install.packages('dplyr')}; library(dplyr)
if (!r... |
861083b260333ee7b1e48e8f94cb4ad7bdb408ee | 0de998cbb0b0e4149c00d4f849933cdead74adaf | /man/addGridInfo.Rd | 1149f7dfb5e4957db475bd981d83a1cd46e00f10 | [] | no_license | teokaram/Lithics3D | a7e696443c2db1fa2b604e01dc9f7d128d99ba32 | 0274a2306c3863e56e37477fc08d634cb115009e | refs/heads/master | 2020-03-27T23:17:24.189443 | 2018-09-03T18:41:50 | 2018-09-03T18:41:50 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,227 | rd | addGridInfo.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mesh_addGridInfo.R
\name{addGridInfo}
\alias{addGridInfo}
\title{Group coordinates into a 2D grid layout}
\usage{
addGridInfo(coords, c.res, axes = c(1, 2))
}
\arguments{
\item{coords}{a data frame object with coordinates (one per ro... |
961c276331cbcb72021134d5a0b8848bbba3e4d8 | b08ce6dc07ef1f6484e395ff32a29a4455deef8d | /R/CairoBasic.R | 2d1d3ddf9c224a1031a21fa41f0625719313c21d | [
"MIT"
] | permissive | coolbutuseless/cairobasic | fce0bb6b4b8d78c468c19603ad8a19b41e53a543 | b2012016af3f23c68e2c7196c4e3c26bf3fc9f6d | refs/heads/master | 2022-12-07T11:25:44.548843 | 2020-08-18T05:36:44 | 2020-08-18T05:36:44 | 288,364,319 | 7 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,685 | r | CairoBasic.R |
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#' Cairo Basic R6 Wrapper
#'
#' @export
#' @import R6
#' @import cairocore
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CairoBasic <- R6::R6Class(
"CairoBasic",
public = list(
#~~~~~~~~~~~~~~~~~~... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.