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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6f62c788844806ab2bf127f6500c1e993461ca9c | 3a153e714918af3684d9341d250089576e727b21 | /workflow/Code/resamp_analysis.R | f357a0fd5678922da89a57e56d94407992b65352 | [] | no_license | SarahVal/geb_text_class_2020 | 434a6ded390805a70682616667111b08d5fafa1c | 64206d7759df7af7b1bc37ff65e56e78f8391438 | refs/heads/master | 2023-03-23T23:51:33.990376 | 2020-10-09T12:39:43 | 2020-10-09T12:39:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,068 | r | resamp_analysis.R | ####
# R script for analysing the AUC scores etc of the resampled models
####
# Clear environment
rm(list = ls())
graphics.off()
# Load packages
# cvAUC
require(cvAUC)
# H measure
require(hmeasure)
# ROCR
require(ROCR)
# ggplot
require(ggplot2)
# Functions
# Function to convert string of numbers to vector
str_to_vec... |
20c7677981f121ec8649f65816289b6c799064f1 | 63d65462159caec758526256b242350653bc6c95 | /7_1_21_voltage.R | 0c70fc5d8de1ce14b3d798a5f8c7de1928f6f8e2 | [] | no_license | foliva3/buckthorn_sap_flux | a2db03cbf939a990ea1d417a9b2d12ab23f0a763 | ee734385708b818cebc891277af85d2b521da83f | refs/heads/main | 2023-06-28T07:41:18.480466 | 2021-07-20T13:55:13 | 2021-07-20T13:55:13 | 381,122,923 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 808 | r | 7_1_21_voltage.R | library(lubridate)
library(ggplot2)
datav <- read.csv("K:\\Environmental_Studies\\hkropp\\Data\\campus\\buckthorn\\sapflux\\campbell\\07_01_2021\\Sapflow_TableTC.dat",
skip = 4, header = FALSE, na.strings = "NAN")
tablev <- datav[,c(1,165:166)]
colnames(tablev) <- c("date","Htr1", "Htr2")
datav$date <... |
028452f4846650245c578305367c123753f4fd01 | 679ad602f16cfb52ff7ca24264c51c19a063eb3c | /man/setTest.Rd | 5418cac1846e204961d2b0bc38d3a2bee2d84fbf | [] | no_license | mitra-ep/rSEA | cd7cde7f0691507a8a3e8b30eb78f3120a2faf36 | 20c9a545781daef94c119fccb1db66bdb37dbbbc | refs/heads/master | 2021-10-25T05:27:09.743107 | 2021-10-17T19:59:20 | 2021-10-17T19:59:20 | 213,402,082 | 0 | 1 | null | 2021-10-17T19:59:20 | 2019-10-07T14:14:43 | R | UTF-8 | R | false | true | 2,661 | rd | setTest.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/settest.R
\name{setTest}
\alias{setTest}
\title{setTest}
\usage{
setTest(pvalue, featureIDs, data, set, testype, testvalue)
}
\arguments{
\item{pvalue}{The vector of p-values. It can be the name of the covariate representing the Vector of
raw... |
71ae15663b6a6f00506e94b503f7e8b06d550dfe | 8dbe9cebc5603e7a05de12dc997986468c431563 | /create_human.R | 0c96b3c3a3f512530d3e8663694afcab18e36627 | [] | no_license | ottoy91/IODS-project | ac1bbb68abcd7aee6ef1246180632c3cb83bd9d4 | 4994bc33d7fc2851cfc86ac26bb879b736098774 | refs/heads/master | 2020-04-05T15:46:10.330083 | 2018-12-09T16:58:19 | 2018-12-09T16:58:19 | 156,983,096 | 0 | 0 | null | 2018-11-10T13:19:54 | 2018-11-10T13:19:54 | null | UTF-8 | R | false | false | 2,065 | r | create_human.R | ### 25.11.2018/Otto Ylöstalo/IODS-project Week 4 ###
library(dplyr)
#1
hd <- read.csv("http://s3.amazonaws.com/assets.datacamp.com/production/course_2218/datasets/human_development.csv", stringsAsFactors = F)
gii <- read.csv("http://s3.amazonaws.com/assets.datacamp.com/production/course_2218/datasets/gender_inequality.... |
944ee9133e4bc4503c704ff22fcadaa70778fe7e | f0c9e167c8ceae9388986d22e89eb7293c664343 | /data/FGClimatology/R/LV_windrose.R | 7c0c9add832bf6f2e761878681a2870469105ed9 | [] | no_license | gavin971/r_dev_messkonzept | 1a2c91e51d45f18df65476bf04b7918c809f0503 | af6073c2b18f1f036a528bf8df6143bf1b51a561 | refs/heads/master | 2020-03-19T03:13:34.235435 | 2015-05-22T08:07:06 | 2015-05-22T08:07:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,027 | r | LV_windrose.R | windrose<-function(windspeed, winddir, r=5,p=10){
# Stand: 03.12.2013
#
# windrose ist eine Funktion um Winddaten aus den Campbell Datenloggern in Windrosen zu plotten.
# Voraussetzung ist entsprechende Vorprozessierung (keine NAN) und Installation des climatol-packages
# Da das climatol package von der ... |
4371e6e834eb711da1ca59d1f0097936c5cf7260 | 26021ab16e74ecfdca657c2ba3fbad6ef3f92ed5 | /ShipTracker/tests/testthat/test-map_server.R | 65d94b85cd4378d279bf31cdc80a49e7604a1f8b | [] | no_license | radbasa/shiptracker | ed034b33b7d0326db599e3841ab5e93039d5c6a8 | 5a4dfbe7bbccb113d1d00b2cfd6bc88d7c2fc281 | refs/heads/master | 2023-07-28T20:47:45.363191 | 2021-09-30T10:53:19 | 2021-09-30T10:53:19 | 411,481,093 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 572 | r | test-map_server.R | setwd("../..")
source("global.R")
sdm <- ShipData$new(global$data_file_path)
test_that("Map Server outputs a leaflet map", {
testthat::local_edition(3)
selected_ship <- list(
ship_legs = reactive({sdm$get_ship_legs(316100)}),
ship_info = reactive({sdm$get_ship_info(316100)})
)
te... |
ab06f351354ffea2fb307cffc314d96bf44d372d | 6589453f2dfec010434963966841d0de183d3a15 | /project_scripts/orthogroups.R | a077db740a6363b67bf96e75377e92a1688a27d3 | [] | no_license | Werner0/anomura | c3256da9630e4db54dac3386dd5e4734adc3b91b | 6fc9f5eb205bac7ec55ad4c503f9cb34b0b5496b | refs/heads/main | 2023-03-09T09:58:05.142920 | 2021-02-28T05:38:23 | 2021-02-28T05:38:23 | 333,056,367 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,250 | r | orthogroups.R | #SNIPPETS (USE BEFORE SCRIPT)
library(data.table)
library(tibble)
library(plyr)
library(gridExtra)
if (!getwd()=="/Users/wernerveldsman/Desktop/Rsources/Orthogroups/") {
setwd("/Users/wernerveldsman/Desktop/Rsources/Orthogroups/")}
#perspecies <- fread("Statistics_PerSpecies.tsv") #Cut file manually before loading... |
f6e008d9db02fdf46e7eab70fb78de1a54575dd1 | 21051e5f5923f2f88fe0f869201e55a16c848434 | /man/ev_surveillance.Rd | 79d28eb3e023922487854ddcbe67f84c02c96b96 | [] | no_license | XiangdongGu/hkdata | 4bb4011f2c3f22f7ae9f20ece7e354d1ba70c70f | 453261388c8e8b30d8e7912c0d20ba719afeb185 | refs/heads/master | 2020-03-23T02:06:55.540330 | 2019-08-02T08:55:08 | 2019-08-02T08:55:08 | 140,956,671 | 3 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,611 | rd | ev_surveillance.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hk-health.R
\name{ev_surveillance}
\alias{ev_surveillance}
\title{Get Data for "Department of Health: EV Scan's Figures Data"}
\format{A data frame with 11 variables.\cr
* `year`: Year\cr
* `week`: Week\cr
* `from`: From (Date)\cr
* `to`: To ... |
c429b7985b557ba1196feefd4eba78e3c3983905 | 15d1e3d8f2f3dc5dda60e264be1153a202934100 | /man/iterate_umap.Rd | 6e80e7ef53522097c14292860e38fe1c13772f22 | [
"MIT"
] | permissive | Ryan-Laird/PhenoClustR | 547bcad7c327e4e9567b54eead77a354734ed94b | c294c3b04449503e726a89c205d8800805c029af | refs/heads/master | 2022-04-25T09:16:41.941153 | 2020-04-28T22:39:33 | 2020-04-28T22:39:33 | 254,729,594 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 693 | rd | iterate_umap.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iterate_umap.R
\name{iterate_umap}
\alias{iterate_umap}
\title{Run UMAP with many combinations of hyperparameters.}
\usage{
iterate_umap(dat, dat.labels, params)
}
\arguments{
\item{dat}{Unlabeled dataframe for UMAP input}
\item{dat.labels}{... |
d65e2ff124f576de743ab2cdece81f8ce6b82c3d | 43ee56af5973642c4ee4a8044ea5aef8ef4b6477 | /lib/XGBoost_model_fitting_WHOLE_DATA.R | e330f19b0cfb7a73abf8614188d5d99bc8af7dc9 | [] | no_license | TZstatsADS/Fall2016-proj5-grp3 | 865651c1ca1afd6a2306c5bdefa273d29cb111b8 | a0b4a4c8e55e9cf8e2aa87af2de378f5c5a4bbd9 | refs/heads/master | 2021-05-01T02:41:01.497237 | 2016-12-13T21:03:28 | 2016-12-13T21:03:28 | 74,604,825 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,295 | r | XGBoost_model_fitting_WHOLE_DATA.R | library(dplyr)
library(xgboost)
setwd('C:\\Users\\LENOVO\\Desktop\\Academic\\ADS\\project_5')
load('df(final).RData')
train_df <- df
for (i in c(3, 4, 5, 12, 13, 14, 15, 17, 18, 21, 24)){
train_df[, i] <- as.factor(train_df[ , i])
}
###Train the model
train_df_X <- data.matrix(train_df[ , c(3:6, 8:... |
adcabf5313e44d783089b27e3aa529473fc0965e | d5a14ba66821cab667def0c8730dbbef1551b762 | /man/IDW.Rd | 6181b1ea527228ba23ddd7ef73a658cc418a4130 | [] | no_license | overeem11/RAINLINK | 5f964a6bcfae67e3f32c42a55c5dcd6fcca20f6d | 5e38a76f8b99ccbb444d6486b96c7ce4c3cb9954 | refs/heads/master | 2023-07-11T00:15:34.423165 | 2023-06-20T13:41:26 | 2023-06-20T13:41:26 | 48,035,739 | 12 | 20 | null | 2018-06-07T13:40:54 | 2015-12-15T10:22:57 | R | UTF-8 | R | false | true | 1,050 | rd | IDW.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/IDW.R
\name{IDW}
\alias{IDW}
\title{Subfunction for inverse distance weighted interpolation on point data.}
\usage{
IDW(idp, rain.grid, Rainlink)
}
\arguments{
\item{idp}{The inverse distance weighting power.}
\item{rain.grid}{Interpolation ... |
955ecbada9a0b4ef8f29e1232259911b65081a14 | e525513e27156b29a12a0aa585327faa6241ed53 | /R/cea_policy_tree.R | 46df2f8bc906909cc38452d3c8a2f2416d2633ef | [] | no_license | bonander/CEAforests | b9c340305a5004d06c94802fed90bebee08d0643 | 111db3c0518a1379d2635aaafe524270244e7d40 | refs/heads/master | 2023-03-26T03:57:52.073071 | 2021-03-25T10:40:52 | 2021-03-25T10:41:31 | 228,402,995 | 7 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,944 | r | cea_policy_tree.R | #' @title Train a policy tree after a CEA forest.
#' @description \code{cea_policy_tree} Trains an efficient policy decision tree given a CEA forest (a wrapper for policytree::policy_tree).
#'
#' @param forest A trained CEA forest.
#' @param X A covariate matrix containing variables that are to be used in the policy tr... |
ad5261aa816f0510f566509388a75e16cb9a5031 | 7b74f00cd80694634e6925067aaeb6572b09aef8 | /2020/notes-2020/session_files/session_6_fe8828_r_blockchain-master/fe8828_r_blockchain-master/node_server/blockchain-node-server.R | 2c825347df94ee8f21d5f9f7ef7c6a894f6e6487 | [] | no_license | leafyoung/fe8828 | 64c3c52f1587a8e55ef404e8cedacbb28dd10f3f | ccd569c1caed8baae8680731d4ff89699405b0f9 | refs/heads/master | 2023-01-13T00:08:13.213027 | 2020-11-08T14:08:10 | 2020-11-08T14:08:10 | 107,782,106 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,462 | r | blockchain-node-server.R | list.of.packages <- c("uuid")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
require(uuid)
# make sure you put the path of your blockchain.R file
source("blockchain.R")
# Generate a globally unique address for this n... |
149d0405865f49b98f9e558ee0b27bab3efd2b60 | 94aed2117dfdb2227eea8b019fed82d5b6193e4e | /TextMine.R | 061168a7ed7e0a19ea513d100e952e0fe985cb56 | [] | no_license | elliott828/Working | c2199454360508eac7f7a21c302abf71908a7530 | e5caeba56871c7c1c4a890e2b08737452a5cb013 | refs/heads/master | 2020-12-07T00:46:05.930959 | 2015-06-04T08:30:30 | 2015-06-04T08:30:30 | 36,857,779 | 0 | 0 | null | 2015-06-04T08:24:17 | 2015-06-04T08:24:16 | R | UTF-8 | R | false | false | 5,430 | r | TextMine.R | #--------------------------------
req.pcg <- function(pcg){
# packages to be installed
tbinst <- pcg[(!(pcg %in% installed.packages()[, "Package"]))|
(pcg %in% old.packages()[, "Package"])]
if (sum(tbinst %in% c("tmcn", "Rwordseg", "Rweibo"))>0){
cntm <- tbinst[tbinst %in% c("tmcn", "Rwor... |
5d2b30df4efb30376a04def5834f064b0187c8bb | 6e7af9b27cf18bb4633ad9d0b63a7e8ed9a887fb | /man/ranges_df-pHSensor-method.Rd | 8b049209ed639a484ebec5d26df2b9c9b25d13bd | [
"MIT"
] | permissive | ApfeldLab/SensorOverlord | 0fc62dd3c11b702cd477d0692085ea7be46911a7 | 2fbe7e0d0963561241d5c1e78dd131211e1b31a0 | refs/heads/master | 2022-12-27T15:20:27.343783 | 2020-10-13T23:28:48 | 2020-10-13T23:28:48 | 176,821,341 | 2 | 0 | null | 2020-06-14T15:37:09 | 2019-03-20T21:40:17 | R | UTF-8 | R | false | true | 1,588 | rd | ranges_df-pHSensor-method.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Sensor_Methods.R
\name{ranges_df,pHSensor-method}
\alias{ranges_df,pHSensor-method}
\title{Finds the ranges df of this pH sensor at given inaccuracies}
\usage{
\S4method{ranges_df}{pHSensor}(
object,
inaccuracies = c(0.02),
pHmin = 1,
... |
0689eefd9f38ef5b43a36025c1440dabbd1d0f29 | 2d1f4a315a1b6fda16341144a95e62da2898c9d9 | /workflow/daily_update.R | b6476aa746615e8adb5020a64c3d57a451329585 | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | sonar98/covid-19 | 913893c15a5ff1f765b7c55bcd16b9ce185849a3 | cd56342803266f83850be4170d54ad520f0966bf | refs/heads/master | 2023-01-10T00:10:00.817896 | 2020-11-02T13:59:58 | 2020-11-02T13:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,458 | r | daily_update.R | pull(repo)
# Generate Banner
source("workflow/generate_banner.R")
# Parse RIVM, NICE and corrections data
source("workflow/parse_nice-data.R")
source("workflow/parse_rivm-data.R")
source("workflow/parse_lcps-data.R")
source("workflow/parse_municipalities.R")
source("workflow/parse_corrections.R")
Sys.setlocale("LC_T... |
b56b6cc6d76b6ec989ada4e3dbde3c44e0f2cb89 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/RPresto/R/utility_functions.R | 8ec4fe75864e09691d51c27e57e53c942f06b0ee | [
"BSD-3-Clause"
] | permissive | 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 | false | 1,266 | r | utility_functions.R | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
check.status.code <- function(response) {
status <- httr::status_code(response)
if (status >= 400 && status <... |
4125bacb354cf965e09500193d7b47218a7e8024 | 76a4c4703c9c23f43e5f9ffcf6e800c36f5c92df | /IR_DS_filtering_workflow.R | 9f6735461bc8bbe2280e6a7208c9eb7e0810711f | [] | no_license | danjst/PDAC_2020 | f00bd18dbef619e1f4a08f9a9b771a3d3b7efd20 | 4ebaf0a1b2231c12b34913ec8cbf113a9e4381f6 | refs/heads/master | 2023-04-27T10:44:18.702881 | 2020-09-23T11:11:49 | 2020-09-23T11:11:49 | 295,741,952 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,237 | r | IR_DS_filtering_workflow.R |
# first filter out events with more than 10% NA
pdac_less_10_percent_NA <- all_pdac_events[rowSums(is.na(all_pdac_events)) < 0.1 * ncol(all_pdac_events), ]
###Next filtering for less than 0.05 abs NA difference between 2 clusters
#make pdac_cluster1 and pdac_cluster2 first
pdac_10na_2<-pdac_less_10_percent_NA[,pdac_... |
eff61bacdf25705d855f0d8080b4cfac3e5f7a3f | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/syuzhet/examples/get_sentences.Rd.R | 9f9c80ec3869e03a2b5ebfda657c357b540a322d | [] | 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 | 500 | r | get_sentences.Rd.R | library(syuzhet)
### Name: get_sentences
### Title: Sentence Tokenization
### Aliases: get_sentences
### ** Examples
(x <- c(paste0(
"Mr. Brown comes! He says hello. i give him coffee. i will ",
"go at 5 p. m. eastern time. Or somewhere in between!go there"
),
paste0(
"Marvin K. Mooney Will You Please... |
9e0c85ef630f54dbc7065fb389a81c43d9929aaf | 1811c5e994ab0d62884a02639b425f1da7b7bde4 | /R/graphics/ggplot2/ggplot2_tut.R | 5207a7101449897f1bd46e8b934aee8da806cea1 | [] | no_license | aufrank/tutorials | 62aa2fb8d3e5eb061fb6693e58597252fc970dc7 | 12b06fdfffee7bde6127dc437cdaa0b58a49bcdd | refs/heads/master | 2021-01-19T03:13:56.736438 | 2009-02-25T20:17:43 | 2009-02-25T20:17:43 | 137,469 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,224 | r | ggplot2_tut.R | library(ggplot2)
library(plyr)
## get an interactive window
quartz()
## x11()
## lexical decision data
data(english, package="languageR")
## default scatterplot
qplot(x = WrittenFrequency, y = RTlexdec, data = english,
main = "Frequency and Reaction Time")
## transform the dependent variable
qplot(x = Written... |
1b961282611fcf9061b095bfa0dfc3402805e1bf | a176626eb55b6525d5a41e2079537f2ef51d4dc7 | /Uni/Projects/code/P050.Haifa.Mon/cn001_indiv_V4.r | 9999ebb42fd519d4ed42f2e77b4ccbe600a4797f | [] | no_license | zeltak/org | 82d696b30c7013e95262ad55f839998d0280b72b | d279a80198a1dbf7758c9dd56339e8a5b5555ff2 | refs/heads/master | 2021-01-21T04:27:34.752197 | 2016-04-16T04:27:57 | 2016-04-16T04:27:57 | 18,008,592 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,431 | r | cn001_indiv_V4.r | ###############
#LIBS
###############
library(lme4)
library(reshape)
library(foreign)
library(plyr)
library(dplyr)
library(data.table)
library(reshape2)
library(Hmisc)
library(mgcv)
library(gdata)
library(readr)
library(stargazer)
library(splines)
library(sjPlot)
#ind <-read.csv("/home/zeltak/ZH_tmp/dat/indiv1415av.c... |
2e6797095be833550c203b81909d8b7d1e53230f | 55cb4f0c690a409b41b5b6e8cd0eb9d322c115d6 | /R/Bossa_Simi.R | a0423831d7f002ace16de5650671a8970f6d847b | [] | no_license | TinyOpen/OnGoing | d2b711233c08b59a7ef8abfe10395912092ebbab | 776a2297267c7ed57aac77c41bd7380a917a4157 | refs/heads/master | 2021-01-23T15:28:19.375929 | 2017-11-12T07:30:45 | 2017-11-12T07:30:45 | 102,712,117 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,867 | r | Bossa_Simi.R | #' Bind two factors
#'
#' Create a new factor from two existing factors, where the new factor's levels
#' are the union of the levels of the input factors.
#'
#' @param a factor
#' @param b factor
#'
#' @return factor
#' @export
#' @examples
#'#' fbind(iris$Species[c(1, 51, 101)], PlantGrowth$group[c(1, 11, 21)])
Boss... |
9e5cd4b877d4b28e7f0a75539626be3b3bed0530 | c3f1366b81357f78e9d30988ef3770d4a253ec6e | /man/summary.stdf.Rd | 79dd889f0c6ca608e8b449034ef2efb49586b5fe | [] | no_license | guiludwig/stdf | ae6716d48eb4c398d73b15c199f799d0d5f04cd1 | 76359cf39a96e94965a584e659789f669e1dbd12 | refs/heads/master | 2021-01-21T23:41:11.641890 | 2019-03-19T19:28:44 | 2019-03-19T19:28:44 | 24,806,915 | 5 | 1 | null | null | null | null | UTF-8 | R | false | true | 275 | rd | summary.stdf.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summary.R
\name{summary.stdf}
\alias{summary.stdf}
\title{Summarizing STDF Model Fits}
\usage{
\method{summary}{stdf}(object, ...)
}
\description{
\code{summary} method for class \code{"stdf"}.
}
|
f84fadb9ec9d6a13dedc5acf016f238523211ea8 | d76b09f9edb1d7ce0b5f34573b57bf42c1e9d2e6 | /intro/example_2.r | 2e54e80f5ed3c88cd7f0e1999e1b7fc202a6de64 | [] | no_license | rmporsch/automate-science | f32175f7862d902d92a53eecb1f03f54d026e85b | 73d318e77a81bdb72769f8e6fcb06c92deab73a7 | refs/heads/master | 2020-07-15T08:56:32.183289 | 2017-07-06T02:51:00 | 2017-07-06T02:51:00 | 94,306,081 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 269 | r | example_2.r | # Import some data
message("importing data")
dat <- read.csv("data.csv")
# convert Fahrenheit to Celsius
message("convert Fahrenheit to Celsius")
dat$Temp.C <- (dat$Temp - 32)/1.8
# write table back to disk
message("writing to disk")
write.csv(dat, "data_withC.csv")
|
5f708fafe3125772c7f9e5c65fa7d1a1b7dc06da | 0f2405028a6d5a919445f405b449e50d176e3b92 | /Code/Make Tidy.R | 60d1e89d2310a4a27f74bdecaa125716df35b271 | [] | no_license | Flashlightis/Capstone-Project | 8451375aef4ccdf0f022c76db14cf7bab46c3d2d | f1dbe9cd0d985138a591cebd96971a7fd5c4dea7 | refs/heads/master | 2021-10-04T03:31:32.830578 | 2018-12-03T04:42:51 | 2018-12-03T04:42:51 | 125,099,535 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,853 | r | Make Tidy.R | # Make Tidy - All Data
df3_clean <- gather(df3, Web_Metric, Number, c("Sessions", "Users", "New_Users", "Pageviews",
"Number_Session", "Pages_Session", "Avg_S_Duration",
"Bounce"))
df4_m2 <- mutate(df3_2014,
... |
a97ccdf5686c9ff1929e318c7504d536b32acdc7 | c5f708e71aae6e56605e9f30a57e349ca1ced4a4 | /server.R | 51a392a928bb3b5f6f18a209747568c1c21b78e9 | [] | no_license | xjlc/climit | 977f6b3aa6644fa63fd4c344ad98a3e8e43275fb | 07656c44691e7c6697f90c45c1218320e481210e | refs/heads/master | 2021-01-10T21:21:07.621348 | 2015-01-22T06:33:22 | 2015-01-22T06:33:22 | 29,587,583 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,184 | r | server.R | # illustration of the CLT
# based on a github gist by https://github.com/tgouhier/climit
library(shiny)
shinyServer(function(input, output) {
# one simulation run: generate random numbers
simdata <- function(input, n) {
if (input$dist=="rpois") {
vals <- do.call(input$dist, list(n=input$n, lambda=... |
cffeeacdd4c0573e36ba456b331d949c86b249c1 | f95b3720c2ff266261cfbbd2e06fc987b34db08a | /R/CopyToClipboard.R | fc21a7e2f8db3af6278ff0f63877ecaec3d88f6e | [] | no_license | selinaZitrone/Lessons_Alessio | 674422516ff193c5834bca6a2abc46b2007448a5 | 1f816c104c7bc760e967669eb52cb1d56680d3d1 | refs/heads/master | 2023-01-19T09:28:07.413472 | 2020-10-05T17:48:51 | 2020-10-05T17:48:51 | 300,846,108 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 349 | r | CopyToClipboard.R | # file (string): file to be copied to the clipboard (with fileending)
# filepath (string): path where file to be copied to clipboard is stored
CopyToClipboard <- function(file, filepath = here::here("HTML")){
readLines(paste0(filepath, "/", file)) %>% clipr::write_clip()
#xml2::read_html(paste0(filepath, "/", file... |
69525749ec125d28e88c8998609e47b64e5f2e05 | bac8d44dff959258dc7a706a35e1ebd1944c7641 | /plot1.R | 9a476505549687d818f137929ab8154ad02460b1 | [] | no_license | subhashish7/ExData_Plotting1 | 889fefa4ca6d0511fd0f22e6335f4bc48e91286a | 35b93a5192b2e5c79cca88c9b21c4bbcc69018b3 | refs/heads/master | 2020-04-10T14:00:01.145357 | 2018-12-28T15:00:45 | 2018-12-28T15:00:45 | 161,064,479 | 0 | 0 | null | 2018-12-09T17:33:57 | 2018-12-09T17:33:56 | null | UTF-8 | R | false | false | 494 | r | plot1.R | # set working directory
setwd('C:/Users/Desktop/Coursera/EDA')
# read file
data <- read.csv('household_power_consumption.txt', header = TRUE, sep=';', dec='.', stringsAsFactors = FALSE)
# select data from relevant dates
df <- data[data$Date %in% c("1/2/2007","2/2/2007"),]
# open device
png("plot1.png", width=480, he... |
d8eda88c55e5496d893150f3c5569fce02edac66 | 0d85667371d11e998a8526cbfea00eb919ef3e30 | /man/convSiteData.Rd | db701e396efed1f9da9141581076ab481457ea5f | [
"MIT"
] | permissive | dinaIssakova/rgenesconverged | 5ef5230af0cde0c61545cfed73f0bb5c2f0f1da3 | e1b5bb82bfa8fe03d232f1aa19bb3ed785252d07 | refs/heads/master | 2020-07-28T06:07:59.193155 | 2020-01-06T20:48:17 | 2020-01-06T20:48:17 | 209,332,677 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 937 | rd | convSiteData.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getResults.R
\name{convSiteData}
\alias{convSiteData}
\title{Get number of convergent sites}
\usage{
convSiteData(
tree,
phydat,
spe1,
spe2,
t,
type = c("abs", "score"),
m = getm(tree, phydat, spe1, spe2)
)
}
\arguments{
\item{t... |
e3fde9575f98117e86373d41ba582037061a5358 | 3ab08891487e23f0a6bcf184649ba331a938070b | /NYC_Paking_Graded_Case_Study_V6.R | 718c7d8bd2fc757a581cf6617ce281b2b309d30d | [] | no_license | Abhijit-Barik01/SPARK-R-SQL-NYC-PArking-Ticket-Analysis | b7a00f820ae3f7003ffaaa56c8a9e4db7e899c80 | 85f11875b4e8eda5a0faae56fdc9c9664d3d1d99 | refs/heads/master | 2023-03-18T08:17:05.755512 | 2019-01-01T07:03:43 | 2019-01-01T07:03:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 77,588 | r | NYC_Paking_Graded_Case_Study_V6.R | #######################################################################################################################################################
#1.Problem Statement/Business Understanding
#2.Broad Assumptions
#3.Initialise Environment,load libraries & data
#4.Understanding
#5.Assignment Tasks - Examining D... |
990551a74656fb8d792fca617d1deb36cd1acaff | 478dff15dbb67b960d4386bf393ec289ddd82b6f | /plot2.R | 84c9978cb54e54402e24916d137fb6777685ddd9 | [] | no_license | panzerfauster/ExData_Plotting1 | 1ac21596542a21fc6e4a710121df573be9634fb4 | a4dcef416d5c77ff28ba72ef84197461d9447c12 | refs/heads/master | 2021-01-17T23:40:06.477457 | 2015-09-13T18:55:23 | 2015-09-13T18:55:23 | 42,335,710 | 0 | 0 | null | 2015-09-11T22:47:45 | 2015-09-11T22:47:45 | null | ISO-8859-2 | R | false | false | 899 | r | plot2.R | # Data Science Specialization
# Course 4: Exploratory Data Analysis
# Course Project 1: Consumption Plots
# Fausto Martín López
### This code generates the plots required for Course Project 1 in the current Working Directory.
## Read and process the source file
colClasses=c("character", "character", rep("numeric", 7)... |
8da034814cb5f5debe9d58bc4ba3277a87a6f322 | 277dafa77508edd5d298730aacae4866d8587d32 | /ensm.R | c1f1df4a4b164db7a27a70c9da9286f866b2e55d | [] | no_license | Allisterh/NaturalRate_ensm | ec1bac3bf9a7b41af5e2080ad362e1246aae6a2d | ce42313ceb6fe29f61c633c6f3ee5e40e2d1cb52 | refs/heads/main | 2023-08-26T10:02:44.443160 | 2021-11-05T10:05:55 | 2021-11-05T10:05:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,461 | r | ensm.R | ## extract file
df <- read.csv("treasurynotes12311993.csv")
## convert maturity to standard date format
df <- transform(df, "Maturity" = as.Date(as.character(df[,1]), "%Y%m%d"))
## calculate ttm = years to maturity
df$ttm <- (as.numeric(df[,1])-as.numeric(as.Date("1993-12-31")))/365
##determine coupon.no =... |
ac5646c0c9278891f328e9efdd931f50d9007449 | 67426b6f11131a696dfcd535183a722772a182d8 | /Simulation/predict.R | 6b71785b798cd2923f00e76311039f1ce8579e88 | [
"MIT"
] | permissive | jingeyu/CSSN_data_code | 700c93eeeac4bba23287d7d0630bc89deb7364d3 | e54c5820d3df3a1e46a631f41e83c945ebbffd12 | refs/heads/main | 2023-03-19T21:41:42.355100 | 2021-03-06T12:47:24 | 2021-03-06T12:47:24 | 331,542,553 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,858 | r | predict.R | ###############################################################
######################### Prediction ##########################
###############################################################
rm(list = ls())
library(CholWishart)
library(MASS)
set.seed(20201231)
# only 20201205
load(paste0("RData/", 20201205, "_Sigma.R... |
0c422c8d9b383fbeafd5877d9add45d3944ec2fa | 02b178b7ebb101940d6ede02b10c52dec501dcd6 | /microarray/UseRMA.R | cce12db544bae178318068cbf7f0e0e5cbae22e4 | [
"MIT"
] | permissive | radio1988/bpipes | 21ea7c124f1bd962afe32644c445da3bb7a7d177 | 0aceb97070210c2361adb45ee0040b6aa5be771b | refs/heads/master | 2023-08-24T12:40:19.129216 | 2023-08-24T00:49:42 | 2023-08-24T00:49:42 | 140,731,030 | 3 | 2 | null | null | null | null | UTF-8 | R | false | false | 3,111 | r | UseRMA.R | #Generate csv file with readaffy and RMA
#By Lihua Julie Zhu
#on December 7th 2007
#using .CEL file
rm(list=ls())
library(affy)
setwd("~/Documents/ConsultingActivities/MicroarrayExp/MarianWalhout");
require(affy)
Data = ReadAffy(celfile.path="embryo")
#Data<-ReadAffy(filenames=targets$FileName,celfile.path="... |
4296390d3edf80ac0660324e31ffa054e64a544c | 457c6af00135a67a0c7969dba0348214a26b4335 | /plot2.R | 0a8de962e0d4caec2e2b70025d9bf8e98ed90ced | [] | no_license | hiicharles/ExData_Plotting1 | 912f46b2ac0bd984c5fe78a6cdb134f6bb279482 | 815ca53b5742c54f9da1ba3554608339e3b5d03b | refs/heads/master | 2020-12-14T08:57:14.561822 | 2014-12-07T17:59:13 | 2014-12-07T17:59:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,227 | r | plot2.R | ## Exploratory Data Analysis (exdata-016)
## Course Project 1
## By hiicharles@gmail.com
## plot2.R
## If you want to test, change the filePath.
setwd("~/Development/data/exdata-016/")
filePath <- "~/Development/data/exdata-016/household_power_consumption.txt"
## Read file.
## Replace ? with NA.
## 2075259 obs
data <... |
df9db2dbb308f6b3471d20ca1aa5e4471897d8ed | a44a3f17ac568ae03e4a23121cda5e4ab9bfa275 | /Assignemnt1.R | 1a3feb29f852e666d03f1780b311bc8abbcf5f53 | [] | no_license | y437li/AI_Market_assignment | f1673ed9749cfe7705b49b6d74d65c37673042ed | 7ecfb6790eff63f52870e8187cdea80617865e21 | refs/heads/master | 2022-11-17T07:14:44.228196 | 2020-07-19T14:21:18 | 2020-07-19T14:21:18 | 279,747,057 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,118 | r | Assignemnt1.R | ##Load data from local csv file
path = '/Users/yangli/OneDrive/MMAI/MMAI831/AIOS1_adv_sales.csv'
#path = 'C:/Users/y437l/OneDrive/MMAI/MMAI831/AIOS1_adv_sales.csv'
data <- read.csv(file =path)
#drop index column
data <- subset(data, select = -c(X))
##No missing data
#basic descriptive statistics
summary(data[,c(1:6)])
... |
d46c29cffbe95ce0e246b6ea90c5335aaf82632f | 9a3b4965c85af90f870baba83c23a0103a986353 | /assignments/a6/plot_null_alt.R | 03fe14d274f729ca01258dc8a3f54e41b84ff271 | [
"CC0-1.0",
"GPL-1.0-or-later",
"GPL-2.0-only",
"GPL-3.0-only",
"CC-BY-4.0"
] | permissive | ly129/EPIB607 | 2ed99374d99c4e8f003191782af7a6fd97707756 | ac2f917bc064f8028a875766af847114cd306396 | refs/heads/master | 2020-07-05T19:28:44.636344 | 2018-12-11T13:13:52 | 2018-12-11T13:13:52 | 202,746,856 | 0 | 1 | CC0-1.0 | 2019-08-16T14:56:33 | 2019-08-16T14:56:33 | null | UTF-8 | R | false | false | 10,765 | r | plot_null_alt.R | #' Plot null and alternative distributions
#' @param n sample size
#' @param s population standard deviation (or estimated standard deviation)
#' @param mu0 mean under the null hypothesis
#' @param mha mean under the alternative hypothesis
#' @param alternative is alternative hypothesis greater than or less than or
#' ... |
8248479993e78b05536f9472d0199a288d5e1c0b | ffaf081897ef7781ec44634b757eae461e848ccb | /day03/day03.R | 90501debf75661a0c8a92f9f58f19d048ad99931 | [] | no_license | marcmace/AdventofCode2020 | f8e80842f16fd1c9f7fd181bbcc0054f1b7031c0 | 642ce0922052bf7853c1dccf4710b7682345f085 | refs/heads/main | 2023-01-29T20:53:42.362419 | 2020-12-09T13:49:27 | 2020-12-09T13:49:27 | 317,989,115 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 508 | r | day03.R | library(dplyr)
input <- readLines(paste(getwd(),"/day03/day03_input.txt",sep=""))
geo <- transpose(as.data.frame(strsplit(x = input, split = "")))
day3 <- function(colmove, rowmove) {
trees <- 0
i <- 1
j <- 1
while (i <= nrow(geo)) {
if (geo[i,j]== "#") {
trees <- tr... |
207ef8d944b16119cd17e00d52cee2400274ad9f | 9425481e2f3e6218b31870f121445400e2c47530 | /Binomial/man/bin_distribution.Rd | 12bf52f8c4a479c0669b690040df0003a625a981 | [] | no_license | stat133-sp19/hw-stat133-JingtongZhao | 909c7e2cefeae1dd01e66842af132452b8170285 | b60cab3396f9871239ff687707c36686d29fd7bb | refs/heads/master | 2020-04-28T07:25:17.528497 | 2019-05-04T00:39:47 | 2019-05-04T00:39:47 | 175,091,840 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 598 | rd | bin_distribution.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Binomial.R
\name{bin_distribution}
\alias{bin_distribution}
\title{Binomial Distribution}
\usage{
bin_distribution(trials, prob)
}
\arguments{
\item{trials}{number of fixed trials}
\item{prob}{probability of success on each trial}
}
\value{
... |
59faa190a5796e6a10d0a2afc5286f30c36b802e | a47e15d8a4b9bd62db8a531dacbdaa7d8a797a3d | /man/layer.Rd | 178a692cc1d99ca75b445ba0a6d3c7b76dc5f1ff | [] | no_license | johannes-titz/leabRa | f5d4189793db830e5f5aed7af1df0305b3ad58f3 | 237bc5c67c81fcd24e7dac895af3106bbad9974a | refs/heads/master | 2021-05-15T00:03:52.568144 | 2017-09-25T08:53:48 | 2017-09-25T08:53:48 | 103,940,125 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 7,197 | rd | layer.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/layer.R
\docType{class}
\name{layer}
\alias{layer}
\title{Leabra layer class}
\format{\code{\link{R6Class}} object}
\usage{
layer
}
\value{
Object of \code{\link{R6Class}} with methods for calculating changes
of activation in a layer of neu... |
71a2e3db2ff8bece607d7bb02a72bb08e98a6a4a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/biolink/examples/urls.Rd.R | f9e2ad21c8b6b383ef381db07378c91fbf0bb51e | [] | 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 | 302 | r | urls.Rd.R | library(biolink)
### Name: urls
### Title: Construct urls to online resources
### Aliases: urls url_go url_kegg url_pubmed url_entrez url_cran url_bioc
### ** Examples
# gene ontology url
url_go("GO:0005539")
# KEGG pathway url
url_kegg("hsa04915")
# PubMed article url
url_pubmed("23193287")
|
4ca68847ee5bb01f22ee69c3ca3817dbb4270179 | 3b0be5721a5478b1bac4e6b08cdcd1b88e3a4046 | /inst/snippets/Example9.18d.R | 305ac60005a35771249b0972cb4a7f558fa74046 | [] | no_license | stacyderuiter/Lock5withR | b7d227e5687bc59164b9e14de1c8461cb7861b14 | 417db714078dc8eaf91c3c74001b88f56f09b562 | refs/heads/master | 2020-04-06T06:33:39.228231 | 2015-05-27T11:41:42 | 2015-05-27T11:41:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 43 | r | Example9.18d.R | Ink.Price(PPM=3.0, interval='confidence')
|
c64726ce65cc8ad5665eca698f05e658dcea35f5 | e3847b953b7bb3e6464a7686801fc607fde3a0a1 | /Plot2.R | 711c11b6eee52fb193cf2ca603d04b7520ac8b2f | [] | no_license | asrulnb/ExData_Plotting1 | d2b00aaead4434d9ef656ba60a68a04776671c73 | a77d628debf1305cbad893b0f20a7f7dda04e033 | refs/heads/master | 2021-01-16T21:08:59.127160 | 2015-08-09T15:53:03 | 2015-08-09T15:53:03 | 40,299,974 | 0 | 0 | null | 2015-08-06T10:52:21 | 2015-08-06T10:52:21 | null | UTF-8 | R | false | false | 910 | r | Plot2.R | ###[ Initializing Library ]
rm(list = ls())
library(dplyr)
library(data.table)
library(lubridate)
library(datasets)
library(graphics)
###[ Set working Directory to where the R source file is ]
this.dir <- dirname(parent.frame(2)$ofile)
setwd(this.dir)
###[ Part 1 : Read data from file ]
mainDT <- read.table("househ... |
7a917e2807b4c5bc1d669837d05bb7f75761f34d | 71808098f4c7eb7ed63ea4806509feaf84fac756 | /Regression/Guns_Regression.r | a59b799d7bd1a155b3b408cabc56eaf1d3baf7e5 | [] | no_license | MarcoBuratti/BusinessAnalytics-HACKATON | b1f691da9477d3b87cfb09099ee40e5d15567291 | efb2e3ecbc0a0967ecd49dda494d6fe35183c52c | refs/heads/master | 2023-01-23T22:07:30.483411 | 2020-11-12T15:57:23 | 2020-11-12T15:57:23 | 307,710,379 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,654 | r | Guns_Regression.r | library("readxl")
library(rgl)
library(kknn)
# data <- read_excel('Guns.xls')
data <- Guns
names(data)
sapply(data, class)
#response
violent <- log(data$violent)
#sapply(violent, class)
#regressor
afam <- data$afam
# Plot data with the log value on y axis
plot(afam, violent, xlim=c(0,15), ylim=c(3,8))
grid()
abl... |
3f3466431535a58007eb4f3e0058a0a972d1a2aa | fadd039259d32ffee1b8387659295cd3c94067b2 | /02 R Programming/Week 3/Programming Assignment/ProgrammingAssignment3.R | 14f8bbe06c2079a3c57841aa610a248a96414d3c | [] | no_license | castner-jon/datasciencecoursera | e4198c7668ab98ae746fdc21531fbb0dab2e09b3 | 2b602b37d278aaf11547c9d8fd162ca587fef0a5 | refs/heads/master | 2021-09-09T16:29:55.751823 | 2018-03-18T01:00:53 | 2018-03-18T01:00:53 | 119,195,856 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 346 | r | ProgrammingAssignment3.R |
## read in the data
outcome <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
head(outcome)
class(outcome)
str(outcome)
dim(outcome)
colnames(outcome)
## histogram of mortality rates from heart attacks
outcome[, 11] <- as.numeric(outcome[, 11])
hist(outcome$Hospital.30.Day.Death..Mortality..R... |
80c242129acdba02b573b11b6dc45a819da6c6a7 | 2bec5a52ce1fb3266e72f8fbeb5226b025584a16 | /uwot/tests/testthat/helper_data.R | e49ad62eb3c1bedcd002a288e8679f429596d23b | [] | no_license | akhikolla/InformationHouse | 4e45b11df18dee47519e917fcf0a869a77661fce | c0daab1e3f2827fd08aa5c31127fadae3f001948 | refs/heads/master | 2023-02-12T19:00:20.752555 | 2020-12-31T20:59:23 | 2020-12-31T20:59:23 | 325,589,503 | 9 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,665 | r | helper_data.R | # Small -ve distances are possible
dist2 <- function(X) {
D2 <- rowSums(X * X)
D2 + sweep(X %*% t(X) * -2, 2, t(D2), `+`)
}
# Squared Euclidean distances, ensuring no small -ve distances can occur
safe_dist2 <- function(X) {
D2 <- dist2(X)
D2[D2 < 0] <- 0
D2
}
# convert dataframe to distance ma... |
5062eb4fa0786f275049d0f8eb4660398441a086 | f8f3d53abf579dfbf6d49cfb59295b1c3ddc3fb2 | /R/add_flextable.R | fac9a391aa6d2161eeaa3602f0d181e0f74f598f | [] | no_license | cardiomoon/rrtable | 9010574549a6fc41015f89638a708c691c7975cf | 8346fca2bb0dc86df949fb31738e1af90eeb5a70 | refs/heads/master | 2023-03-15T20:43:07.685721 | 2023-03-12T11:36:34 | 2023-03-12T11:36:34 | 127,721,282 | 3 | 2 | null | 2021-11-17T01:08:31 | 2018-04-02T07:32:08 | R | UTF-8 | R | false | false | 1,455 | r | add_flextable.R | #' Add a flextable or mytable object into a document object
#' @param mydoc A document object
#' @param ftable A flextable or mytable object
#' @param code R code string
#' @param echo whether or not display R code
#' @param landscape Logical. Whether or not make a landscape section.
#' @importFrom officer add_slide ph... |
6cc02fa368753709b26ae50ebc78cfdb4a716be8 | 79f08f05d41ab55c37bbb5216a827d4f03507a3f | /module3/homework3-Q2/app.R | b6db45c80b05455a6b56884411d308435d91a716 | [] | no_license | pmalo46/CUNY_DATA_608 | d353bcbbe186675f064d367f520babd12d17a185 | 5d15862117bdc7e7df926afd29b9ec43523b7b1a | refs/heads/master | 2023-02-02T06:23:34.846447 | 2020-12-14T04:39:33 | 2020-12-14T04:39:33 | 292,177,538 | 0 | 0 | null | 2020-09-02T04:22:08 | 2020-09-02T04:22:07 | null | UTF-8 | R | false | false | 2,896 | r | app.R | # author: Pat Maloney
# Data for this project:
# https://github.com/charleyferrari/CUNY_DATA608/tree/master/module3/data
# Question 2:
# Often you are asked whether particular States are improving their mortality
# rates (per cause) faster than, or slower than, the national average. Create a
# visualization ... |
c842a98a8f3826da7f3466c2d3a5142ec0ee4458 | efa4ba01ec27df73d1a40b09ee82a0c7af3cc850 | /CODE/13_sleep_site_occupancy_randomizations.R | fe05b52940bfd5c3ce831b7540b1978adc10237b | [] | no_license | CarterLoftus/intergroup_sleep | 444e1c1ee4abce299865c216b027b326bb45d7a0 | 446448b8436f0408f87d13f7ec9359ef1ce860b7 | refs/heads/main | 2023-04-14T05:20:35.681620 | 2022-07-27T10:57:51 | 2022-07-27T10:57:51 | 518,377,903 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,034 | r | 13_sleep_site_occupancy_randomizations.R |
#### sleep site randomizations ######
library( infotheo )
library( hms )
library( brms )
library( boot )
library( data.table )
## function for normalizing a vector
normalize_func <- function( x ) return( (x - mean( x, na.rm = T ) )/ sd( x, na.rm = T ) )
which_spec <- 'baboon'
if( which_spec == "baboon" ){
spe... |
1876b8f39dcd4d53ef6f1d0173e0cd651d33182f | cf2af9741bbf4ab0ccf83c108ac34a6300cdbeff | /plot4.R | 0aaf098cd4856e46e4197f3017ec64760d781666 | [] | no_license | ejsheehan/ExData_Plotting1 | 59e896b67b4f3488cb5cbd7af006c69bf018d717 | 19d04ed06721b139dbbab8930d4a0fd8d02b23c3 | refs/heads/master | 2021-01-24T15:24:08.958774 | 2015-11-05T00:46:45 | 2015-11-05T00:46:45 | 45,576,730 | 0 | 0 | null | 2015-11-05T00:31:08 | 2015-11-05T00:31:08 | null | UTF-8 | R | false | false | 1,453 | r | plot4.R | #read text file
dat<-read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings="?", stringsAsFactors=FALSE)
#create a combined Date and Time column
dat$Date_Time<-paste(dat$Date, dat$Time)
#identify Date and Time as date class
dat$Date_Time<-strptime(dat$Date_Time, "%e/%m/%Y %H:%M:%S")
#identify Da... |
149583870d7cbae07937369ea90f6a8a6d853d71 | 3c3cf41378249e9f378b5a0c821e7d06dda22729 | /man/LoadCleanRaw.Rd | 6472ee2be4e9903018e6a6f074bed7396d84d50c | [] | no_license | kaylafrisoli/iRland | e4d89628abd57cff5cb5fe2b4d91c04d192043ac | fbb47d445679fa4eb66d4ba1832f058384946f16 | refs/heads/master | 2021-06-04T11:04:20.115525 | 2020-09-15T04:25:26 | 2020-09-15T04:25:26 | 123,225,559 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 945 | rd | LoadCleanRaw.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LoadClean.R
\name{LoadCleanRaw}
\alias{LoadCleanRaw}
\title{Consistently load raw Irish census data}
\usage{
LoadCleanRaw(path, file_delim = " ", assignID = NULL, preProcess = FALSE)
}
\arguments{
\item{path}{path to data}
\item{file_delim}{... |
6181a5885902e061eac4896b073810d1039dabfb | 0ad326a4515ac93236aecb01c7b2b49b9c6906c5 | /getTags.R | 23f11b1644929be749ad33307096be41a58f8084 | [] | no_license | stunglan/Rtraining | 70a34b287b9d62f97dd928d15aa501cfa94b7c00 | d3fdafe3a92c45ad49e8a766aab1a54cab7e057c | refs/heads/master | 2021-01-22T13:58:01.618725 | 2014-09-18T19:42:04 | 2014-09-18T19:42:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 285 | r | getTags.R | #getTags
#if (!exists('getTags_R')) {
getTags_R <-TRUE
setwd("~/GitHub/Rtraining")
getTags <- function() {
data <- read.table("data/artistTags.csv",col.names=c("artist","tag","count"),stringsAsFactors = FALSE,na.strings = "NA")
data <- unique(data)
# END Fix DATA
}
#} |
9e4f42f833a89178e892a8c8bc4ad3b83818efba | ae0e9f9203adc6348a26d2195e5a09d80790ba24 | /R/functions.r | 5fa3e376844d3b6e29a019c1edd949ec3ef6852e | [
"MIT"
] | permissive | Moritz-Kohls/taxaEstimator | b546b9fb544a8b0116205035f2a19c134211bac3 | 1b93eb55db3af905268917b064f39fa9dbfb6040 | refs/heads/master | 2023-02-28T00:54:25.406346 | 2021-02-02T14:49:51 | 2021-02-02T14:49:51 | 335,295,331 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 30,490 | r | functions.r | #' Class specific positive predictive values (PPV)
#'
#' Step 1 of the taxa classification and estimation procedure.
#' This function creates artificial reads based on NCBI viral reference genomes FASTA file,
#' computes input features and artificial neural network (ANN) model
#' and finally stores the trained model an... |
097d2ac5c0fb984f516a96c4bdfd498f155619f4 | 1f5bc0ade472404258b43525269d15f5e1b543f7 | /R/CreateBasis.R | d8e05574f66138f60cd736e3c71ff9607db72c35 | [] | no_license | mathchin/fdapace | d84d393d731a0fe64f7b3e15419d6637a524f490 | 67728c2d6be6f27bdfdb2eb97257b2c881847266 | refs/heads/master | 2021-01-13T13:32:24.601040 | 2016-07-15T10:19:26 | 2016-07-15T10:19:26 | 72,411,264 | 0 | 1 | null | 2016-10-31T07:02:22 | 2016-10-31T07:02:22 | null | UTF-8 | R | false | false | 1,030 | r | CreateBasis.R | # Create an orthogonal basis of K functions in [0, 1], with nGrid points.
# Output: a K by nGrid matrix, each column containing an basis function.
CreateBasis <- function(K, pts=seq(0, 1, length.out=50), type='sin') {
nGrid <- length(pts)
possibleTypes <- c('cos', 'sin', 'fourier', 'unknown')
type <- possibleTyp... |
9c63a940a75211ff633909a7fe8c6e122bf40577 | b914a79b9cc2f66614fb4f6ab784c8649901229e | /Liger/spatial.RNA.plot.a.gene.R | 4156cb22ad131e68802636792d92854a8a13092a | [] | no_license | explorerwjy/ML_genomics | 731111729e076038673851dc14170c2a03898295 | 91acbef43a49ee48205e088fac7c78a878a03752 | refs/heads/main | 2023-04-23T07:46:50.273596 | 2021-04-27T13:15:49 | 2021-04-27T13:15:49 | 361,255,171 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,750 | r | spatial.RNA.plot.a.gene.R | spatial.RNA.plot.a.gene <- function(spatial.RNA.filename, genename, log.normalize=TRUE, savefilename="tmp.pdf") {
library(ggplot2)
library(ggthemes)
library(ggeasy)
spatialRNA <- read.table(spatial.RNA.filename,
header=T, sep="\t", row.names = 1)
LogNormalize <- function(M, scale = ... |
77d944dd3649ee565a68c5b49309fdbde1fcee39 | ce0db4deeb74d83cb4704a0ab95134ddd40a77f6 | /gr.R | b17962dd5f8e090005fbc2ee95d892f41d02e980 | [] | no_license | lufanl/GrowthRespiration | ff313cd05ae1434889ae14fb57c4f773fa285a13 | cdf51e50a6cc282c0fbc0e813f4445a7269e46c8 | refs/heads/master | 2020-04-06T04:57:21.108303 | 2014-05-31T01:53:03 | 2014-05-31T01:53:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 19,584 | r | gr.R | require(PEcAn.all)
logger.setQuitOnSevere(FALSE)
settings <- read.settings("gr.settings.xml")
td <- get.trait.data(settings$pfts,settings$run$dbfiles,settings$database,TRUE)
## rescale trait data
trait.file = file.path(settings$pfts$pft$outdir, 'trait.data.Rdata')
load(trait.file)
for(i in 1:length(trait.data)){
tr... |
b5a397df0f0c92aac14390b2242a2e53e6507a74 | 384dd8ffffaf0b791f3934589ab008a0da22920b | /R/random.pseudoinverse.R | 515d58bd001fe792f29f1a63e4bedd29fd83db88 | [] | no_license | cran/ndl | 51ca423e2cdad9411883eb723a79a74034cd72f0 | 52291ac2f05d4591d139240501c87b888093892b | refs/heads/master | 2021-01-06T20:41:47.421368 | 2018-09-10T12:40:02 | 2018-09-10T12:40:02 | 17,697,831 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,403 | r | random.pseudoinverse.R | random.pseudoinverse = function (m, verbose=F, k = 0)
{
# computes an approximation of the SVD using the first k singular values of A
stoch_svd = function(A, k, p = 200, verbose=F) {
# default p=200, may need a larger value here
# to use ... |
c37fdf6b956f65f3e5f4fc811832f5de19f8b858 | be0ac9cd7b4950edc946c6b5b93d92aa508cc4d6 | /man/blk.diff.Rd | 4e513a42baebe26ebecc10d442711737799350fe | [] | no_license | benjaminrich/PCSmisc | bbc325c0981af635039a16b704c2414fec2a41c6 | b56c3d684f900b6498654405c3cff0b01d8b280b | refs/heads/master | 2023-06-09T09:28:29.609251 | 2023-05-27T21:07:27 | 2023-05-27T21:07:27 | 114,463,985 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,110 | rd | blk.diff.Rd | \name{blk.diff}
\alias{blk.diff}
\alias{blk.intereventTime}
\title{Blockwise Lagged Differences}
\description{
Computes lagged difference within blocks and on selected elements.
}
\usage{
blk.diff(x, id, ind = NULL, lag = 1, fill = NA, diff.op = "-", ...)
blk.intereventTime(time, id, ind = NULL, lag = 1, fill = NA, d... |
390e38d52fbcaf76dcc782c124b92967d9849d87 | 8d11121c41ec3ea5e92c2789108c1fd1c43e7ca4 | /run_analysis.R | ae05a2fa9e1579de32303931c9198542f80fc850 | [] | no_license | joannaconti/cleandata | f54be5e526e0b61175f6aed1a6df6df367de6c5b | 35c12cdf2a406042ed4ab9a10b25abce2a1c3680 | refs/heads/master | 2020-05-26T01:44:19.623105 | 2014-05-24T19:53:50 | 2014-05-24T19:53:50 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,281 | r | run_analysis.R | run_analysis <- function(x) {
# Read all 8 files into R
subjecttest = read.table("subject_test.txt")
subjecttrain = read.table("subject_train.txt")
xtest = read.table("X_test.txt")
ytest = read.table("y_test.txt")
xtrain = read.table("X_train.txt")
ytrain = read.table("y_train.txt")
feat... |
738ae02fa5c530d180ed699e77c985cc6ab8a1a5 | 05ebb4d386cb2604bb7642bd79d09fa3ca76dc72 | /man/tbk_data.Rd | 307ee79c3e9492e62be0f223f5a7ca7d50e75ba9 | [] | no_license | trichelab/tbmater | a322d5b3c558c4b45474e3ed1e394754543cc5d5 | dafbf46ca7a021849a0e5b86c1669fe7d2ad3447 | refs/heads/master | 2023-01-08T04:53:43.023578 | 2020-11-12T02:59:17 | 2020-11-12T02:59:17 | 312,152,018 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,228 | rd | tbk_data.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tbk_data.R
\name{tbk_data}
\alias{tbk_data}
\title{Get data from tbk}
\usage{
tbk_data(
tbk_fnames,
idx_fname = NULL,
probes = NULL,
show.unaddressed = FALSE,
chrm = NULL,
beg = NULL,
end = NULL,
as.matrix = FALSE,
simplify ... |
604d09c5d2bca6fa0b3b409611d8f6409130c6aa | 5c255d5bba86ddd16c76a43e4f51c3099fb22ac6 | /tests/testthat/test_ST_Ranking.R | 3b7c7960e51023e269091c9b5c703d549b1d35c5 | [] | no_license | tristanbains/rFootballAnalysis | 92d7b4ef52c117d62a58f1ad901c70e9af1c3529 | b898ba686baffd5da63c5312898e018241b9c127 | refs/heads/master | 2021-01-20T12:33:49.422731 | 2017-05-19T11:08:34 | 2017-05-19T11:08:34 | 90,376,720 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 309 | r | test_ST_Ranking.R | context("ST_Ranking")
data = suppressMessages(suppressWarnings(
DL_Matches("ESP1",season1 = "2014-2015",season2 = "2014-2015")))
result = suppressMessages(suppressWarnings(ST_Ranking(data = data)))
test_that("Right ordering based on aggregate matches",{
expect_equal(result$GD[16:18],c(-25,-35,-21))
})
|
18619e7d3ab33e137b93b281616bdc2c1799c8ce | fc18e2ba06ff2e409f8a30c76d8841243c4b393a | /R/mergeROC.R | 6b58eab6268572994b1f1ce891d2d9a55d1a0694 | [] | no_license | zhixingfeng/seqPatch | 59c0f36eb02f8ca63f467f1b4122a4736ca36b1c | 5ef9d6084e9af2d01cc292334eed4f71ec4e6e7b | refs/heads/master | 2020-12-24T15:05:33.081698 | 2014-07-31T06:54:56 | 2014-07-31T06:54:56 | 6,462,374 | 8 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,101 | r | mergeROC.R | mergeROC <- function(ROC.B, TPR.knots=seq(0.05,1,0.05))
{
# spline interpolate
model <- list()
FDR.B <- list()
for (i in 1:length(ROC.B)){
model[[i]] <- list()
FDR.B[[i]] <- list()
# fit spline for forward strand
for (k in 1:lengt... |
b734bd34f0454dc6e6a4c380217b230b62197887 | 6310ea884f52bfddeebc31ab9fb66bfce105ede0 | /tools/r-packages/nibrs/R/IncidentFunctions.R | 46ef07f12dbcf5269a5f58a8599550198e4b5ced | [
"Apache-2.0"
] | permissive | mark43/nibrs | 24c1d59c005f4134a4f62c42c00b7b7306003d89 | 65dcd57f874f8211a9fb507fbfd082ec9177b669 | refs/heads/master | 2023-04-28T02:10:24.762013 | 2021-12-17T16:15:45 | 2021-12-17T16:15:45 | 98,336,429 | 0 | 0 | Apache-2.0 | 2023-04-15T04:45:34 | 2017-07-25T18:13:14 | Java | UTF-8 | R | false | false | 5,902 | r | IncidentFunctions.R | # Copyright 2016 SEARCH-The National Consortium for Justice Information and Statistics
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... |
56aaf8cdedf06cd987cf302b89af7aec7c34fd9d | 5b73b50251eef41c0e41dce6cba8b50f0a3765a3 | /preprocessing/weather data/weather_merge2020.R | b73d556311c28b47f79b765b1c4e8cb335292738 | [] | no_license | noranm/landslide-prediction | cc250cabb127bc5d93a198535e98992215e7507d | 9c38b4b8305e74fe4fb116c1fcd901f1993a9aee | refs/heads/main | 2023-06-17T20:55:56.925294 | 2021-07-20T12:06:25 | 2021-07-20T12:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,751 | r | weather_merge2020.R | ########## KN
library(dplyr)
path = "./data2/경상남도/"
KN_SGGs <- list.files(path)
final1 <- final2 <- final3 <- NULL
for (sgg in KN_SGGs) {
print(sgg)
sgg_dir = paste0(path, sgg, "/")
DATEs = list.files(sgg_dir)
for (dt in DATEs){
dt_dir = paste0(sgg_dir, dt, "/")
FILEs = list.files(dt_dir)
... |
6cb769384acb6bd31533833b2951c059b941e5b0 | a933950bb09c97480b7031abe7858d65e0bf2d87 | /map_ze_breakfast.R | bfc1a9db45854ec94a4e590add5fa9211062f0b1 | [] | no_license | rachwhatsit/breakfast-report-card-map | 9816559a2c0823ec4ecc7abbffc6b6b66cab664a | 9364d17a97fb6325f456d5593549276a221d0f2a | refs/heads/master | 2021-01-01T03:55:22.160928 | 2017-12-24T14:59:25 | 2017-12-24T14:59:25 | 59,143,117 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,491 | r | map_ze_breakfast.R | library(choroplethr)
library(choroplethrMaps)
library(ggplot2);library(classInt)
setwd("/Users/rachel_wilkerson/Box Sync/RLW THI Projects/breakfast_heat_map/")
load("map_ze_breakfast.RData")
df=read.csv("heatmap.csv",strip.white=T,stringsAsFactors = F)
df$perc=as.numeric(substr(df$X..FRP.Breakfast.Participation,1,nchar... |
bda0fb4f3ea73b70098b0ac2fcb689d3137bf57d | b07bf8cef773d2611d329c93bcb645ccc2b87cba | /Code/Chapter 6.2 - Ridge and Lasso Regression.R | 516f81741eeb90483b4ddba1244d4302b111a905 | [] | no_license | ebardelli/Introduction-to-Statistical-Learning-Labs | 9333a4d38042bae2ef951a3ed43a04a9360084fc | be4dfd9d41d7eb46630a12eea7eaebb2d53b9fcc | refs/heads/master | 2022-12-04T11:19:30.314256 | 2020-08-01T19:22:37 | 2020-08-01T19:22:37 | 278,771,282 | 0 | 0 | null | 2020-07-11T02:17:13 | 2020-07-11T02:17:12 | null | UTF-8 | R | false | false | 4,981 | r | Chapter 6.2 - Ridge and Lasso Regression.R | #This script corresponds with Chapter 6 of Inroduction to Statistical Learning
#Author : William Morgan
#6.6 Lab 2: Ridge Regression and the Lasso
library(glmnet) #glmnet() function for ridge/lasso
library(ISLR) #Hitters data
##### SECTION 1: Ridge Regression #####
#Prepare the Hitters data as done in the previous l... |
14ffe6da5eae92789e116f0af726ee16b4efecef | e56da52eb0eaccad038b8027c0a753d9eb2ff19e | /tests/testthat/test-split_analysis.R | aba5bd299c03dc5342db47cea8a55f62e36db1cb | [] | no_license | ms609/TreeTools | fb1b656968aba57ab975ba1b88a3ddf465155235 | 3a2dfdef2e01d98bf1b58c8ee057350238a02b06 | refs/heads/master | 2023-08-31T10:02:01.031912 | 2023-08-18T12:21:10 | 2023-08-18T12:21:10 | 215,972,277 | 16 | 5 | null | 2023-08-16T16:04:19 | 2019-10-18T08:02:40 | R | UTF-8 | R | false | false | 529 | r | test-split_analysis.R | test_that("TipsInSplits() family", {
test <- TipsInSplits(BalancedTree(letters[1:5]))
expect_identical(test, c("7" = 3L, "8" = 2L, "9" = 2L)[names(test)])
expect_equal(TipsInSplits(PectinateTree(7), smallest = TRUE),
c("10" = 2, "11" = 3, "12" = 3, "13" = 2))
expect_identical(15:2, TipsInSplits(P... |
da9337f12be36190dfbfd2cb6b3e706ea5e9235c | 672e6732d5d81ecb3b24bc47011439ef59a728b5 | /Rstudio/LAB3_data_mining/lab3_exercises.R | 4170bcb457148c260149831fc4698b2d2026aad7 | [] | no_license | sslowik/Mgr_Inf | 4b4349a5e09a2354eefecf464fe53333d8365758 | ddc65c67b2b2b6990f4591adeaa33b03bc34faaf | refs/heads/master | 2022-12-01T14:33:39.213225 | 2021-01-19T20:07:57 | 2021-01-19T20:07:57 | 156,598,963 | 2 | 2 | null | 2022-11-24T09:31:00 | 2018-11-07T19:40:16 | HTML | UTF-8 | R | false | false | 3,466 | r | lab3_exercises.R | dirty.iris <- read.csv("dirty_iris.csv", header=TRUE, sep=",")
install.packages("editrules")
library(editrules)
a = subset(dirty.iris, is.finite(Sepal.Length) & is.finite(Sepal.Width) & is.finite(Petal.Length) & is.finite(Petal.Width))
nrow(a)[1] 95
E <- editset(c("Sepal.Length <= 30", "Species %in% c('setosa'... |
2547f9c9e3cbe4bf978a45b67e3fee397d3da703 | 9565039b0bb21e9e84dd98b619fc2684d195c405 | /USCriminals.R | de812bfe70faedf9c270f7bef51bc26b8450731a | [] | no_license | Xiaoxi-X-G/Propensity | f8620e9b8f070e7ef08dee49aca6a01667ddfb0f | c615102c8fbf41fc32c62801faaad551af6a6556 | refs/heads/master | 2021-01-13T15:56:06.991008 | 2016-12-18T22:27:28 | 2016-12-18T22:27:28 | 76,810,351 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 712 | r | USCriminals.R | rm(list = ls())
RScriptPath<-"C:/gxx/r/project/USCriminal/"
Column.type <- c("POSIXct", #Dates
"factor", # Category
"character", # Description
"factor", # DayofWeek
"factor", #PdDistrict
"factor",#Resolution
"fact... |
c5245891a47dd631ea6118879282bf1e26cede8d | 9bbdcb3936c5063edf237fe550fba4f5bf0a9b49 | /man/cpPolyShapeNew.Rd | 66e649c8c905e0d41f9de48a0e0710e16adfb864 | [
"MIT"
] | permissive | coolbutuseless/chipmunkcore | b2281f89683e0b9268f26967496f560ea1b5bb99 | 97cc78ad3a68192f9c99cee93203510e20151dde | refs/heads/master | 2022-12-10T17:56:15.459688 | 2020-09-08T22:40:10 | 2020-09-08T22:40:10 | 288,990,789 | 17 | 1 | null | null | null | null | UTF-8 | R | false | true | 818 | rd | cpPolyShapeNew.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cpPolyShape.R
\name{cpPolyShapeNew}
\alias{cpPolyShapeNew}
\title{Allocate and initialize a polygon shape with rounded corners. A convex hull will
be created from the vertexes.}
\usage{
cpPolyShapeNew(body, count, verts, transform, radius)
}
... |
8496bd027da4ae0216a64a6098b6cfce37eb6093 | a6a2e430afe20b8b347c959933d7131639b8f818 | /scripts/diff_exp_chip_seq.R | 1adbe4786618bbebda2f5c6f9b2f4afa8aa36817 | [] | no_license | fcadete/TRF2_siRNA | e1ee0bbcbaa3a885dff77427579beb6c53e51bcf | 419d987ea1fc5b1c099b0658b21d01dcd99f507c | refs/heads/master | 2020-04-01T17:29:06.315585 | 2019-01-15T10:07:02 | 2019-01-15T10:07:02 | 153,432,728 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,733 | r | diff_exp_chip_seq.R |
library("DESeq2")
library("Repitools")
library("tximport")
library("EnsDb.Hsapiens.v86")
library("tidyverse")
library("parallel")
pdf("diff_expressed_encode_analysis.pdf", width = 10)
samples <- read_tsv("sample_info.txt")
samples$TimePoint <- as.character(samples$TimePoint)
files <- file.path("salmon_on_hg19_ou... |
ea207d04f0a35d34355e24b066ca7efb44589c78 | 41dfdb38b9437a7cf9965a4aaf002894c973c4c4 | /data/rivers/eauAM/plot-PHYSICO-CHIMIE.R | abfd1f5fa21cfca079835cc0075863429d55e8ad | [] | no_license | jpgattuso/PointB-git | 2f71f1c639b184c56d2c37a5c6fecc2c8bac5a20 | f5acd1c2d82d59a7e95ad7153ad87ee4002399ec | refs/heads/master | 2022-09-16T21:55:21.963042 | 2022-09-08T18:48:42 | 2022-09-08T18:48:42 | 154,498,482 | 0 | 5 | null | 2022-09-08T18:48:43 | 2018-10-24T12:36:44 | JavaScript | UTF-8 | R | false | false | 1,074 | r | plot-PHYSICO-CHIMIE.R | Sys.setenv(TZ = "UTC")
filein <- "eau-sup-AlpesMaritimes-PHYSICO-CHIMIE.RData"
filepdf <- "eau-sup-AlpesMaritimes-PHYSICO-CHIMIE.pdf"
load(filein)
str(eau)
for(n in names(eau)) {
if(n != "value") {
cat("--------------->", n, "\n")
cat(levels(factor(eau[[n]])), sep = ";")
cat("\n")
}
}
dates <- as.POSIXct(strpti... |
c858c39e97f4979ed593e78737e8069ef3dde2d5 | b008570d05edad60a3a1675d0053e6b8911c00ef | /Lab04/Lab04.R | 7e890f7e516440abb3bd33a44393eee4d30236a1 | [] | no_license | brejai/CompeBioLabsAndHomework | 328c80cdd1a95b972e8adcfec9f9c97bbe38e870 | 4d89ed47297508ff93686392cc8e7f41821db597 | refs/heads/master | 2020-12-31T07:09:37.637498 | 2017-04-21T15:46:40 | 2017-04-21T15:46:40 | 80,553,263 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 961 | r | Lab04.R |
PiggyBank <- 10
Allowance <- 5
Gum <- 2*(1.34)
for (i in seq(1,8)) {
x <- PiggyBank + Allowance - Gum
PiggyBank <- x
print(x)
}
PopSize <- 2000
Shrinkage <- PopSize*(.05)
for (i in seq(1,7)) {
print(PopSize-Shrinkage)
x <- PopSize-Shrinkage
PopSize <- x
Shrinkage <- PopSize*(.05)
}
Start <- 250... |
b677a43c6e1b1172e2e7bcdbe1b9cedcf3d6ea63 | 47c81e91c91d6f321418042a69d5770b5aaadbdf | /tools/r_list_versions.R | dfc46ba5eba01648f9d1f7bc821608f531e1fc72 | [
"Apache-2.0"
] | permissive | Kaggle/docker-rstats | f6e4c28638e5f9d33de59bcc56ac296da49f2176 | 2a42e7619ff99579011ca9cace98ee4604d9c068 | refs/heads/main | 2023-09-01T11:24:00.881089 | 2023-08-22T16:43:21 | 2023-08-22T16:43:21 | 33,904,503 | 135 | 103 | Apache-2.0 | 2023-08-29T14:50:52 | 2015-04-14T01:46:50 | R | UTF-8 | R | false | false | 169 | r | r_list_versions.R | ip <- as.data.frame(installed.packages()[,c(1,3:4)])
ip <- ip[is.na(ip$Priority),1:2,drop=FALSE]
write.table(ip, quote=FALSE, sep="==", row.names=FALSE, col.names=FALSE) |
050fce9be861fc8106911aaf21ddd28090c6ee05 | f044402735a52fa040c5cbc76737c7950406f8b2 | /BrCa_Age_Associated_TMA/Packages/biostatUtil/R/plotKMDetail.R | 0ba68c9f23515f9661fa0f36281b5cec8265c91b | [] | no_license | BCCRCMO/BrCa_AgeAssociations | 5cf34f3b2370c0d5381c34f8e0d2463354c4af5d | 48a11c828a38a871f751c996b76b77bc33d5a3c3 | refs/heads/master | 2023-03-17T14:49:56.817589 | 2020-03-19T02:18:21 | 2020-03-19T02:18:21 | 247,175,174 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 9,778 | r | plotKMDetail.R | #' Plot detailed Kaplan-Meier curves
#'
#' KM plots with details of event counts.
#'
#' @param input.data input `data.frame`
#' @param surv.formula survival formula to `Surv`
#' @param main.text plot title
#' @param xlab.text x-axis label
#' @param ylab.text y-axis label
#' @param line.name name of legend
#' @param lin... |
85cf3f8990d0b90fe4c5b40073493ad01bef4c85 | f3ef1a4de6101d315afaeadeb3c0192033fd1a57 | /covid_notebook.R | 834e6f6dd3d0a2a4a6bcab4650a720accd9eb5b6 | [] | no_license | increasingemtropy/covid_notebook | 6e5a95e5dc9d80ca569ef375b54c8fc9bc475a45 | b83678d193ad345da0c02c4a4cc4c29c567bb86b | refs/heads/master | 2022-12-22T20:29:56.051606 | 2020-09-29T13:09:52 | 2020-09-29T13:09:52 | 293,780,123 | 0 | 0 | null | 2020-09-29T13:09:53 | 2020-09-08T10:43:32 | Jupyter Notebook | UTF-8 | R | false | false | 1,068 | r | covid_notebook.R | library(ggplot2)
# get up to date coronavirus data
coronavirus_data <- read.csv("https://opendata.ecdc.europa.eu/covid19/casedistribution/csv", na.strings = "", fileEncoding = "UTF-8-BOM")
data_subset <- subset(coronavirus_data,countriesAndTerritories %in% c("United_Kingdom","Germany","France","Spain","Japan","South... |
f86fb4ba757ae4dc026f725b184cebac4197ba68 | 9b1a760d45e21998b9d3871a1f4dac3a7a90c05a | /man/magplot.Rd | a2ac7276d9424766b6b9703fe91f5042b8276eab | [] | no_license | asgr/magicaxis | ac10b0b054128025976cb6b51003816cbd2157a9 | 0e3a56587021f8c22f86a3eda87907d8dfbe9e39 | refs/heads/master | 2023-06-21T11:28:06.031052 | 2023-06-19T06:30:03 | 2023-06-19T06:30:03 | 13,343,972 | 9 | 4 | null | 2020-10-22T07:14:05 | 2013-10-05T11:12:59 | R | UTF-8 | R | false | false | 11,633 | rd | magplot.Rd | \name{magplot}
\alias{magplot}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Magically pretty plots
}
\description{
Makes scientific plots based on magaxis axes. Particularly designed for log plotting. Utilises base plot for the most part, but the axis drawing is replaced by a call to the magax... |
169d7c25787eac2b488ef76575988a9b6f622bcb | 9bc986ed5c9830e9b28406758b6c5a0e41f1fdcf | /R_DataAnalysis/R/1.lm_basic3.R | 9279193c20061774cfabf180bef7390517cca7e5 | [] | no_license | Jerrykim91/Bigdata_Analytics | ca9e8c86f494d44336091729c08da541e315a929 | fab1f0522ff575537903790facf00f5a5c913262 | refs/heads/master | 2020-11-25T06:35:34.169050 | 2020-05-11T01:48:09 | 2020-05-11T01:48:09 | 228,540,309 | 2 | 2 | null | null | null | null | UTF-8 | R | false | false | 865 | r | 1.lm_basic3.R | require(graphics)
## 100 -> 70 : 30 / 80 : 20
# 70 -> 학습/ 30-> 검증(테스트)
# 4 : 3 : 3 (학습/검증/테스트)
m1<-c()
m2<-c()
for(i in 1:10){
sam<-sample(1:nrow(mtcars),nrow(mtcars)*0.7)
fit2<-lm(mpg~.,data=mtcars[sam,])
# mean((fit2$residuals^2)) # MSE
pred<-predict(fit2,mtcars[-sam,])
m1[i]<-mean((pred-mtcars[-sa... |
3297148f6201f79a95ba778c93fe3731e25e364e | 162ad14e40fb0ffba7a8b52c83c3a3406d60adc2 | /man/get.mat.omega.Rd | 3040bf671fed15580787cf525456026bbb751dc6 | [] | no_license | guillaumeevin/GWEX | c09c1f53a7c54eebc209b1f4aa5b8484fb59faf6 | b1cae5f753a625d5963507b619af34efa2459280 | refs/heads/master | 2023-01-21T10:01:28.873553 | 2023-01-16T11:10:16 | 2023-01-16T11:10:16 | 172,738,929 | 2 | 1 | null | null | null | null | UTF-8 | R | false | true | 855 | rd | get.mat.omega.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GWexPrec_lib.r
\name{get.mat.omega}
\alias{get.mat.omega}
\title{get.mat.omega}
\usage{
get.mat.omega(cor.obs, Qtrans.mat, mat.comb, nLag, nChainFit, isParallel)
}
\arguments{
\item{cor.obs}{matrix p x p of observed correlations between occur... |
ee357d4acd9c4873c786776299abeff475585762 | eb89d6f54071a8c7bb9fc213b94d1af101121723 | /tests/testthat/test-sag-gradients.R | 8695c020c6567b34007ecab2017d8f7a9d0d1af5 | [] | no_license | tdhock/bigoptim | cfe613c7098589e8179bee7c5805e69bd1e2fdf5 | 60245e925c9e8eb6ca7c48da9662eb0f2109d15f | refs/heads/master | 2020-12-01T13:07:31.289218 | 2015-06-09T14:26:03 | 2015-06-09T14:26:03 | 37,132,104 | 0 | 0 | null | 2015-06-09T12:58:35 | 2015-06-09T12:58:34 | null | UTF-8 | R | false | false | 1,726 | r | test-sag-gradients.R | context("Gradient tests")
## test parameters
eps <- 1e-08
L2regularized.logistic.regression.gradient <- function(X, y, lambda, weight){
stop("TODO compute gradient in R code")
}
data(covtype.libsvm)
test_that("gradient of covtype.libsvm is close to 0", {
lambda <- 1
fit <- with(covtype.libsvm, sag_constant(X, ... |
77b63fd9fad3a836b137661aa6475a17148df3fb | 77776736c4b7311499e249e2d5f636e6ecbb4768 | /static/slides/penalized-regression.R | 2777a5b99466c754857d358b14a6e5d1b08c59d6 | [] | no_license | turgeonmaxime/w20-stat7200 | 69227bed4b8ba30bfbce7c954cf91f5b278b45f8 | 0f30c8f753dd73756029bd44e8379610f4d9ed96 | refs/heads/master | 2020-09-29T02:38:56.815904 | 2020-04-03T22:40:07 | 2020-04-03T22:40:07 | 226,928,767 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,983 | r | penalized-regression.R | ## ----setup, include=FALSE-----------------------------------------------------
knitr::opts_chunk$set(cache=FALSE)
## ---- message = FALSE---------------------------------------------------------
library(tidyverse)
url <- "https://maxturgeon.ca/w20-stat7200/prostate.csv"
prostate <- read_csv(url)
# Separate into tr... |
d54304e426a7dc1c4101236a6a4fd361ccb0e37b | 19984c47727b920e9c32ef30639abfd1d744b8ba | /Lab07/Lab07.R | f917dc322b260148661fbb1735a153cc30136741 | [] | no_license | jadi9906/LABS | 91665dc0476d561bcf2927c5fd371079e7e03201 | 8b94e8a55dc1cca154512d8aac8dd1dde9964c3a | refs/heads/master | 2020-12-20T12:16:06.560803 | 2020-05-01T02:10:03 | 2020-05-01T02:10:03 | 236,072,496 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,271 | r | Lab07.R | #Lab 07: "Put the FUN in FUNction! :-)
#Feb 28, 2020
#Jacob Di Biase
#
#Problem 1
#The area of a triangle can be calculated as 0.5 * base * height
# Write a function named triangleArea that calculates and returns
#the area of a triangle when given two arguments (base and height).
triangleArea <- function(b,h) {
ar... |
eaf01c57c3793d5398e0a45be5022cc372b08c70 | a27b79fc527614f1ae9ab192bec123f7ad55ff36 | /R/markdown.R | c0ce0b7dd6b736425c5cc40e42b0a14b8dab00c9 | [
"MIT"
] | permissive | r-lib/pkgdown | 59528c00deab7466f678c48ed6e26227eecf1e6c | c9206802f2888992de92aa41f517ba7812f05331 | refs/heads/main | 2023-08-29T05:25:38.049588 | 2023-07-19T14:26:10 | 2023-07-19T14:26:10 | 3,723,845 | 443 | 330 | NOASSERTION | 2023-09-06T09:08:11 | 2012-03-15T00:36:24 | R | UTF-8 | R | false | false | 3,323 | r | markdown.R | markdown_text <- function(text, ...) {
if (identical(text, NA_character_) || is.null(text)) {
return(NULL)
}
md_path <- withr::local_tempfile()
write_lines(text, md_path)
markdown_path_html(md_path, ...)
}
markdown_text_inline <- function(text, where = "<inline>", ...) {
html <- markdown_text(text, ..... |
3f19b28aa1ae9be91811b7393cb009eec58bad54 | 2a6f46cc8b818b8a498433df63f822673ef6d4b0 | /LEARNINGPLOT.R | faecd6931cc55dc9c6a0b4085d99780b3948fad2 | [] | no_license | goredoc/DissertationFilesFinalVersion | 45b882d1166abeed790d8ce4a284bd1437a06314 | d2c55e383f937271bb84bb12450dd6c21a9e307e | refs/heads/main | 2023-02-19T02:55:57.040135 | 2021-01-24T18:37:24 | 2021-01-24T18:37:24 | 326,014,503 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 810 | r | LEARNINGPLOT.R | # LEARNINGPLOT
learningPlot = function(burnin,i)
{
burnin = 500
oddsMeans = (1:(length(phi_names) / 2) * 2) - 1
samples = phi[(i*2)-1,,(burnin+1):length(phi[1,1,])]
priorMu = mu_mean_vec[i]
priorSigma = mu_sd_vec[i]
loci = priorMu - 2*priorSigma
hici = priorMu + 2*priorSigma
losamp= min(samples... |
da380f77007e6f0dff195715fbacad295fe60399 | cd951d8c027e1c679bfec654e4850d787c5ba960 | /tests/test_bcSeq.R | 0fced2e941ad2f47a3ee326f25e4aee784c8e67e | [] | no_license | jl354/bcSeq | ee0666fa402e90bb0bd7ccde0289906b54b9cc87 | e97586cf05198876cda8a425e5d55810a2ba4137 | refs/heads/master | 2023-04-08T16:45:29.366402 | 2021-04-14T16:54:33 | 2021-04-14T16:54:33 | 104,780,130 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,379 | r | test_bcSeq.R | library(bcSeq)
#devtools::load_all("../")
#### Set the seed
set.seed(4523)
#### Generate barcode
lFName <- "./libFile.fasta"
bases <- c(rep('A', 4), rep('C',4), rep('G',4), rep('T',4))
numOfBars <- 7
Barcodes <- rep(NA, numOfBars*2)
for (i in 1:numOfBars){
Barcodes[2*i-1] <- paste0(">barcode_ID: ", i)
... |
24f584e7ff20291a00138bee5cb59cd2533b9e09 | b83cde74005d5d837f0494ce17ff75af290cc12d | /man/techrep_fdata.Rd | 33809b3244f203876f2d8bcf570b76cabfe31e42 | [] | no_license | clabornd/pmartRdata | eea42713a6af5389a9e2035e14c8db990d03095f | 34ea559378f1f0523bfaa09609c98cfa368c103a | refs/heads/master | 2020-04-08T21:19:04.424102 | 2019-11-06T19:12:29 | 2019-11-06T19:12:29 | 159,738,842 | 0 | 0 | null | 2018-11-29T23:05:44 | 2018-11-29T23:05:44 | null | UTF-8 | R | false | true | 855 | rd | techrep_fdata.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\name{techrep_fdata}
\alias{techrep_fdata}
\title{Peptide-level Technical Replicate Feature Data (f_data)}
\format{A data.frame with 64 rows (samples) and 4 columns:
\describe{
\item{RunID}{LC-MS run identifier (matches column header... |
1e4d5330525733e69d5719b7577a85ad4f7c7a80 | de882c7604b62c5975274bf0e3027da96a2f7b4d | /man/QTL_res_list.Rd | 99d8e8094ea851a8fdb2294f420c548e01e62db4 | [] | no_license | vincentgarin/mppR | bc061f2d0284adc6468619e162e8ffd45b641fb3 | 2fb0286257697f796c2c1b2590e9284ad281a939 | refs/heads/master | 2023-01-28T18:07:19.180068 | 2023-01-02T13:27:41 | 2023-01-02T13:27:41 | 75,842,226 | 2 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,043 | rd | QTL_res_list.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/QTL_res_list.R
\name{QTL_res_list}
\alias{QTL_res_list}
\title{List of QTL results}
\usage{
QTL_res_list(mppData, MPP_out, trait, Q.eff, VCOV, res_file = c())
}
\arguments{
\item{mppData}{An object of class \code{mppData}.}
\item{MPP_out}{Ou... |
b6c175bbead875f7b13d51ee383d1eba284d3b3d | 8dc13f15bc5c086d658b71a67a120b8eba2f388c | /R/vsm_info.R | 9c56aa5d1b2ff207ae714548e6185a0232a90cf2 | [] | no_license | thomasgredig/quantumPPMS | 4499966224e302f27e0a138f6ed74408493204b2 | c79cd5027b21446d168d8775a378e95b7dabe7e5 | refs/heads/master | 2022-05-23T18:35:58.955287 | 2022-04-09T21:29:55 | 2022-04-09T21:29:55 | 182,595,380 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,555 | r | vsm_info.R | #' Reads VSM data file header
#'
#' also returns the PPMS option (VSM,ACMS,LogData,Resistivity)
#'
#' @param filename filename including path
#' @return data frame
#' @examples
#' filename = vsm.getSampleFiles()[1]
#' vsm.info(filename)
#' @export
vsm.info <- function(filename) {
# check if file exists
if (!file.ex... |
fa9537401de80d14674fb5418985769c424b8652 | 24c8edec774d1b2ec1fa7f75af41fec5c036f9a6 | /R Programming Programming Assignment 2/cachesolve.R | f28490c8a523dd651ef84817bb01fd76e59ca43f | [] | no_license | Dingkai1996/R-programing-Programming-Assignment-2 | f12970d8b29b1590c41d88f1f1f666b320bad383 | bd83be78d8a479323c5895b7927369654d3119c0 | refs/heads/main | 2023-06-24T14:14:13.360753 | 2021-07-22T21:30:35 | 2021-07-22T21:30:35 | 384,751,511 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,486 | r | cachesolve.R | makeCacheMatrix <- function(x=numeric(), y, z){
m <- NULL ##initially set the inverse to NULL
if( lapply(length(x), as.numeric) != y*z){ ##check whether it can form matrix or not
message("can't make ... |
1a3fa86c503a8d34f3974fd20164fca33cfb0b90 | 2d02239b9d095490b34dcf77b891b65263aa9ddc | /lee_ready.R | a9b158b9422e27cdc4a66aa93b1788cfec166768 | [] | no_license | julienneves/herding | f629d8858b836e84e1b3253b953cce2baa06c2d8 | e6891da7394eb266e1e3f45589d9e7bbbaed173f | refs/heads/master | 2021-01-11T00:27:25.605447 | 2017-01-20T19:37:53 | 2017-01-20T19:37:53 | 70,556,432 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,698 | r | lee_ready.R | lee_ready <- function(tqdata, delay = default_delay(tqdata)){
x = getTradeDirection(tqdata)
trade = xts(x = x, order.by = time(tqdata), unique = FALSE, tzone = attr(tqdata,'tzone'))
trade_split <- split.xts(trade, f= "days")
trade_split <- lapply(trade_split, insert_no_trade, delay)
trade ... |
f8608efe3c48967ac13bce660d74aa90a350a56e | 03c99906a94c70e9a13e7714aad996f461f339c1 | /R/dsimFun.R | a6097dec490cd9e65001f6e1b24e774ccd3ac0f3 | [] | no_license | cran/adiv | 6a111f6a1ef39fe302a2f882b9a9d04e7d652c04 | d65d6e0301e4611a94a91933299bff1fdc06d96b | refs/heads/master | 2022-10-28T08:07:33.352817 | 2022-10-06T12:40:04 | 2022-10-06T12:40:04 | 97,764,074 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,751 | r | dsimFun.R | dsimFun <-
function(df, vartype=c("Q","N","M","P"), method=1:5, type=c("similarity", "dissimilarity")){
type <- type[1]
if(!type%in% c("dissimilarity", "similarity")) stop("type must be either dissimilarity or similarity")
meantype <- method[1]
if(!meantype%in%(1:5)) stop("Incorrect definition of... |
0c95ef1fdd2981474df8f691cf9bbaeb3446cf00 | f7a0f3cbeefdc01fc0f172a47359c0c4610c95a7 | /code_active/feature_fit.R | cc0d357036a87727c7dd93ef49d5f3a1e04a830b | [] | no_license | EESI/exploring_thematic_structure | 65e77efbb56fea646a9f165eaa94f955f68259ff | 06f7ea096c31dbb63b09fc117ee22411e52ab60e | refs/heads/master | 2020-08-25T03:30:04.253394 | 2019-10-23T03:02:18 | 2019-10-23T03:02:18 | 216,955,082 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,568 | r | feature_fit.R | feature_fit <- function(num_features,out,fit,
train_docs,test_docs,train_meta,test_meta,
vocab,variable,beta=NULL){
print(out$dx$imp$RF1500DS)
if (is.null(beta)){
topic_features <- order(out$dx$imp$RF1500DS$importance[,1],decreasing=TRUE)[1:num_fea... |
2b17b9ea100c8e7a4ca35d4885c5895e4dc0779b | d359475bd587e8f364ca2ece794f9358fce66a84 | /model/r_scripts/functions/get_init.R | c1bc37fc07340a45b3c61de99d7fdbd6103bb04a | [] | no_license | umich-cphds/cov-ind-19 | c22cc191bb64b1b2c581e28afaa2260a7583143c | ebb3c0093fff66d39d7a7cf14397efe269731b4a | refs/heads/master | 2023-02-18T07:43:37.731747 | 2023-02-06T17:24:29 | 2023-02-06T17:24:29 | 249,284,918 | 15 | 6 | null | 2023-02-02T16:17:31 | 2020-03-22T22:32:42 | R | UTF-8 | R | false | false | 769 | r | get_init.R | get_init <- function(data) {
tmp_data <- data %>%
filter(date < min_date) %>%
dplyr::select(-date) %>%
summarize(
Confirmed = sum(Confirmed, na.rm = TRUE),
Recovered = sum(Recovered, na.rm = TRUE),
Deceased = sum(Deceased, na.rm = TRUE)
) %>%
as.numeric(as.vector(.))
tmp... |
44b10a057744aec3595f649561413b730ed68a96 | ee5573b3b198214f0d5db33015e635182a75e1ca | /binomial/R/bin_distribution.R | 22d36f1e3c1754fc4e1d747ba35e85e22384c425 | [] | no_license | stat133-sp19/hw-stat133-TheGoldenKyle | e6b6a946963ac9aececeefdfedbc59133a7786d2 | e11cb3f4722b1a490acebc548607e08e7861b222 | refs/heads/master | 2020-04-28T13:28:53.897190 | 2019-05-03T19:55:32 | 2019-05-03T19:55:32 | 175,308,057 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,022 | r | bin_distribution.R | #' @title Binomial Distribution
#' @description Computes the binomial distribution of a certain number of success over a given number of trials
#' @param trials Number of trials (numeric)
#' @param prob Probability of successs (real)
#' @return Returns a data.frame of the number of successes and their probabilities
#' ... |
adaed9489e39b4101783705bc1de7d20762c378a | 41e59bef1fe26f89626e6cba7be15ee98e6d80f8 | /R/projection_domain.R | b1e7385f79137362d901e4a8a2988d1fe35d6e5f | [] | no_license | ardeeshany/FLAME | 32ae0a694a9c4cc3bd946757c1ccdb15c20c5673 | e8ba1670778f32988db6b9f57ede425f9f2d8d2e | refs/heads/master | 2021-07-05T03:49:04.885156 | 2017-09-25T00:10:40 | 2017-09-25T00:10:40 | 103,167,356 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,238 | r | projection_domain.R | #' Representation on the time domain of a function defined by the coefficients of the kernel basis
#'
#' It computes the pointwise evaluation of a function (or a set of
#' functions) on the time domain, given its (their) projection on the kernel basis.
#'
#' @param y matrix. \code{J} \eqn{\times} \code{N} matrix conta... |
0c69409597e8c0fbb28e953cc5a11065f08deaab | faab8fe6f24c90dff7c6a7eb42b955b073dd7c9f | /TLSfinder_GetTif.R | 2699134878afe2a776f9a4e8f436b652776dc930 | [] | no_license | Famingzhao/TLS-finder | 5d638d575ae76174174f4b2fb5b1265a85d5d44a | d4d221441e667161a8328c333f0fdab397aac1cc | refs/heads/master | 2023-08-08T04:03:15.098597 | 2020-07-13T09:33:58 | 2020-07-13T09:33:58 | 408,386,511 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 696 | r | TLSfinder_GetTif.R |
# 3.0_TLSfinder_GetTif.R
# Simply takes RData count matrices for B-cells saved with GridQuant and print them as tables with '.tif' extenstion so they can be loaded in Fiji
# Author: Daniele Tavernari
# Please cite: Tavernari et al., 2021 (see full citation on GitHub repository's README)
########## Input
OutDir_matr... |
380ba92fcbaf1176279c539cb13f6072be101f0d | da444894ad9f8181b0f89ac026d8e988779f9850 | /Ejercicio2.R | faa934ce45ae8927c99b22c3ba7666194be098f7 | [] | no_license | romeoaxpuac123/Practica2Semi2 | 2ca46d63617c5d5230a1fc2f7d4dc112ee6abf24 | c4d711fd9df294e8a87624a519864748c2bfd172 | refs/heads/master | 2022-11-12T22:50:46.436362 | 2020-06-28T21:05:06 | 2020-06-28T21:05:06 | 275,077,449 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 500 | r | Ejercicio2.R | print("Romeo Axpuac")
library(ggplot2)
#Guardamos el path del primer archivo
archivo <- "C:\\Users\\Bayyron\\Desktop\\Junio2020\\Seminario2\\Laboratorio\\Practica2\\Archivo\\cardio_train.csv"
informacion <- read.csv(archivo)
#head(informacion)
columnasReporte2 <- c("id","weight")
datos <- informacion[columnasReporte2]
... |
b691153e616246676424b8ac9452cbf0fa22fc47 | 622eb3dc154d7779473fc161da613002b3ee877c | /scripts/r/xxtemplate-r.r | 1eb2f9e7dd9d9218593601632a3f09b6020fadba | [] | no_license | thereisnotime/xxToolbelt | d9e99e2139da31a4d6e034f4c56753527d120157 | 2d2a311737d4a910816adc328f6cf4414caed61c | refs/heads/main | 2023-04-04T10:35:53.270861 | 2021-04-05T19:06:50 | 2021-04-05T19:06:50 | 354,077,716 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 66 | r | xxtemplate-r.r | #!/usr/bin/env Rscript
args <- commandArgs()
cat(args, sep = "\n") |
19233423044d61fc345497c940acb65d4f411cf7 | 5d5d7785f5ce2ff377ebec29d74382652502c1d8 | /R/calculate_IV.R | 0b3baba94526c2d571295a22d541a8328568cc0f | [
"MIT"
] | permissive | standardgalactic/wpa | d7256e719732c7c3f067e88d253e600cd1d66a06 | b64b562cee59ea737df58a9cd2b3afaec5d9db64 | refs/heads/main | 2023-08-10T19:11:03.211088 | 2021-09-08T13:40:35 | 2021-09-08T13:40:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,905 | r | calculate_IV.R | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE.txt in the project root for license information.
# --------------------------------------------------------------------... |
979b774695439bbe29c8e18a64d1f0c0dfec2efb | 1fcfa19b2fdb270e0862990db0cae8e733c1a7f7 | /R/UCTSUpload.R | 786b2631b0a9adcf483521e2b6cd53b3c5b5bfff | [] | permissive | GreenGrassBlueOcean/DatastreamDSWS2R | 28ae2916239c8f2c7a76a42691cf5cff86494b48 | 1250c37d360e14ee0beaa709e9033ef363257306 | refs/heads/master | 2022-12-08T07:45:12.499165 | 2020-06-03T21:05:51 | 2020-06-03T21:05:51 | 267,281,708 | 0 | 0 | Apache-2.0 | 2020-05-27T09:50:38 | 2020-05-27T09:50:37 | null | UTF-8 | R | false | false | 17,145 | r | UCTSUpload.R | #' @include common.R
#' @include classConstructor.R
#' @include wrapper.R
#'
#' @name dotEncryptPassword
#' @title Encrypt the Datastream password
#' @description This is a port of the VBA code
#'
#' @param strPassword the password to be encrypted
#' @return an encrypted password
#'
#'
#' @keywords internal
#'
.Encrypt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.