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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
81911fd3b3dbf7fc3921a6ba04244658f95e9a74 | 036b4f37d12348e272f3fd56863077e525e92ad6 | /R Code/HP3 Code/ZZ_Probably won't use or Old Code/ZI INLA Models.R | df15c79c80463576f7088839cd7b2753742b9a7c | [] | no_license | gfalbery/Helmneth | 575d02bcbee41162d7d72a5942b5086670a0e710 | 3d9ebbf047e981986bdb7867dc38ecc0f3954c9e | refs/heads/master | 2020-04-24T05:24:46.123145 | 2020-01-04T20:38:50 | 2020-01-04T20:38:50 | 171,734,478 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,015 | r | ZI INLA Models.R | # ZI INLA Models
source("R Code/00_Master Code.R")
library(INLA)
inla.setOption(num.threads = 8)
lapply(1:3, function(i){
if(i==1) {
saveRDS(inla(data = FinalHostMatrix, # Doesn't fit
Virus ~ Space + Phylo2 + Space:Phylo2 + MinCites + DomDom,
control.compute = list(dic =... |
1d87d11dae16c4d86ce7b515be2cfc8d53ae94d9 | c78d91985497e8ae7db564802ebb42eff5af5160 | /R/grob-descent.R | dd76104616fa3bcf2753807d8801673950ffc941 | [
"MIT"
] | permissive | nemochina2008/gridtext | c0fb166e480f770bce0359d4e5ef5c3361f143ce | 72efc1d287bfd953c49ce133168cab4bb22e5408 | refs/heads/master | 2020-06-14T07:19:24.680077 | 2019-07-02T21:06:53 | 2019-07-02T21:06:53 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,636 | r | grob-descent.R | #' Calculate descent and other text properties, either from grob or from graphical
#' parameters
#' @param grob The grob for which we want information
#' @export
grob_descent <- function(grob) {
unit(grob_descent_pt(grob), "pt")
}
#' @rdname grob_descent
#' @export
grob_descent_pt <- function(grob) {
if (inherits(... |
2989349306a7470488bb792f342d9221b43775b4 | 40962c524801fb9738e3b450dbb8129bb54924e1 | /DAY - 8/Assignment/Q4 - Pnorm_SurvivalOfPhones.R | 17f79da385ed7144343180557e1b605ff333314a | [] | no_license | klmsathish/R_Programming | 628febe334d5d388c3dc51560d53f223585a0843 | 93450028134d4a9834740922ff55737276f62961 | refs/heads/master | 2023-01-14T12:08:59.068741 | 2020-11-15T13:23:31 | 2020-11-15T13:23:31 | 309,288,498 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 453 | r | Q4 - Pnorm_SurvivalOfPhones.R | #A company ships 5000 cell phones.
#They are expected to last an average of 10,000 hours before needing repair;
#with a standard deviation of 500 hours.
#Assume the survival time of the phones are normally distributed.
#If a phone is randomly selected to be tracked for repairs find the expected number that needs re... |
3901e85a26809ed943db8e74f7eb65c4ebf5e85f | cfe7f33002bde9401d63234999a440da8ff238b9 | /FolderLevel2/scrip.R | 0643e9cb59d386a69ec095aadf20e1bf69ac106a | [] | no_license | dandinoar/MBC | 337c2a89804c5dadbc2673dffe00c3683c89d9ee | 9f743f08bbd7b4f52e8f1939def15b9ec1876ae9 | refs/heads/master | 2020-03-30T19:48:43.990621 | 2018-10-04T12:00:29 | 2018-10-04T12:00:29 | 151,559,556 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 50 | r | scrip.R | print("hello Git")
#My second commit (all folder)
|
56cbad8e75ccfe2de29195fd49449f9a46fd3f1a | 7f7600833234db5020cc355c95f1976c5fd628ee | /01_association_metrics/metacell/metacells_from_leiden.R | bd9a8111254947c1b6f30de5350cf60f51fde431 | [
"BSD-2-Clause"
] | permissive | shuang1330/single_cell | 2f3b9979dde007cb31e9bcaecb8493f6c02514cd | 983596997f6f4d66a82b2953f8c3301ebc7828dd | refs/heads/master | 2023-04-14T13:33:05.748097 | 2022-10-12T09:17:10 | 2022-10-12T09:17:10 | 298,008,060 | 3 | 1 | BSD-2-Clause | 2022-04-19T11:22:57 | 2020-09-23T15:08:13 | Jupyter Notebook | UTF-8 | R | false | false | 4,205 | r | metacells_from_leiden.R | # ------------------------------------------------------------------------------
# Implement own method to generate metacells based on leiden clustering
# Run leiden clustering separatley for each donor (run on Oelen v3, Monocytes)
# and use group cells that are part of the same cluster
# ------------------------------... |
150a28e054b2da9bb766b07ff00ce2edeeccc848 | caa16c4b880b8061723314098056cc104447831b | /Tarea 2/Tarea 2/Punto 4.R | f6fa0f69c5d5ed11237a1f4c347a4de267a40d48 | [] | no_license | nacevedo/StatisticalLearning | 9e9244862402bdf7c9285977f3a40a5c2fe01c06 | ba7c28c7404517c360685dd8b5de51d463dd6146 | refs/heads/master | 2020-07-17T04:26:05.868721 | 2019-12-09T19:09:58 | 2019-12-09T19:09:58 | 205,942,692 | 0 | 0 | null | 2019-12-08T21:08:40 | 2019-09-02T22:00:29 | R | UTF-8 | R | false | false | 5,925 | r | Punto 4.R | #You can try to modify the denominator inside the cosine to change the complexity of f*
f=function(x){
y=2+x^(.2)*cos(x/.15)/x^-.45
return(y)
}
plot(f,0,5)
#Points simulation: you change n and sigma
N=400
sigma=1.2
x=runif(N,0,5);x=sort(x) #For convenience, the input x is sorted
y=rep(0,times=N)
for(i in 1:N){
y[... |
707c382f7c9fabe420d469fa540db6140804af08 | 5613034868dd4d8c2280927eee4003947f15da59 | /tests/testthat/test-double_ml_iivm_tuning.R | d88f7474e4eabc3aefe0ff42b2559cc4e462812b | [] | no_license | FrederikBornemann/doubleml-for-r | b6ab57421bedd2971c82f4f7c1265a7406184999 | a10e38d5e70eacf85742976c5e92ca03abcf41c3 | refs/heads/master | 2023-07-05T00:55:40.351004 | 2021-08-13T07:12:09 | 2021-08-13T07:12:09 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,729 | r | test-double_ml_iivm_tuning.R | context("Unit tests for tuning of IIVM")
requireNamespace("lgr")
logger = lgr::get_logger("bbotk")
logger$set_threshold("warn")
lgr::get_logger("mlr3")$set_threshold("warn")
tune_settings = list(
rsmp_tune = rsmp("cv", folds = 3),
measure = list(
"ml_m" = "classif.ce",
"ml_g" = "regr.mse",
"ml_r" = "... |
fb385b1431183fb24aebbe585a47a4574370fc75 | c3fced9fa3881b8d07000adfb5bebe4213eaa4a4 | /ANALYSIS/DATA/Exclude Outliers Regression.R | 5db423757f12fdc5dcd1026e0dc2479631aa57ae | [] | no_license | rafael-schuetz/Pareto | ea9c06cb588113bbdf6a3b5da27a2d2a22f37dc8 | 74c414268d429373b83ccfb27bf222ae25b97c32 | refs/heads/master | 2022-04-13T11:36:56.587595 | 2020-04-08T18:31:48 | 2020-04-08T18:31:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,297 | r | Exclude Outliers Regression.R | #https://www.r-bloggers.com/how-to-remove-outliers-in-r/
#remove outliers
#mealsNo
mergedData_mealsNoexcludedOutliers <- quantile(mergedData$mealsNo, probs=c(.25, .75), na.rm = TRUE)
iqr_mealsNo <- IQR(mergedData$mealsNo, na.rm = TRUE)
up_mealsNo <- mergedData_mealsNoexcludedOutliers[2]+1.5*iqr_mealsNo # Upper ... |
2032150d1b394e0ab76a6f1aba6dbdd510a27539 | 2099a2b0f63f250e09f7cd7350ca45d212e2d364 | /ACL-Dataset/Summary_rnd/P14-2061.xhtml.A.R | aafafbb6441a7bdfd7d8b83fba4e31577e0bb67e | [] | no_license | Angela7126/SLNSumEval | 3548301645264f9656b67dc807aec93b636778ef | b9e7157a735555861d2baf6c182e807e732a9dd6 | refs/heads/master | 2023-04-20T06:41:01.728968 | 2021-05-12T03:40:11 | 2021-05-12T03:40:11 | 366,429,744 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,119 | r | P14-2061.xhtml.A.R | <html>
<head>
<meta name="TextLength" content="SENT_NUM:7, WORD_NUM:122">
</head>
<body bgcolor="white">
<a href="#0" id="0">While language identification in signed languages is yet to be studied, significant progress has been recorded for written and spoken languages.</a>
<a href="#1" id="1">For visual data, normaliza... |
950bec810f5d0547b9c8d397073d835aa17e274f | 1abf8398ec048750d230f77b5467c0d3cf508349 | /R/ProcessUsingCHIPpeakAnno.R | 386f6c17f1870dc4ffab21713d95a8db1354d6b7 | [] | no_license | bioinformatics-gao/ChipSeq | 97e8453cb74663bd2b4f35e44846311ca962850d | dde9e5a4f82142657f22d281cb10509715c0ef78 | refs/heads/master | 2021-01-12T00:03:09.798091 | 2017-01-11T17:32:19 | 2017-01-11T17:32:19 | 78,662,917 | 1 | 0 | null | 2017-01-11T17:35:08 | 2017-01-11T17:35:08 | null | UTF-8 | R | false | false | 13,382 | r | ProcessUsingCHIPpeakAnno.R | #' ProcessUsingCHIPpeakAnno
#'
#' @param input.file.dir
#' @param input.file.pattern
#' @param output.file.dir
#'
#' @return
#' @export
#'
#' @examples
#' input.file.dir="/media/H_driver/2016/Yang/MACS/MACS/"
#' input.file.pattern="*.bed"
#' output.file.dir="/media/H_driver/2016/Yang/MACS/MACS/"
#'
#' ProcessUsingCHIPp... |
6042ce1f9aab4df7960059dcc72e294b06c47a11 | 903c20050d9ef156481dc6ef0aefdb38d5b1d131 | /scratch/inverse-bias-problem/2015-02-06-scratch-3.R | b076b6b5af384586a6e56db5c0e9a29c0aa7df00 | [] | no_license | wes-brooks/thesis | 27f5fd55f7d608b41f5e99bfa358839b46b396c6 | a4969f903a8bf8f81e4fca67faa7efb4f6243d3b | refs/heads/master | 2021-05-30T05:39:19.943867 | 2015-02-25T23:40:45 | 2015-02-25T23:40:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 495 | r | 2015-02-06-scratch-3.R | f0.smooth = vector()
f1.smooth = vector()
f2.smooth = vector()
f0..smooth = vector()
for (i in 1:100) {
h = 0.858
dist = abs(tt-tt[i])
wt = lagr:::epanechnikov(dist, h)
X.loc = as.matrix(tt - tt[i])
f0.smooth = c(f0.smooth, lm(f0(tt)~X.loc, weights=wt)$coef[1])
f1.smooth = c(f1.smooth, lm... |
bd2f0b7ba283ced6a77e22406d86f81f46c1516b | 18b5b5ea60ef362374e8ed60e651a2cffc4e221c | /man/addJsHtml2Latest.Rd | 9c3328d62d2d55189d25d6a52c57c8a572f6f91b | [
"MIT"
] | permissive | tpemartin/webtemplate | a6bfc468e8d3d64f7ca042676a6d247198e4c5b0 | 061eff584dbc0e8659cb1ca6a00119e4afe76658 | refs/heads/master | 2022-12-30T17:43:34.926760 | 2020-10-10T13:20:39 | 2020-10-10T13:20:39 | 292,805,709 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 505 | rd | addJsHtml2Latest.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/webservice.R
\name{addJsHtml2Latest}
\alias{addJsHtml2Latest}
\title{Add JS html to the end of body to the latest modified html}
\usage{
addJsHtml2Latest(jsfile, path = ".")
}
\arguments{
\item{jsfile}{A character. The file path of your html ... |
24c3485c6af8024f320bc7b1afec6bd0060217e7 | 1aed09b0f36d78e3727ead5dd3ec90229a9be0b3 | /man/convert_image_references.Rd | 6050d3aa45a285b04749dce29f1f3d7b6964197d | [
"MIT"
] | permissive | best-practice-and-impact/govspeakr | 9ad3e6a09014a43cf132e1ab59d1716a392016c5 | 1503fa53eacbded63d33a38903068cc8b4588589 | refs/heads/master | 2023-04-30T04:15:22.168910 | 2023-04-13T12:36:15 | 2023-04-13T12:36:15 | 218,343,310 | 6 | 5 | MIT | 2021-09-02T14:20:28 | 2019-10-29T17:21:40 | R | UTF-8 | R | false | true | 608 | rd | convert_image_references.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility_functions.R
\name{convert_image_references}
\alias{convert_image_references}
\title{Convert markdown image references to govdown}
\usage{
convert_image_references(image_references, md_file, images_folder)
}
\arguments{
\item{... |
2fd8979c3ebaed3f57620480fd2c10ea1d9f7146 | 1b2340e55dc23107bd549a63e8aa0cf7e08ab1d5 | /CTRP.R | a763ee91dc77b16cbf7c4ea0e587bba7865fd819 | [] | no_license | caichufan/HW05 | 8cb1fe8d0728c619c8ca56a85bb985aca4a9b6ff | 3760cf389748da35267717be86d365f8e37a8f54 | refs/heads/master | 2022-11-28T00:49:58.762659 | 2020-08-05T05:48:39 | 2020-08-05T05:48:39 | 284,823,174 | 0 | 0 | null | 2020-08-03T22:49:11 | 2020-08-03T22:49:11 | null | UTF-8 | R | false | false | 2,226 | r | CTRP.R | library(dplyr)
AUC_1 <- read.csv("AUC_1.csv", header = TRUE, stringsAsFactors = FALSE)
AUC_2 <- read.csv("AUC_2.csv", header = TRUE, stringsAsFactors = FALSE)
cancercellline <- read.csv("cancer_cell_line_info.csv", header = TRUE, stringsAsFactors = FALSE)
compound <- read.csv("compound_info.csv", header = TRUE, string... |
1625544cdac1846a57e774766d03c5b2a40411de | 89c46bb14c4a3206ee4524bb20fbee51ebe270ac | /tests/testthat.R | 43750ae95cfb1832d1540d47a7ede654ce98b396 | [
"MIT"
] | permissive | gadenbuie/sprinkles | 7e0c6664e19bb78c73da8862952b55f98969371e | 640d865f1c6f29657de024776d01a3aa829abdb3 | refs/heads/main | 2023-02-17T06:09:20.712162 | 2021-01-18T14:06:04 | 2021-01-18T14:06:04 | 330,547,563 | 13 | 1 | null | null | null | null | UTF-8 | R | false | false | 62 | r | testthat.R | library(testthat)
library(sprinkles)
test_check("sprinkles")
|
b3e630fa732ba54aac86ce6925f57c490d851932 | 2e5bcb3c8028ea4bd4735c4856fef7d6e46b5a89 | /man/nbrOfArrays.AffymetrixCelSet.Rd | f0fd854320094aeda17e0b56b3dd5a5bf16c24aa | [] | no_license | HenrikBengtsson/aroma.affymetrix | a185d1ef3fb2d9ee233845c0ae04736542bb277d | b6bf76f3bb49474428d0bf5b627f5a17101fd2ed | refs/heads/master | 2023-04-09T13:18:19.693935 | 2022-07-18T10:52:06 | 2022-07-18T10:52:06 | 20,847,056 | 9 | 4 | null | 2018-04-06T22:26:33 | 2014-06-15T03:10:59 | R | UTF-8 | R | false | false | 898 | rd | nbrOfArrays.AffymetrixCelSet.Rd | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% AffymetrixCelSet.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{nbrOfArrays.Affym... |
aec767d51e1e23bf1eaa8ae9302c713972044492 | 9ec684f6599db154ed1f79b5154c5e98c4d27b0c | /Voter_Data_Scrape.R | eae99e1adb56e583ff74dc9620c4a968080209c9 | [] | no_license | STA440-Team4/Case_Study_4 | 3138ba78f0809b5a8191b20d2188fa0c0ffdf0db | fce8c5012d468cafaa29a17c3b9b5f971007d9b8 | refs/heads/master | 2020-04-01T12:28:34.679343 | 2018-10-16T03:02:24 | 2018-10-16T03:02:24 | 153,209,364 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 515 | r | Voter_Data_Scrape.R | # Creating a Tidy Data Frame of Voter Data
if (!require("dplyr")) install.packages("dplyr")
library(dplyr)
if (!require("rvest")) install.packages("rvest")
library(rvest)
# Help for scraping and downloading zip files comes from
# https://stackoverflow.com/questions/46838858/r-web-scrapping-and-downloading-multiple-zi... |
24a46d9f619e58ea1a1a0fa10437e093d544f646 | f23deafb3417c19cd19a86e3355d6717e327cd5b | /SalesPlot.R | 709c32847b4b81f140ac98e844054f13747a7e51 | [] | no_license | jamielaiwang/Clif-Bar-Weekly-Sales-Forecasting | 281a5e78b63abcd8acda4b8aaa177980fb65ada8 | cfa4ffa85fd0461045b8a5e713866e76b7b932be | refs/heads/master | 2020-04-21T15:05:22.650375 | 2019-02-21T18:26:25 | 2019-02-21T18:26:25 | 169,657,360 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,416 | r | SalesPlot.R | require(plyr)
require(reshape)
library(ggplot2)
library(zoo)
library(lubridate)
library(scales)
library(forecast)
library(fpp2)
#TODO: set data, submit and r paths to correct directories, if needed
paths = list(data='./DATA/', # ./ is relative path
submit='./Submissions/',
r='.... |
a697728d2c9dd5c389fe9bf66458bb69d5dbc7c4 | 7ed11e971db591445c3ac9c6a14d87057cd34bf5 | /4 - B - Simulacion AR.R | 5aa0072eebf2f466d87b86a549308e3d60583b9b | [] | no_license | jeguns/EP6035 | 80ddf7b2f68f6d5071647d243b1c2345fdd5b31e | b6faf81a317da39b89a7439e5b18c1f7ead4f8fa | refs/heads/master | 2023-06-14T04:45:37.423504 | 2021-07-08T01:55:32 | 2021-07-08T01:55:32 | 355,602,552 | 2 | 3 | null | null | null | null | UTF-8 | R | false | false | 3,171 | r | 4 - B - Simulacion AR.R |
library(TSA)
library(ggfortify)
# AR(1) con phi = 0.85 ----------------------------------------------------
# ARIMA(1,0,0) con phi = 0.85
phi = 0.85
sigma = 2
set.seed(78)
arima.sim(model=list(ar=c(phi)), n=150, sd = sigma) -> Y.AR1A # AR(1) con phi = 0.85
#arima.sim(list(order = c(1,0,0), ar= phi), n = 150) ... |
dfbbe21af27b93fa9ebf1f16fcbadcd747c5a603 | f60d5f0968dd503b0dca29282013c50bb3ac8acf | /UI.R | 700446db86efa6559f2662f2e9550d00c9705cd9 | [] | no_license | GonzaloMoreno/Develop-Data-Product-Project | 65b431d4b143d2c9815cc20f9b1d7c391013e991 | fd92706a200f96e5cd3f7da3eeab0bbab40203ea | refs/heads/master | 2021-01-19T15:33:40.320731 | 2015-05-20T02:51:57 | 2015-05-20T02:51:57 | 35,921,523 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,400 | r | UI.R | library(shiny)
shinyUI(pageWithSidebar( ##shiniyUI=User Interface. pageWithSidebar= crear pagina con barra lateral
headerPanel("Ejemplo2 entrada numérica Gonzalo Moreno"),
sidebarPanel(
h3("letra tamaño h3"),
numericInput("Entrada1", "Entrada númerica etiqueta 1", 0,min=0,... |
adc62b51bfd5cd24e4d66d019c81bc59328bd7c9 | 0d1685a2218c0c37bfc700fcb8008dda69625ede | /man/EpivizChart-class.Rd | 3324992ae5369cf5ce06dd3e09b1ba1029f68bd9 | [] | no_license | epiviz/epivizrChart | 75f41609bd6d82517e374126102a8c32c0c7a060 | 445ac18b7da77581616e0b94785336c53c40c046 | refs/heads/master | 2021-11-26T01:26:00.082587 | 2021-07-30T07:35:15 | 2021-07-30T07:35:15 | 89,830,859 | 3 | 1 | null | 2021-01-22T13:06:22 | 2017-04-30T05:15:47 | HTML | UTF-8 | R | false | true | 1,757 | rd | EpivizChart-class.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/EpivizChart-class.R
\docType{class}
\name{EpivizChart-class}
\alias{EpivizChart-class}
\alias{EpivizChart}
\title{Data container for an Epiviz chart component.}
\description{
Data container for an Epiviz chart component.
}
\section{Fields}{
... |
550a381467cb1b27ee12448de7b0fcc883834cb7 | 4f038917144f89bcdb949346c92ae90782ab6f72 | /R/google_sheets.R | ef1d7bf2714185fe394c0b561f56fda863330364 | [
"MIT"
] | permissive | isabella232/rauth0 | a4df725b2eb1f0f351140e878e419ff44d9e862c | 07972e009ed95e1d7980de32ba8ef54b6ff97c5f | refs/heads/master | 2023-06-09T14:00:41.898109 | 2021-07-01T08:58:08 | 2021-07-01T08:58:08 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 934 | r | google_sheets.R |
#' DWH Google sheets connection
#'
#' This function loads a token from Google to connect to Google drive,
#' to read/write spreadsheets with package `googlesheets`
#'
#' @param google_token The token used to connect to google's api, a JSON file has to be indicated in this parameter
#'
#' @examples
#'
#' library(google... |
88b7569caa2f95cd8a5ff766a1044a081e9f4357 | 3266fda1d5144f83f2d7a2243cbc59347e70ce6c | /man/floor_date.Rd | bfbe84b9adcf5809182efd7060c73a9e3fbeff3b | [] | no_license | gvanzin/lubridate | 04b8d4ce11914c4385c100af3cbe854feab6a62c | de6e93866695704ec8bd10a6f61353befeee0818 | refs/heads/master | 2020-12-27T01:46:08.818299 | 2015-04-24T10:19:50 | 2015-04-24T10:19:50 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,460 | rd | floor_date.Rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/round.r
\name{floor_date}
\alias{floor_date}
\title{Round date-times down.}
\usage{
floor_date(x, unit = c("second", "minute", "hour", "day", "week", "month",
"year", "quarter"))
}
\arguments{
\item{x}{a vector of date-time objects}... |
9115f6592fa24978f9d7701ea08612c77e96708d | 178369bc640e256e8eaeb74fc4932db340395bbb | /Divvy_generate_coefficients_for_app_predictions.R | 3c59306666d277d6a21963d4d89235eee5de5ace | [] | no_license | m5loco/Divvy | 6ce329bf33e7a5748807f941234746c4216053bc | 53bb1397c92b474d43e719e19ab54abb4b3a36f7 | refs/heads/master | 2022-08-26T21:20:51.640333 | 2022-08-04T00:22:21 | 2022-08-04T00:22:21 | 241,747,324 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,585 | r | Divvy_generate_coefficients_for_app_predictions.R | source("c:/users/Mark/Documents/School/MSDS 498/fcst/base_fcst.R")
library("plyr")
library("dplyr")
build_coef_df <- function(station_id,coefs,df)
{
if (is.null(df))
{
df<-data.frame(as.list(coefs))
df$station_id<-station_id
}
else
{
new_df<-data.frame(as.list(coefs))... |
c6c92701bddac24e6bd66c7e13fc122ac7795f7a | 8491183d56c8fc70ac58f8af10626875845b9dee | /Week 7/Week7-HigherOrderAndQualitative.R | 25e4a99e21ca3e47efcc10ae7ee5b0159ef01efd | [] | no_license | yifeitung/HUDM_5126 | 7f0a48088f4df801fb5c998aef3863bda3b207b9 | 6c51d67b613f0ea98ae0e15f2b87247a36400574 | refs/heads/master | 2023-02-07T18:09:55.512673 | 2020-12-28T19:30:34 | 2020-12-28T19:30:34 | 307,020,222 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,885 | r | Week7-HigherOrderAndQualitative.R | # Get data from Week7-bluegills.txt
data <- read.table(file.choose(), header = T)
# Look at data and attach
head(data)
attach(data)
# Scatterplot
plot(age, length)
# Fit quadratic model:
age2 = age^2
reg2 = lm(length ~ age + age2)
summary(reg2)
# Plot the fitted parabola
agevalues = seq(1,6, len = 100)
predictedl... |
78c580bb4df1a7b905145463956e938120ec8188 | 9e92deab552da35f83af28a557bed128ccfa2706 | /app.R | e1cda3225c50ca79744688a7bb7c7cb83a324da5 | [] | no_license | adammaikai/cnv-heatmap | e73763c88eec49bbfb73798d0ebe5712ef3b4ec4 | d4daafb749a1d934fbb5af73bf16cb9253458a44 | refs/heads/master | 2022-11-11T11:43:00.352428 | 2020-06-26T19:40:47 | 2020-06-26T19:40:47 | 261,002,052 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,691 | r | app.R | # CNV Analysis App
source("src/CNVPlottingFunctions.R")
load("data/CNVPlottingPrep.RData")
# Define UI for data upload app ----
ui <- fluidPage(
title = "CNV Heatmap",
sidebarLayout(
sidebarPanel(
radioButtons(inputId = 'genome', label = 'Select Genome',
c("GRCh37/hg19", "GRCh38/hg38"... |
6594af2aa56cd2c276682fae00e70fdd4122aaa3 | 2e74c7339c63385172629eaa84680a85a4731ee9 | /envir_lead/04_crosswalk.R | f079b133594abe0633fac5cab9facee4688469e8 | [] | no_license | zhusui/ihme-modeling | 04545182d0359adacd22984cb11c584c86e889c2 | dfd2fe2a23bd4a0799b49881cb9785f5c0512db3 | refs/heads/master | 2021-01-20T12:30:52.254363 | 2016-10-11T00:33:36 | 2016-10-11T00:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,060 | r | 04_crosswalk.R | #----HEADER----------------------------------------------------------------------------------------------------------------------
# Purpose: Run a linear model to inform the prior of ST-GPR for blood lead
#****************************************************************************************************************... |
450978091ee593fe053e9f3d2167cfdab9391271 | cf62c1acac62cc4bf102447f0fc4285977782612 | /man/bfgs_gcv.ubre.Rd | 9c781d6329ba27b6fe750dd8852d5bbc3b79ddd5 | [] | no_license | cran/scam | d6d00a723a0462416a79178038d61cd30fbe793e | cc080df129f3611eadf93cef7259324def3f83dd | refs/heads/master | 2023-04-30T11:29:17.031975 | 2023-04-14T09:00:08 | 2023-04-14T09:00:08 | 17,699,475 | 4 | 6 | null | null | null | null | UTF-8 | R | false | false | 4,358 | rd | bfgs_gcv.ubre.Rd | \name{bfgs_gcv.ubre}
\alias{bfgs_gcv.ubre}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Multiple Smoothing Parameter Estimation by GCV/UBRE}
\description{
Function to efficiently estimate smoothing parameters of SCAM by GCV/UBRE score optimization.
The procedure is outer to the model fit... |
ac260b6e0d343af74346f8428212e3dbd02bd353 | 6e5efc0b6b6b37c735c1c773531c41b51675eb10 | /man/GetQEA.pathNames.Rd | 789e7f2a34609c74b4cff17f656a04ebc52a7126 | [
"GPL-2.0-or-later"
] | permissive | xia-lab/MetaboAnalystR | 09aa09c9e57d7da7d73679f5a515eb68c4158e89 | 9edbbd1e2edda3e0796b65adf440ad827abb7beb | refs/heads/master | 2023-08-10T06:08:56.194564 | 2023-08-01T15:13:15 | 2023-08-01T15:13:15 | 109,994,826 | 268 | 165 | MIT | 2023-03-02T16:33:42 | 2017-11-08T15:38:12 | R | UTF-8 | R | false | true | 380 | rd | GetQEA.pathNames.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/enrich_path_stats.R
\name{GetQEA.pathNames}
\alias{GetQEA.pathNames}
\title{Export pathway names from QEA analysis}
\usage{
GetQEA.pathNames(mSetObj = NA)
}
\arguments{
\item{mSetObj}{Input the name of the created mSetObj (see InitDataObjects... |
c9fef07c04702d7942d45af98a8356b1dab8bce0 | c1f773bf23a84ea9af94812a1a6d35004c378d64 | /man/inla.sens.Rd | b01a6f32b46f33bbb72efe21bc91d41866da3719 | [] | no_license | inbo/INLA | faab93d1f3e7f70251ef05148a40c69b6ac13561 | 0fa332471d2e19548cc0f63e36873e31dbd685be | refs/heads/master | 2020-04-11T08:59:50.842976 | 2019-12-02T12:38:52 | 2019-12-02T12:38:52 | 51,505,516 | 3 | 2 | null | null | null | null | UTF-8 | R | false | false | 4,262 | rd | inla.sens.Rd | \name{inla.sens}
\alias{inla.sens}
\title{
Testing code for sensitivity
}
\description{
TODO: Write a description
}
\usage{
inla.sens(inlaObj)
}
\arguments{
\item{inlaObj}{
The result from a run of \code{inla}.
}
}
%\details{
%% ~~ If necessary, more details than the description above ~~
%}
\value{
TODO:... |
67549182c589600bcb6beac2cf5a5c3a17751f70 | d6a81538d1a2726b5e76d176e6c67bb8b9a52200 | /R/data_interface.R | f2aa5729f0709721ce4c040ff101cd1283b62cb7 | [] | no_license | cran/prcbench | ace339c428112e35040f0df4beb2ff2475bc6a58 | 30a94dc12d194829feb49ca0b820a55c8858bcd0 | refs/heads/master | 2023-03-18T17:07:03.819425 | 2023-03-12T15:10:09 | 2023-03-12T15:10:09 | 49,258,146 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,617 | r | data_interface.R | #' Create a list of test datasets
#'
#' The \code{create_testset} function creates test datasets either for
#' benchmarking or curve evaluation.
#'
#' @param test_type A single string to specify the type of dataset generated by
#' this function.
#'
#' \describe{
#' \item{"bench"}{Create test datasets for benchm... |
d0fba6ee79f1a5f12339e14137500f203e7f3d9a | 91621f72b96e03e7c2064cf43733e8507b0e4deb | /R/package/inst/tests/test-ddfmanager.R | 1eb3d7808dbe548d1b76bf3f298c07db9bc2a4ae | [
"Apache-2.0"
] | permissive | williamdengnewyork/DDF | 5e08455db3ab1f307aee063955b9d4d30ad81e5a | e4e68315dcec1ed8b287bf1ee73baa88e7e41eba | refs/heads/master | 2020-12-03T02:28:37.777033 | 2016-06-08T08:23:51 | 2016-06-08T08:23:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 611 | r | test-ddfmanager.R | library(testthat)
library(ddf)
context("DDFManager")
test_that("sql2ddf works", {
write.table(mtcars, "/tmp/mtcars", row.names=F, col.names=F)
dm <- DDFManager()
sql(dm, 'set hive.metastore.warehouse.dir=/tmp/hive/warehouse')
sql(dm, "drop table if exists mtcars")
sql(dm, "CREATE TABLE mtcars (mpg double, cy... |
56c976aa36ad83747ce4a0f342af9cf3f2340271 | 9aafde089eb3d8bba05aec912e61fbd9fb84bd49 | /codeml_files/newick_trees_processed_and_cleaned/11367_0/rinput.R | aa77dcef122cb03e78444e9c7e1a7be2fb0154e2 | [] | 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 | 137 | r | rinput.R | library(ape)
testtree <- read.tree("11367_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="11367_0_unrooted.txt") |
a5d9369a6faf1ad3326f801e8544c95be2bb26d4 | 4668f8ca41d00c2af993dad99b95743b71ecfaaa | /cachematrix.R | af8a749a55dac10afd4f4617470ab06e47de059b | [] | no_license | dalmaciopereyra/ProgrammingAssignment2 | 89b88559b34912c3c8048c7aa275b67b7b3aa24e | 8481e89a643536e25a342861de338ea94a08d42a | refs/heads/master | 2020-11-24T17:06:50.686178 | 2019-12-15T23:24:34 | 2019-12-15T23:24:34 | 228,263,820 | 0 | 0 | null | 2019-12-15T22:46:26 | 2019-12-15T22:46:25 | null | UTF-8 | R | false | false | 1,126 | r | cachematrix.R | ## This function calculates the inverse of a matrix
## makeCacheMatrix creates a matrix and caches it inverse, returns a matrix with functions to
## set and get values or set and get inverted matrix
makeCacheMatrix <- function(x = matrix()) {
#set the variable for the cached inversion of the matrix
inv<-NULL
... |
b011660e2f5feb6852f6401f7ef82e0bb3123775 | 54380f007be35fbf5af5a3c198ffbc596d1a3e9b | /man/save_csv_carl.Rd | 82acb8d6f01b7269da0e579058c54651f7350c09 | [] | no_license | cfbeuchel/CarlHelpR | bf47bd7d2e56a13f69a8d66047e451b42cb13dbb | bbbeb168a6d7f378a6ec75e3e93915b26faa29fb | refs/heads/master | 2022-03-21T12:48:55.218400 | 2019-12-20T10:40:14 | 2019-12-20T10:40:14 | 114,129,646 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,387 | rd | save_csv_carl.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/save_csv_carl.R
\name{save_csv_carl}
\alias{save_csv_carl}
\title{Custom save to .csv function}
\usage{
save_csv_carl(file = NA, file_name = NA, subfolder = NA,
create_subfolder = F, sep = ",", quote = F)
}
\arguments{
\item{file}{The data.... |
1d6aa4a2f9121345b3b551fbdc6e556a65a68981 | dac4a8f2b14dbb92dd07e9ca9642410ae407a2f2 | /R/TransMx.R | 5f14b7c5e6053863710e4a12decf8686e24d4646 | [] | no_license | dstgithub/GrpString | 0710f0b5d1e8a90ee1e94e5a2f6facb19bc48c97 | 45b4da9cc59c71ddb8b53d7b6753665b7ff960fe | refs/heads/master | 2021-01-12T03:26:45.555515 | 2017-11-15T21:40:25 | 2017-11-15T21:40:25 | 78,210,123 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,196 | r | TransMx.R | #' @export
TransMx <- function(strings.vec, indiv = FALSE){
##### Prepare: get the name of the input string vector
strings.vec_name <- deparse(substitute(strings.vec))
##### 0. get all unique characters of all strings
# 0.1 remove strings with fewer than 2 characters
stringsx.pos <- whi... |
27c61f1b0e9f9ca17f9fdb35cf53758574619e2a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/imp4p/examples/fast_apply_nb_not_na.Rd.R | 80f6ae224e8221f1ea95ac6758c1498c050f5ad6 | [] | 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 | 379 | r | fast_apply_nb_not_na.Rd.R | library(imp4p)
### Name: fast_apply_nb_not_na
### Title: Function similar to the function
### 'apply(X,dim,function(x)sum(!is.na(x)))'.
### Aliases: fast_apply_nb_not_na
### Keywords: Cpp wrapper function
### ** Examples
## The function is currently defined as
##function (X, dim)
##{
## .Call("imp4p_fast_apply... |
738c15d7b470e19c1a6d77828f1e44466a0255d8 | 9cc4eba7237b76735fec01bed8a7cc22b2cc5eb1 | /anova.r | 0953df5854c34df0a499d81e5eab4e89ef312a33 | [] | no_license | lkuszal/RScribbles | 1f1b9c9f8b3a52be86771cd86887c5b69af80e0d | ffbb668c0052469c74cfdbec2b6f8bc2b11a1884 | refs/heads/main | 2023-03-14T07:22:55.283861 | 2021-03-10T18:27:11 | 2021-03-10T18:27:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 432 | r | anova.r | d1=c(5.6, 6.2, 6.7, 5.8, 5.8)
d2=c(5.8, 4.8, 6.1, 5.4, 5.7)
d3=c(4.2, 4.8, 5.2, 5.1, 4.8, 4.3)
d0=c(d1,d2,d3)
s0=mean(c(d1,d2,d3))
s1=mean(d1)
s2=mean(d2)
s3=mean(d3)
#SST
a=0
for(x in d0){
a=a+(x-s0)^2
}
print(a)
#SSA
print(length(d1)*(s0-s1)^2+length(d2)*(s0-s2)^2+length(d3)*(s0-s3)^2)
#SSE
a=0
... |
27b70d6f4e933f8d2b0ce940d4b3f889351f6f5a | 4ac9ca1c41d9de8ffda4512cc697e0d9424fadc7 | /R/errorHandler.R | cab5df8b0e60aa33e3da87fff2d5a91b9c62f55e | [] | no_license | johndharrison/dockerAPI | 8b6717c028857568baf7b2d2d14cd23a94df2a9a | f45e8bfeb383865d83ef365bbc0ef0e666f09f35 | refs/heads/master | 2020-05-25T14:18:24.038852 | 2016-08-08T16:25:20 | 2016-08-08T16:25:20 | 28,023,667 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,576 | r | errorHandler.R | setOldClass("response")
#' CLASS errorHandler
#'
#' errorHandler Class uses the
#'
#' errorHandler is a generator object.
#'
#' @import jsonlite
#' @import whisker
#' @import httr
#' @export errorHandler
#' @exportClass errorHandler
#' @aliases errorHandler
errorHandler <- setRefClass("errorHandler",
... |
d5f2a873b78f546beba20bd62e45ccd88c2ae0d0 | c765806f595d9dd3a745dfb0868776693ac388d0 | /first_term/pbl01_2/rfiles/first.R | 0936a7d87b631644e7016b5eac52c9b1264b619f | [] | no_license | ducksfrogs/AIQuest | f5ec7c75d85f5256ecb6a7c15c994d7cc2eeafa1 | 54454e75ff240a8fdbb1cbf0fd699b3cec41bb1c | refs/heads/main | 2023-02-21T15:23:39.853357 | 2021-01-26T23:17:35 | 2021-01-26T23:17:35 | 304,774,841 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 485 | r | first.R | data("iris")
str(iris)
summary(iris)
library(ggplot2)
ggplot(iris, aes(x=Sepal.Length, y=Petal.Width))
+ geom_point(color=Species)
diamonds
iris
library(tidyverse)
iris_tbl <- as_tibble(iris)
ggplot(iris_tbl, aes(x=Sepal.Length, y=Petal.Width)) +
geom_point(aes(color= Species))
data(father.son)
install.packages('Usi... |
068a298b9464f6c198194591df5bef1006de68db | 1946498b789b9feb4c70a38b4ab5cde4c5697bc5 | /tests/testthat/test-data.R | 441e2ec3a6873431a0fc10e1d25d9d1585eb1b21 | [] | no_license | aivachine/project | 76feaa3819a44e4e9c053a2afc2bbb632ce55adc | edd2ea38d8e6c3711b52041759404f3c521676b5 | refs/heads/master | 2020-12-11T01:45:47.878999 | 2016-05-22T22:36:25 | 2016-05-22T22:36:25 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,762 | r | test-data.R | context("Data management")
dir <- tempdir()
setwd(dir)
if (dir.exists("project-test")) unlink("project-test", recursive = TRUE)
dir.create("project-test")
setwd("project-test")
prInit()
test_that("One can save and load objects", {
assign("x", rnorm(100), envir = .GlobalEnv)
y <- x
prSave("x")
expect_true(fi... |
7510b19dfe2c10d156fbc9f8b7478b9686a7bc61 | 494655c2d37cca13398fba6fa5fe4752d25319e5 | /r4.r | 92566e738f729f531655022756b0266cc3a7fa62 | [] | no_license | truptikamble/BE-PROGRAMS | 7f6f163de2f41dffb62d4ad0698a1a1134e0abce | 9093f0e7954c92bd97913c0dd1b0f5d2e70c7a71 | refs/heads/master | 2020-04-01T20:11:54.971603 | 2018-10-29T13:18:49 | 2018-10-29T13:18:49 | 153,593,007 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 515 | r | r4.r | data = read.csv(file.choose())
data = data[,c(1,5)]
names(data)
data$date = as.Date(data$date)
df = data.frame(date = data$date , snowfall = data$snowfall,
year = as.numeric(format(data$date , format="%Y")),
month = as.numeric(format(data$date, format="%m")),
day =... |
a1c4b3cd5f65c5423c53024b0e269e88c6919a9b | 17cb64908b89c854c304e10d5a88e621728d9f37 | /R/summary_popsumm.R | e188707ae2009200da8667a2056a7a5a203db68e | [] | no_license | EvoNetHIV/Herbeck-et-al-Vaccine-2018 | 494387deba8f63902a03b4ba4de68eddce540c63 | bf0ee209f8924c9ad4865a2dadfe11f7b256f845 | refs/heads/master | 2022-12-09T23:42:17.631572 | 2020-09-01T19:07:32 | 2020-09-01T19:07:32 | 69,389,080 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 10,537 | r | summary_popsumm.R | #' @export
summary_popsumm<-function(dat,at){
#if summary stats calculations doesn't occur at this timesetp,
#based on popsumm_frequency value, then leave function
if( (at%%dat$param$popsumm_frequency!=0) & (at!=1)){return(dat)}
#time_index is a time vector based on current value
#of "at" and parameter... |
2c99f425893fba50ecafc546e7a5a71e69aa142a | 739c351026e02598e006a2655a1978a8cbd72ac0 | /R/elnet.R | faf563c0f06bd498c6d2c016e7d6c020db6061dc | [
"MIT"
] | permissive | tidymodels/butcher | a30c3b6a627d89ce2755da9de92df97ded8bba7f | 7e162c9f23fc55a63fac6f132c24038419a94416 | refs/heads/main | 2023-04-28T15:39:45.260168 | 2023-04-26T21:06:10 | 2023-04-26T21:06:10 | 190,640,087 | 125 | 19 | NOASSERTION | 2023-08-23T02:34:18 | 2019-06-06T19:45:18 | R | UTF-8 | R | false | false | 973 | r | elnet.R | #' Axing an elnet.
#'
#' elnet objects are created from the \pkg{glmnet} package, leveraged
#' to fit generalized linear models via penalized maximum likelihood.
#'
#' @inheritParams butcher
#'
#' @return Axed model object.
#'
#' @examplesIf rlang::is_installed("glmnet")
#' # Load libraries
#' library(parsnip)
#' libra... |
99a88db47ccfeb452d97d549add45950e35b4ffd | 6ce53cb961f1d96634f4d633433bdc74fb69ced0 | /landscape/landscape_plot.r | b1b5e949844ba150ceaf0bf82c755bfd1105040c | [] | no_license | lvmt/R_releated_Code | fb936364205137b984a6f218f746156f4e051af7 | df0863f37b3b771df934068f962329825c163fa4 | refs/heads/master | 2023-03-17T15:19:25.552072 | 2021-03-02T06:10:56 | 2021-03-02T06:10:56 | 257,591,855 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,074 | r | landscape_plot.r | '''突变位点landscape图
'''
'''利用landscape_file.py生成的文件,作为输入文件
'''
library(ComplexHeatmap)
setwd("C:/Users/dell/desktop")
infile = read.table("landscape_filter_gene.plot.xls", sep="\t",header=TRUE, row.names = 1)
infile[is.na(infile)] = ""
#rownames(infile) =infile[,1]
#infile1 =infile[,2:32]
col = c("cds_indel" = "lig... |
ead800733071c37c2a555315b83f85f68a2adfea | 29585dff702209dd446c0ab52ceea046c58e384e | /r4ss/R/r4ss_logo.R | 7426270da10d78d03e7ac3bab84de56195775e14 | [] | 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 | 550 | r | r4ss_logo.R | #' Make a simple logo for r4ss organization on GitHub
#'
#' I was tired of the automatically generated symbol
#' that appeared by default.
#'
#' @author Ian Taylor
#'
r4ss_logo <- function(){
png('r4ss_logo.png',res=300,units='in',width=3,height=3)
par(mar=rep(0,4))
plot(0, 0, type='n', axes=FALSE,... |
16e9821888683d4281348005760695a94da8607a | 2c1d0d7c8d8381bcbc2251a1e4a40f98b1a2bc86 | /bin/common.R | 88ad56df8f9c24be29a2fb945c423527418c81db | [] | no_license | fredhutchio/argo-navis | 5ac77853a2befd9522579db1a13676a2f1e2f7dd | 885426f360c89a11626f0c4a44a225ab59960ff1 | refs/heads/master | 2021-01-13T01:26:07.195365 | 2015-10-12T22:05:23 | 2015-10-12T22:05:23 | 31,085,035 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,941 | r | common.R | "Mostly deme coloring specific codez"
library(RColorBrewer)
read.color.spec <- function(filename) {
df <- read.csv(filename, stringsAsFactors=F)
colors <- df$color
names(colors) <- df$deme
colors
}
brewify.colors <- function(demes, pallette="RdBu") {
demes <- sort(unique(demes))
n <- length(demes)
col... |
0ec72b2d7119b265ccff0804bc740bdc1501bfc5 | dcee394d4fd8ba93a4e4880963ebdccd72fad310 | /R code/week6.R | d559623487ba25b35fa8a5a9e317eb9407a2ee93 | [] | no_license | issactoast/kindstat | ad6f2173eeed209e1475ec0630e0792868f89664 | e36502278b561ddd978ed12791fef408e78cfea7 | refs/heads/master | 2022-04-25T01:08:37.339317 | 2020-04-19T19:57:02 | 2020-04-19T19:57:02 | 257,089,204 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,374 | r | week6.R | # 직선의 방정식
a: 절편
b: 기울기
# y = a + b * x
plot(0, 0, type = "n",
xlim = c(0, 10),
ylim = c(0, 10))
abline(h = 0)
abline(v = 0)
points(x = c(2, 4, 6, 8),
y = c(1, 6, 4, 8))
abline(a = 2, b = 0.5) # 직선
abline(a = 1, b = 0.8, col = "red") # 친구의 직선
abline(a = 0.0005164763,
b = 0.9499521173, col = ... |
d7473dd2e355e6ba706ccb9ff8576fa8a991df1c | 109734b597c2d760725a1a050174a5d11b3c1a9b | /R/dist2dpath.R | 65010b4569e7b973f21805c2bc1d30a78b556d36 | [] | no_license | rubak/spatstat | c293e16b17cfeba3e1a24cd971b313c47ad89906 | 93e54a8fd8276c9a17123466638c271a8690d12c | refs/heads/master | 2020-12-07T00:54:32.178710 | 2020-11-06T22:51:20 | 2020-11-06T22:51:20 | 44,497,738 | 2 | 0 | null | 2020-11-06T22:51:21 | 2015-10-18T21:40:26 | R | UTF-8 | R | false | false | 2,155 | r | dist2dpath.R | #
# dist2dpath.R
#
# $Revision: 1.10 $ $Date: 2017/06/05 10:31:58 $
#
# dist2dpath compute shortest path distances
#
dist2dpath <- function(dist, method="C") {
## given a matrix of distances between adjacent vertices
## (value = Inf if not adjacent)
## compute the matrix of shortest path distances... |
967d4a80ce083c9d64f125cd74276b1f9edfbe87 | 685adb82b0ef76319c7d0e5fe4cb9aabae82367a | /man/modelAvg.Rd | 2c2cc8612a8fac235adcfa94875c4628225ef9d2 | [] | no_license | scarpino/binequality | 6474cc7a520b414dd622437582fe1d8e8fcbc3b7 | c810d3e5f066bfa8e1b67edbe8b06bc289f380b0 | refs/heads/master | 2021-01-19T02:19:01.663501 | 2018-11-05T14:04:13 | 2018-11-05T14:04:13 | 37,625,137 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 705 | rd | modelAvg.Rd | \name{modelAvg}
\alias{modelAvg}
\title{
A function to calculate model averages
}
\description{
This function calculates model averaged statistics using AIC and BIC.
}
\usage{
modelAvg(fitList, ID, nonCon = TRUE)
}
\arguments{
\item{fitList}{
a (non-empty) list of fitted distributions
}
\item{ID}{
a (non-empty) str... |
770b304dbb1fe2bdcdcf9cd00b2de2a1884cb1e1 | e535cafb3cdb408a577ccfaa2496dc8bba889e2e | /codes/vis-fit.R | fefdc3a6451a9d613a187b525caa2a7b041c4a29 | [] | no_license | richardli/cincinnati-overdose | fe1bbc6ea2afb5a63edaecfc500b5b7d08e06b42 | 39b64a725f61aac72039bf4e6962e47f07afe6fb | refs/heads/master | 2020-06-01T19:56:43.065393 | 2019-09-26T15:41:48 | 2019-09-26T15:41:48 | 190,908,738 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 33,990 | r | vis-fit.R | #---------------------------
# Plot of fixed effects
#---------------------------
library(ggrepel)
library(scales)
library(gridExtra)
library(xtable)
fixed <- data.frame(fit0$summary.fixed)
fixed$index <- 1:dim(fixed)[1]
race <- c(6:12)
fixed$label <- factor(rownames(fixed), levels=rownames(fixed))
fixed$label <- bette... |
de993e99061f43988ac4c5dee2801291a62d4956 | 316aa351ff9f4b242fd79cf388aecd5bd5ad4f21 | /R/globals.R | fe3def572b7e460a0109e503ee234c3bcab0701a | [] | no_license | jmhewitt/dsdive | 5d24b6f9d3e39e9d8fc33c12b6172126a3769dd0 | bb55540452917d0c81e039e9ed6fb79f9b233131 | refs/heads/master | 2022-09-23T06:18:55.498742 | 2020-05-28T19:36:01 | 2020-05-28T19:36:01 | 224,232,874 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 397 | r | globals.R | #' @useDynLib dsdive, .registration = TRUE
globalVariables(c('ind','depth.bin', 't.start', 't.end', 'depth.min',
'depth.max', 'stages', 'depth.mid', 'local_n', 'local_ids',
'beta1', 'beta2', 'alpha1', 'alpha2', 'alpha3', 'pi.designs',
'lambda.designs', 'tstep', '... |
097f18d60641b677f0310d15ea2a3c73c9861b2d | 735f948ce890b407ef90c5406387285d02e942c2 | /rankhospital.R | 53bce87749e8b0af9a36ecf405f76cd5dd2db76c | [] | no_license | LL8054/Week-4 | 03f97710b4ca77d5ff23458bd9ea385c842916ab | 2bcc53c8684cafc8fd2d0dbb166a600b52b6402f | refs/heads/master | 2021-01-01T05:51:30.133813 | 2014-09-26T04:26:58 | 2014-09-26T04:26:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,671 | r | rankhospital.R | ## Ranks hospitals in the requested state according to the inputted outcome
## and returns the requested rank.
rankhospital <- function(state, outcome, num = "best") {
## Reads data.
data <- read.csv("outcome-of-care-measures.csv", na.strings="Not Available", colClasses = "character")
## Check... |
61e309fe2153f78399c84d3cae1f826cd11aebad | 77c584d0ece8f1a55ab70826d8ff88e599d6d80a | /R/readrm.r | 02b4570e681219e4428920c8fec669bf4ef29563 | [] | no_license | cran/rmutil | 696f8c192accdeceb0ba30ee397d3548eda17a77 | 07d0956d37bd75500f8385036bb123a16b459510 | refs/heads/master | 2022-11-05T17:34:44.072693 | 2022-10-27T03:32:35 | 2022-10-27T03:32:35 | 17,722,019 | 3 | 1 | null | 2019-07-05T16:13:23 | 2014-03-13T18:48:48 | R | UTF-8 | R | false | false | 12,734 | r | readrm.r | #
# rmutil : A Library of Special Functions for Repeated Measurements
# Copyright (C) 1998, 1999, 2000, 2001 J.K. Lindsey
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public Licence as published by
# the Free Software Foundation; either vers... |
2bcb3621c922a219715829be2f24eaa3ac3104ba | 4406e1ee6cdd13839904586c951d3f3b48464843 | /inst/doc/r181missFunction.r | e55c74475bf2aefca2badf48304455eddb108819 | [] | no_license | cran/erer | 3ffc4f2572a3fb054737935919dc9e100af921fd | 6a9996e01e89dc7c6a5fac6375701e18c25fb403 | refs/heads/master | 2022-05-01T02:02:51.406564 | 2022-04-18T14:44:30 | 2022-04-18T14:44:30 | 17,695,848 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 120 | r | r181missFunction.r | miss <- function(x) {
y <- x * 2
lost <- function(y) {z <- y + w; return(z)}
m <- lost(y)
return(m + 100)
} |
16587d09dd03f0700f69c5a9d140db4706f2482d | f3aa5a88dc2433d0ff8b4c9d1052e4562661242a | /R/AllGenerics.R | e6a2fb29f6053d2a62a2177769de5a0dfa9e9a24 | [] | no_license | drisso/RUVSeq | 22c558d8d3fadbc8ac5e96dd635743da211d8a12 | f560e84eb493f0c2d72279612f9e4ca99493b434 | refs/heads/master | 2022-11-29T00:31:53.759192 | 2022-11-22T10:09:10 | 2022-11-22T10:09:10 | 141,323,453 | 13 | 3 | null | null | null | null | UTF-8 | R | false | false | 634 | r | AllGenerics.R | setGeneric(
name = "RUVg",
def = function(x, cIdx, k, drop=0, center=TRUE, round=TRUE, epsilon=1, tolerance=1e-8, isLog=FALSE) {
standardGeneric("RUVg")
}
)
setGeneric(
name = "RUVs",
def = function(x, cIdx, k, scIdx, round=TRUE, epsilon=1,... |
3ed7def9969fc015e5dac4b31db18fccf53daabc | 38b622cce50d55aab89a0f0c5a40dbb8cba2a42c | /assignment1.R | 05ab9d2c874f8bb4af08c0fb68f87fafcebaee51 | [] | no_license | jkbasley/ExData_Plotting1 | e297545c903d10a4ad6fd0d152179b7b9f1f2a2d | 67a4b433560f055c2b1230e8936ebefda5dc6bd0 | refs/heads/master | 2021-01-12T08:16:47.499444 | 2016-12-19T03:53:23 | 2016-12-19T03:53:23 | 76,528,375 | 0 | 0 | null | 2016-12-15T05:55:41 | 2016-12-15T05:55:41 | null | UTF-8 | R | false | false | 630 | r | assignment1.R | ## set Working Directory to access File
setwd("D:/Users/jbasley/Documents/R Programming/Exploratory Data Analysis")
library(lubridate)
## read, subset and clean the required data from the file
data <- read.table("exdata-data-household_power_consumption/household_power_consumption.txt", na.strings = "?",
... |
4b97a92cd38fc385e50e4987326b1c00232eaf56 | a614ccb2e893de94293328f794c702d8377810f5 | /climatechange/global.R | 9c7980c070be65ea0ade1b95636dae6482583437 | [] | no_license | zylstraa/climatechangeapp | 0f0f3d44f12e5a4fa5e4eb9d8a0fe55c36190972 | 75ea7e61d6626f52d117cb8f2f6c2d7140601e7f | refs/heads/main | 2023-02-22T17:48:50.011503 | 2021-01-29T00:56:41 | 2021-01-29T00:56:41 | 327,152,831 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,649 | r | global.R | library(shiny)
library(tidyverse)
library(dismo)
library(plotly)
library(rnaturalearth)
library(rgeos)
library(sf)
#Global temperature found at https://datahub.io/core/global-temp#data
global_temp <- read_csv('data/globaltempannual.csv')
global_tempmonth <- read_csv('data/global_monthly_tempanom.csv')
#Global CO2 le... |
d901b15c2bd2324f3ae0b5f9de76c3c5568d79d3 | 148215869261003c8d516d13d98a2418b938b398 | /simple linear regression assignment-4/emp_data.R | e78d5ab8918a7f03dd20748c66d52ec7a46d01e4 | [] | no_license | honeyjayachandran/SLREGRESSION | 92b78008507df1675bdb4708a8e57bb5a08b4984 | fc2b5dcb93bd52d62a36a96a3e80c3e638e4b7a1 | refs/heads/main | 2022-12-31T02:33:17.578231 | 2020-10-21T03:55:19 | 2020-10-21T03:55:19 | 305,902,301 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,480 | r | emp_data.R | # Load emp_data.csv dataset
library(readr)
emp_data <- read.csv("C:/Users/Sony/Downloads/simple linear regression assignment-4/emp_data.csv")
View(emp_data)
# Exploratory data analysis
summary(emp_data)
#Scatter plot
plot(emp_data$Salary_hike, emp_data$Churn_out_rate) # plot(X,Y)
?plot
attach(emp_data... |
8ff72709e10962d361c539aeed07cd23390643d7 | f123dbf9d574c04bd0e4599807c7f6c397d075b8 | /infToUn.R | f66a7a52f36578ced82917aeac395306949fe095 | [] | no_license | miniesta4/RScripts | 55b777555e0064861fa20d8be4a11bab628a8f42 | b6133b5535562dc0ee5eec04a93377a7f488df9f | refs/heads/master | 2021-01-25T09:53:45.213296 | 2019-09-05T09:58:16 | 2019-09-05T09:58:16 | 31,956,265 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 826 | r | infToUn.R | infToUn <- function(){
## Load library
library(xlsx)
## Read files
partes <- read.csv2("../files/20150415-PartesSubc.csv", colClasses = "character")
facturas <- read.csv2("../files/20150415-FacturasSubc.csv", colClasses = "character")
## Names
names(facturas) <- names(partes)
## Combine rows
... |
cf7aa465fd31749dbaa2be8f971c849c74eaf287 | f6eee4f24213e1c25b933198455884039e977855 | /man/get_timing_signal_1d.Rd | d20b967efa733b365c36b650b0dc9e60d84d9c0e | [] | no_license | ifrit98/transformR | 444b413a71b17561c088df41153a6a2f99d8bfa7 | ec251fada5ee818e498c23363166c2af99fca47f | refs/heads/master | 2020-09-12T05:37:50.034115 | 2019-11-25T03:21:44 | 2019-11-25T03:21:44 | 222,327,773 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,475 | rd | get_timing_signal_1d.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/positional-encodings.R
\name{get_timing_signal_1d}
\alias{get_timing_signal_1d}
\title{Gets a timing signal for a given length and number of channels}
\usage{
get_timing_signal_1d(
length,
channels,
min_timescale = 1,
max_timescale = ... |
48850ab5c7423d32fced0a199f5c64bf06bbe4a2 | a4683b136132a03b900eaf4f80164e74e15f013b | /man/octave.reader.Rd | 4358f8fc2c0be3d162436adabba0bd7f3fb723b3 | [] | no_license | johnmcdonnell/ProjectTemplate | 5be21714cb14d6e3229ed717d3732f29a59e17ad | dc848ceda38d036b4ff16bfcef1d550ec6fb84ce | refs/heads/master | 2021-01-17T07:38:02.346283 | 2012-04-14T18:49:33 | 2012-04-14T18:49:33 | 4,026,892 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 644 | rd | octave.reader.Rd | \name{octave.reader}
\alias{octave.reader}
\title{Read an Octave file with a .m file extension.}
\usage{
octave.reader(data.file, filename, variable.name)
}
\arguments{
\item{data.file}{The name of the data file to be read.}
\item{filename}{The path to the data set to be loaded.}
\item{variable.name}{The name... |
87bc6162a853aa4282393fcc1724e33e21b96387 | e6d065cf95d5c034b02df73579ed67ff8e802a5c | /tests/testthat/test-utils.R | b47fa4c86edaf8f0153391390c1ac0d52f56c5e5 | [
"MIT"
] | permissive | tylerlittlefield/mtg | 9e868f699535cc9047a8b17255b1aa130a8a03ff | e319a08ce292770bf867ca2f9d92b8c433aed8ee | refs/heads/master | 2023-06-08T09:42:21.272899 | 2019-01-11T21:49:23 | 2019-01-11T21:49:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 94 | r | test-utils.R | context("test-utils")
test_that("utils works", {
# dummy test
expect_equal(2 * 2, 4)
})
|
24363be4df8001aae37f8f79af54f918b3748844 | 283617b8337193c0c99cb09cc4eab7790f3fbd8f | /Plot4.R | 1a3300191f311d0ab979171d9294a38799cb921f | [] | no_license | Gabegao/ExData_Plotting1 | 7b1513031c98ebf485e7767d4bc655bb255075f3 | 1451806fa2483f68403e086705d367bee6e1ba1b | refs/heads/master | 2021-01-19T04:32:31.825443 | 2016-01-09T06:11:12 | 2016-01-09T06:11:12 | 49,243,509 | 0 | 0 | null | 2016-01-08T02:15:50 | 2016-01-08T02:15:49 | null | UTF-8 | R | false | false | 1,361 | r | Plot4.R | library(data.table)
## read data from file
data<-fread("household_power_consumption.txt", sep=";", header=TRUE, na.strings=c("NA","?"))
## convert from character to "Date" class
data$Date<- as.Date(data$Date, "%d/%m/%Y")
## pull out the subset data between 2007-02-01 and 2007-02-02
data<-subset(data, {Date >= "2007-0... |
f7a0a7de1770761a83e6f05c86a21cd2827db3c9 | 601b4921fe99514fc8400468a44c0fb4a7b298a3 | /R/DA_FDN2M2.R | 30fe96bc08c5f43caa2bbcf6f2de53b1bd76ff15 | [] | no_license | njuwill/SPPcomb | 20742148386ea5770f73088aaa80f427c8118ae0 | e0625b2219f3c8cf17175e8e5bcc068f5022c912 | refs/heads/master | 2021-05-01T23:17:05.107294 | 2018-02-09T21:51:04 | 2018-02-09T21:51:04 | 120,931,787 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,825 | r | DA_FDN2M2.R | #' Data Analysis of (N2,M2)
#'
#' The main function to solve the estimating equations constructed by (N2,M2). Since there is just one case data, no selection bias needed.
#'
#' @param realdata_covariates a list contains the following data matrics:
#' CASEZhat_2, CASEZhat_22, CONTZhat_2, CONTZhat_22
#' @par... |
75025fac5b29944c272f0899c8677c0cc0e9070d | 21abf7d633fc8e7ac023496696fd54c241f11726 | /R/hubway-package.r | 00877745f0a5d597f0fcbb092dbec08c6cdb7fb8 | [] | no_license | hrbrmstr/hubway | d3f3233802c5ec9a25c4f6d8042948191c108581 | cd8082fcab1bc2423bbe3fc801103cc5b56fd06e | refs/heads/master | 2021-01-19T02:30:38.655457 | 2016-07-14T19:33:10 | 2016-07-14T19:33:10 | 63,364,008 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 267 | r | hubway-package.r | #' Tools to Work with the 'Hubway' 'API'
#' @name hubway
#' @docType package
#' @author Bob Rudis (@@hrbrmstr)
#' @importFrom dplyr filter left_join
#' @importFrom httr GET content stop_for_status
#' @importFrom tibble as_tibble
#' @importFrom jsonlite fromJSON
NULL
|
ec8828ee6e858da23f3a6bd73bdcab3110abddd4 | 29c921acdfa314d915965c785ca04cbc681ce2e4 | /R/read_gluc_all.R | 4bd37a6ee08a651b7ce5503bd8a83bddfcddc865 | [] | no_license | muschellij2/gluc | 6a9b18b1c8d020ae7f21a4d1de4d60a573b263f4 | 3fdc469701b31411b5cddbee13027dcb77654871 | refs/heads/master | 2021-01-19T01:18:48.697687 | 2020-02-27T18:15:26 | 2020-02-27T18:15:26 | 87,238,467 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 793 | r | read_gluc_all.R | #' @title Read All Glucose Sheets from file
#' @description A global function to read the different types of glucose
#' data from an xlsx
#'
#' @param path paths of xlsx files
#' @param type type of file to read, defaults to all
#' @param verbose print diagnostic messages
#' @param ... additional argument to send to th... |
8ef20939ed97239ac32d6686e6c3ed872e012d4e | 7635cad41c9014b4f403c8634761fcb08a3ba28a | /man/momentS.Rd | 06f1fc6c4ea76de831fde532e1876ca890a74318 | [] | no_license | CFWP/rags2ridges | 4cf70eac020ac5141f6cafd7398bb335643d6606 | 04027a52492eee0e4aa3ac2e5e508c5c4c266c80 | refs/heads/master | 2022-05-26T08:35:46.286445 | 2022-04-30T08:02:09 | 2022-04-30T08:02:09 | 29,291,369 | 5 | 3 | null | 2017-09-04T14:59:35 | 2015-01-15T10:00:07 | R | UTF-8 | R | false | true | 1,674 | rd | momentS.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rags2ridges.R
\name{momentS}
\alias{momentS}
\title{Moments of the sample covariance matrix.}
\usage{
momentS(Sigma, shape, moment = 1)
}
\arguments{
\item{Sigma}{Positive-definite \code{matrix}, the scale parameter
\eqn{\mathbf{\Sigma}} of t... |
f947b93c19678d60a19a02db1b6e5d27f57723b9 | 2d35e1f947c0ba5e45153ddc0ddd8caded605125 | /app.R | e5466c090a9b74bf726cede5ec914b46dfbc128a | [
"MIT"
] | permissive | jjvhab/UHD_examineR | 62b1ec7f0f5b3926df07aa7866e17c13de31afb7 | 5dc8e72882b2dfe7ca3c2a74296f4e514b1f612a | refs/heads/master | 2020-07-13T15:55:57.496366 | 2019-11-14T13:34:28 | 2019-11-14T13:34:28 | 205,110,175 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,162 | r | app.R | # UHD examineR v1.0.2 by V.Haburaj
#
# Load and inspect hyperspectral recordings captured with a
# Cubert UHD258 snapshot camera. The imported raster file is
# plotted as RGB image. The raster can be manipulated
# (spatial and spectral filters). By selecting an area of
# interest in the plotted raster, a plot of the me... |
e1ddff197f574dd00adb613e367cad6ab593c48a | 4dced39355fb06b47320044cb55a8af13f4a6f1a | /plot2.R | 928df0cd3d5c1eace1ac662c12b5e3b4203663ed | [] | no_license | Rabun0510/ExData_Plotting1 | c025194e9072b5933a6dd25014b83404dd9e60f8 | 76e83190cc23444503d792fc7db849edb3db2903 | refs/heads/master | 2020-12-28T21:05:47.627045 | 2015-04-08T19:56:27 | 2015-04-08T19:56:27 | 33,628,820 | 0 | 0 | null | 2015-04-08T19:53:45 | 2015-04-08T19:53:44 | null | UTF-8 | R | false | false | 1,071 | r | plot2.R | # Exdata-013 project 1 plot 2
#Read the original data
originalData <- read.table("./data/household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?", stringsAsFactors = FALSE)
#Add a column of DateTime that appends the date and time into one POSIXlt object
elecData <- cbind("DateTime" = strptime(paste... |
ae971cccf9c6211eaa09b18749bb6f4002feb333 | 3f0ab525141b98db333e50e8dd8e344f3fb0704c | /Code/R Processing Code/Tracker_Updater.R | 100ca24d10a723add094a7fbbcf1696f402a496f | [] | no_license | anwarsk/IU-Bus-Transit | 09c2c4280a5d4cce246855b6a1be10abf1674cb4 | 6bed90828b47657f503bac6832f57fab3045c920 | refs/heads/master | 2021-01-17T16:50:22.506538 | 2016-01-21T23:57:33 | 2016-01-21T23:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,746 | r | Tracker_Updater.R |
dataTracker <- read.csv("D:/Bus_Data/Tracker_X.csv")
stopData <- read.csv("D:/Bus_Data/RouteToStopMap.csv")
stopData <- subset.data.frame(stopData,stopData$Route == "X")
dT <- merge(dataTracker, stopData[, c("Stop_ID", "StopIndex", "Name")], by.x = "ToStop_Name", by.y = "Name")
dT$StopCombo <- paste(dT$From... |
0d69a59e494ede711337baf395604051a8b028be | a500013b7a3733f72d747082e10801e98567097a | /archived_script/figure_response_time_fascet.R | ae2b7a91f0c2615c9c77cc03a0b6b6553cdaf78e | [] | no_license | robcrystalornelas/impacts_systematic_review | 4ff913c79e3f7b14d6ba79f6cc4f9e612fe68c29 | 9ed0f457f72bad9fb7de420bb7a9744dd9ada667 | refs/heads/master | 2022-03-18T14:40:31.648205 | 2019-11-20T00:19:12 | 2019-11-20T00:19:12 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,726 | r | figure_response_time_fascet.R | ## READ IN DATA ####
source("~/Desktop/Impacts Systematic Review/scripts/impacts_systematic_review/clean_raw_data.R")
## LOAD PACKAGES ####
library(dplyr)
library(ggplot2)
library(ggthemes)
## ORGANIZE DATA ####
response_time_data <- select(raw_data, publicationyear, ecosystem,invasivespeciestaxa,firstyeardetected,fi... |
36dd29e3e33f632602514911f519d1707e2186b0 | 070a7acc8806d202f518ad262d6ed0bbc7c4a09e | /70_crawling/RSelenium_google_news.R | b2ea028007df00ea409f30729bfcca6388b12b64 | [] | no_license | alphamega89/R_edu | 1136224d99b1d07444c832ca1df7add781a2adb3 | 8fc59126d215cf513a27e0bd379b0a4ec4b36028 | refs/heads/master | 2020-06-03T17:25:08.761252 | 2019-07-04T06:32:10 | 2019-07-04T06:32:10 | 191,666,670 | 0 | 0 | null | 2019-06-13T01:10:55 | 2019-06-13T01:10:55 | null | UTF-8 | R | false | false | 1,565 | r | RSelenium_google_news.R | options(stringsAsFactors = FALSE)
library("rvest")
library("RSelenium")
url = "google_news_url"
port_no = sample(2000:8000, size = 1)
dd = rsDriver(port = port_no, browser = "chrome", chromever = "74.0.3729.6")
dd_client = dd$client
dd_client$navigate(url)
tx_base = dd_client$getPageSource()
tx_base = read_html(tx_b... |
a352ce068f11c8ff22076f380c688f53b8bb1bb1 | d37601daca4cf2f6856136c8e96105083313c2f9 | /R_12_VectOps_Prac.R | 9f85935ff959da61a123f00c044daf93ea162e0c | [] | no_license | ShivKumarBS/R_Udemy | ad0c73d2d8fb85fa7300d5a40521e942a5b48749 | b04bd902523093ae663701e9fa078777652cfbb9 | refs/heads/master | 2021-07-12T22:44:32.759458 | 2017-10-16T12:51:23 | 2017-10-16T12:51:23 | 107,125,729 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 145 | r | R_12_VectOps_Prac.R | a <- c(4,5,5,12,1,53,56,6,74,0)
b<-c(5,2,6,3,6,7,3,6,7,8)
length(a)
length(b)
c<-a+b
d<-a-b
e<-a>b
f<-a<b
g<-a/b
a
b
c
d
e
f
g |
d9762aa63c13dfb98fd427b34d16b4e624a115c3 | ea49e39c5ab2913fc372e3d0bc3292e4ae235d69 | /man/flexdashboard-package.Rd | 7ad6f982b2d425bc7b3bfd0756d31f7a2fcfef8a | [] | no_license | zerononee/flexdashboard | 5ba1af4fce665ede679e0b463406dbde7059d328 | bb9bd147faa94022cfee1aa07cf7abc7f56922fa | refs/heads/master | 2023-08-13T04:44:07.692026 | 2021-10-14T14:27:59 | 2021-10-14T14:27:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,476 | rd | flexdashboard-package.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/package.R
\docType{package}
\name{flexdashboard-package}
\alias{flexdashboard}
\alias{flexdashboard-package}
\title{flexdashboard: Interactive dashboards for R}
\description{
Create interactive dashboards using \pkg{rmarkdown}.
}
\details{
\i... |
df825aaaa288d9a8c88e15cc79a517d9023c40c3 | 9fda055e87c7bdce1b194d17500a828a5946abe9 | /pipelines/06_add_dr/add_dr_COMBAT.R | d23a66a85832aa37a87dd841fb33f91463dc373b | [
"MIT"
] | permissive | haniffalab/Single-cell-RNAseq-data-analysis-bundle | 8d9ccaf43415c7b160fbe4aee04d57a3d7af91e1 | 5de2e3e2d174c4252f374629fe4780072eaf2f84 | refs/heads/master | 2023-05-24T00:26:54.327013 | 2022-05-04T13:51:08 | 2022-05-04T13:51:08 | 181,858,413 | 12 | 12 | null | null | null | null | UTF-8 | R | false | false | 6,262 | r | add_dr_COMBAT.R | args = commandArgs(trailingOnly=T)
args = paste(args, collapse = "")
args = unlist(strsplit(args, ";"))
arguments.list = "
seurat.addr.arg = args[1]
do.normalize.arg = args[2]
add.PCA.arg = args[3]
add.TSNE.arg = args[4]
add.UMAP.arg = args[5]
add.FDG.arg = args[6]
save.dr.arg = args[7]
"
expe... |
c955dd09d7235107369f56961bc0ffe93a58b44c | e6fe0284ac73cb98b1ffd4cd4831bd65d43bd546 | /FraminghamHeartStudy(Logistic Regression).R | 048a57e4d690af4c31a3a4a0462c468d883ccc51 | [] | no_license | zahidmak/dataAnalysis | 08df3707647e6aa08721d0827f288e980028f90d | 88814f11ba41f07275be26d1330c0b86219a5bc3 | refs/heads/master | 2021-04-30T22:37:07.599997 | 2016-10-17T02:25:25 | 2016-10-17T02:25:25 | 71,092,579 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 570 | r | FraminghamHeartStudy(Logistic Regression).R | framingham=read.csv("C:/Users/Zahid/Downloads/framingham.csv")
str(framingham)
library("caTools")
set.seed(1000)
split=sample.split(framingham$TenYearCHD, SplitRatio=0.65)
train=subset(framingham, split==TRUE)
test=subset(framingham, split==FALSE)
framinghamLog=glm(TenYearCHD ~ .,data=train, family=binomial)
summary(fr... |
37c181841475df08ee1934ed73fd35ca1c8a3606 | ffce1eae6403512dd96e15d50adb19ad79e800e7 | /man/rct.Rd | 90f6194875f33aae8d90d289b0e297d55191a491 | [] | no_license | willdebras/rctheatre | 0ec1141c262a3ba38a4e7d9ea3adca1b5ecad140 | 7bdb8523b99ff77c545804058577ca42191c658a | refs/heads/master | 2020-06-17T09:39:28.089170 | 2019-07-09T21:05:31 | 2019-07-09T21:05:31 | 195,884,107 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,991 | rd | rct.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rct.R
\name{rct}
\alias{rct}
\title{rct function}
\usage{
rct(cases, type = "square", border = "#1239DC", xlim = c(0, 1),
ylim = c(0, 1), fill = NULL, xlab = NULL, ylab = "",
lab.cex = 1, seed = NULL, plot.new = TRUE, label = FALSE,
lab... |
3978b8a1f99feb0fa89d171e5a9bca1d80166a02 | 6bb3dc3d43ee66307c1ed6f5940141be0e481936 | /R/man/predict_model.easy_glinternet.Rd | 8dfd77050737051b322d46570f42f8cd03d04610 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | CCS-Lab/easyml | 7f41db72122f5de23f75381bcc03e13d65536c1b | c334d1174ee5795734f900d2cfa2836b76834bc9 | refs/heads/master | 2023-06-12T07:09:22.847009 | 2023-06-02T05:27:51 | 2023-06-02T05:27:51 | 71,721,801 | 40 | 19 | NOASSERTION | 2022-06-21T21:11:33 | 2016-10-23T18:38:28 | R | UTF-8 | R | false | true | 659 | rd | predict_model.easy_glinternet.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glinternet.R
\name{predict_model.easy_glinternet}
\alias{predict_model.easy_glinternet}
\title{Predict values for a penalized regression model with interactions.}
\usage{
\method{predict_model}{easy_glinternet}(object, newx = NULL)
}
\argumen... |
63d87f382abb3a1662aa51a550a8e841f5d15f43 | 6682b2abe94c8ddc3bc6d8d0d82f86182026b554 | /data_cleanup.r | d940b7d26bf8dd919e7337e5471dc6b06f98c8a5 | [
"CC-BY-4.0"
] | permissive | ikurecic/pds2020_lockdowns | 75663097f6858f7b2776885d4649a4ddf711df99 | e836c7a56c9fd3fff14dbc1e1aa5de95b1f421c6 | refs/heads/main | 2023-04-16T07:58:15.260122 | 2022-08-05T09:29:16 | 2022-08-05T09:29:16 | 521,168,591 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,652 | r | data_cleanup.r | library(tidyverse)
# deaths are cumulative
deaths_by_date <- "https://github.com/CSSEGISandData/COVID-19/blob/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_deaths_US.csv?raw=true" %>%
read_csv() %>%
rename(State=Province_State) %>%
gather('1/22/20':last_col(), key="date", value="d... |
268c687c95257f84641eaff64d8156454bfbf845 | 7ec2982f972a6e2874106da57d0318a06b806390 | /Coffee_RR.R | 192dffe2ccd65f5ebf2482db72b06fec08cbfb1d | [
"MIT"
] | permissive | jamesjin63/UkBio-Bank-BC | 65d7d21151b5cacddbfcaaa32658467dab592857 | fe097bc396b0600b5d550c6c1ccc11777ec14b9c | refs/heads/main | 2023-08-30T09:45:41.876473 | 2021-11-06T08:44:31 | 2021-11-06T08:44:31 | 425,195,928 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,959 | r | Coffee_RR.R | library(tidyverse)
library(doParallel)
rm(list=ls())
load("~/Desktop/PhDwork/Bricks/Lina/UKB-drink/bd_drink.Rdata")
load("~/Desktop/PhDwork/Bricks/Lina/UKB-drink/df_coffee_tea.Rdata")
load("~/Desktop/PhDwork/Bricks/Lina/UKB-drink/bd_enroll.Rdata")
load("~/Desktop/PhDwork/Bricks/Lina/UKB-drink/bd_followup.Rdata")
# x=bd... |
7413d93138861e8773f1690a278cd410f9d69a6c | db78542ec83aa66cb8a543a94463bb99c58151e7 | /01 BASICS/307 Matrix Selections.r | e6eb6adab84b22e589167a55411360edd6e83ea4 | [] | no_license | chunhuayu/R-Learning | 59ee2567fb910c5124492da84603069ee5b9e2f1 | 36ede3bb562dca07029a8411e230b970e69f22e5 | refs/heads/master | 2020-05-09T14:59:05.094442 | 2019-06-29T03:06:52 | 2019-06-29T03:06:52 | 181,216,574 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,953 | r | 307 Matrix Selections.r | ### Selection of matrix elements
# Similar to vectors, you can use the square brackets [ ] to select one or multiple elements from a matrix.
# Whereas vectors have one dimension, matrices have two dimensions.
# You should therefore use a comma to separate the rows you want to select from the columns. For example:
# ... |
5501895778916e56774141ff2db44600776ad967 | e666d8e06b29ce5bb4e4b878517c748bfa65099d | /man/graph.mult.scaling.Rd | e923064b91e98e9bfad85ca98fd74daf3748fef1 | [] | no_license | cran/statGraph | fd264831034dc287dbc9dca79c6c787e4d730026 | 3d2f65b73696edf483d0bf3dae8223915df2b8bd | refs/heads/master | 2021-07-09T12:10:21.174424 | 2021-05-19T06:00:06 | 2021-05-19T06:00:06 | 89,013,842 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,947 | rd | graph.mult.scaling.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/statGraph.R
\name{graph.mult.scaling}
\alias{graph.mult.scaling}
\title{Multidimensional scaling of graphs}
\usage{
graph.mult.scaling(
G,
plot = TRUE,
bandwidth = "Silverman",
type = "n",
main = "",
...
)
}
\arguments{
\item{G}{a... |
6e93faa069842ea8d21f69e57de044cbbfc64dab | d20145e080798319e0028a4c9d8851f619285c29 | /ch05/R/soccer.R | 5866fb18d4fbac396abbcb1e6d615d16d22f9bf6 | [] | no_license | friendly/VCDR | da441b8306969fd6469a3bbc6a4475e028c61e29 | 818156ee0a26943a656ae915d924773c87654cec | refs/heads/master | 2023-02-18T08:40:28.634897 | 2014-12-05T13:24:55 | 2014-12-05T13:24:55 | 16,708,002 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 591 | r | soccer.R | data("UKSoccer", package="vcd")
names(dimnames(UKSoccer)) <- paste(names(dimnames(UKSoccer)), "Goals")
chisq.test(UKSoccer)
CMHtest(UKSoccer)
mosaic(UKSoccer, shade=TRUE)
set.seed(1234)
mosaic(UKSoccer, gp=shading_max, labeling=labeling_residuals, digits=2)
BL1995 <- xtabs(~ HomeGoals + AwayGoals, data=Bundesliga,... |
beeec0f3a8bb8c7c9a886cc1c53f59daca5b9de1 | 330780a5bba7ff8d032a34339508d8e8a0b189fa | /cachematrix.R | 97a601d4bfd2aec5377221fe9d5188c925359233 | [] | no_license | rajkumar0101/ProgrammingAssignment2 | 48101ef1cbe7b1c13547f79d554a50b4f71283d6 | 81a787e557e2ce6392a9631942bb95cbf2ad48a1 | refs/heads/master | 2022-11-28T10:53:17.253408 | 2020-06-29T03:01:21 | 2020-06-29T03:01:21 | 274,742,135 | 0 | 0 | null | 2020-06-24T18:32:15 | 2020-06-24T18:32:14 | null | UTF-8 | R | false | false | 1,162 | r | cachematrix.R | ## This script provides two functions makeCacheMatrix() and cacheSolve()
## that cache the inverse of a matrix.
## The first function, makeCacheMatrix() creates a special "matrix",
## which is really a list containing a function to
## 1. set the value of the matrix
## 2. get the value of the matrix
## 3. set the v... |
648059baad24a32059da306ceb37e86051b1f79e | 1db3390483611dad623d984fc1d18c277af3ed4e | /man/hpcc.rollup.Rd | 4981475ba6c2dc40b80a76fed6da9c7e983d4977 | [] | no_license | Saulus/rHpcc | 7105a535b4b62c736625c74175114ea61e7aa30c | 5fef5811fe0a63555a66e30c05bb4ffef46ad7ce | refs/heads/master | 2021-01-14T14:10:50.315049 | 2014-11-24T09:17:54 | 2014-11-24T09:17:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,512 | rd | hpcc.rollup.Rd | \name{hpcc.rollup}
\alias{hpcc.rollup}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
title
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
hpcc.rollup(recordset, condition = NULL, transfunc, GROUPED = FALSE, out.dataframe, fieldList = NULL, local... |
cea3dfed89ecb27832578a861d80e4fe258a881d | 1721a042328b7035f6a6c401d9d8ba3edc538dce | /4_LI_Subset_acStrat/DFA_LocalInfo_subsetAcstrat.R | 8a5a779d90bb3d0b2626fd5afbb1ff1d1af8f051 | [] | no_license | ftheunissen/Woodpecker | dbfd1bb15212574b8083543ef465c51f768954f2 | 0521927adfbf73ecdd4dcf4e3484ae949a1858b7 | refs/heads/master | 2022-10-16T10:59:57.410738 | 2020-06-17T16:53:08 | 2020-06-17T16:53:08 | 273,028,370 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,900 | r | DFA_LocalInfo_subsetAcstrat.R | library(MASS)
library(car)
library(ggplot2)
library(FactoMineR)
library(dplyr)
library(lme4)
setwd("../4_LI_Subset_acStrat/")
rm(list=ls())#empty the workspace
# Read the z-scored data
data=read.table(file="AcousticsFINAL_Zscored.csv", header=T, sep=",",dec=".")
(nrow(data)) # Number of measurements
(ncol(data)) ... |
fb268da9f1ad079ac08848904d14c89d1344e857 | c04bba07f70461390f14c86512a9ca5433feb74d | /server/rexplorer_api.R | fabe48aee0cf3d1aa1d2048f69cb948b914119ab | [] | no_license | nickmplay/RExplorer | def62ac27b9f8982fa253456e731ab3a810c0b06 | 2793c0f3c85624370b5e5cc85036bc5a784126d2 | refs/heads/main | 2023-04-17T21:13:45.260075 | 2021-04-25T18:53:58 | 2021-04-25T18:53:58 | 365,001,252 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,450 | r | rexplorer_api.R | # rexplorer_api.R
#' @filter cors
cors <- function(req, res) {
res$setHeader("Access-Control-Allow-Origin", "*")
if (req$REQUEST_METHOD == "OPTIONS") {
res$setHeader("Access-Control-Allow-Methods","*")
res$setHeader("Access-Control-Allow-Headers", req$HTTP_ACCESS_CONTROL_REQUEST_HEADERS)
res$sta... |
90519895f565ce2ff6fd532b7d3f316f2af6f231 | 5edf3ebc52f12c8b7ed4dbc1aa5f97a8e8929605 | /tests/json_validation.R | 73e170f95ac5bc8c04d78d3b9359ef50c414d053 | [] | no_license | lukaszbrzozowski/CaseStudies2019S | 15507fa459f195d485dd8a6cef944a4c073a92b6 | 2e840b9ddcc2ba1784c8aba7f8d2e85f5e503232 | refs/heads/master | 2020-04-24T04:22:28.141582 | 2019-06-12T17:23:17 | 2019-06-12T17:23:17 | 171,700,054 | 1 | 0 | null | 2019-02-20T15:39:02 | 2019-02-20T15:39:02 | null | UTF-8 | R | false | false | 3,432 | r | json_validation.R | library(testthat)
library(jsonlite)
library(readr)
json_files <- list.files(pattern = "*.json$", recursive = TRUE)
test_that("validate jsons", {
for(json in json_files){
json_to_validate <- read_file(json)
is_json_valid <- validate(json_to_validate)
if(!is_json_valid) print(json)
expect_true(is_jso... |
04bba9d245ac1a5db473233410aab5d3f470a8cd | f89f384319eb44162ef6033d6ee2715e2cdd04be | /tests/testthat.R | 155e75e3a90082a753ce708588999a8a6cbcb04e | [
"MIT"
] | permissive | Sage-Bionetworks/climbr | 8d3ed1a931950bdae866a1527c1b7ba842b65807 | c16735ba20733037c650db5d450f70b184d438f9 | refs/heads/master | 2021-07-23T17:30:46.002594 | 2020-04-13T22:22:37 | 2020-04-13T22:22:37 | 135,639,698 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 56 | r | testthat.R | library(testthat)
library(climbr)
test_check("climbr")
|
2b1bf31cd02cf01389fecb565a322cb6c7078ed2 | 4ace82a4ef70dc973744392cfea7fd3e7bbf2a68 | /man/redis_logger.Rd | ad96b978332d49e14d5d98c686be19e00408e2f5 | [] | no_license | mlkornexl/easyRedis | dd183c6b64933d370e392428c558cf61af611d8e | 67846581911fa06fe6d38aeaf0d9e80c21f16612 | refs/heads/master | 2021-09-13T18:40:00.782660 | 2018-05-03T07:09:10 | 2018-05-03T07:09:10 | 106,254,110 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,985 | rd | redis_logger.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/logger.R
\name{redis_logger}
\alias{redis_logger}
\alias{layout.redis}
\alias{appender.redis}
\alias{redis_logger}
\title{Logging to Redis Database}
\usage{
layout.redis(ApplicationId, ApplicationInstanceId)
appender.redis(channel... |
694f51c859360a62bdc87db135f2f7834eaa5d5d | 184f8a96fac73dd74276879bd59a46e0dcc7efe9 | /SimulateEpidemic.R | f81a98f65ab799d333ec720bb5886213ef911db3 | [
"MIT"
] | permissive | FistOfHit/DocNet | 6cee527e371796fdf44a64f3cb7c78e200c35ebe | 4080793cd02223b8fe6250a7fba01a8ae1996a50 | refs/heads/master | 2021-04-03T06:23:38.884062 | 2018-03-12T11:53:23 | 2018-03-12T11:53:23 | 124,815,407 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,203 | r | SimulateEpidemic.R | # Script to simulate an "epidemic" of information spreading across the
# docnet network.
# Initialise variables and storage
sim_time = 500
num_init_infec = 20
infec_prone = matrix(0, 2, 242)
infec_prone[1, ] = c(1:242)
indexes = 242*sim_time - c(241:0)
# Finding random nodes with AdoptionDate <= 5
early_docs = V(tem... |
819527d6438b7afd99d0a2330106cde1698f7c63 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/IsoSpecR/tests/test-numerical-stability.R | c634185e52537092f4ab903f7811f87f0a1fa64d | [] | 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 | 871 | r | test-numerical-stability.R | context("Numerical stability")
test_that("IsoSpecR calculates correctly full isotopic distributions.", {
expect_equal(nrow(IsoSpecify(c(C=100, H=202), 1)), 101*203)
expect_equal(nrow(IsoSpecify(c(C=100, H=202, S=5), 1)), 101*203*choose(4+5-1, 5))
expect_equal(nrow(IsoSpecify(c(O=100, N=10, S=6), 1)), choose(100+... |
de1f07cb2b5863b89053a6d7699f26f58bad8fd2 | 66dfe4a46f879dcca53b1f828b68e3ecfa5c988f | /R/build_pre.R | e0e9e8600d5643086effd50fd876d67df6d66be5 | [
"CC-BY-4.0"
] | permissive | christiandudel/covid_age | b19313fe0284e967a233b2cdc2f64a0958ee34a4 | ea504f6080a82a727abca2184257d2737ee2dd2e | refs/heads/master | 2021-06-12T19:59:57.830679 | 2020-07-08T10:43:37 | 2020-07-08T10:43:37 | 254,386,370 | 0 | 1 | null | 2020-04-09T13:59:03 | 2020-04-09T13:59:03 | null | UTF-8 | R | false | false | 1,274 | r | build_pre.R |
library(here)
change_here <- function(new_path){
new_root <- here:::.root_env
new_root$f <- function(...){file.path(new_path, ...)}
assignInNamespace(".root_env", new_root, ns = "here")
}
change_here("C:/Users/riffe/Documents/covid_age")
startup::startup()
repo <- git2r::repository(here())
#init()
git2r::... |
05a2ac093f94eb9dec5dcbc6fa607a9b28eadce9 | 7948b2516f63ea703e944d6a4666418e6cb16690 | /ui.R | 31a366a0e0482a716546b2d8724cd72f00d0c8cd | [] | no_license | ClaymoreAlex/BMI-Calculator | 224c11560755dcead0deb03a01309fa3d20ef20f | 2a166c53f2f4d6a5f3bb3520cfa9fc9c3a6c49de | refs/heads/master | 2021-01-01T05:36:35.125630 | 2015-09-20T02:26:34 | 2015-09-20T02:26:34 | 42,797,007 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 919 | r | ui.R | library(shiny)
# Define UI for application that determines BMI
shinyUI(pageWithSidebar
(
# Application title
headerPanel("Body Mass Index Calculator"),
sidebarPanel(
h4('This application determines your body mass index and corresponding weight status category based upon you height and weight.'),
... |
60715b60897b1a31eb32177a684120fca5afb66c | b1d40c1ea78f35f2912b6300ee6e8cdae10bac3c | /Shiny_Pokemon.R | 18a4c2cf4352e294811abd6eb521c2b81e4ac7c3 | [] | no_license | seanwoww/bios611_project1 | 613efa1682e9849bbb45872a9b199bffc112258e | 36def6b27d19943b1ad1b425e88969b31ae3d5ca | refs/heads/master | 2023-01-20T10:42:01.238212 | 2020-11-17T15:05:48 | 2020-11-17T15:05:48 | 290,349,304 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,146 | r | Shiny_Pokemon.R | library(shiny)
library(tidyverse)
library(plotly)
args <- commandArgs(trailingOnly=T);
port <- as.numeric(args[[1]]);
library(Rtsne)
pt <- read_csv("derived_data/pokemon_tidy.csv")
py <- pt %>% group_by(type1) %>% select(.,attack, defense, sp_attack, sp_defense, speed, hp,name)
fitt <- Rtsne(py %>% select(.,atta... |
f3ff3c310462e43dd836bf8c52a6b2607a5d7b8f | f57bdf4e211ad7984fb5005883ae4d116c8f2e92 | /R/relatednessCoeff.R | 692ba5104b20617ea4e98107931dd04722f9485a | [] | no_license | cran/paramlink | 70d2e3776063411628bd5b5663a408737886d040 | 8af1f6544e37d20717829b5fbf7286fd303c68cc | refs/heads/master | 2022-05-22T10:39:49.492616 | 2022-04-15T07:10:02 | 2022-04-15T07:10:02 | 17,698,214 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,792 | r | relatednessCoeff.R | #' Relatedness coefficients
#'
#' Computes inbreeding coefficients for all pedigree members, and Jacquard's
#' condensed identity coefficients for any pair of members. These are simple
#' wrappers for functions in other packages or external programs.
#'
#' Both \code{inbreeding} and \code{kinship_coefs} are thin ... |
5959e691d8fd04083faa51a663df51590d2332d7 | 0350ddd55d5bf5b6922a27fbd06e1aa9e83d8af1 | /Machine Learning A-Z - Hands-On Python & R Data Science/Regression/Random Forest Regression/random_forest_regression.R | 678e434e0b1518203349d0b0ed640ad9f8d9bfee | [] | no_license | jacobskr/ML_Python | 7a06b14c71a38b6fc148dd745a91abeb8dae833d | a1e18b7e2c9fc1f18e088cc73f0408ac746a98ef | refs/heads/master | 2020-04-26T00:40:34.719269 | 2019-05-05T02:59:31 | 2019-05-05T02:59:31 | 173,185,834 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 952 | r | random_forest_regression.R | # Random Forest Regression
# Importing the dataset
dataset = read.csv('Data\\Position_Salaries.csv')
dataset = dataset[2:3]
# Fitting the Random Forest Regression Model to the dataset
library(randomForest)
set.seed(1234)
regressor = randomForest(x = dataset[1], # Need to give x as a dataframe (that is what [] does)
... |
46e640285b19c17ff83643548db9dbd0d127c188 | aa9ab3be63d4388c12019d25f0c925677d22fd3e | /IPL-Match Prediction/MissingPlayerInfo.R | 306aef151b7b8ffee75c37c877f6760d36ca7c5c | [] | no_license | SujathaSubramanian/Projects | da05a1b20d06073605dacf07e869a949e308ac4d | d09fa21c5332c96c0bbfb6b5513d2e26883ae838 | refs/heads/master | 2020-06-11T19:24:48.949136 | 2017-04-21T10:11:31 | 2017-04-21T10:11:31 | 75,627,992 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,253 | r | MissingPlayerInfo.R | trim <- function( x ) {
gsub("(^[[:space:]]+|[[:space:]]+$)", "", x)
}
PlayersData = read.xlsx("PlayersData.xlsx",1,stringsAsFactors=FALSE)
str(PlayersData)
unique(PlayersData$PlayerName)
players = read.xlsx("PastTeamData.xls", sheetName = "IPL Team Data")
# Remove the withdrawn players from the player list
players... |
4af673ddf408cdcf756fe56f4929f4cebc443b7b | 4aa506e3fbbbac480a1a91e97f69e886eb273148 | /ScoutSujyot_Inclass2.r | 8b1425014f830483dcb767cace4525d8b96f46d7 | [] | no_license | msujyot/CMDA | dd44e46a76ce07d34cdc8d2b27522710d72eb905 | b4c23dfb70b503aa48285d21179daa52669be56e | refs/heads/master | 2016-09-05T12:19:17.361821 | 2014-09-22T20:59:54 | 2014-09-22T20:59:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,233 | r | ScoutSujyot_Inclass2.r | # In class assignment #2
# Scout (Mugdha) Sujyot
getwd()
setwd("C:\\Users\\Scout\\Desktop\\School\\CS 3654\\CMDA")
#The health insurance customer data
load('exampleData.rData')
#Summary statistics
summary(custdata) #for the entire data frame
summary(custdata$is.employed) # We have 325 NA's in the "is emplo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.