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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
127fc75726d06dd7352c9e2cb0019ec654611eef | a132a67357612f1c214a469addb6f06da1b6f592 | /PreTest_Files/pretest_vis.R | 408d9e9ab8d320be7eb516d80c6c4d791f2845f9 | [] | no_license | ehiroyasu/KuniInvasives | 3b8df7bc8eb7beda15b99ef96dacb285f7ae47c3 | 22523890c83dbf714571a0819bd05c1f24c2647f | refs/heads/master | 2021-01-18T18:42:34.657035 | 2018-05-01T16:21:56 | 2018-05-01T16:21:56 | 86,873,427 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,999 | r | pretest_vis.R | #kuni pretest visualization#
library(dotwhisker)
#First, Bar Plots#
#CONTROL, ECON, ECOLOGICAL
support_control = na.omit(project_support[treat_cat=="control"])
support_econ = na.omit(project_support[treat_cat=="econ_gain" | treat_cat=="econ_loss"])
support_eco = na.omit(project_support[treat_cat=="eco_gain" | treat_... |
d1700940054190aa880e7b05377fe14fb17dd26c | f9483bcbd9a14a2afe2b3b95c5591addac313e68 | /man/nsink_prep_lakemorpho.Rd | ee2b080714a3331303df9e1de42f9b5bd481f00c | [
"MIT"
] | permissive | jhollist/nsink | 4851e82a06d251c1c3e1fae74d11665abd116451 | 8a61adaf5fa2b3d3bbfd122d6c1399661e126a1f | refs/heads/main | 2023-05-13T19:57:52.497188 | 2023-04-27T19:32:34 | 2023-04-27T19:32:34 | 190,607,176 | 5 | 1 | NOASSERTION | 2021-03-02T21:41:24 | 2019-06-06T15:40:51 | R | UTF-8 | R | false | true | 542 | rd | nsink_prep_lakemorpho.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nsink_prep_data.R
\name{nsink_prep_lakemorpho}
\alias{nsink_prep_lakemorpho}
\title{Prepare lake morphology data for N-Sink}
\usage{
nsink_prep_lakemorpho(data_dir)
}
\arguments{
\item{data_dir}{Base directory that contains N-Sink data folder... |
30f43720ad6a99493cd4900ff56a775b23470580 | 94d74785fe89e2200ac5fc2f61c2933931e4f7c5 | /Authentication V2.R | b8a66c3b1371c8cfe6295165036be95281f62930 | [] | no_license | GowriVijay/Compilation | 7f2e4108615dc421ba811747a893ea953c20509c | fa95600ec6cdcbcc2b695c0d5419f3bd6139075f | refs/heads/master | 2021-01-11T17:52:26.817272 | 2017-01-23T22:36:55 | 2017-01-23T22:36:55 | 79,855,073 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,877 | r | Authentication V2.R | # install.packages("foreign")
# install.packages("sqldf")
library(foreign)
library(sqldf)
library(tcltk)
# Use the Keyboard shortcut Ctrl+shift+H for changing the working directory
# Use the Keyboard shortcut Ctrl+shift+C for Commenting / Uncommenting codes
setwd("C:\\Users\\vthangamuthu\\Documents\\Vijay\\Sam\\Aut... |
1b7530020a708d690252915089d2057133870964 | c319dbc7602b7e923548fa45e06aa675580427f8 | /man/isOnCourt.Rd | 3c56f68615635189d462aad0f2e14a0cf94dc2cb | [
"MIT"
] | permissive | solmos/eurolig | cb229cdae020d33bd1cd26e1e833038fd5606dc8 | 5a6e10ca793649a570b76db813f8d9c533cb3904 | refs/heads/master | 2023-05-11T04:39:19.757976 | 2020-02-09T13:25:18 | 2020-02-09T13:25:18 | 171,119,131 | 23 | 8 | NOASSERTION | 2023-05-04T17:16:47 | 2019-02-17T12:24:34 | R | UTF-8 | R | false | true | 700 | rd | isOnCourt.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/isOnCourt.R
\name{isOnCourt}
\alias{isOnCourt}
\title{Find if players were on the court}
\usage{
isOnCourt(pbp, players)
}
\arguments{
\item{pbp}{A play-by-play data frame}
\item{players}{A character vector with the nemes of the players}
}
\... |
e3a98927466cdf7b903c3f6d9529b803c0a430d6 | 92e597e4ffc9b52cfb6b512734fb10c255543d26 | /tests/testthat/test_string.R | 4e014d6b097eb5c0e24d38a8b0d0fee8bfb67bd5 | [
"MIT"
] | permissive | KWB-R/kwb.utils | 3b978dba2a86a01d3c11fee1fbcb965dd15a710d | 0930eaeb9303cd9359892c1403226a73060eed5b | refs/heads/master | 2023-05-12T15:26:14.529039 | 2023-04-21T04:28:29 | 2023-04-21T04:28:29 | 60,531,844 | 9 | 1 | MIT | 2023-04-21T04:28:30 | 2016-06-06T13:52:43 | R | UTF-8 | R | false | false | 29 | r | test_string.R |
context("string functions")
|
f9a65f419a1c0ea58cca0e5d69387c4f38463a19 | 070bd25468e5522c8ccfe3cd2bd64f39eef3dd76 | /Functions/Paper_Plots/Fig8_Network.R | 03bd9c19cea2a0631c8a1032eee0f57ce5ee5f8d | [] | no_license | paleovar/iHadCM3LastMill | eaed0b3206aa33b2aea2a9995ba6c82db2e51687 | 14ee42abb6028c5ad05122edc0d65d1470f803bf | refs/heads/master | 2023-03-07T04:18:43.390854 | 2021-02-19T19:20:49 | 2021-02-19T19:20:49 | 292,620,838 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,812 | r | Fig8_Network.R | #################################################
## Paper Figure 8 ###############################
#################################################
## Network
#################################################
library(plyr)
library(dplyr)
library(tidyverse)
library(zoo)
library(nest)
library(PaleoSpec)
lats = DAT... |
a192371a9b009365518aab8702fca267f20ec777 | a585391bba19fa78f05969ef2bd7695448b3d689 | /scripts/create_tables.R | 3e9bdb80ff92dd53967748416e17edd29c4ceebd | [] | no_license | spcanelon/geospatial-analysis-pregnancy-outcomes | 826a289757a22f3d6721547b843064b99f2e55b0 | 4ee6a54b381cfee435ae60ea00fe827ed9d5009a | refs/heads/master | 2023-04-22T20:44:46.486308 | 2021-05-07T10:22:30 | 2021-05-07T10:22:30 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,867 | r | create_tables.R | library(xtable)
wdstr <- "results/"
##########################################################
############ Model comparison table (table 2) ############
##########################################################
add_str <- "noNH_WHITE_"; add_str2 <- "";
####### ALLDATA & noSMOTE
### PRETERM
tmp <-load(paste0(wdstr,"... |
45ee18ee324b17b07cb58b36ed1959a52f207e25 | 80de789a2b26a51899062294b459b18bbcb20624 | /SALES/man/coef.ernet.Rd | 78be71a58086002b38e9ed44e166c3a5a7bffbcb | [] | no_license | knightgu/SALES | 675ffbb2b84cadb7b9e73363874615ec35c33928 | 58130b8c7b50a60b95f0568ca2a96af83180b4c4 | refs/heads/main | 2023-01-14T13:21:01.297409 | 2022-08-15T15:48:03 | 2022-08-15T15:48:03 | 62,416,019 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,942 | rd | coef.ernet.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coef.ernet.R
\name{coef.ernet}
\alias{coef.ernet}
\alias{coef.alspath}
\title{Get coefficients from an ernet object}
\usage{
\method{coef}{ernet}(object, s = NULL, type = c("coefficients", "nonzero"), ...)
}
\arguments{
\item{object}{fitted \... |
5dc23340ab8c46d0ea54adeee55852c05da997d3 | fecc9ee435b6450d1ccea9a782eabf740f8b79f6 | /plot5.R | 2e778f00b2962c75ca091d0db5c0aa8cbc98442d | [] | no_license | izaakjephsonbw/ExploratoryDataAnalysisWeek4 | 76e3e8c474e2214c71bd29d0bff57b6637106db9 | 32f0d28e398aa4154e616250ee17cc751f093456 | refs/heads/master | 2020-09-20T07:52:01.393806 | 2019-12-04T09:50:59 | 2019-12-04T09:50:59 | 224,415,808 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 837 | r | plot5.R | ## Import libraries
library(tidyverse)
## Import data
if(!exists("NEI")) {NEI <- readRDS("summarySCC_PM25.rds")}
if(!exists("SCC")) {SCC <- readRDS("Source_Classification_Code.rds")}
## Filter data by city for motor sources in Baltimore
colnames(NEI)[2] <- "SCCode"
baltimore <- NEI %>% filter(fips == "24510")
baltimo... |
50cb1bc8a09ac184b9e4a0a8abe58f7523b4088e | 032d5b16e6d9afa5d08cae5e4121b4f2e5e161f6 | /FCM_tyson.R | d2f47c87760f38dd721aad460f4e1cdabc07e9c8 | [] | no_license | tysonwepprich/photovoltinism | 93d3dca661f97a3bb559c791b3bb7a90670eef67 | 7c951f4983570bbf9f7c894f887ce57ea2e096a1 | refs/heads/master | 2022-11-21T21:26:12.152840 | 2022-11-03T21:54:03 | 2022-11-03T21:54:03 | 100,308,351 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,471 | r | FCM_tyson.R | require(sp)
require(rgdal)
require(raster)
# setwd("F:/PRISM/2014") # remove this
prism_path <- "/data/PRISM/2014"
Con=function(condition, trueValue, falseValue){
return(condition * trueValue + (!condition)*falseValue)
}
source('CDL_funcs.R')
#Daily PRISM Statistics (degree days and thresholds) for pest de... |
5a1c9a8f9cba44d1f0515da0ee5b75aa2152ad63 | e98b541d19a1893cf0507389888a14b4097607e4 | /tests/testthat/test-FIND.R | 764761eaacf7d666b39e9c10073834bf3d330ef2 | [] | no_license | njbultman/xlsxFunctions | 6cd647aacd140a45207949fe01b596f00bd0490a | 0326efb9af26be1efc7f6e65b782f3a6e30bebcf | refs/heads/master | 2023-07-06T00:22:15.572100 | 2021-08-08T14:26:17 | 2021-08-08T14:26:17 | 294,152,526 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 415 | r | test-FIND.R | test_that("Works with a string", {
expect_equal(FIND("l", "hello"), 3)
})
test_that("Works with a character vector", {
expect_equal(FIND("l", c("hello", "hello")), c(3, 3))
})
test_that("Inserts NA when character not found in string", {
expect_equal(FIND("l", c("hi", "hello")), c(NA, 3))
})
test_that("Works wh... |
b4c23c670bb7df4b38315b97b7f50034b8280187 | c555c086b271eaca27472410f3aa5c97709958d9 | /man/is.local.Rd | f0bcddcc41c6cdc792f4a2e78673d582a0d36a09 | [
"MIT"
] | permissive | filipezabala/embedr | c3e9e299bc1ed9a8e7f811a96c7e53b60fe53b73 | 64eee3d975392c20f2242c9663f607e3790a322e | refs/heads/master | 2023-03-20T14:37:29.654223 | 2020-07-09T07:54:50 | 2020-07-09T07:54:50 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 363 | rd | is.local.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{is.local}
\alias{is.local}
\title{Return strings without a URL scheme}
\usage{
is.local(x)
}
\arguments{
\item{x}{A character vector.}
}
\description{
Given a character vector, returns a logical indicating whether the
paths in t... |
fa7ce7c5819acc19e867fb7cfc5986dade6da99e | 64f5a277a159ce9e8489fffc0affa08d4c90b8bc | /A2-Econometria.R | c9a875eb907696546f8fc9d2305d807757af6bec | [] | no_license | JuliaNavas/2-Series_Temporais | 470c7a00d9a6d2a91a507c6f965700557c740015 | edb6aff5a26c6608c145afa92990de92ca0e8bd2 | refs/heads/master | 2020-03-28T04:55:30.387867 | 2018-10-29T22:34:58 | 2018-10-29T22:34:58 | 147,745,098 | 0 | 0 | null | 2018-09-06T23:32:44 | 2018-09-06T23:32:43 | null | UTF-8 | R | false | false | 1,405 | r | A2-Econometria.R | # Econometria Avançada Aula 2
# Noções Básicas
x <- 1:10 #cria objeto x com elementos de 1:10
y <- rep(3,10) #cria objeto y com 10 repetições do número 3
ls() #lista todos os objetos que estão no global environment
rm(list="x","y") #apaga os objetos x e y
setwd("G:/USJT/Econometria") #altera a pasta de trabal... |
f958b2ec069b72643ef322cabea4a730c83eb19f | a407e7551a05b15a26085369bc4aeeadc80fee87 | /man/readTIFF2.Rd | 22af830919f0cce0cf22430aa02f3a2cda02c79e | [
"MIT"
] | permissive | tkatsuki/dipr | 8ec80f0aaaec481e6a477f2108365760964e7511 | 2d9adf558a893cd3525ee54c099695c9becae0a4 | refs/heads/master | 2021-06-06T19:54:00.071143 | 2021-04-18T06:04:38 | 2021-04-18T06:04:38 | 63,497,539 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 846 | rd | readTIFF2.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/readTIFF2.R
\name{readTIFF2}
\alias{readTIFF2}
\title{A readTIFF2 Function}
\usage{
readTIFF2(filename, start = 1, end = 0, crop = c(0, 0, 0, 0),
frames = NULL, getFrames = F, intensity = F)
}
\arguments{
\item{start}{An integer of the star... |
831975f98f940728e41ef965266fe52f885b7052 | 7b51d31509b41bdb46feec97e8fe723fee46ceed | /projects/kaggle_challenges/orange_customer_satisfaction_competition/code/models/rf/basic.rf.model.r | 9b518efcc44205e95d5f6304185a2c3482e8657a | [] | no_license | FredGH/ProjectPortfolio_2.0 | 7c2a90e1aba821bd388d2d364288d46c46311914 | c45ac47cc958a67dab137afd57a80d883462486b | refs/heads/master | 2021-07-05T03:32:14.700525 | 2020-08-20T06:30:31 | 2020-08-20T06:30:31 | 65,825,815 | 1 | 1 | null | 2020-08-19T06:12:36 | 2016-08-16T14:12:14 | Roff | UTF-8 | R | false | false | 1,302 | r | basic.rf.model.r | debug.train <- TRUE
debug.test <- TRUE
train.ntree <- 50
train.BasicRF <- function(formula, data) {
print("training..")
targetColumnName <- get_target_column_name(formula)
if (debug.train) {
print(sprintf("targetColumnName is %s", targetColumnName))
}
levels(data[, targetColumnName]) <- c("NO", "Y... |
cf0817ca92fa18c28a179dc185569f2abe5056b8 | b26909940752cd8322f4f0e8fd5078c61f69c9cc | /man/hw04pDmando-package.Rd | cb2b55e034f174279ad584aa65b030ea400103cc | [
"MIT"
] | permissive | STAT-413-613-21S/hw04pDmando | 89618199bdeae4f288a9dacc0d826ca71b9c830b | 14d2324b47f5109659970a49ef4cdd121326f932 | refs/heads/master | 2023-03-14T05:31:13.153322 | 2021-03-04T16:02:02 | 2021-03-04T16:02:02 | 344,530,068 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 485 | rd | hw04pDmando-package.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hw04pDmando-package.R
\docType{package}
\name{hw04pDmando-package}
\alias{hw04pDmando}
\alias{hw04pDmando-package}
\title{hw04pDmando: Two Functions for HW4}
\description{
If this package works it will help me get an A in this class and it ha... |
dbba5806278a573057d33a0c96761e371eb4ced6 | 05c8ef8706b84a0c4abd5886cf98b246495fed36 | /TP 1/Ejercicio 3/kfold_spiral_test.R | c8e7c2ec12edaf1fc4abcb554e6417e703cf0691 | [] | no_license | Tomasfdel/Trabajos-DM | dbc53ff4bd544b5f09da2b7ed9209c552a33855e | bbf40027d7853aa0f187d7453d5c216be027982a | refs/heads/main | 2023-02-27T17:02:19.241945 | 2021-01-31T07:15:31 | 2021-01-31T07:15:31 | 334,008,370 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,915 | r | kfold_spiral_test.R | library(class)
library(rpart)
source("../Ejercicio 1/spirals.R")
getClassMembers = function(class, dataset, classIndex){
# Devuelve todos los valores de dataset que pertenezcan a la clase class.
dataset[dataset[classIndex] == class, ]
}
shuffleClassMembers = function(classMembers){
#Reordena los elementos del da... |
f0b4aa3796059cb18606f27d7b1c20ca9d87bf6c | 19fa6ad75dad84e3cdf55b3e70f2a793b3d97a1a | /data cleaning.R | 530df908953dd6266d46e5b58be0b1b586fb52c0 | [] | no_license | OmarLaz97/BigData_HR | 57821a31f2ebea01ae10a8827048850f56cd52f5 | 05bc2babffd58f7cd105390ce849935baf0a4277 | refs/heads/master | 2022-05-24T07:05:32.028352 | 2020-05-01T19:52:08 | 2020-05-01T19:52:08 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,247 | r | data cleaning.R | rm(list=ls())
library(lubridate)
#Set the working directory to the folder that contains the dataset files
inTime <- read.table("in_time.csv", header=TRUE, sep=",")
outTime <- read.table("out_time.csv", header=TRUE, sep=",")
generalData <- read.table("general_data.csv", header=TRUE, sep=",")
employeeSurvey <- read.table... |
3b15dbd175a37a66138cb000822b6bd70c2e3e75 | 229c0dd9ed28a2c5887957856e8b9ddd439597e2 | /initialisation/set_CAF2021_Turrialba_trees_E_AC.R | 507659e03d2b5f4050688b32151b5eefb34c5f50 | [] | no_license | MarcelVanOijen/CAF2021 | 7e6e68ac4e17f33badb2071d8dc74d1390d907df | e752e2024c420cb1f4518fcfc29010fa65670afd | refs/heads/main | 2023-04-11T18:29:56.318506 | 2022-01-17T09:07:46 | 2022-01-17T09:07:46 | 349,493,187 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 404 | r | set_CAF2021_Turrialba_trees_E_AC.R | ## set_CAF2021_Turrialba_trees_E_AC.R ##
## MvO, 2021-06-04
params <- set_par( "TREEDENS0(1)", 0.07 )
calendar_prunT[ 1, 1 , ] <- c( 2001, 266, 0.8 )
calendar_prunT[ 1, 2:33, 1 ] <- rep( 2002:2017, each=2 )
calendar_prunT[ 1, 2:33, 2 ] <- c( 140, 350 )
calendar_prunT[ 1, 2:33, 3 ] <- 0.6
calendar_thinT[ 1, 1 ,... |
b3d928c7646f6217d1670546186a3b46b7664251 | d149292e3981f86ae0d216ea44d7170cc53d0599 | /cachematrix.R | 1548c063c5fd667e3be103292bf8b4ee441eb205 | [] | no_license | RonanCon/ProgrammingAssignment2 | e6eb4f9c683e5d48b02e6cb8d59188d17c1ee5c4 | fa5f11dc552c5a13d1477083edad702a7bd96405 | refs/heads/master | 2021-01-21T19:07:15.130723 | 2014-09-21T22:32:24 | 2014-09-21T22:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,809 | r | cachematrix.R | ## Creates a matrix object that can calculate its own inverse (a)
## and caches that value which can be recalled until the input
## matrix is changed. Based on the sample functions provided in the ##assignment
## This function creates the object which holds the input matrix
## and defines the variables and functions ... |
34c61bc62cf6a1b7c2b15bceeb6f2ee10c6d5fa1 | b0cc45f7079c36065479cbc55cd314a7f12f3958 | /Lecture/03-matrices-arrays-lists-data_frames.R | b7b8dbf41e15f80e836b28c49b3582e2dd3e2661 | [] | no_license | aaronlai1027/R-for-Data-Science | 03f6d4521d16a1e197bb5fed2673d89d14a9c0e9 | d6e1044ade0d3e94c00fe68236e50f1ca15f72c2 | refs/heads/master | 2022-11-11T10:14:04.114263 | 2020-07-01T06:59:47 | 2020-07-01T06:59:47 | 276,236,772 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,630 | r | 03-matrices-arrays-lists-data_frames.R | #### Class 3: Tuesday September 5
## Matrices and arrays.
## Lists.
## Data frames.
##**** Matrices and Arrays ****##
## Matrices and arrays are vectors with a ``dim''
## attribute set to a vector of 2 (for matrices) or
## more (for arrays) elements (each element adds a
## dimension) associated to it.
## A matrix is... |
85fabc324f34819f7c9df056df4151691698110c | de33d107690c2a6e119af35f1496ad7a9a22a0ae | /man/treestack-package.Rd | 0a920f0aadea0cbcf77a62d11386f6ee2e6274ee | [] | no_license | nverno/treestack | e493f68f15a5c9211b3deaf7e84c3363ff5c44d8 | dca6c6f859500046297952075ffb65d843f20fa7 | refs/heads/master | 2021-01-10T05:54:01.927512 | 2015-11-09T04:51:05 | 2015-11-09T04:51:05 | 45,757,892 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 573 | rd | treestack-package.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pkg.R
\docType{package}
\name{treestack-package}
\alias{treestack-package}
\title{Stacked Treemap}
\description{
\tabular{ll}{
Package: \tab treestack\cr
Type: \tab Package\cr
License: \tab GPL-(>=2)\cr
LazyLoad: \tab yes\cr
}
}
\details{
Vis... |
30a11607c3fd9288d04a33cebb4d7889bc1e9c06 | 4ddb88f2583737faebf066b5efdfdc3d9e04a891 | /libraries/old/la-county-calcs.R | 57d8b4daf9de57733d89aef49f7694aa6804b0b8 | [] | no_license | ryanvmenezes/census-queries | 67ecb97a6826cf2c469612c7544a6ad57841221d | 4567b352d8f401537550a666e926704485ca8db7 | refs/heads/master | 2023-03-08T11:00:26.297720 | 2021-02-24T21:01:20 | 2021-02-24T21:01:20 | 165,991,588 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,557 | r | la-county-calcs.R | library(tidyverse)
lang.raw = read_csv('old/languages-la-county.csv')
lang.raw
lang.by.year = lang.raw %>%
pivot_longer(`1980`:`2018`, names_to = 'year', values_to = 'popcount') %>%
mutate(
year = parse_integer(year),
popcount = popcount %>%
str_split('\n') %>%
map_chr(`[[`, 3) %>%
... |
b6fb4cd0cb11e563c871482506640b7c812db830 | 1ae54e124af1de72ac9b42c827f3a29cd14f2b99 | /program/Scer_n157_nonMosaic_Spar_stat_SNPs.R | ffb7e687b1bfda43059481e521ce0379763e7fc8 | [] | no_license | eternal-bug/pars | 43114444e19d53752df0068ec90320521d64e746 | 4959b439c367bc4b998cdc234402edbe40ab4afe | refs/heads/master | 2020-03-21T15:23:10.794853 | 2018-06-23T08:07:47 | 2018-06-23T08:07:47 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,505 | r | Scer_n157_nonMosaic_Spar_stat_SNPs.R | name <- "Scer_n157_nonMosaic_Spar"
path <- paste0("~/data/mrna-structure/result/", name, collapse = NULL)
setwd(path)
library(ggplot2)
library(scales)
library(reshape)
library(pander)
library(gridExtra)
library(plyr)
library(dplyr)
library(proto)
library(gsubfn)
library(RSQLite)
library(sqldf)
# 统计所有snp的数量
file_SNPs... |
63473b1b7dd85e6cc8ca41267a6ca4c1250fc389 | c66763a1b19ccacffe8326cfc375b3bb8f569f12 | /man/rt_sleep_timer.Rd | b56240d5e3e0b8e22ff804d802363a80e1eca93a | [
"MIT"
] | permissive | junduck/tswbench | 8273bc5e618ebf54226693708e01c3c4b6bfd407 | 88c28b4348b0d7ea835d1eb280e24e7cb1c87b49 | refs/heads/master | 2023-05-14T11:36:25.328939 | 2021-06-09T16:55:43 | 2021-06-09T16:55:43 | 225,979,888 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 342 | rd | rt_sleep_timer.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/realtime_loop.R
\name{rt_sleep_timer}
\alias{rt_sleep_timer}
\title{Default sleep timer for A-share market}
\usage{
rt_sleep_timer(t_now)
}
\arguments{
\item{t_now}{ITime}
}
\value{
time in seconds to sleep
}
\description{
Default sleep timer... |
ffc6287b7ca5385b5df9a28ca5f0fe31283ed328 | 57f54656b24fd75ee6b7d403bb30f74657bedc41 | /archive/AGU_analysis/plots.r | 706a183c648bf601fefc2f99a445ea0d74542e93 | [] | no_license | kroppheather/synthesis_database | 95a78338270fea260ee364f81813e63126858de3 | b34246d99970152456cbc0fda62b8b4df2e0f08d | refs/heads/master | 2021-01-09T20:36:11.505384 | 2020-09-15T20:33:11 | 2020-09-15T20:33:11 | 60,531,994 | 1 | 0 | null | 2017-05-08T14:57:16 | 2016-06-06T13:54:44 | R | UTF-8 | R | false | false | 10,756 | r | plots.r | ###################################################################
#########plot the results from the Nvege model for AGU ###########
###################################################################
#read in datafiles
#quantiles
datQ<-read.csv("c:\\Users\\hkropp\\Google Drive\\raw_data\\analysis_u6\\model_nvege_q... |
1c5c858c79278b3ed9d7773fc3be33b5cfd3eae6 | 36c215bb36f3a2e7c610a64ff3a327df0adf777b | /slice.R | 98b83f4e4962a89b33c7600b3cd8df006a9e3ac3 | [] | no_license | mcewenkhundi/miscellaneous | c575d111e0d1eadbe4add61fac768bc9452f6f0a | 32651dc1729d8ce3f1765c34f4c9322c8038d47d | refs/heads/master | 2022-08-29T22:25:14.105053 | 2022-08-19T08:56:40 | 2022-08-19T08:56:40 | 151,368,337 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,760 | r | slice.R | #Subset rows using their positions
#https://dplyr.tidyverse.org/reference/slice.html
library(tidyverse)
mtcars <- mtcars
head(mtcars)
mtcars %>% slice(1L)
tail(mtcars)
mtcars %>% slice(n())
mtcars %>%
slice(5:n())
#Rows can be dropped with negative indices
slice(mtcars, -(1:4))
# First and last rows based on exi... |
f534e5315083fd40ef41356ee31022dbc2089365 | 9a43ed375f522bd9a696c4e83c00d9dce5ac0965 | /ai/TimeseriesR.R | 6269ea52b150c895bced00461200b6f924ae981e | [
"MIT"
] | permissive | flyingabove/RobinhoodTrader | 3dbbf9966595f40a1c39944e0233cb5c42af76ad | a85cc6c69dd644331e05253421cf5b3cb7f86b81 | refs/heads/master | 2020-03-10T20:02:12.404262 | 2018-04-14T23:17:42 | 2018-04-14T23:17:42 | 129,561,373 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,639 | r | TimeseriesR.R | ###################
#Christian Gao Hw2#
###################
###########
#Problem 1#
###########
load("hw1.Rdata")
#a) Annual Plot, Seasonal Boxplot
chocolate<- read.delim("cbe.dat")[1]
choc.ts <- ts(chocolate, start = 1958, freq = 12)
par(mfrow=c(3,1))
plot(choc.ts, main = "Chocolate")
plot(aggregate(choc.ts), main =... |
22dbe3716548e23f3c757c4eecddeb053ddb5191 | e41bbd233fd878a14a6e2e8e6556a6f25d9d92ab | /man/diffExamples.Rd | ed6d00c7a977763d7c52f110e53f3e26f528ca0f | [] | no_license | cran/RatingScaleReduction | a8a806f3d4d1bf1379d530c86efb55d3089f2b66 | e34c7642fb50180918344e05e508762d5e4df353 | refs/heads/master | 2021-06-14T09:03:11.637982 | 2021-01-21T08:30:02 | 2021-01-21T08:30:02 | 81,642,405 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,251 | rd | diffExamples.Rd | \name{diffExamples}
\alias{diffExamples}
\title{The number of different (unique) examples in a dataset}
\description{Datasets often contain replications. In particular,
one example may be replicated n times, where n is the total
number of examples, so that there are no other examples.
Such situation would de... |
0d13714d4b627de6953fa12228b9e663431a0989 | efe5e7be31569208c415bbaceeb653de1d1e2464 | /weatherMal/server.R | 3af5c5a5a013fddd98a512dc3fd3b8995d7f8180 | [] | no_license | ck2136/malaria2k17 | 2543d14472c53fec56c71d3704f3574526184bb9 | 36b5e31be72b7b411b46ebb77e9ea2c6e7357db5 | refs/heads/master | 2021-08-24T03:35:31.379969 | 2017-12-07T22:28:58 | 2017-12-07T22:28:58 | 111,337,182 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,664 | r | server.R |
library(shiny)
library(lattice) # for graphics
library(RColorBrewer)
library(sp)
library(maptools)
library(latticeExtra)
library(rgdal)
library(tmap)
library(ggplot2)
library(dplyr)
library(ggpubr)
library(plotly)
# load data
setwd("/srv/shiny-server/malaria_2k17")
final <- readRDS("./data/final.rds")
# Define ser... |
5df83b7cd1c4b4827266e6a77f34e1de9d76c135 | c8b538781e646c517518691c425ee72e7d1aef0e | /System Simulation Projects/Data-Analysis-R/auto-correlation.R | a0d46ef79a6b6b3288e2b84f2c2bd882bea29219 | [] | no_license | alprnbg/cs-course-projects | 532dbff5fe1cc4c9d07a577305bd7f8c61f8ed00 | 3d5bdd01d089eed649e914462e2418c8d15d35cb | refs/heads/master | 2023-01-18T17:06:09.804720 | 2020-06-23T09:55:21 | 2020-06-23T09:55:21 | 244,027,566 | 0 | 0 | null | 2022-12-22T03:38:38 | 2020-02-29T19:18:50 | Jupyter Notebook | UTF-8 | R | false | false | 249 | r | auto-correlation.R | file_path = ''
data <- read_xls(file_path)
# Auto correlation function
acf(data$`Day 1`, lag.max = 2, plot = TRUE)
acf(data$`Day 1`, lag.max = 2, plot = FALSE)
acf(data$`Day 2`, lag.max = 2, plot = TRUE)
acf(data$`Day 2`, lag.max = 2, plot = FALSE) |
1333eec7c47924d90b63c7745aa0ea3b21e7cd0c | 839a85ac4cd9b38017ace1ffaa5c0a294d759c08 | /Aug 25, 2021 R Document.R | 978ce8c2bd5c2e67e46f297c58a66d9d6c227c24 | [] | no_license | JhordynJones/Aug-23-2021-R-Document | 35d21eb896ff648b4efb11ebb4cb72d9affe3b2b | 84386d1a2003d24602622a65cff457e0e35cb000 | refs/heads/main | 2023-08-17T10:36:28.400655 | 2021-09-27T16:43:33 | 2021-09-27T16:43:33 | 402,130,739 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 278 | r | Aug 25, 2021 R Document.R | # Author: Jhordyn Jones, Date: Aug 23, 2021, Purpose: Calculating Pearson correlation coefficient value
# Install the library "ggpubr"
if(!require(devtools)) install.packages("devtools") devtools::install_github("kassambara/ggpubr")
# Loading this Libraary
library("ggpubr") |
9fa1ebf3847f7371bbb4ad284821789809ac96ac | a7635ddc182075b0b9e195b26ac7ffa4264a79cc | /tests/testthat/test_get_results_error.R | 46db5468c69496ea6681c659d00952b876d7f40b | [] | no_license | BiostatQian/ASAFE | e55924885db0c8be2895fa0e6a71ae49174491ca | c6826e4ce9f81da82702f9213d224a6b0f8ff4ad | refs/heads/master | 2021-01-24T21:42:07.655843 | 2018-03-27T17:31:15 | 2018-03-27T17:31:15 | 47,431,269 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,085 | r | test_get_results_error.R | test_that("TESTING get_results_error()", {
n_ind <- 3
n_markers <- 2
print(paste("n_ind = ", n_ind))
print(paste("n_markers = ", n_markers))
anc_spec_freqs <- matrix(c(1, 1, 1,
0, 0, 0,
0.5, 0.5, 0.5), nrow = 3, ncol = 3, byrow = TRUE)... |
eba7c822e5f067cfffe30af6cda8961816529592 | cf606e7a3f06c0666e0ca38e32247fef9f090778 | /test/integration/example-models/misc/multi-logit/fit.R | 30523f65e272fed92afdbf8349ad2eef527a88f4 | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | nhuurre/stanc3 | 32599a71d5f82c759fd6768b8b699fb5f2b2d072 | 5612b357c1cd5a08cf2a57db97ce0e789bb87018 | refs/heads/master | 2023-07-05T02:27:08.083259 | 2020-11-12T15:37:42 | 2020-11-12T15:37:42 | 222,684,189 | 0 | 0 | BSD-3-Clause | 2019-11-19T11:50:39 | 2019-11-19T11:50:38 | null | UTF-8 | R | false | false | 110 | r | fit.R | library(rstan);
fit <- stan("multi_logit.stan", data=c("K","D","N","x","y"),
chains=4, iter=500);
|
299ec1746897939ea6728d96bb1fe85c60ffa5d9 | b06ada71be740e288545cd95da40eb213a958987 | /yahoo_stock_transaction.R | 8c96bbe30e55b05eaac0f0a23d9de628c219ad4f | [] | no_license | KuiMing/RCrawler101-201605 | 96f40a399469423e68079df3c269480fef83906d | 75addd132c5c1aa6da5faa7ed0e1d0d1aa18abbe | refs/heads/master | 2021-01-21T15:12:29.639323 | 2018-11-21T13:29:26 | 2018-11-21T13:29:26 | 58,893,337 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 400 | r | yahoo_stock_transaction.R | library(httr)
library(rvest)
library(magrittr)
url <- 'https://tw.stock.yahoo.com/q/ts?s=3008&t=50'
transaction <- GET(url) %>%
content("text",encoding="big5") %>%
read_html() %>%
html_table(fill=TRUE) %>%
.[[8]] %>%
.[-1,] %>%
`colnames<-`(c("time","buy","sell","deal",
"change",'vol... |
b97aa792e4f5eb349362450f903fe24633745485 | d4599d2a5faeaa5e40994b8486e6becc59141fe1 | /man/acum.Rd | d4986c72bdb89f07dacc8751d79c49edb242c8cb | [] | no_license | Allisterh/forecast-pimfc | 6a61c568768a792babc49ba1f27cc89997c63cfa | 928986ec4932e7247fff857da58e53733ee00cd4 | refs/heads/master | 2023-03-16T23:02:45.366133 | 2017-03-13T23:35:45 | 2017-03-13T23:35:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 429 | rd | acum.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/di.R
\name{acum}
\alias{acum}
\title{Acumula series em percentual ao mes em m meses}
\usage{
acum(x, m = 12)
}
\arguments{
\item{x}{A time series univariate}
\item{m}{number of monthes}
}
\value{
A time series univariate
}
\description{
Tran... |
dbcc6c09f6c1905f24c57cc5bbf5151f9c322962 | ab4da977e6ffde05be2559e81ce4ad3032041dff | /man/lt_attgt.Rd | c60972866662687d79e3be2d4e6e73ae72f1a858 | [] | no_license | bcallaway11/ife | 59a32983c03c69079666a1c0d598e21b8ef30778 | c3d1177bcf69a6b92ab162435553930be796c80f | refs/heads/master | 2023-08-28T13:15:55.338660 | 2023-08-15T21:38:05 | 2023-08-15T21:38:05 | 387,966,129 | 16 | 2 | null | null | null | null | UTF-8 | R | false | true | 898 | rd | lt_attgt.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lt_attgt.R
\name{lt_attgt}
\alias{lt_attgt}
\title{lt_attgt}
\usage{
lt_attgt(gt_data, xformla = ~1, anticipation = 0, ...)
}
\arguments{
\item{gt_data}{data frame that is local to the specific groups
and times for which we'll be computing a ... |
943248834327c971203f8b588c6a3b909f9fefc9 | 370da857b20dc8c00e78f5b24de5070246069cae | /01 BasicAnswers.R | a038c84ce10e9d46bf4819d6b0ac91b6c2511b37 | [] | no_license | CodyStumpo/MLB-Extra-Inning-Rule-Change | 2f45d68fb9f4430e15a7d84554cd2f616b7008b9 | 2f7053f67613bfab7746759f322f3d15a78fe166 | refs/heads/master | 2021-01-22T06:48:51.612886 | 2017-02-13T06:14:23 | 2017-02-13T06:14:23 | 81,790,651 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,723 | r | 01 BasicAnswers.R | setwd("~/Documents/Code/mlb-hackathon-2017/")
library(readr)
#rawData = read.csv("2016-WS.csv")
rawData2016 = read_csv("2016.csv")
rawData2015 = read_csv("2015.csv")
rawData2014 = read_csv("2014.csv")
rawData=rbind(rawData2014,rawData2015,rawData2016)
rm(rawData2014, rawData2015, rawData2016)
library("dplyr")
library(... |
c797f526acf762893f2b92f92d738d8ae1337e82 | 33657200e7557bde9ef28fc172e12463183ef3ab | /walmart.r | a696e860b8143352684bff898c2e302811bc1834 | [] | no_license | kalyaniram88/walmart-gif | 49e787dce1834097a146bd74b93985c436d1b93a | 137d4fa7c89f9029d29db16f2e9040c37349a19a | refs/heads/master | 2016-09-06T01:45:36.781751 | 2015-09-02T22:22:44 | 2015-09-02T22:22:44 | 20,395,573 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,116 | r | walmart.r | library(maps)
library(fields) #for US() map, which is pretty straightforward than map() as its used minimally
#open the stores opened dataset, rename
#to get the the date into year, month and day using strsplit()
d<-read.csv(‘data/store_openings.csv’)
names(d)=c(“store.number”,”opendate”,”date.super”,”conve... |
651cf9554679ef3251447309e98f65f32929ab72 | 45e9081e8ed8a0d117331e020e63f4cc7b7a1020 | /open_click_models/data_wrangling_open_click.R | 2ccd0372893960fb8f735c35d939bb284a33e948 | [] | no_license | NCSU-STATCOM/activate-good-emails | 009f7f2cedef77778c6af8d0172740ac08b68a22 | d6100aeeee9d540d6398805655b98f84866c3f79 | refs/heads/main | 2023-07-02T15:24:26.908348 | 2021-08-06T13:37:30 | 2021-08-06T13:37:30 | 320,062,177 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,458 | r | data_wrangling_open_click.R |
library(lubridate)
# load weeklies1 to merge in the number of characters in subject
load("initial_report/weeklies1.RData")
subscriber_agg <- read.csv("newsletters/csv/intermediate/all_files_week_agg.csv", stringsAsFactors = FALSE)
subscriber_agg$date_sent <- as.POSIXct(subscriber_agg$date_sent, tz = "America/New_Yor... |
9f98f1c173acd98b7cf6c963e5314a7adf0912de | 0b05920b9b5a2371f510812e0a34a172cfa65562 | /ASAR/SVR_ASAR_smap_grid.R | 7250c08f482a083e338ead6f2d25f3c911595e0e | [] | no_license | felixgreifeneder/EURAC_R | 962d77f0579cae1257b29aabda09b74070e17b70 | 0256893e67e3ea3c34247b88472af40b6ef2e64d | refs/heads/master | 2021-01-10T11:26:53.843753 | 2017-02-09T09:26:57 | 2017-02-09T09:26:57 | 47,684,976 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,765 | r | SVR_ASAR_smap_grid.R | #Initialisation
#--------------------------------------------------------------------------------------------------
#loading required packages
library("e1071")
library("caret")
library("ggplot2")
library("reshape2")
library("hexbin")
library("RColorBrewer")
library("gridExtra")
#load the training-set
training_noScl <... |
5c08da71a81665117cdea2fff23367d0f0dc030a | 9d308bfa1dd2081d5cb5b2d1b69270827d77acff | /1. First R functions.R | ca6d73b8c4ea82a3798f28015e1e559865e16f59 | [] | no_license | Rachitahuja20/R-Language | 34f70e6d348e7d5d0baf8a7c80573461b8f401b6 | b589a2f89fa3c922b5c1d63f6efbbd89a3dbc2e2 | refs/heads/master | 2020-03-20T19:43:02.871298 | 2018-06-18T17:51:35 | 2018-06-18T17:51:35 | 137,650,337 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 828 | r | 1. First R functions.R |
#Assigning value to an object
die <- 1:6
#Creating a function with sample function
Roll2 <- function() {
Dice <- sample(die, size=2, replace = TRUE)
}
#Calling the created function
Roll2()
#Above function with weighted dice using probabilities.
Roll <- function(Big = 1:6) {
win <- sample(Big, size= 2, replace = ... |
45d157a61df3c78c220e4f7bb78e774dd3b5c316 | aba010bbf8165acc06349b629ddf4593628325de | /NEED_cluster_analysis.R | 96ab482a43ab893513e33da79601d83b7a998c8a | [] | no_license | karafede/Energy | f2557d0e7e6b5ca1141177c836b2f2f2dc610355 | 9b3f8a0b344dd01fb9944ac85e326d28e1fa615e | refs/heads/master | 2021-01-10T09:40:27.074294 | 2016-03-22T11:32:35 | 2016-03-22T11:32:35 | 54,454,862 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 39,592 | r | NEED_cluster_analysis.R | # Set-up ---------------------------
# Load packages
library(threadr)
library(ggplot2)
library(dplyr)
library(tidyr)
library (devtools)
library(readxl)
library(Hmisc)
# devtools::install_github("skgrange/threadr")
# Set global options
options(stringsAsFactors = FALSE)
# Set working directory
setwd("C:/... |
d10d928e6875c748c37a9051bf3f966cf894039d | 2077c16a184d041a8b36a511bd47266e4e74bf7a | /R/mod_SiteStats.R | fd09dc2db86761bdfef5ed6d66724c3d023ecd58 | [
"MIT"
] | permissive | genobobeno/buildaflame | aa4325858144a41360ac3e62e21719013383311d | ebc3197792cf37377bc7922821d2e6ec3d91b708 | refs/heads/master | 2022-11-23T12:17:56.845574 | 2020-07-10T04:26:52 | 2020-07-10T04:26:52 | 263,195,695 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 536 | r | mod_SiteStats.R | #' SiteStats UI Function
#'
#' @description A shiny Module.
#'
#' @param id,input,output,session Internal parameters for {shiny}.
#'
#' @noRd
#'
#' @importFrom shiny NS tagList
mod_SiteStats_ui <- function(id){
ns <- NS(id)
tagList(
)
}
#' SiteStats Server Function
#'
#' @noRd
mod_SiteStats_server <-... |
7d5b4974423651e9e32bb9625642c3b58b135e12 | 6b0a7dad237b597261591f95aaf495f7019c27d9 | /shiny_msconvert/app.R | 3805724c9b8745025fef238cff384b5ab74b9193 | [] | no_license | danielbraas/ShinyDB | 8f5abccbaf60779ec40a7867edd527e65d4148ce | c8d9f6e8efdf30123b91b50add9966ea1f492d13 | refs/heads/master | 2022-04-04T15:43:37.327413 | 2019-12-24T04:53:27 | 2019-12-24T04:53:27 | 115,495,170 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,271 | r | app.R | library(tidyverse)
library(shiny)
library(shinyFiles)
make_mzXML <- function(files, pol = NULL, msconvert, out=NULL){
files <- files()
msconvert <- msconvert()
if (!is.null(out)){
out <- paste('-o', out())
print(out)
}
#convert the files
for (i in 1:length(files)){
... |
db4aa58c68273cfde30acfb025fbf481a0ae5614 | c84337f414140e2fd23b5392d01e557b3fd95528 | /R/zzz.R | 3f24f62eea8cd3dd6dee0a71b2b62288018c49af | [] | no_license | cran/maxent | 15ac2bcc6b47281c2d4880d28ea9b10f926c3ff7 | 9d46c6aad27a1f41a78907b170ddd9a586192be9 | refs/heads/master | 2020-05-31T16:03:29.572899 | 2013-04-06T00:00:00 | 2013-04-06T00:00:00 | 17,697,316 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 258 | r | zzz.R | .onLoad <-
function(libname, pkgname) {
library.dynam("maxent",pkgname,libname);
assign("maximumentropy",Module("maximumentropy",PACKAGE="maxent"),envir=.BaseNamespaceEnv);
setClass("maxent", representation(model = "character", weights = "data.frame"));
} |
fb29a189375a309aae07e234a2c0a09f3a31aadd | 93d426e1a913d462a7969c84feae89cf59fef34e | /man/data_process.1_core.Rd | 62cf831bb000bcd68b630e771a1e60828b446e2b | [] | no_license | cran/polypharmacy | 2c14ad772d1ccd01118b24d602388a2366fc7057 | 0f9cc8c7ffe7849356d176ece3f09b8f30c9b1b1 | refs/heads/master | 2023-06-21T22:59:22.184540 | 2021-07-12T08:30:02 | 2021-07-12T08:30:02 | 385,299,314 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 4,234 | rd | data_process.1_core.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_process.R
\encoding{UTF-8}
\name{data_process.1_core}
\alias{data_process.1_core}
\title{Data Process}
\usage{
data_process.1_core(
Rx_deliv,
Rx_id,
Rx_drug_code,
Rx_drug_deliv,
Rx_deliv_dur,
Cohort = NULL,
Co... |
b77e4fa4c0653e5b20758c751759a0b043e192de | 11311aea4618398dc7a217241809e6fc48fca8e0 | /man/progress_ring_percent_construct.Rd | c20936426aa63c161f66c57d1cc1d03d0998233a | [] | no_license | suharoschi/switchboard | 81a8a6b4f3dd9698ed207cd5ec122a0c7db7edd4 | 9fc25eb9e0facba3d8da971dff742bc9701aec0b | refs/heads/main | 2023-08-06T18:44:19.906946 | 2021-10-08T19:07:35 | 2021-10-08T19:07:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 466 | rd | progress_ring_percent_construct.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/progress_ring_percent.R
\name{progress_ring_percent_construct}
\alias{progress_ring_percent_construct}
\title{helper function that constructs canvas items of a progress_ring_percent widget}
\usage{
progress_ring_percent_construct(.switchboard... |
5724fda64e51249227004d05d8232bcba324f61a | 68fb75bc1bf3bde79d6b3c3ad2cdcf697a713762 | /man/orthogproj.Rd | c9e98df9127bdd414a7bd1027129158fdad625b2 | [] | no_license | baddstats/globe | 993aa9b056fb3bbedf4506fbb115619e51a3a453 | f2af47e917376daa13d4ba478de79bbde4a8dcf4 | refs/heads/master | 2021-01-13T06:10:18.820841 | 2017-05-12T05:22:46 | 2017-05-12T05:22:46 | 49,102,940 | 4 | 0 | null | 2017-02-11T06:33:40 | 2016-01-06T01:09:12 | R | UTF-8 | R | false | false | 1,403 | rd | orthogproj.Rd | \name{orthogproj}
\alias{orthogproj}
\title{
Orthogonal Projection
}
\description{
Project points from the unit sphere onto a plane orthogonal
to the viewing direction.
}
\usage{
orthogproj(eye, top, loc)
}
\arguments{
\item{eye}{
Viewpoint. A vector of length 3 (or a \code{list(lon,lat)})
determining a... |
51f4b11abfab4cb36339875836b0df2923c1da4c | 27b622ba3d99a98cd886c75fa321592c387b42ef | /Materialy/L8.R | 5f3bb4261fd33bf6b253c9163f69c6faaa9b9fa5 | [] | no_license | Kaketo/2020Z-ProgramowanieWR | 76c560d06b1705a6ba8ab904bbab7fafba035d99 | d4c3b8654666716ac93f7c55c841e0f79fc9cd01 | refs/heads/master | 2020-08-05T15:44:34.804707 | 2020-01-30T07:13:43 | 2020-01-30T07:13:43 | 212,601,214 | 1 | 0 | null | 2020-01-30T07:09:58 | 2019-10-03T14:30:35 | HTML | UTF-8 | R | false | false | 2,388 | r | L8.R | library(archivist)
# tylko do celów demonstracyjnych
cacheRepo <- tempfile()
createLocalRepo(cacheRepo)
# https://github.com/ropensci/git2r
library(ggplot2)
# objects of class ggplot for which the session_info was archvied
# https://github.com/pbiecek/graphGallery
md5plots <- searchInRemoteRepo(
pattern = c("class... |
8b0d47b4f05aad8dd96532d518a1ac28a72b8fca | 82a2ceaa30010b57a5632a7d9a0b06e06cfa1efb | /NJW algrithom.R | 4e4e653cf94701484eeefa98b6a2c18755f08211 | [] | no_license | xinz19/SpectralClustering | 01cfe4c400826b884c6999a91284c94f15c89b5c | ebbcc800eeef3a3ae717dbcd4ad3184be481f7ee | refs/heads/main | 2023-06-09T13:29:08.994978 | 2021-07-02T17:46:45 | 2021-07-02T17:46:45 | 382,422,090 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,423 | r | NJW algrithom.R | #NJW Algorithm
#toy data simulation
#load library for multivariate normal random data
library(MASS)
#specify the means
mu1 <- c(35,10)
mu4 <- c(10,55)
#specify the covariance matrix (multivariate version of variance)
sigma.matrix <- matrix(c(1,0,0,1),2,2,byrow = FALSE)
#check if the covariance matrix is positive de... |
1c00cb0b90b6bca88d3952d908970d39e219d4ec | 9f79de70350e18beefe71c197ef274ac5c6d193f | /R/indentify_chol.R | 6ad5f83ce11ac214f4a6df029fe677291857f3d7 | [
"MIT"
] | permissive | pat-alt/deepvars | 2e1f2d6c5cdbab4ac0b8e9e31d6170b38c30e7c4 | cba45c14228767e24afcaad1d3ed735fb876c1dd | refs/heads/master | 2023-05-22T17:03:59.242706 | 2022-06-10T12:13:38 | 2022-06-10T12:13:38 | 249,440,715 | 9 | 3 | null | null | null | null | UTF-8 | R | false | false | 534 | r | indentify_chol.R | #' identify_chol
#'
#' @param Sigma_res
#'
#' @return
#' @export
#'
#' @description Computes coeffcient matrix capturing contemporaneous effects through short-run restriction using Cholesky decompostion.
identify_chol = function (Sigma_res) {
# Choleski decomposition - lower triangular:
P = t(chol.default(Sigma_... |
1d86cbac97095125951dc9e4b7da1c9f0b6ac1ac | 71563f005b965ee07fa0c142db0442b76da8c1cd | /plot4.R | c6505f66ab83f3c5c1c7706266b1691087b6a5de | [] | no_license | albemlee/ExData_Plotting1 | 09a5dd46af316a592b426357b9f73168e0097f65 | e2de52de7dfc16de9ec10bf7185e6d5d7e56e00e | refs/heads/master | 2021-01-18T09:54:23.249864 | 2014-06-08T15:04:05 | 2014-06-08T15:04:05 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,538 | r | plot4.R | ## Calculating memory required and loading the Data
MemoryRequired <- object.size("household_power_consumption.txt")
data <- read.table("household_power_consumption.txt", header = TRUE,
sep = ";", na.strings = "?")
# Subset data to only include needed dates
data <- data[xor(data[,"Date"] == "1/2/200... |
d4f7d3381be86ec9988ca2ab39785e12569efaba | d7b7827edc7ba5c22c1c0efd635a9b7e2fd6e14b | /R/test.NI.R | 0a3eb693a0b7846cc0d9dcac1202c6c30498fe58 | [] | no_license | Matteo21Q/dani | 76b9c2c77a3d209e64c459275eb6a83ff2122cea | f895d6e8c6d09dd2a547458b9c410e8ed8772545 | refs/heads/master | 2022-06-25T08:57:58.336131 | 2022-06-15T20:55:02 | 2022-06-15T20:55:02 | 271,560,982 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 12,668 | r | test.NI.R | test.NI <- function(n0, n1, e0, e1, NI.margin, sig.level=0.025, scale="RD",
print.out=TRUE, unfavourable=TRUE, test.type="Wald",
M.boot=2000, BB.adj=0.0001) {
stopifnot(is.numeric(n0), n0>0)
stopifnot(is.numeric(n1), n1>0)
stopifnot(is.numeric(e0), is.numeric(e1))... |
24989ec76a5a3b716ecbfd2ec4c1fc7692329188 | be00ed3553040f7c7b5b752835ec61ad977ea143 | /R_deduplication/deduplication/join_pairs_fathers_f.R | 16567ed98b200635e66c900284308b4df0ca5cc7 | [] | no_license | nptodd/NamingForKinWW1 | e3fc7520f05c2610426483e7906c9a2df65923ed | 4980ab5c425786cf901afbba90548b90555c950d | refs/heads/master | 2023-06-15T14:30:54.204290 | 2021-07-07T09:30:32 | 2021-07-07T09:30:32 | 270,934,769 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,550 | r | join_pairs_fathers_f.R | join_pairs_fathers_f= function(strat_a, CUTOFF_a, diagnostic_a=F){
# test
# strat_a = strata_pairs[1]
# CUTOFF_a <- 6
# load results of deduplication procedure
result0 <- loadRLObject(strat_a)
pairs_all <- getPairs(result0, max.weight = Inf, min.weight = -Inf, single.rows=T)
setDT(pai... |
03c7810c315b585e15dfa391861768411ca39f58 | f4c58fb1797080c5445fc062bfe23469a2ad4269 | /ProjectOne.R | a9609d22d3e0d0230def28b73b7661910cf9ea1d | [] | no_license | Shydhevi/DataMining | c832479c77a43b9224f8c9f490db210ae7f53f79 | 720600c5a56684ad0ca6eda157e0339cb42a123f | refs/heads/master | 2022-11-24T05:45:12.748098 | 2020-07-20T04:42:28 | 2020-07-20T04:42:28 | 281,014,756 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,367 | r | ProjectOne.R | #1. Examine the numeric variables for missing values. For five of the variables with missing values take appropriate action - eliminate variable, assign zero, average value, etc. Justify your decision.
library(tidyverse)
library(readxl)
library(knitr)
library(ggplot2)
CompustatCompustatdata <- read_exce... |
55eab84523990f78d23b07a3e75e3d931e2f82f7 | 61180649c781ca23ee434754577acea001eb4bc0 | /man/getunct.Rd | 7e84b07fa7df31086c441a382615d410012ac56a | [] | no_license | malexan/fclhs | 87e0b4c9b86eb1c954644bbdb699699677d4163b | f93e69dd96bbd15bdbc68a5c52db5fe0dde3a0fa | refs/heads/master | 2020-05-31T15:48:22.614152 | 2015-08-09T07:59:08 | 2015-08-09T07:59:08 | 27,025,796 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 325 | rd | getunct.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/unsdapi.R
\name{getunct}
\alias{getunct}
\title{Get trading data via UNSD API.}
\usage{
getunct(area, year, partner = "all", flow = "all", code = "AG6",
compact = T, desc = F, debug = F)
}
\description{
Get trading data via UNSD API... |
78a255a6a964a4d59b7e91871fed945b8c7daddb | ad292b23922e4d9fe84ca70b0146e12c01f4c1aa | /analysis.R | 1cf22ace5adbdf7447b50df0947b03106d91dc64 | [] | no_license | zivepstein/datafest15 | 7f6dbe17fcf27be254bc72d76205a437ef76d441 | f965b430acdc5030e10b085498622f63c706ebe6 | refs/heads/master | 2016-09-05T11:45:45.614388 | 2015-04-25T18:57:19 | 2015-04-25T18:57:19 | 33,838,704 | 1 | 0 | null | 2015-04-13T03:50:10 | 2015-04-12T23:49:07 | R | UTF-8 | R | false | false | 2,820 | r | analysis.R | library(dplyr)
library(igraph)
Same.Lead <- function(lead_one, lead_two) {
return(lead_one$make == lead_two$make && lead_one$model == lead_two$model)
}
leadss <- inner_join(visitor, leads, by = "visitor_key")[1:500]
adj_matrix <- matrix(0, ncol = 500,
nrow = 500)
for (i in 1:500) {
for (j ... |
237a265ed4629a5a6ba9c587ee42aa21662634c5 | a0bc1a85ec9d49fc0afc2a9a78c247e31409364c | /man/hdsci.Rd | 1189df870d845474f36fa0c8ff8094b6ac7055d5 | [] | no_license | linulysses/hdanova | 2b0fd79ce0a45ab51607f438e49942fa9305729a | e0e13be70bd5ac7fd31d38927fdea2ed19f700aa | refs/heads/master | 2023-03-22T14:20:09.092950 | 2021-02-11T07:14:56 | 2021-02-11T07:14:56 | 231,020,381 | 5 | 6 | null | 2021-03-14T15:58:25 | 2019-12-31T03:39:09 | R | UTF-8 | R | false | true | 7,517 | rd | hdsci.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sci.R
\name{hdsci}
\alias{hdsci}
\title{Construct Simultaneous Confidence Interval}
\usage{
hdsci(
X,
alpha = 0.05,
side = "both",
tau = 1/(1 + exp(-0.8 * seq(-6, 5, by = 1))),
B = ceiling(50/alpha),
pairs = NULL,
Sig = NULL,
... |
91566f014d6e4313e4c6c79713d0ad6daa4129e1 | f3963b60cc2e5c0f46394073c88884d2f27621d1 | /data_exploration.R | bfc3dc4cd56d5d11625b247ab28f73c3d6226b23 | [] | no_license | juschu321/CRAN-Meta-analysis | f2688df0bdde97f28cafa2dffa8e93b2e6d11e19 | 922cdb6ad3397b9a15591ac705df3436d321e102 | refs/heads/master | 2020-05-23T15:54:49.812840 | 2019-06-30T12:31:11 | 2019-06-30T12:31:11 | 186,837,173 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 328 | r | data_exploration.R | library(readr)
library(tidyr)
my_data <- read_csv("mydata.csv", col_types = cols(date = col_date(format = "%Y-%m-%d")))
View(my_data)
#check the data structure
str(my_data)
data_frame <- as.data.frame(my_data)
my_data_spread <- tidyr::spread(data=my_data, key = package, value = count)
View(my_data_s... |
37282c5092109046807a59f4d01d5579bb659b0a | 1407e006fba9a49daba2e519357e1ae459bb1e8d | /dropout_olympics.R | c871e5d5faa0ad038d2fb96caae9b5a728c71a45 | [] | no_license | skeydan/uncertainty | 01242bc33394b1036971a3129fc23eff1273dd22 | 2ef278c4ab3eab397a45d31f484644c8470c7b52 | refs/heads/master | 2021-08-19T09:35:43.010216 | 2017-11-25T16:15:10 | 2017-11-25T16:15:10 | 102,039,845 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,303 | r | dropout_olympics.R | library(keras)
library(dplyr)
library(ggplot2)
K <- keras::backend()
source("get_data.R")
n_hidden1 <- 64
n_hidden2 <- 64
n_output <- 1
learning_rate <- 1e-6
num_epochs <- 500
batch_size <- 1
dropout <- 0.1
l2 <- 0.1
#X_train <- matrix(rnorm(n_samples * n_features, mean = 10, sd = 2), nrow = n_samples, ncol = n_f... |
cb483c760df6c187988aba6cf329708c2e7a34de | 97357255a18408e4b946435c82a2b973fb862af2 | /man/getDataOutagesProduction.Rd | 17d2c1a2173c336a6ffff2227e63d27cc8809065 | [] | no_license | rte-antares-rpackage/unavailabilityProductionEntsoe | 234143d2d4a0046eefb2d3115bd4eb6998bad03d | a732b19abc3a21e1f4a299f23dcfd74c6339ee22 | refs/heads/master | 2021-07-08T05:42:33.442331 | 2019-04-12T12:23:32 | 2019-04-12T12:23:32 | 153,428,056 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 5,477 | rd | getDataOutagesProduction.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/loadDataFromEnsoe.R
\name{getDataOutagesProduction}
\alias{getDataOutagesProduction}
\title{Load unavailability of production from Ensoe}
\usage{
getDataOutagesProduction(token, bz = "10YNL----------L", docType = "A80",
docStatus = "A05", s... |
6f7501c3fb78f79e3362945ec2eeb337ecc8c340 | f4c3ceb4387e76f07c1ccaaf1d63e2363c125008 | /Example3/Hollding_T3.R | 3c5fb0a00a33653713d948ddd7071e2c601d03c1 | [] | no_license | SenarathneSGJ/Laplace_based_sequential_design_algorithms | 372a9630e241e75b77b38ce9dccb80470ebadcf6 | 5a6c2331990794327df0d8bce8c90136caaff6ad | refs/heads/master | 2020-05-26T07:24:27.617673 | 2019-07-10T05:34:07 | 2019-07-10T05:34:07 | 188,149,611 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 145 | r | Hollding_T3.R | Hollding_T3=function(t, state, parameters) {
with(as.list(c(state, parameters)), {
dY <- (-(a*N^2)/(1+a*T*N^2))
list(c(dY))
})
} |
76190ac4b76855b8d0df0ae1f3fc9c5030da6968 | ca609a94fd8ab33cc6606b7b93f3b3ef201813fb | /2016-April/8.ML-Parallel Processing/parallel-processing-foreach.R | 9b09bb7fcf0847fa3c14662fd4b26eade5d54ed2 | [] | no_license | rajesh2win/datascience | fbc87def2a031f83ffceb4b8d7bbc31e8b2397b2 | 27aca9a6c6dcae3800fabdca4e3d76bd47d933e6 | refs/heads/master | 2021-01-20T21:06:12.488996 | 2017-08-01T04:39:07 | 2017-08-01T04:39:07 | 101,746,310 | 1 | 0 | null | 2017-08-29T09:53:49 | 2017-08-29T09:53:49 | null | UTF-8 | R | false | false | 776 | r | parallel-processing-foreach.R | library(randomForest)
library(foreach)
library(doParallel)
#register cluster for parallel processing
cl = makeCluster(detectCores())
registerDoParallel(cl)
setwd("C:\\Users\\Thimma Reddy\\Documents\\GitHub\\datascience\\2014\\kaggle\\titanic\\data")
titanic_train = read.csv("train.csv")
dim(titanic_train)
str(titan... |
eeb436742edd3214554098b1d7456381921e9ad6 | 5c7cd7da84653a5fbe584f088c7ba8fbcf7e67bb | /Temp.R | fefb96f82fbed4a02ad76093bacf303abfc971d2 | [] | no_license | peterbyrd/CaseStudy2_v2 | 0f9facc4cd308236555ef80a2d416adb7e8b38e3 | 0c2993e0340332d0c024257857f4e0f9bee0be78 | refs/heads/master | 2020-06-21T18:49:28.540051 | 2016-11-29T06:28:58 | 2016-11-29T06:28:58 | 74,775,777 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,971 | r | Temp.R | ## Author: Peter Byrd
## Data: November 25, 2016
## Case Study 2 - Question 4
## Set the working directory and load packages
setwd("/Users/pbyrd/Git/CaseStudy2_v2")
library(tseries)
library(ggplot2)
library(plyr)
# Part I
## Read CSV input file
Temp <- read.csv("Data/Temp.csv", header=TRUE)
## Create single date... |
6f6c61fdea9eda86e5e054c717ad694676f85194 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/dief/examples/dief.Rd.R | eff086c58659c5e5ee0a12914379a39240f26a5b | [] | 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 | 656 | r | dief.Rd.R | library(dief)
### Name: dief
### Title: Tools for Computing Diefficiency Metrics
### Aliases: dief
### Keywords: package
### ** Examples
# This example uses the answer traces provided in the package.
# These traces record the answers produced by three approaches "Selective",
# "Not Adaptive", "Random" when exec... |
c106bdd5a5712bcf3ce0dea21ea3931193a60b0f | 7ff36b8e727cbbb71df2a071fdb287207af9914c | /Plot4.R | 1594589dc79fcbc40d4b842d54e5a8de2edcbeca | [] | no_license | Chrysofin/ExData_Plotting1 | 12b14088fff5549f07a2b770500a383aca89b513 | 24fd46dfce7bdbde7a27afed2b809a29ef4cb3b4 | refs/heads/master | 2021-05-27T11:31:30.511679 | 2014-08-11T00:06:09 | 2014-08-11T00:06:09 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,738 | r | Plot4.R | ## ##############################################################################################
## set you working directory use setwd
## Ensure that the text file has been downloaded from the website into your working directory
## Read in the data
## If the data has already been read in to h no need to run this line... |
ce8f00aa58b7878fb863b588a3a3eb7ad547c692 | 2c09783547da268fc37456f4dfafb7016f3f9744 | /man/tss_evaluate-function.Rd | 83c0913c10c8327538872250ca471ad9d424ff4a | [] | no_license | rpolicastro/deepTSSscrubbeR | 8170048b20de8cab71d759b51b5ef6ad62e85ccd | ccec83f6355f9efaddd925103ca0d62082664aee | refs/heads/master | 2020-09-10T17:31:05.200261 | 2020-03-17T17:27:05 | 2020-03-17T17:27:05 | 221,779,402 | 0 | 3 | null | null | null | null | UTF-8 | R | false | true | 309 | rd | tss_evaluate-function.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deep_model.R
\name{tss_evaluate}
\alias{tss_evaluate}
\title{Evaluate TSS Model}
\usage{
tss_evaluate(deep_obj)
}
\arguments{
\item{deep_obj}{tss_obj with trained model}
}
\description{
Evaluate the trained deepTSSScrubbeR model
}
|
f16276e54a22850631a1b58f6c5a0d735f056dbb | b1c46d6edeab291df442e8262ccac2bcbd68e08e | /new.R | 785fe0b171420da36b08c3457c4cbd364f7b1108 | [] | no_license | Dushyant08/test | 910b86264557f011fec952444ff42589e6ae5da7 | 1c0352c49c574c683b8fd0df5d94caec3b7e0ba3 | refs/heads/master | 2021-08-23T16:16:24.454144 | 2017-12-05T16:30:02 | 2017-12-05T16:30:02 | 113,206,322 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 339 | r | new.R | internet=read.csv('winternet.csv')
View(internet)
new=reshape::melt(internet)
View(new)
new1=new%>% group_by(variable)%>%summarise(nal=sum(value,na.rm = T))
View(new3)
str(new1)
new3=tail(new,4222)
graph=ggplot(new2,aes(variable,nal,group= 1))+geom_line(aes(col='yellow'))+geom_point(aes(col='red'))+... |
fb9f585ce1b2c2be821298f0ba6d64abcc2e768e | 45c37df23202a40dd78472d76af55cc27185e0c0 | /auto_hook_sam.R | 1175ad848d0e2e4e8c69794388f8b50ecbf6d44d | [] | no_license | snoopycindy/stroke-recommender | ec5c94abd6354ab9c1c8c1ba7a08cb6d90b4221b | 9b23711c29875e196aa3a65809876538c72f6451 | refs/heads/master | 2020-05-31T19:06:33.849717 | 2015-02-11T03:19:56 | 2015-02-11T03:19:56 | 28,383,911 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 380 | r | auto_hook_sam.R | # Step 1: run autohotkey (control AnyBodyCon Script)
#convert to .exe
#setwd("C:/Program Files (x86)/AutoHotkey/Compiler/")
#system("Ahk2Exe.exe /in \"E:/Dropbox/touchparse_stroke/hook_sam.ahk\"")
system("c:/Users/MMnetLab/Dropbox/touchparse_stroke/hook_sam.exe")
#pause
# readline()
# setwd("C:/Users/yx/Dropbox/touchp... |
294a5327a3a9331d1402069288e14a94318158d1 | 37d622ca49c6cfc0eb1277ad078cdf6d83d18eef | /sources/initial_BUGS_gmm_G2.R | d0916ffb4a59e93e8abe786df8692bc72eb431e3 | [] | no_license | CynthiaXinTong/MedianGMM | be009ef090cd72710ba75eb9bd25331a360c801e | a7cc95e9ca863aaa8efc2029b4b195852e3a6f04 | refs/heads/main | 2023-05-01T12:18:40.625247 | 2021-05-10T22:04:43 | 2021-05-10T22:04:43 | 345,454,502 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 290 | r | initial_BUGS_gmm_G2.R |
x1 = c(0:(Time-1))
lm.cf.est = apply(y, 1, function(x) lm(x~x1)$coefficients)
lm.rs.est = apply(y, 1, function(x) summary(lm(x~x1))$sigma^2)
I.quant = quantile(lm.cf.est[1,], probs= c(0.75, 0.25))
S.quant = quantile(lm.cf.est[2,], probs= c(0.75, 0.25))
muLS.init = cbind(I.quant, S.quant)
|
a5b1770f778a42fd4f191724d827aa47f6359bdf | 6c502888ac46d4a6a543df1b0c0b36a3382ba792 | /linear_models/Example 50.1 RCB with Means Comparisons/E 50-1.R | c0720acaa230efbeadbe70c954603e4baf7cbfe7 | [
"MIT"
] | permissive | slophaven/CSRMLW | 7f9c5a9669ba1d171455f99f1a160e6d619cb3d6 | 7bb4767c8bc4d1aba63ba865e6cb871bd08633c0 | refs/heads/main | 2023-08-16T01:30:37.309475 | 2021-09-13T17:57:25 | 2021-09-13T17:57:25 | 415,505,567 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,103 | r | E 50-1.R |
# Matching SAS and R ------------------------------------------------------
# Randomized Complete Blocks with Means Comparisons and Contrasts
# Source:
# https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_glm_examples01.htm
# Setup ------------------------------------------------------------------... |
c664dcd9141ba1b14f48162e02e16cda58aa62b8 | f1eab13fd4215e9fe995d562b8a22f2a6cb38a7a | /global.R | 0b4581910814e1202f4e110fc99b68142e59e5e9 | [] | no_license | estherrvazquez/PFinal-Fundamentos-Matem-ticos | b69b572b72f043095eb8f0e2db3b6c0564e38d3e | 5c7ac790e8bb0d2021d9e1ef870b4fe0b8ebdae2 | refs/heads/main | 2023-01-20T19:10:07.796210 | 2020-11-20T16:30:42 | 2020-11-20T16:30:42 | 314,609,740 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,419 | r | global.R | rm(list = ls())
library(ggplot2)
library(dplyr)
library(class)
library(caret)
library(shiny)
library(Metrics)
library(tidyverse)
library(shinyAce)
showfiles <- list(
aceEditor("server",
value = paste(readLines("server.R"), collapse="\n"),
mode="r", height="380px",
readOnly=TRUE)... |
80c149eacf804fbdc81ed8d15d4d32143394c6d9 | f5ade7e9b49dc440db18cdf971a65ec83253db3e | /analysis/R/students_leaving_ni.R | d0ec3da298c31b0e8ca2acf1cdc93869a2434605 | [] | no_license | O1sims/DigitalStrategyNI | 3eeedd360e3ff19eb0f710c046394f0d5f182151 | 0eba24144f7e8e9dd30cebcd1f320d2f80540546 | refs/heads/master | 2020-03-31T13:26:23.427988 | 2019-10-14T16:02:46 | 2019-10-14T16:02:46 | 152,255,517 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,083 | r | students_leaving_ni.R | library(ggplot2)
library(ggthemes)
library(magrittr)
year <- seq(
from = 2007,
to = 2018)
totalLeavingPercent <- c(
33.99, 32.91, 31.63, 34.62, 37.35, 32.08, 31.23, 31.82, 36.51, 36.01, 35.5, 38)
ictLeavingPercent <- c(
8.3, 12.5, 10.7, 9.5, 12.45, 15.54, 22.35, 20.45, 27.06, 28.45, 35.93, 42.03)
df <- da... |
86fd39290a1a225ded99142113e64ac0c83ecc0c | fa458927b2c8baee881318dc64d4cb786905950e | /R/genderizeTrain.R | 5472c4ff7fff548cab3deb5b6df218eec99e6a2c | [] | no_license | nathanvan/genderizeR | eb4627cdd28d4b7b2e09781c4393ce14b27a37ae | 7b66bb2d3ef54d6e88c15b387a23688d7e5f5131 | refs/heads/master | 2021-01-13T06:08:27.031339 | 2015-10-14T18:54:48 | 2015-10-14T18:54:48 | 44,268,976 | 0 | 0 | null | 2015-10-14T18:54:48 | 2015-10-14T18:47:14 | R | UTF-8 | R | false | false | 4,813 | r | genderizeTrain.R | #' Training genderize function
#'
#' \code{genderizeTrain} predicts gender and checks different combination
#' of 'probability' and 'count' paramters.
#'
#'
#' @param x A text vector that we want to genderize
#' @param y A text vector of true gender labels for x vector
#' @param givenNamesDB A dataset with gender d... |
444a12e430cda046af25f35af30e4894553616ca | 7035ebb7e67f0efb97f0cae286064dcd453be963 | /man/makeWellTS.Rd | e36f6bb60b367645d6638d1df0936c79fe7b343d | [
"Apache-2.0"
] | permissive | jayrbrown/bcgroundwater | 6747a1f0e25516d618e3936b7653a7b4f2e85bf3 | 91edfe11eaa982f966fdcc030a47c613f0fd7252 | refs/heads/master | 2020-12-11T07:33:13.091570 | 2015-06-04T17:58:02 | 2015-06-04T17:58:02 | 36,933,497 | 0 | 0 | null | 2015-06-05T13:14:27 | 2015-06-05T13:14:27 | null | UTF-8 | R | false | false | 657 | rd | makeWellTS.Rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/makeWellTS.R
\name{makeWellTS}
\alias{makeWellTS}
\title{Get full time series with missing values interpolated}
\usage{
makeWellTS(df)
}
\arguments{
\item{df}{A monthly dataframe created by `monthlyValues`. Must minimally include
fiel... |
40105d31b7a75e5dcd37b2702e6559b52260b1b0 | 154f590295a74e1ca8cdde49ecbb9cbb0992147e | /R/ra2.R | d8a32b367aa6306ad364989bade2c2143fe2e7d0 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain-disclaimer",
"CC0-1.0"
] | permissive | klingerf2/EflowStats | 2e57df72e154581de2df3d5de3ebd94c3da0dedf | 73891ea7da73a274227212a2ca829084149a2906 | refs/heads/master | 2017-12-07T10:47:25.943426 | 2016-12-28T20:52:42 | 2016-12-28T20:52:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 987 | r | ra2.R | #' Function to return the RA2 hydrologic indicator statistic for a given data frame
#'
#' This function accepts a data frame that contains a column named "discharge" and calculates
#' RA2; Variability in rise rate. Compute the standard deviation for the positive flow changes. RA2 is 100 times
#' the standard deviati... |
497667347f8a0856bba335ccb298767f63a50c64 | 9eb652d1c1026d21b74d732c6b8f4ce7392b26e1 | /BPC_Test_Illumina.R | 2c22653284023c32d69dde5763b273338f0a7ab8 | [] | no_license | qindan2008/Scripts_MolCharAAvsEA | 6af5c2a64469e920fa073a451b810ac58377cef5 | 642b58b997dcd4cd1fc3142dd0b487450afd13be | refs/heads/master | 2023-06-18T08:44:41.356085 | 2021-07-22T09:07:31 | 2021-07-22T09:07:31 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,026 | r | BPC_Test_Illumina.R | #This script is comprised of functions to define a feature of Chromotripsis called:: Breakpoint Cluster in Illumina assay called:: GSA.
BPC_Test<- function(CNV_Test, Events_Possible, Events_Threshold){
CNV_Test=CNV_Test[!(CNV_Test$Chromosome=='X' | CNV_Test$Chromosome=='XY' | CNV_Test$Chromosome=='Y'),]
pp=lapply(r... |
46592f887a5ff24946d916883f7d61366dd5afeb | 17205acfbd00aeb7edf976966f251698c5ae2458 | /GpOutput2D.Rcheck/00_pkg_src/GpOutput2D/R/gp_Fpca2d.R | b64761ff4d344a10b41ce419349790c19d373511 | [] | no_license | tranvivielodie/GpOutput2D | 148be512b5ecd99fba7d105fa3171d8c86d531fd | 9f779d33fb86f8bff8b3da3db4845c37b3045f75 | refs/heads/main | 2023-03-04T19:28:27.694988 | 2021-02-18T10:11:00 | 2021-02-18T10:11:00 | 316,458,801 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,666 | r | gp_Fpca2d.R | #' @title Gaussian Process Model on principal components of \code{Fpca2d},
#' by using \code{kergp} package
#'
#' @description the function \code{gp} of the \code{\link{kergp}} package is use to
#' fit kriging models on each principal component modeled on \code{\link{Fpca2d}} (for more details, see \code{\link{gp}} ).... |
03294f864e5388cee84aae834c2b13d9c52efb46 | cda18b3a8116cf8e0d056e30216ce5b1c36108c3 | /Code/montyhall.R | fe51ec6238868587909a8e61805b876a02b531c6 | [] | no_license | dspluta/StatsGradBootcamp2019 | cd3b42890630257c927ae19d6999cfbe24632fd5 | 35692c5e8895612bff287a37483a24e243358313 | refs/heads/master | 2021-07-19T10:42:43.007787 | 2020-08-24T15:57:04 | 2020-08-24T15:57:04 | 206,882,968 | 0 | 4 | null | null | null | null | UTF-8 | R | false | false | 614 | r | montyhall.R | library(ggplot2)
nsims <- 100
## Need a modified version of the sample function
resample <- function(x, ...) x[sample.int(length(x), ...)]
dat <- data.frame(stay = rep(NA, nsims), switch = NA)
for (i in 1:nsims) {
doors <- 1:3
car <- resample(doors, 1)
goats <- doors[doors != car]
pick <- res... |
4b4da998b639df32ccecd5076bc495a5814499c9 | ee1247f9415bb05e6be6c466e947ddf649f49530 | /_engagement.R | 5d054c894bca31b27ec4c675bcb67aa4226a0488 | [] | no_license | ronald-1996/Ronald_proj | 8e2f65accfc40e3f498ba6b21ae0815e7a2ed9d2 | 61f1748f4532f2207f08fafb5c1177f88ec519f7 | refs/heads/master | 2020-12-20T09:35:53.159853 | 2020-01-24T16:49:10 | 2020-01-24T16:49:10 | 236,030,524 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,337 | r | _engagement.R | library (PivotalR) #deals with PostgreSQL or Pivotal databases
library (RPostgreSQL) #access PostgreSQL databases
library (DBI) #interface between R and relational DBMS
library (data.table)
library (randomForest) # tree based model - bagging
library (nnet) # neural network
library (Matrix)
library (foreach)
librar... |
1d8d45161ed4fc595030d14a459dc4449eb9c1a0 | 039644ba9b0adb4f65ffa2162a5741dc5ee03570 | /2_importData.R | 993618ffc2193fea06fb67efad62dcae2c480b2f | [] | no_license | theresakat/FDIA | b3b6133f8ae6f7bc422057f74b9dea0bdeb0cae7 | 2477ce5975c59f88ea22f68c81810f90f44da1dc | refs/heads/master | 2021-06-25T05:49:22.910601 | 2018-11-30T18:11:48 | 2018-11-30T18:11:48 | 131,357,168 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,589 | r | 2_importData.R | # 2_importData.R
#
# Purpose; Use this script to load your CSV data for clean up using the 2_clean.R script.
# Simple loading code that reads a directory #
# library(plyr)
#
# files <- dir("raw", full = T)
# names(files) <- gsub("\\.csv", "", dir("raw"))
#
# Load all csv files into a single data frame and gi... |
6cbdd8b3fe17d649e1810f87275f386cde04b41f | f44f88f39935e2879ebb3ff7f2abb11258e5d46f | /R-scripts/Plot_MAPK-compare2.R | 73f710fd6e4890795bf06496c9dd2ea506904ef4 | [] | no_license | oncoapop/data_reporting | d5d98b9bf11781be5506d70855e18cf28dbc2f29 | 7bb63516a4bc4caf3c92e31ccd6bcd99a755322b | refs/heads/master | 2022-08-23T20:21:18.094496 | 2020-05-22T00:51:51 | 2020-05-22T00:51:51 | 261,604,041 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,623 | r | Plot_MAPK-compare2.R | # Script to plot data from NMD expression correlation
# Load R libraries
library(ggplot2)
library(reshape2)
library(ggrepel)
library(scales)
##########################################################
### CHANGE THESE PARAMETERS FOR EACH RUN OF THE SCRIPT ###
##########################################################
... |
94fa1a8a76a55fe36ff78fe9a5c296e8cd1d7010 | 6a28ba69be875841ddc9e71ca6af5956110efcb2 | /Schaum'S_Outline_Series_-_Theory_And_Problems_Of_Statistics_by_Murray_R._Spiegel/CH19/EX19.19.19/Ex19_19_19.R | 6b8c00489ff92001230a468c9311e5ca940cfe85 | [] | permissive | FOSSEE/R_TBC_Uploads | 1ea929010b46babb1842b3efe0ed34be0deea3c0 | 8ab94daf80307aee399c246682cb79ccf6e9c282 | refs/heads/master | 2023-04-15T04:36:13.331525 | 2023-03-15T18:39:42 | 2023-03-15T18:39:42 | 212,745,783 | 0 | 3 | MIT | 2019-10-04T06:57:33 | 2019-10-04T05:57:19 | null | UTF-8 | R | false | false | 361 | r | Ex19_19_19.R | #PAGE=449
y=c(1980,1981,1985)
y1=c(29.11,306.5,343.6)
y2=c(30.69,325.6,367.8)
y3=c(28.38,310.4,356.4)
y4=c(58410,520,1082)
y5=c(60360,558,1211)
y6=c(65320,567,1297)
a1=sum(y3*y6)
a2=sum(y1*y6)
a=a1/a2
a=a*100
a=round(a,digits = 1)
cat(a,'%')
c3=(y1+y2)/2
c4=sum(y6*y3)
c5=sum(c3*y6)
c6=c4/c5
c6=c6*10... |
88616827a58050b670c6ada1c15801691be91cd0 | 2ac95a12f199cbd56d86381c0b0f88c5a51b19f3 | /R/package.R | a89b0921f317007a1f28c8788e408892c370bf6c | [] | no_license | ugcd/solarius | 45664e45eef8aeb8fdbbbae0ba52fa3619a80515 | 301361a6f83ab1947c2c8b2452328951a83b4849 | refs/heads/master | 2020-04-03T20:03:42.676349 | 2018-09-01T18:18:18 | 2018-09-01T18:18:18 | 24,883,541 | 5 | 4 | null | null | null | null | UTF-8 | R | false | false | 367 | r | package.R | #' solarius: an R package wrapper to SOLAR.
#'
#' @name solariusPackage
#' @docType package
#' @import methods
#' @import plyr
#' @import ggplot2
#' @import data.table
#' @importFrom graphics abline plot
#' @importFrom stats median na.omit ppoints qchisq qnorm quantile residuals sd as.formula update
#' @importFrom util... |
df4c6a3834db86ce58ae0763a054b5707765e0c9 | 07415ac38572229f10a1868523e0e1ee9df302f3 | /LiveDemo/20150911LiveDemo.R | a6627412e17152a190973f92e2c8ae8a9bc7c175 | [] | no_license | datasci-info/tabf-trading-201509 | e481bdebb22268f02c75ace6f61283420e9959d1 | 7269142db14f4aa62778d316a02bbfff654c69b8 | refs/heads/master | 2018-12-28T23:46:54.936212 | 2015-09-17T11:29:35 | 2015-09-17T11:29:35 | 42,191,173 | 1 | 3 | null | null | null | null | UTF-8 | R | false | false | 1,157 | r | 20150911LiveDemo.R | 1 + 1
install.packages("PerformanceAnalytics")
install.packages("foreach")
install.packages("quantstrat", repos="http://R-Forge.R-project.org")
library(quantstrat)
# ?getSymbols
# example(getSymbols)
# getSymbols
getSymbols("^TWII")
View(TWII)
chartSeries(TWII)
getSymbols("0050.TW")
0050.TW
TW005... |
3d81a1d480c676a53c57674af59ea716112b5105 | 7b88b32fd29a95935a4b7818a507a53357eeaef6 | /scripts/G_infiltration_visualization.R | 3ee5173689d4d4e085d95648d7aabbf986dcd627 | [] | no_license | lysmarfreitas/tourismdashboard | 5377b286cb49086695bb61cbdafdf62cc09fb618 | 8636e601c2c22111fdd39dfcfdd4b36b6cef2196 | refs/heads/master | 2022-01-20T08:39:43.853247 | 2019-07-03T11:24:50 | 2019-07-03T11:24:50 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,992 | r | G_infiltration_visualization.R | #########################################################################
## Script that makes a leaflet visualization of airbnb infiltration #
## Inputs is neighbourhood geojson #
## Output is a leaflet visualization #
#############... |
e3173f0303ccb0171a03e6862148b42a620dde7e | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/prim/examples/prim.box.Rd.R | f5b9c5aa17c84ae4a656c40f19a9d7b1a03ef4f6 | [] | 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 | 877 | r | prim.box.Rd.R | library(prim)
### Name: prim.box
### Title: PRIM for multivariate data
### Aliases: prim.box prim.hdr prim.combine
### Keywords: multivariate
### ** Examples
data(quasiflow)
qf <- quasiflow[1:1000,1:2]
qf.label <- quasiflow[1:1000,4]
## using only one command
thr <- c(0.25, -0.3)
qf.prim1 <- prim.box(x=qf, y=qf.la... |
872d0551a9b64a4290b12724bd51fdc7b02259b1 | 57ad5699cd427042bbf93ae9cd7d54af39788f73 | /R/prox.grouplasso.R | 567fc626dca620b6f9dbe8846fb0682bb1f3d697 | [] | no_license | AlePasquini/apg | 94f9eef7f233d721c663a4956581963d04d537df | 8900984a8e7b1a469d2b775d56bf07bd192e252b | refs/heads/master | 2020-04-12T04:44:58.238828 | 2016-06-04T01:44:00 | 2016-06-04T01:44:00 | 162,304,614 | 3 | 0 | null | 2018-12-18T14:59:41 | 2018-12-18T14:59:41 | null | UTF-8 | R | false | false | 1,662 | r | prox.grouplasso.R | #' Proximal operator of the group lasso penalty
#'
#' Computes the proximal operator of the group lasso penalty: \deqn{h(x) =
#' \sum_{g group} w_g ||x[g]||_2 .} Note that the groups should not
#' overlap.
#'
#' @param x The input vector
#' @param t The step size
#' @param opts List of parameters, which can include: \i... |
c7bc8c0d3d5980171e5047bdf7b338b73c3ca2bc | 0780299cc9ab6837b046e78acea68b5214e058df | /Chapter06.R | 50cf303462d7b5e4aece7d0b90941e7fcce432be | [] | no_license | IshidaMotohiro/WebScraping | 7d208338b41a3884a3f93fbfc6fbb0c9cc5a0e23 | 852c1cc68d71bdaf63a66ada7b00f209d5d6f56b | refs/heads/master | 2021-01-14T08:10:40.008651 | 2020-02-20T00:40:02 | 2020-02-20T00:40:02 | 82,005,513 | 6 | 1 | null | 2020-02-20T00:14:16 | 2017-02-15T01:09:53 | R | UTF-8 | R | false | false | 4,398 | r | Chapter06.R | # 『Rによるスクレイピング入門』 第6章
## ----chapter06 section-029 身近なオープンデータ
### 横浜市のオープンデータ
library(rvest)
#### データ操作のためにmagrittr, dplyrを読み込む
library(magrittr)
library(dplyr)
# df.table <- read_html("http://www.city.yokohama.lg.jp/seisaku/seisaku/opendata/catalog.html") %>%
# html_table(header = TRUE) %>%
# extract(1)
# he... |
1adefb0129cc0825c692120aec7171831758b7f5 | 6b76309319c7effce72f1baeec25072a9754bcdc | /code/1Save_Samples.R | 2c940a1089bd86c34abd0086e269fbe927008dd4 | [] | no_license | sardination/policy-responsiveness | ac4ee5841d7ba688a13e5dc556b679a52987279d | 10be9b944dd32b4139b888d390c4f7cc940c3c54 | refs/heads/master | 2022-06-08T09:37:45.036182 | 2020-05-06T21:11:26 | 2020-05-06T21:11:26 | 239,045,985 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,409 | r | 1Save_Samples.R | # setwd("../") ## replication directory
(rep.dir <- getwd())
# Selection of social and economic opinion data to use
mass.social.name <-
"170628_1936-2014_social_varyingitems_blackurban_nocovariates"
mass.econ.name <-
"170915_1936-2014_economic_varyingitems_blackurban_nocovariates_1000iter_DC"
### Read
# Read in i... |
9da4902cbd084fdf0a11cea3546d02e3f8109716 | dd6ae9d277bccd00e752702708a6571694f7c83c | /Script Exercises 1.R | 55f5df3eef6f2423bc026d17f868039dffbc89c9 | [] | no_license | evilla-19/marta-eva-R | 87a1f01603ed9b90fbecd3f8c0d36e976d37b826 | 462bd1fbcdb90de7581bcc49eec5c27050e9bce4 | refs/heads/master | 2022-11-13T07:33:31.020174 | 2020-06-23T15:40:44 | 2020-06-23T15:40:44 | 263,638,935 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,336 | r | Script Exercises 1.R | rm(list = ls()) # Clear environment
dev.off() # Clear plots
cat("\014") # Clear console
library("tidyverse")
library("pacman")
pacman::p_load(pacman, rio)
#Exercise 1
library("tidyverse")
read_tsv("small_file.txt") -> small.file
library("pacman")
pacman::p_load(pacman, rio)
rio_txt <- import("~/Desktop/small_f... |
05fc47704cc148670ee54a64c22583f011aac2c0 | dacf6605e992a22e75601c35c1367b95ad9ef732 | /7.RandomWalk/RandomWalk.R | a8e29e7ecb37f57e243de68020ed6ad53b80fd8f | [] | no_license | BabyTong/biocode_matlab_R | e279112eca80bc2bc5b997b2304363e4f0dea6ac | f14dd20cc05a3943d378bf7a056ce9410c195d50 | refs/heads/master | 2022-01-12T05:36:44.956235 | 2019-06-17T01:41:11 | 2019-06-17T01:41:11 | 83,211,404 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,004 | r | RandomWalk.R | ##############################################################
#函数随机游走
##############################################################
##RandomWalk function
library(igraph)
#子程序
RandomWalk2igraph<-function(igraphM,VertexWeight,EdgeWeight=TRUE,gamma=0.7){
if(EdgeWeight==TRUE){
adjM<-get.adjacency(igraphM,attr="w... |
23f82ac0ee6e5355be24e43fe67322843d024a15 | ae889cb569a96b4e71e7828966248bbce04963ff | /R/hydrosanity_timeperiod.R | 854fcd6c5b4a10cbcc199d51cc1ad2d77c3defe0 | [] | no_license | cran/hydrosanity | b1aac0de2ab07d1e7937de6c37867e0e418a2355 | 1428e15f158b6489314184ef0cc2aa2d90f43c33 | refs/heads/master | 2020-04-27T02:52:29.043766 | 2007-12-08T00:00:00 | 2007-12-08T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,180 | r | hydrosanity_timeperiod.R | ## Hydrosanity: an interface for exploring hydrological time series in R
##
## Copyright (c) 2007 Felix Andrews <felix@nfrac.org>, GPL
updateTimePeriodPage <- function() {
if (!is.null(hsp$yearStart)) {
theWidget("scope_yearstart_combobox")$setActive(hsp$yearStart - 1)
}
if (is.null(hsp$timePeriod))... |
1a34726099fe0abc02736f81e507342468c45634 | 9c48383adcdc2eeb25d48f543e9c176524149251 | /estate_EDA_140731.R | 8635369b4f2de81946c0cca19adcac3220707679 | [] | no_license | andrew-kim2/test111 | f5934f3aab6f0234db949f831274b7e87465e17a | 41f00548bd01a416ff6418accd1740271b874393 | refs/heads/master | 2020-12-24T15:23:32.267390 | 2014-08-08T09:03:03 | 2014-08-08T09:03:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 21,063 | r | estate_EDA_140731.R | # --------------------------------------------------------------------------
# calendarheatmap Plotting function
# --------------------------------------------------------------------------
eda_calendarheatmap <- function(
data,
date_column,
value_column,
aggr_func,
plot_filename=NULL,
ncolors = 99, ... |
51f523e92ffcf3f9817a486be577dc92f1361f87 | 708f744bc98651fd3f78f2d59307509118c16879 | /RKEEL/man/GFS-LogitBoost-C.Rd | 7f276bdedd7a1ade72dc3718f6ff55b0592d42d0 | [] | no_license | i02momuj/RKEEL | 726efa0409193a1ebc6ff82ef195e2708f3fa397 | 445cd8cceade2316bc12d40406c7c1248e2daeaa | refs/heads/master | 2021-01-10T10:13:36.242589 | 2019-07-19T07:43:32 | 2019-07-19T07:43:32 | 49,633,299 | 6 | 1 | null | null | null | null | UTF-8 | R | false | false | 998 | rd | GFS-LogitBoost-C.Rd | \docType{class}
\name{GFS_LogitBoost_C}
\alias{GFS_LogitBoost_C}
\alias{R6_GFS_LogitBoost_C}
\title{GFS_LogitBoost_C KEEL Classification Algorithm}
\description{
GFS_LogitBoost_C Classification Algorithm from KEEL.
}
\usage{
GFS_LogitBoost_C(train, test, numLabels, numRules, seed)
}
\arguments{
\item{train}{Train data... |
fe10002cea4f5b6df86eaaadeea2a8e3d3738ba1 | cf4263e82b2c118bc3ecea5dc62d561e7487cbd3 | /man/ants_L1.Rd | 8e058ac55f3b5ef04d63f33bd5a27097ad96de93 | [
"MIT"
] | permissive | EDIorg/ecocomDP | 151a2d519ff740d466fafab74df5171a6ef196bf | 0554d64ce81f35ed59985d9d991203d88fe1621f | refs/heads/main | 2023-08-14T02:07:19.274860 | 2023-06-19T22:27:30 | 2023-06-19T22:27:30 | 94,339,321 | 26 | 10 | NOASSERTION | 2023-07-26T22:21:00 | 2017-06-14T14:22:43 | R | UTF-8 | R | false | true | 905 | rd | ants_L1.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{ants_L1}
\alias{ants_L1}
\title{The ecocomDP (L1) version of EDI data package knb-lter-hfr.118.33}
\format{
A list of:
\describe{
\item{id}{The dataset identifier}
\item{metadata}{See source url for metadata}
... |
71b9af2626ce0fa399a39d697f92dab3b27fb033 | d8c6c1a9ecb2e4be9f6cfa2f335c7d16e6a09c73 | /man/inputSLanalyzeR.Rd | 3e37ce6bb5e855dad7b7f6aaece739f64f2a0373 | [] | no_license | kkolmus/MolecularAnalyzeR | fedf71c03b60dcd79fccc951767048f79ca2f91e | 02bc2710aa9af7a75dab1e4b7d600cd52496d6df | refs/heads/main | 2023-06-11T09:13:23.882645 | 2021-07-04T12:54:39 | 2021-07-04T12:54:39 | 382,806,094 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 535 | rd | inputSLanalyzeR.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inputSLanalyzeR.R
\docType{data}
\name{inputSLanalyzeR}
\alias{inputSLanalyzeR}
\title{Expression data}
\format{
An object of class S3 data frame
}
\usage{
data(inputSLanalyzeR)
}
\description{
Data from The Cancer Genome Atlas project for RE... |
5f6b6525bd1c0cc87eeb478b36ea7a4f8d63a8a9 | d34be3726b14e7fa85555f12d15d540f2cca4414 | /CALISTA-R/calista/R/ind2sub.R | e086a7fce97f8be988402e36337422cab9bad3cc | [
"BSD-3-Clause"
] | permissive | CABSEL/CALISTA | a595b42458449f16e06859539ce3ba794d26829e | af734bc422bbc00f7019e8f50a8460ec6540a4d9 | refs/heads/master | 2021-05-09T13:38:14.262647 | 2019-05-16T14:20:17 | 2019-05-16T14:20:17 | 119,039,497 | 10 | 3 | BSD-3-Clause | 2019-05-07T16:58:28 | 2018-01-26T10:35:58 | HTML | UTF-8 | R | false | false | 362 | r | ind2sub.R | #' A calista Function
#'
#' @param sz,ind
#' @keywords calista
#' @export
#' @examples
#' ind2sub()
ind2sub = function(sz,ind)
{
ind = as.matrix(ind,ncol=1);
sz = c(1,sz);
den = 1;
sub = c();
for(i in 2:length(sz)){
den = den * sz[i-1];
num = den * sz[i];
s = floor(((ind-1) %% num)/den) + 1;
... |
7ecaf51722d72c68a3f69c386df1abece7fd9c09 | ff604c79c7c4761efbe6e22ff72615c3faf372cc | /Data science Projects with R/random forest.R | b3e4561d5d1c575418a113f83c2dd72ef0f94ab8 | [] | no_license | Khachit-Basetti/Projects-with-R | d53ad9e5aac3bcb75afbfcc5c89b3bbffe0cef01 | 8f2fc6c029923948a1570244043263d82d73c40b | refs/heads/main | 2023-05-25T07:51:17.451409 | 2021-06-06T16:24:27 | 2021-06-06T16:24:27 | 372,054,369 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,607 | r | random forest.R | data <- read.csv("F:/DSP13/CTGAll.csv") #
View(data)
colSums(is.na(data))
colSums(data == "")
dim(data)
str(data)
data$NSP <- as.factor(data$NSP)
table(data$NSP) #Normal,Suspect, Pathologic
dim(data)
set.seed(123)
sample <- sample(nrow(data), nrow(data)*0.70)
train <- data[sample,]
test <- data[-sampl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.