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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23ba54e4657b411f25904d9be7d052fbd26c17cd | 48518d18d28d52e25ec6e26dd7d9e0eb1019d10a | /man/get_summary_of_ticker.Rd | 636a56228f6dc7b9dedd3472c6655d2a263d0618 | [] | no_license | misrori/getrich | 68da281341203d12a8386043b801309852eb32a7 | 6e6c49cac0f7e86575dbf7dfdee6eba0eeeacf40 | refs/heads/master | 2023-02-12T22:49:19.980733 | 2021-01-02T12:23:24 | 2021-01-02T12:23:24 | 265,784,961 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 343 | rd | get_summary_of_ticker.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/slack_report.R
\name{get_summary_of_ticker}
\alias{get_summary_of_ticker}
\title{Get info of a ticker from tradingview}
\usage{
get_summary_of_ticker(ticker)
}
\arguments{
\item{Ticker}{The id of the company}
}
\description{
Get info of a tic... |
13cfcf8c4266d790976c7d92129cd1894b5f886d | ba3025381d302e867d07ce7cb1852cc3fc927007 | /man/addins.Rd | 8e34d000dcb351c695800bb363c6d971469b50cf | [] | no_license | stephenturner/Tmisc | 01a2021c0526a1ad11eb04d659fdd0c34f593d07 | c2302beb4c7219157a5362d95ca15ae0f9eb06e6 | refs/heads/master | 2023-01-13T01:16:33.279211 | 2021-03-09T20:25:28 | 2021-03-09T20:25:28 | 18,997,792 | 8 | 13 | null | 2020-08-29T21:52:48 | 2014-04-21T16:04:38 | R | UTF-8 | R | false | true | 418 | rd | addins.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/addins.R
\name{addins}
\alias{addins}
\alias{insertInAddin}
\alias{insertEqual}
\title{Insert text at current position.}
\description{
Call these function as an addin to insert desired text at the
cursor position. After installing Tmisc, hi... |
993f203e20f5e3568d40878ee3f5e006925a214f | 30975dc286e36555ae827345d8df7b4cc22ac345 | /man/plotKinrespDiagnostics.kinrespList.Rd | 9988a164aaf711738f34334183a530b0ba0c0e8a | [] | no_license | bgctw/twKinresp | c70eec323028176b340681f6c307103e7d397bbc | 94234c83ba34d9a69203f162586028a78f9a33c7 | refs/heads/master | 2020-05-15T18:59:22.958201 | 2019-04-20T21:14:19 | 2019-04-20T21:14:19 | 182,444,867 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 869 | rd | plotKinrespDiagnostics.kinrespList.Rd | \name{plotKinrespDiagnostics.kinrespList}
\alias{plotKinrespDiagnostics.kinrespList}
\title{plotKinrespDiagnostics kinrespList}
\description{Diagnostic plots for confining unlimited growth phase for each replicate.}
\usage{\method{plotKinrespDiagnostics}{kinrespList}(kinrespRes,
plotFileBasename = "", ...)}
\argum... |
684acd0ede6aa5117f4a4a5e615e8d5aa5ebf597 | deff237d47e608a32138f144d510998e861c43e7 | /5 Association Rule Learning/Eclat/eclat_associative_rule_learn.r | fbc931afe4f4c8e6328812c2008d76ebeec8b41c | [] | no_license | uminmay/udemy_ML_R | e5069f23421f9ea4c79fb8569276d3b619d3fba2 | 331bd937bc29850c84f3a0ff69c147ff46dff564 | refs/heads/master | 2023-06-24T13:28:43.083045 | 2021-07-19T12:11:33 | 2021-07-19T12:11:33 | 379,516,068 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 777 | r | eclat_associative_rule_learn.r | # Apriori
# Data Preprocessing
dataset = read.csv("Market_Basket_Optimisation.csv", header=FALSE)
## Library to be used needs sparse matrix as input
#install.packages("arules")
##Create sparse matrix
library(arules)
dataset_sparse = read.transactions("Market_Basket_Optimisation.csv",
... |
43a9327b509f89c01e65a3b7445871ef8a7eda08 | ff7ad43cf16fe7f45349783391e229d6be212df4 | /app/global.R | d1f10cd109d9f7c8498fec398bfadfdde575cf5f | [] | no_license | carlosespino11/landis | ec1cd6daa32215d316aae2622136c19f7358a4f3 | d6ad529d6b5da9d1448bc1f563365a3a578a2d6d | refs/heads/master | 2020-03-21T01:56:55.856985 | 2018-06-20T02:45:43 | 2018-06-20T02:45:43 | 137,971,072 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 408 | r | global.R | library(shiny)
library(leaflet)
library(maptools)
library(dplyr)
library(ggthemes)
library(ggplot2)
library(ggthemes)
library(shinyBS)
library(shinyjs)
library(tidyr)
library(RColorBrewer)
library(magrittr)
library(tidyverse)
library(sf)
#' Read datasets
features_bg = read_rds('./data/fetures_bg.rds') %>%dplyr::select... |
3cf06d904401a0da2216628bd6bac2102f32f393 | d4ffa0e79c4a6f61baae5d2d8ce61481ca3d00d9 | /man/lsem_kernel_weights.Rd | c57c05ef6e3f96cad49456aadd794b130be55c34 | [
"MIT"
] | permissive | xanthematthijssen/lsembandwidth | a35d819fe078ffffd1e5e17caab1075b00333eee | fed4fa8c6362003bef30ff7e7484eb1bd3211684 | refs/heads/master | 2022-12-29T09:48:50.704064 | 2020-10-20T14:55:51 | 2020-10-20T14:55:51 | 242,844,323 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 619 | rd | lsem_kernel_weights.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lsem_kernel_weights.R
\name{lsem_kernel_weights}
\alias{lsem_kernel_weights}
\title{Function from sirt that calculates kernel weights for certain bandwidth and moderator value}
\usage{
lsem_kernel_weights(x, x0, bw, kernel = "gaussian")
}
\ar... |
50cdcddcb980268110d89571e9aacf300b0996ad | 0c21028ce68d0ebd7e0f6698e97521d457f3e9ee | /DEB_IBM.R | b59364542a94a6489afaa478aa81093fd9d8c94f | [] | no_license | xocloo/SchistoIBM | da150240c8c4c4abfdde2bbabecb607e06503c7d | 728e741e1042b974aa22be5162e5e7162d2e543f | refs/heads/master | 2020-04-24T17:10:38.993360 | 2019-02-22T15:32:51 | 2019-02-22T15:32:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 36,369 | r | DEB_IBM.R | ## DEB IBM
# check bottom of page for diagnostics for running netlogo in rstudio
# version 1.2
# DEB_INF_GUTS_IBM_1.1.nlogo
# IndividualModel_IBM3.c (generates .o and .so files)
# FullStarve_shrink_dilute_damage3.Rda
# version 1.1
# DEB_INF_GUTS_IBM_1.1.nlogo
# IndividualModel_IBM2.c
# ILL_shrink_damageA5.Rda
# 1... |
3f683d8da593393cf5d6e4c4e3555d6c48c45684 | 17d42319f3067c0c881728f0fd72c18f0bd19525 | /Data Application - Section 4 of the main manuscript/Part5b.R | 5f852ad74db97adf8fc754ece0022ba46b89d750 | [] | no_license | pratik187/SP-Estim-Crosscov | 5772557b740987c10600a793e4bd2fa29a8faaf8 | 7f13bd34234b525aeeb3297e8dbe785684bbe45c | refs/heads/master | 2022-11-09T00:38:46.165986 | 2020-06-26T14:46:36 | 2020-06-26T14:46:36 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,780 | r | Part5b.R | #######################################################################
###################### Part 5b of the Data application code ############
#######################################################################
###################################################################################################
##... |
50fd28bbbf33a7edd5d76b216ffb6023918f039d | bbe0ba427d05eaeded9a920251d5c109b48d731d | /tests/testthat.R | 96c854089f5b45bf7cb18452cf1b46861b0e03ef | [] | no_license | cran/rcolors | 77c9a96490bffb5a3a80a8d6d2ef5cbcc03dbd0d | e09ad9df5e846c2971b39b52a88c7e9962f6ae8c | refs/heads/master | 2023-04-22T11:09:19.959872 | 2021-04-23T09:40:02 | 2021-04-23T09:40:02 | 360,933,493 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 62 | r | testthat.R | library(testthat)
library(rcolors)
test_check("rcolors")
|
2df69f0a2127eee20c2ca4f5d5d96d999f086583 | 78498ee1b47cd9606f0763f7f3582a44084a15da | /Code/spca_fil.R | 6793727bebece7ff4a5c65f228ceebbe0d715828 | [] | no_license | XKSH/Prevision-du-defaut-sur-le-perimetre-de-TPE | 29b7b8e3627a292a8fc91136d426aec5fe1fa332 | 69f25eb1b12bb5d37229786a6a71017db585babe | refs/heads/master | 2021-08-11T12:27:49.456236 | 2017-11-13T17:37:33 | 2017-11-13T17:37:33 | 106,800,737 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 1,691 | r | spca_fil.R | #supervised pca
library(superpc)
acp_train=PEdat[traincand[,2],-246]
acp_test=PEdat[-traincand[,2],-246]
acp_dft=PEdat[traincand[,2],246]
matd.complet=do.call(cbind,acp_train)
for(i in 1:ncol(matd.complet))
{
matd.complet[is.na(matd.complet[,i]),i]=median(matd.complet[,i],na.rm=TRUE)
}
data<-list(x=t(matd... |
c8b9df2e191014224a5981ed1c58949eb7314684 | 8f5890d3b98e36b1dd96657fdbb5e9cc10a9edd0 | /shiny/wordcloud/global.R | ebcaec803369479b576ee06623d8a5b190a38ce0 | [
"MIT"
] | permissive | ncdingari/WebAppEx | e8bc733b26ea3c16bc9c84859cd1b38d53c38366 | 137bd7389a11037aeff32b99e75a95146eb6ec81 | refs/heads/master | 2021-01-23T21:21:42.090434 | 2017-06-08T10:15:41 | 2017-06-08T10:15:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,151 | r | global.R | library(tm)
library(wordcloud)
library(memoise)
library(capek)
# The list of valid books
books <<- list("Továrna na absolutno" = "tovarna_na_absolutno",
"Krakatit" = "krakatit",
"Hordubal" = "hordubal",
"Povětroň"="povetron",
"Obyčejný život"="obycejny_zivot",
... |
558bfa89abb54c1129060eb3bafc23b85c3f34b4 | 7bb21189354bf72b2e8aeeb9f0e4340e69ed2913 | /man/rseg.std.tri.Rd | 6131f5b956503d462a8f4bec93738c14a65d593a | [] | no_license | elvanceyhan/pcds | 16371849188f98138933afd2e68a46167f674923 | 00331843a0670e7cd9a62b7bca70df06d4629212 | refs/heads/master | 2023-07-02T10:03:48.702073 | 2023-06-16T15:50:46 | 2023-06-16T15:50:46 | 218,353,699 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,486 | rd | rseg.std.tri.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PatternGen.R
\name{rseg.std.tri}
\alias{rseg.std.tri}
\title{Generation of points segregated (in a Type I fashion)
from the vertices of \eqn{T_e}}
\usage{
rseg.std.tri(n, eps)
}
\arguments{
\item{n}{A positive integer
representing the number ... |
27b5df5181ddec84f097026640d220adfdc28304 | 9f610c112fdaaab291fbcc8b80572e52743e4574 | /R/matrix-construct.R | 31dff010afae07b20b3f70d87bfebafccb12c530 | [
"MIT"
] | permissive | teslajoy/hnscc-macOS | c907473d22380d6a5a7bc22d3fbe9312bdb68391 | 93cf238cd56af0452b34c25a5054524673f3fc78 | refs/heads/master | 2022-01-13T17:31:46.622914 | 2021-12-27T16:34:54 | 2021-12-27T16:34:54 | 77,406,143 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,611 | r | matrix-construct.R | #http://statisticalrecipes.blogspot.com/2012/08/biomart-find-gene-name-using-chromosome.html
library(biomaRt) # map exon to gene by chromosome location
# load data --------------------------------------------------
load("RNA_normalized_samples/gene_prog_files.RData")
load("RNA_normalized_samples/gene_nonprog_files.RD... |
76a2cbc25da6b580024b6903b792fd22879d0c2b | 77ef73c072c75fc92d313d404fa1b6df50a53e40 | /man/cyto_gate_edit.Rd | 0242ce9bd83f5e71f05b673e1f281b3f078a021d | [] | no_license | DillonHammill/CytoExploreR | 8eccabf1d761c29790c1d5c1921e1bd7089d9e09 | 0efb1cc19fc701ae03905cf1b8484c1dfeb387df | refs/heads/master | 2023-08-17T06:31:48.958379 | 2023-02-28T09:31:08 | 2023-02-28T09:31:08 | 214,059,913 | 60 | 17 | null | 2020-08-12T11:41:37 | 2019-10-10T01:35:16 | R | UTF-8 | R | false | true | 5,300 | rd | cyto_gate_edit.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cyto_gate-helpers.R
\name{cyto_gate_edit}
\alias{cyto_gate_edit}
\title{Edit Existing Gate(s).}
\usage{
cyto_gate_edit(
x,
parent = NULL,
alias = NULL,
channels = NULL,
type = NULL,
gatingTemplate = NULL,
overlay = NA,
group_b... |
769529306ab33dc197c70f8c9341ccea50a81817 | b4cf1178b97f1f747f1c6cd8469bb24e1fd8c6e5 | /R/utils.R | 709a52af7ee67c03c6565664c5f44b2602630e48 | [
"MIT"
] | permissive | benitezrcamilo/xplorerr | c0ddc8bd984354db6b6bd3c2f4074a25cb9640d4 | 37c2a74b52760cc5d383d9b7b64f9175a04c566f | refs/heads/master | 2023-04-29T06:18:03.612353 | 2021-05-21T08:36:50 | 2021-05-21T08:36:50 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 659 | r | utils.R | #' @importFrom utils packageVersion menu install.packages
check_suggests <- function(pkg) {
pkg_flag <- tryCatch(utils::packageVersion(pkg), error = function(e) NA)
if (is.na(pkg_flag)) {
msg <- message(paste0(pkg, ' must be installed for this functionality.'))
if (interactive()) {
message(msg, "\... |
775545c1f4547bbe1805c2437fdedb72e3b4073b | 799f724f939763c26c4c94497b8632bad380e8f3 | /man/groups.Rd | f2671242b19ab4fc2fe226d3fbcb3009c67c92cf | [] | no_license | chmue/quanteda | 89133a7196b1617f599e5bba57fe1f6e59b5c579 | aed5cce6778150be790b66c031ac8a40431ec712 | refs/heads/master | 2020-12-01T02:59:48.346832 | 2017-11-22T18:35:37 | 2017-11-22T18:35:37 | 50,363,453 | 2 | 0 | null | 2016-01-25T16:18:50 | 2016-01-25T16:18:50 | null | UTF-8 | R | false | true | 723 | rd | groups.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/quanteda-documentation.R
\name{groups}
\alias{groups}
\title{grouping variable(s) for various functions}
\arguments{
\item{groups}{either: a character vector containing the names of document
variables to be used for grouping; or a factor or ... |
bc6add16faa1355d0aa20c326a46af8b4012dbb0 | 4fc8ffe5d2450118ca79041c3acba6e5cd1e88d4 | /R/checkSpeciesIdentification.R | 79a38ce8ebe9511773f205358baa118e05b170a2 | [] | no_license | adithirgis/camtrapR | 5b44ae46305b50434053652be9c3ec26dcec8de2 | be8b0dca9905a56799a5f8983db71a4e2b989709 | refs/heads/master | 2023-08-06T06:05:42.510507 | 2021-09-17T09:45:45 | 2021-09-17T09:45:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,203 | r | checkSpeciesIdentification.R | checkSpeciesIdentification <- function(inDir,
IDfrom,
hasCameraFolders,
metadataSpeciesTag,
metadataSpeciesTagToCompare,
meta... |
b53a3313dededa35207fdb17fc576709d0c6a7e2 | a226f4b4cf54dd0e8164a727d24dca99e79e1354 | /tests/testthat/test_equalGADS.R | edc9aee6e1316c5d309702827256b7404b7f5bc4 | [] | no_license | beckerbenj/eatGADS | 5ef0bdc3ce52b1895aaaf40349cbac4adcaa293a | e16b423bd085f703f5a548c5252da61703bfc9bb | refs/heads/master | 2023-09-04T07:06:12.720324 | 2023-08-25T11:08:48 | 2023-08-25T11:08:48 | 150,725,511 | 0 | 1 | null | 2023-09-12T06:44:54 | 2018-09-28T10:41:21 | R | UTF-8 | R | false | false | 3,119 | r | test_equalGADS.R |
# load test data (df1, df2, pkList, fkList)
# load(file = "tests/testthat/helper_data.rda")
load(file = "helper_data.rda")
# dfSAV <- import_spss(file = "tests/testthat/helper_spss_missings.sav")
dfSAV <- import_spss(file = "helper_spss_missings.sav")
test_that("Compare two different GADSdat objects",{
out ... |
6273cf0e7943a5dcd13a637822420811d9a400c4 | 0e59d41c7718e9a4b0fbb4f6728a6046075e8149 | /R/data.R | cc560ef86f634492746c71ec87ba71ffdfaac37f | [] | no_license | Ngendahimana/epbi500 | 61a1fa989a152eb1da946a688c8640a9c812d1ae | 57f4a6a560debd4de7bb2b6183c991242ec953dc | refs/heads/master | 2021-01-17T15:50:49.837566 | 2017-03-09T13:12:45 | 2017-03-09T13:12:45 | 84,102,642 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 811 | r | data.R | #' Right Heart Catheterization Dataset
#'
#' This dataset was used in Connors et al. (1996): The effectiveness of RHC in the initial care of critically
#' #' ill patients. J American Medical Association 276:889-897. The dataset pertains to day 1 of hospitalizatio#' n, i.e., the 'treatment' variable swang1 is whether o... |
c4fd68a92d49c0876d8f1e7043a4002b927c9f4e | e9c08d14fe6aef1589dbde525d5f933944f9c37f | /R-EDA_PP_FE/FE/FE2.R | b22951ee170e6a211693a8526b5aa16030ad2b5c | [] | no_license | vamsiry/Data-Science | beee7654b5085fd494bf7349a0846fdfa6b784ea | a2a9e3237fb4e727393d2a5fe5d7e0a9b9c6de8c | refs/heads/master | 2021-01-11T22:48:15.474254 | 2018-05-03T02:35:13 | 2018-05-03T02:35:13 | 79,034,903 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,668 | r | FE2.R |
#feature engg-basics.R
#======================
library(caret)
setwd("C:\\Users\\Vamsi\\Desktop\\R.Alg\\practice\\data sets\\datasets\\")
winedata = read.csv("wine.txt", header = TRUE)
dim(winedata)
str(winedata)
#Remove the variables which have 95% NAs
#=========================================
threshold... |
35777b600d675eafce25d9eebb010f22a8b425c7 | 338f458b6a99e2cca33e7319d374a94ab48ca3ad | /code.r | 643e7f456a1930a1e6338713d878af15cad579de | [] | no_license | ahmedali20001/Optimizing-a-Healthcare-Network- | 428658dc2481bb1e4c70cea7c2dd5d35e2723687 | e051422d99b28172ac3883e0eb43a6594e257348 | refs/heads/master | 2020-04-28T07:15:31.267590 | 2019-03-11T21:22:40 | 2019-03-11T21:22:40 | 175,085,383 | 0 | 0 | null | null | null | null | WINDOWS-1252 | R | false | false | 4,036 | r | code.r | # import data set
data <- read.csv("C:/Users/HP/Desktop/Dojo Task/Data.csv",header = TRUE,sep = ",")
# setting up data, also getting latitude and longitude to pin point data
# for getting accurate results
library(zipcode)
data(zipcode)
nrow(zipcode)
head(zipcode)
library(zipcode)
data(zipcode)
somedata = ... |
6f940cd2794fb2317a954018a9f58f39a777b9b4 | dba7646b74a68ef18375cd5c0ca3233ba1684ea1 | /targetscore/man/get_fs_vals.Rd | 63790ea46721e610ae43f4e8adbb9e2dd60468a4 | [
"Apache-2.0"
] | permissive | jmig5776/targetscore | 130dfe6aec7e6437e2f9ae6e3d075e5a871097e8 | 83e6550446abea571f78bfe39aeb7e4fde894c98 | refs/heads/master | 2023-02-06T14:17:23.311838 | 2020-12-18T13:36:08 | 2020-12-18T13:36:08 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,045 | rd | get_fs_vals.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_fs_vals.R
\name{get_fs_vals}
\alias{get_fs_vals}
\title{Extracted functional score value from COMIC/ONCODRIVE Database. Can be override with Manually set functional score.}
\usage{
get_fs_vals(
n_prot,
proteomic_responses,
mab_to_ge... |
644059de8ac449a3bb2d51754ba1901ea264b08f | b98573fb1a642b0c3fedfc11d7f625c9a4aef31b | /EDA.R | c2669555fe133dad6b83009e5a0da8bc0746ce80 | [] | no_license | Rajat-Gaur/Time-series-forecasting-Power-demand | 989160bc54bfe667f3dafe8e6e0822543a938e88 | 28fd3b39ddedc6eabce6b5be60d33fcbb3911e88 | refs/heads/main | 2023-02-24T23:24:12.668168 | 2021-01-27T03:11:05 | 2021-01-27T03:11:05 | 333,287,848 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,346 | r | EDA.R | library(gbm)
library(lubridate)
library(MLmetrics)
library(dplyr)
library(xts)
library(forecast)
library(ggplot2)
library(xts)
getwd()
final_data = read.csv("final_data.csv")
tail(final_data)
final_data$Date = ymd_hms(final_data$Date)
new = final_data[,c('Load','Date')]
ts1 = xts(new$Load, order.by = n... |
4c17e1c98944852498358d030477a3f1072bc964 | 9ee587651e82c3efdf58036364c197829ffa57e1 | /Chapter3_EcosystemComparison/15.05.2022_NMDS.R | 11174b963f54c475724518bbea0d51a2e9f996c7 | [
"Apache-2.0"
] | permissive | QutEcoacoustics/spatial-acoustics | 7f0fd2af6663200ab529a2f8979eec56a0bf2e40 | 5e8eaba29576a59f85220c8013d0b083ddb70592 | refs/heads/master | 2023-04-15T09:50:44.063038 | 2023-03-14T23:36:36 | 2023-03-14T23:36:36 | 222,621,976 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 30,282 | r | 15.05.2022_NMDS.R | library(tidyverse)
library(ggplot2)
library(lubridate)
library(vegan)
rm(list = ls())
set.seed(123)
# set.group <- "bird"
#Splitting the data using a function from dplyr package
getDataPath <- function (...) {
return(file.path("C:/Users/n10393021/OneDrive - Queensland University of Technology/Documents/PhD/Pro... |
98bedca915663edd10fa1725c50b23934870eef4 | ae4a257cc62e8ee4b90fda7e877750e59c0d8ba3 | /R/fun_plotSingleTS.R | 9113531523bf4548c66a5d7e09a4a41d14d53537 | [] | no_license | davidlamcm/Rtoolbox | 824a5f189c5e3ec89f841fe4e73f85605d894d6a | 238a6881f4df4a47365aeb0a2786fed62899e537 | refs/heads/master | 2021-01-19T14:09:35.775475 | 2018-08-22T15:16:44 | 2018-08-22T15:16:44 | 88,128,106 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 801 | r | fun_plotSingleTS.R | #' this function will be deprecated
#' wrapper for ggplot
#' @export
plotSingleTS <-function(ts, title){
if(class(ts) == "numeric"){
df = data.frame(date = as.Date(names(ts)), fx = ts)
}else if(class(ts) == "matrix"){
df = data.frame(date = as.Date(rownames(ts)), fx = ts)
}else if(class(ts) == "... |
48de56a8bfbd15cc0cd2e0fb5c7aca3843d7bbaa | b868dffc1ee10e55c092fef9f8d48b1131d137a9 | /rcourse_shiny/00_hello_world/ui.R | 7571fa1e988a691ad0a69144681a41b08d641299 | [] | no_license | simecek/small_shiny_projects | 5c7c0d4a42f4fa897309f964b5a8458362eacfe6 | 0ed3272674dd327587ea9d5ace35f0853c436f20 | refs/heads/master | 2016-09-05T14:51:08.282230 | 2015-06-03T20:21:53 | 2015-06-03T20:21:53 | 15,556,534 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 308 | r | ui.R | # User Interface
shinyUI(pageWithSidebar(
# Application title
headerPanel("Minimal Shiny App"),
# Sidebar with inputs
sidebarPanel(
textInput(inputId = "name", label = "Your name:", value = "World")
),
# Main panel with outputs
mainPanel(
textOutput("greeting")
)
))
|
84375cffe6cf5751c1318f43589192557934f1b5 | f1eed5032325b7b0c1c973ef8901855f3c9b2b0f | /Adamo_et_al_Rscript.R | dba800a088735179cde6d4d82ae5a7855aee2a09 | [] | no_license | josucham/Statistical-analyses-optimal-sampling-size-in-Mediterranean-forest-ecosystems | b6d02e8725b1a6bcfb074ed4edd50bd9d6ab50bb | 86c1cfee3ece3d792fdeca0fd21603c97b301945 | refs/heads/main | 2023-02-27T01:46:31.823803 | 2021-02-08T15:53:41 | 2021-02-08T15:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,911 | r | Adamo_et_al_Rscript.R | ###############################################################
## ##
## Sampling forest soils to describe fungal diversity ##
## and composition. Which is the optimal sampling size in ##
## Mediterranean pure and mixed pine-oak forests? ... |
6c921edbdba2d457e1555732f18865710a8c7083 | 547d9593d2808563e9a3abb970cf39d40d0cf024 | /man/concept_list.Rd | 7612e7ad0ec2d17f0f0a7242406153893bfce7d7 | [] | no_license | dncnbrn/EmsiR | c5176d65ea2661c69c50b755f4e5c530638b25b1 | 2d643be0af6b9b8838af65cb57a763dd209f46f8 | refs/heads/master | 2021-03-24T12:54:31.031726 | 2018-02-23T13:30:42 | 2018-02-23T13:30:42 | 75,728,416 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 402 | rd | concept_list.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/listing.R
\name{concept_list}
\alias{concept_list}
\title{Query concepts used on the Episteme API}
\usage{
concept_list()
}
\value{
A full listing of concepts with description by Country and Concept.
}
\description{
Queries the Episteme API r... |
82a9a39a46efae5e92969de23b0c55fc1493f3f6 | 04b076ef7e022127fae4431d99683eb1ae3651f4 | /sequence.writer-1.r | 9726ceb05321f20b00102298d6b8c462d333f286 | [] | no_license | jyhwang13/Malaria | ee0054dd081b88aa571670a669f0ba0481f20558 | 897400df5506e6de2c392af525a3d3834cf89a13 | refs/heads/master | 2022-08-25T16:24:06.228440 | 2020-05-22T03:35:12 | 2020-05-22T03:35:12 | 263,752,095 | 1 | 0 | null | 2020-05-22T03:35:13 | 2020-05-13T21:57:44 | R | UTF-8 | R | false | false | 2,387 | r | sequence.writer-1.r | ## Read in the data and references ##
## Set your working directory to Malaria if you're using GitHub Desktop ##
#library("seqinr")
#reference.genome <- read.fasta("Data/LR605956.fasta", as.string=TRUE, seqonly=TRUE)
#ref <- read.table("Data/ref.tab", header=TRUE, sep="\t")
#non <- read.table("Data/non.tab", header=TRU... |
22354ec36d650f17d68627afb48a3e0214c8eba8 | 18d34c00f43e3fe1478c8fee96fcb1fddba0159c | /easyRasch/man/likelihood.Rd | bb162010973e6bb442b4fa1a5c43f3f54df53274 | [] | no_license | noahb4626/midterm | 21392e4be11d0bb34c8115a0d79582d54bde02ce | 48b5d7a4ac0f383a416cae495b231493c16af2ca | refs/heads/master | 2021-04-09T13:23:46.854034 | 2018-03-17T23:08:03 | 2018-03-17T23:08:03 | 125,652,611 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 581 | rd | likelihood.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/likelihood.R
\name{likelihood}
\alias{likelihood}
\alias{likelihood,}
\alias{ANY-method}
\title{likelihood function}
\usage{
likelihood(raschObj = "Rasch", theta = "numeric")
}
\arguments{
\item{raschObj}{An object of class Rasch}
\item{thet... |
17caef72dd128275098fec0eb46d4836e2195e24 | 9199adb97f6dfa16fd72a30e938c576f95e0177a | /plot4.R | ff2a5e1025b7851125b426219ad29413f98017a8 | [] | no_license | Smally12345/ExData_Plotting1 | d512d5a1b4e43faba0d4b9d01667221bc1c07159 | 2237364a1c5b743a663a9d6a0e71c46d76191f38 | refs/heads/master | 2022-10-09T00:35:06.701944 | 2020-06-06T13:30:27 | 2020-06-06T13:30:27 | 269,905,419 | 0 | 0 | null | 2020-06-06T07:28:30 | 2020-06-06T07:28:30 | null | UTF-8 | R | false | false | 1,147 | r | plot4.R | #Import Libraries
library(sqldf)
# Load Data
df <- read.csv.sql("./exdata_data_household_power_consumption/household_power_consumption.txt","select * from file where Date = '1/2/2007' or Date = '2/2/2007' ",sep=";")
# Combining Date and Time variables
df$DateTime <- paste(df$Date, df$Time)
df$DateTime <- strptime... |
22046dd0b41d6997bcab1f5a5a365fae2b7c0379 | cacdb82f37df0974a142c1d6689eb70a815e46f2 | /man/containsJunctions-function.Rd | 8a823002a4c13d05572558682cc3cda60051eccc | [] | no_license | xiahui625649/ASpli | 63b9f76d6cf2cd48893213d93d0906e0d54c6811 | 489d61db50d6a43cfaabbeb31f0f83fedde1d1ea | refs/heads/main | 2023-03-15T00:51:53.602547 | 2021-03-10T17:28:28 | 2021-03-10T17:28:28 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 952 | rd | containsJunctions-function.Rd | \name{ Examine ASpliDU objects }
\alias{containsJunctions}
\alias{containsGenesAndBins}
\title{ Examine ASpliDU objects }
\description{
AspliDU object may contain results of differential expression of genes,
differential usage of bins and junctions, however not everything is
calculated at the same or even pr... |
726c1ae8088aba921fd245e975af812102ae89bb | f8fefd6e05f938595ca789108d4d10b958a3d0e1 | /Assignment 7_2.R | a6953e63767b8339a05df211fcaa52f071f4bb88 | [] | no_license | vadde18srinu/Assignment-7.2 | 937a849109c9941e631b858c2f8b5b0656e7f9c6 | d6c9529bf307d245d64773b777fdc6bfc3be9090 | refs/heads/master | 2020-03-27T00:02:48.317548 | 2018-08-21T16:16:58 | 2018-08-21T16:16:58 | 145,589,293 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,244 | r | Assignment 7_2.R | 1. Write a program to create barplots for all the categorical columns in mtcars.
library(tidyr)
library(ggplot2)
library(purrr)
# or `library(tidyverse)
df<-data.frame(mtcars,row.names = NULL, stringsAsFactors = default.stringsAsFactors())
df
# all categorical columns
mtcars %>%
keep(is.numeric) %>% ... |
b7c9ea3c4ee784ce16d007c2a978111e1d84c7e0 | a375669877a8bf6cbd6e1359a8737bbd0620ad5b | /analyzeResults.R | 39a18464c30b23174a679d827c95a4cc9317ae9f | [
"MIT"
] | permissive | joongchan1/abmodelr | 138fc640a9057af5bccdef0903d0e3430e226b1c | 0c36e82c805f6d2bbb7d903cc1bcc7bec5e38e2e | refs/heads/master | 2023-03-19T00:40:12.321329 | 2020-08-27T09:35:09 | 2020-08-27T09:35:09 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 943 | r | analyzeResults.R | library(tidyverse)
library(DT)
library(data.table)
library(yaml)
library(rstudioapi)
file <- selectFile(caption = "Select File", label = "Select",
path = getActiveProject(), filter = "All YAML Files (*.yml)",
existing = TRUE)
config <- read_yaml(file)
# read results
rds_filen... |
137fc8282f323e807ba439d49d26185a7a387e4e | b2530aca6ec1073942c76a6cf5fff058dd3de7f4 | /scripts/MortonArb_Phenology_AnnualReport_2022-12_YearEnd.R | b99408df5e1942f7b4d8e59a4163465be40d784b | [] | no_license | MortonArb-ForestEcology/Phenology_LivingCollections | 27f8565ad37a979cfb247148065883a9368b7c87 | 0e650f99acf6d0393ac545c4cd7afe465a644cc5 | refs/heads/master | 2023-09-01T01:25:55.313477 | 2023-08-22T13:47:35 | 2023-08-22T13:47:35 | 87,115,785 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 33,875 | r | MortonArb_Phenology_AnnualReport_2022-12_YearEnd.R | # A new script with some combined collections analyses/graphs for the end of the year report
library(ggplot2)
###setting the file path to mac or windows##
path.google <- "/Volumes/GoogleDrive/My Drive/" # Mac
path.out <- file.path(path.google, "G://My Drive/LivingCollections_Phenology/Reports")
#path.figs <- file.path(... |
84f2998a67658b15aeb887ec106b4f71749ddde1 | 231ecba59e56af6fecd46fd8f48138988046e99d | /dependencies.R | 93d5ab09c531e42bfcd59de50625c771cf2c5195 | [] | no_license | Mina-N/LDA_App | 4946e270ba11d2b92c6e1705ae2b9c7df2e9b169 | 5d7b48389b8a867a7d1ba0013e38dc4776fddec2 | refs/heads/master | 2023-02-28T21:09:30.969912 | 2021-01-31T21:20:18 | 2021-01-31T21:20:18 | 281,758,441 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 760 | r | dependencies.R | # Install dependencies necessary for app
# Found at:
# https://stackoverflow.com/questions/4090169/elegant-way-to-check-for-missing-packages-and-install-them
if (!require("pacman")) {
install.packages("pacman")
}
## R Shiny Package
pacman::p_load("shiny")
## Data Frame Packages
pacman::p_load("dplyr","stringr","r... |
7c902121b9132daec678093e6201147e0ba7f0eb | be3a64d387d48f193419476a258c829e4100cb67 | /week_02/hw02-2.R | 2d8333b8771bdce475d88b33720f4e629652fb99 | [] | no_license | claireliu14/CSX_RProject | bd327da65a2b66592b30644591bf39b8c678fc25 | 53dc6da8d7ad0da42f2457a26efa1dec2784011d | refs/heads/master | 2020-03-22T06:53:22.902040 | 2019-04-17T03:21:37 | 2019-04-17T03:21:37 | 139,664,400 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,474 | r | hw02-2.R | source('pttTestFunction.R')
id = c(1:10)
URL = paste0("https://www.ptt.cc/bbs/WomenTalk/index", id, ".html") # paste預設會有空格,paste0則沒有
filename = paste0(id, ".txt")
pttTestFunction(URL[1], filename[1])
mapply(pttTestFunction, URL = URL, filename = filename)
rm(list=ls(all.names = TRUE))
library(NLP) # install.p... |
dc020a70cb87a9fe69f6f253ab3817080e772669 | 60eb6bc5bed9927212e98fccd29bd2008f23cb2f | /app.R | a097ed94776f9178d7e82dc950733a8f1f989898 | [] | no_license | limnavonglouis/covid-19-projections | 77a1e81878897cc15c4c590a40833ddcec7fbadf | 1e36496c940777b32b89d17d704fa22bbcbb252c | refs/heads/master | 2021-04-14T19:08:44.449594 | 2020-03-25T12:48:59 | 2020-03-25T12:48:59 | 249,258,153 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,095 | r | app.R | library(shiny)
library(shinythemes)
library(dplyr)
library(rvest)
source('plot_curve.R')
source('plot_model.R')
source('plot_model_compared.R')
source('plot_truncated.R')
## SCRIPT ##
path <- ("https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/")
data_co... |
6c679253284b5c0622984fbb8420bf992320cf75 | 47aff768b8b66536f6355d57295c9edd9e1ff79a | /inst/demos/xgboost.R | 4f00f8701c3e79a83bbc8fc9c134826632f28dd7 | [] | no_license | grayskripko/rsmac | 559e4eb5e9257f2265c3099a1364183469a61b15 | 8c28cbfb5c2d072face6e6b92f8e088263ecbd4b | refs/heads/master | 2021-01-13T14:55:31.731237 | 2017-03-02T16:54:47 | 2017-03-02T16:54:47 | 76,677,051 | 0 | 3 | null | null | null | null | UTF-8 | R | false | false | 1,020 | r | xgboost.R | library(rsmac)
grid <- list(
nrounds = list(type='discrete', init=5, min=3, max=30),
max.depth = list(type='discrete', init=4, min=3, max=10),
eta = list(type='continuous', init=0.5, min=0.01, max=0.99),
subsample = list(type='continuous', init=1, min=0.5, max=1))
objective <- function(max.dep... |
70028b36b22e5176d96e36a7f2d77b1567386d66 | e93ce01e189bd4d553aff97605ec4776e96d3355 | /tables/create-table.R | 457b61d771d215996ad5220566c4324a40c08a80 | [] | no_license | ybkamaleri/indicator | ae36080f7874fdcf0a7c67927f52c5a85e9a29bf | badf59244016987141c8cf9ef3ca698274a4e33b | refs/heads/main | 2023-02-03T21:40:14.062915 | 2020-12-23T14:45:12 | 2020-12-23T14:45:12 | 323,649,768 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,549 | r | create-table.R | ## Create tables in SQLite
## ------------------------
library(DBI)
library(RSQLite)
dbc <- DBI::dbConnect(SQLite(), dbname = "indicator.db")
sq_title <- '
CREATE TABLE "tbl_title" (
"id" INTEGER NOT NULL UNIQUE,
"rap" INTEGER,
"title" TEXT NOT NULL,
"intro" TEXT,
"def" ... |
d8b69e18c04cd3183fd6771d8c3db01babdafdc1 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/hydroTSM/examples/climograph.Rd.R | 9e6681828d51af382e2749950bab1249adad73ef | [] | 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 | 461 | r | climograph.Rd.R | library(hydroTSM)
### Name: climograph
### Title: Climograph
### Aliases: climograph
### Keywords: manip
### ** Examples
######################
## Ex1: Loading the DAILY precipitation, maximum and minimum air temperature at
## station Maquehue Temuco Ad (Chile)
data(MaquehueTemuco)
pcp <- MaquehueTemuco[, 1]
... |
85f929244a4df3a9fc2d60a129941488d8ac9ab2 | 0a0a04adad2a286a74017b572e51dc82dc3ef786 | /R/Rd_df.R | 30fdb24925032c08272ff306002ee3546bfd1c87 | [
"MIT"
] | permissive | armcn/covtracer | 7e408e67a8ac1376e397a19cff7dc9dfa23f1ac2 | 9ccfacd171a2698bca7935f6bc88241d04b78d11 | refs/heads/main | 2023-08-18T20:40:23.765988 | 2021-09-30T15:56:29 | 2021-09-30T15:56:29 | 411,432,330 | 0 | 0 | NOASSERTION | 2021-09-28T20:40:59 | 2021-09-28T20:40:58 | null | UTF-8 | R | false | false | 2,095 | r | Rd_df.R | #' Create a tabular representation of man file information
#'
#' Provides Rd index info with a few additional columns of information about
#' each exported object. Returns one record per documented object, even if
#' multiple objects alias to the same documentation file.
#'
#' @inheritParams as.package
#' @return A \co... |
7030cd03729e2505cccd230b87a4e509780fcd49 | 1b04d38b874db3e4806947c592d2c807836a13c0 | /global.R | 31ea4f0e03eee4692053cd4ef3c8ff046634f2d4 | [] | no_license | jkniz/example | aae2ae9a68cda7e1970c09aa20727a871cc3aed4 | 87720261895e51dc8f7ae7bf67b967afb7dc0346 | refs/heads/master | 2023-06-15T20:22:08.125879 | 2021-07-02T15:51:50 | 2021-07-02T15:51:50 | 382,393,332 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 393 | r | global.R | c_vars_choices <- c(
"Sex (0=w, 1=m)" = "sex", "Age" = "age", "Height" = "height", "Weight" = "weight", "BMI" = "bmi",
"Diet" = "diet", "Cholesterol" = "chol", "Smoker" = "smoker", "Cigarettes per day" = "cigs_per_day", "Packyears" = "packyears",
"Alcohol (g/day)" = "alc", "Tumour size" = "size", "Bilirubin" = "b... |
857ebbce0beef47c0523dac77c4eb5290678528a | b343820292bb28211a637033e3a4cdbb02921ccd | /ppp2020/R/RcppExports.R | 22405cf75247d233b9909a5e3384e648f29bb816 | [] | no_license | mintbora/test2 | 48187070f46de47e01f7a1543fa7474361460227 | 3f326cd7fac7251068e6153f8842e6c7d1834286 | refs/heads/master | 2021-05-19T17:52:23.376896 | 2020-04-07T05:27:17 | 2020-04-07T05:27:17 | 252,054,510 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 860 | r | RcppExports.R | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
rcpparma_hello_world <- function() {
.Call(`_ppp2020_rcpparma_hello_world`)
}
rcpparma_outerproduct <- function(x) {
.Call(`_ppp2020_rcpparma_outerproduct`, x)
}
rcpparma_innerproduct... |
a85caab4b44f4adc5ee85d3c6d4a3ec8671018dc | 181f74e926f422784d90465a9a50492460bc5bd3 | /R/limitedImpute.R | 125c0e157ec6c6f864e5763ec2bb8abbc3773e99 | [] | no_license | tranlm/lrecImpact | dbab81fa5d4e2df4badc6af8280387223ec2f4f0 | 8d66c0918be23eccbc245f4bd3c77c4c28adb8e4 | refs/heads/master | 2021-03-12T19:53:43.024672 | 2015-06-17T16:52:40 | 2015-06-17T16:52:40 | 34,067,274 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,777 | r | limitedImpute.R | ###############################################################################
# Description: Does last observation carried forward, but with a limit in how
# far the imputation will occur.
#
# Author: Linh Tran <tranlm@berkeley.edu>
# Date: Feb 13, 2015
###########################################################... |
c6864e2e0fb495d3006e2f8c47f36de1913c3847 | 9509cefb9198144bde21774fdd5b3c7a68a005a7 | /R/misc.R | 6c98f7f1c59f767b0dd8168ccbaf9e9d4c481469 | [] | no_license | jeffreyhanson/marxan | cc5d39f4a0980f8a7c4d1cf041a500721b03c198 | fff42df08ac0a8ad1f762f6402d15698babf1dff | refs/heads/master | 2021-08-07T12:54:25.036732 | 2016-11-03T04:53:28 | 2016-11-03T04:53:28 | 29,377,383 | 2 | 2 | null | null | null | null | UTF-8 | R | false | false | 5,345 | r | misc.R | #' @include RcppExports.R marxan-internal.R
NULL
#' Test if GDAL is installed on computer
#'
#' This function tests if GDAL is installed on the computer.
#' If not, download it here: \url{http://download.osgeo.org/gdal}.
#'
#' @return "logical" is GDAL installed?
#' @seealso \code{\link[gdalUtils]{gdal_setInstallation... |
72f31788ef8a9223b69d49f4c38162dd64e188be | 0cae9ad507ca79182eb5c880895c03c2665fceed | /tests/testthat/test-lsd-exchange.R | d5375961c23de0575572a6bf0473a708bbcd2286 | [
"MIT"
] | permissive | Maxprofs/debkeepr | 73fd8fd6e241cba3517e3305e12c76f2f4751cc1 | 18243cf1df2419c04479dcaa38804f1c48fe69c2 | refs/heads/master | 2020-04-14T15:23:19.967461 | 2018-09-19T00:16:56 | 2018-09-19T00:16:56 | 163,924,836 | 0 | 1 | NOASSERTION | 2019-01-03T04:54:41 | 2019-01-03T04:54:41 | null | UTF-8 | R | false | false | 9,110 | r | test-lsd-exchange.R | context("test-lsd-exchange.R")
suppressPackageStartupMessages(library(tibble))
suppressPackageStartupMessages(library(dplyr))
x <- c(10, 3, 2)
y <- c(20, 5, 8)
dec <- c(5.85, 17.35, 10)
b1 <- c(20, 12)
b2 <- c(8, 16)
x_b2 <- to_lsd(x, b2)
y_b2 <- to_lsd(y, b2)
list1 <- list(c(30, 10, 9), c(10.725, 18.65, 11), c(-26,... |
b68020a20e92a8f14b3401bc61b7cfa808e499b5 | f0dfd6c391b6b5a0bbb80be6a5ad03c4010bc8f1 | /R/samonDataCheck.R | e7f0b703c76558f80fb661cd94a5ff3e76179262 | [] | no_license | cran/samon | c8f985d1955f2c9e7743e399d6f4dee2f4e370b0 | 5995a43da42b0b7b46d424603a0c11f8627e59d6 | refs/heads/master | 2022-04-28T16:15:59.910849 | 2020-05-05T12:40:02 | 2020-05-05T12:40:02 | 100,425,023 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,185 | r | samonDataCheck.R | # Samon: Summarizes data in an input data matrix
# particularly summarizes missing data patterns.
# ----------------------------------------------------
samonDataCheck <- function( data ) {
NT <- ncol(data)
N <- nrow(data)
min = min(data, na.rm=TRUE)
max = max(data, na.rm=TRUE)
## desc[,1] Valid (non-... |
57bc17d19453f2a5cbc25f2fad13f4b894426bce | 0955238ee6664bd0be407edf02d6ed30c9c76b2f | /dup_to_OTU_table.R | 2d797811a21ec5c31345432317c5ce6401600454 | [] | no_license | reikopm/mbonlive_banzai | e19e8c2c4ec247a2ce21d62895d12769277ad4f8 | 80c7b2c61ea3349cd1b51ba465cf1b829de4f054 | refs/heads/master | 2021-09-06T03:07:45.249023 | 2018-02-01T22:42:17 | 2018-02-01T22:42:17 | 107,599,272 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,849 | r | dup_to_OTU_table.R | # translate duplicates to OTUs: was named collapse_dup_by_OTU
# arguments:
# 1: path to duplicate table (rows = sequence names, cols = sample names, cells = counts (integers))
# 2: dup to otu table (two columns; headers "Query" and "Match"; cells = sequence names of query and corresponding match from OTU clustering p... |
b25ee39de57152932f294c19965d1cf24caf4f8d | 6c0d3585561e667ba0f6657ebd28bf582ebe75bf | /test/stat.R | 015863bcaa79d964f5ac742f6bc431913eacd2d7 | [] | no_license | Carolwz/stateacher | 22035c29efd32f69b8b6884eb70e7b9844ffd238 | e48db63215862e3e5cf85868de51fcc5381e8b8d | refs/heads/master | 2023-08-10T17:56:20.328406 | 2021-10-10T15:23:28 | 2021-10-10T15:23:28 | 401,298,414 | 0 | 0 | null | 2021-09-27T14:35:29 | 2021-08-30T10:09:27 | HTML | UTF-8 | R | false | false | 1,852 | r | stat.R | library(yaml)
library(formattable)
# args <- commandArgs(T)
# folder <- args[1]
# folder <- 'CMU-DS'
folder <- ''
# setwd("C:/Users/RY/git/stateacher/Data/")
setwd(paste0('/home/runner/work/stateacher/stateacher/Data/', folder, '/'))
load_yaml <- function(x){
yaml_end_idx <- which(!is.na(stringr::str_locate(readLin... |
43d040651da31bd01ea7287d761ae7f57f36f542 | 395fd0b0d5c18cd9aae42a7e0a907ae2f2c30a13 | /man/cv.ramsvm.Rd | 1cb739fa6ae506e26a06a189ccb31b9d7cdb1c8a | [] | no_license | bbeomjin/dbvsmsvm | 7a9565828dae249670616c8da1dba6d06945ea55 | a3712baa96b8a15a5e8eb6c7d134892395dad14e | refs/heads/master | 2023-08-30T01:15:34.732352 | 2021-11-02T14:54:14 | 2021-11-02T14:54:14 | 285,000,083 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,557 | rd | cv.ramsvm.Rd | \name{cv.ramsvm}
\alias{cv.ramsvm}
\title{
Cross-Validation for ramsvm
}
\description{
Perform cross-validation for the optimal lambda of \code{ramsvm}.
}
\usage{
cv.ramsvm(x = NULL, y, gamma = 0.5, valid_x = NULL, valid_y = NULL, nfolds = 10,
lambda_seq = 2^{seq(-10, 15, length.out = 100)},
kernel = c("linear", "g... |
784de044dfd74e67e09200a6c352b442a1d473ee | d5bc5d4334969fec87fb2dd85ee03a70f4864caf | /tests/testthat/test-resample.R | 91f670e6ce8d3a1239c2c701b9c21d16c73f0417 | [
"MIT"
] | permissive | bbuchsbaum/neuroim2 | 46e14e10efb2b992e78741b0aa6737bde6971e33 | 2184bfafd75ab51e0c9d67db83076b08bbf3f40b | refs/heads/master | 2023-05-03T11:19:36.844512 | 2023-04-26T00:06:50 | 2023-04-26T00:06:50 | 109,069,233 | 6 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,052 | r | test-resample.R | library(testthat)
library(neuroim2)
# Test the resample(NeuroVol, NeuroVol) function
test_that("resample(NeuroVol, NeuroVol) works correctly", {
source <- NeuroVol(array(rnorm(64 * 64 * 64), c(64, 64, 64)), NeuroSpace(c(64, 64, 64)))
target <- NeuroVol(array(rnorm(64 * 64 * 64), c(64, 64, 64)), NeuroSpace(c(64, ... |
e93018393e29dd15e4d69c6780e6a696e3b1aa0e | 44fd4f5a8a5112b2c1a993bc7c7791de075a2fe6 | /R/utilities-constants.R | bb2fb36d9da5dd8c2d48e0f087b95f6f017a37a9 | [] | no_license | cran/shinyobjects | c0387c748ee8bf0ac174795707ca593a4bd4968d | fae1a0ed20966000e4753d8722eb6ded23d9e385 | refs/heads/master | 2022-11-22T10:23:18.694483 | 2020-07-29T04:50:02 | 2020-07-29T04:50:02 | 263,379,933 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 193 | r | utilities-constants.R | #' Valid strings for assignments/column names
#' @noRd
strings_to_find <- function() {
paste0(
"^((library|require)\\(|",
"[\\w\\._\\$0:9]+",
"(\\s)?(<-|=[^=]))"
)
}
|
323a90cd2d30d9bcfdbdbcfadeb1ed3ae6dddc9f | 2d34708b03cdf802018f17d0ba150df6772b6897 | /googlewebmastersv3.auto/man/UrlSampleDetails.Rd | 4b983fc809b45ecd65fe0297851ac6561b5fdef0 | [
"MIT"
] | permissive | GVersteeg/autoGoogleAPI | 8b3dda19fae2f012e11b3a18a330a4d0da474921 | f4850822230ef2f5552c9a5f42e397d9ae027a18 | refs/heads/master | 2020-09-28T20:20:58.023495 | 2017-03-05T19:50:39 | 2017-03-05T19:50:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 618 | rd | UrlSampleDetails.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/webmasters_objects.R
\name{UrlSampleDetails}
\alias{UrlSampleDetails}
\title{UrlSampleDetails Object}
\usage{
UrlSampleDetails(containingSitemaps = NULL, linkedFromUrls = NULL)
}
\arguments{
\item{containingSitemaps}{List of sitemaps pointing... |
cb198766b90a1c4e18dea0adde444b104d3fb800 | d50ea3daf164132528c0268ce01446aa38ac7eab | /man/getConds.Rd | 402bac3679f542e7d63dce7cf05ea5e1fc12190b | [
"MIT"
] | permissive | ydhwang/rfinference | d8f33ca498137ccd2a802b5fbb14b00f451ff8ab | 51e2c4aea10f2bf178aa5914218e04dcd27460d7 | refs/heads/master | 2020-10-01T02:11:43.854469 | 2020-04-27T18:39:42 | 2020-04-27T18:39:42 | 227,429,537 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 630 | rd | getConds.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rfinference.R
\name{getConds}
\alias{getConds}
\title{getConds}
\usage{
getConds(tree)
}
\arguments{
\item{tree}{a single tree object obtained from using \code{"randomForest"} and \code{"getTree"}}
}
\value{
a statement defining the leaf (ass... |
f0702fe72d6d7920dd01f09ab14678c15ebf788d | aeebd1497c7446e8ec967ba774ca5e016ce062a4 | /fund 2004-2017/13-quant.R | 244d7ef1e240bd8fde5b246ffaacb6d17e16ae8f | [] | no_license | shenfan2018/shenfan2018 | 212e881877df52b8772905b5a3546739cd4b5921 | 0bb70a7b0cdb0dc4d14a9576b02b6f22c7e9dfdb | refs/heads/master | 2020-04-01T18:05:52.266821 | 2019-11-20T12:45:09 | 2019-11-20T12:45:09 | 153,471,302 | 1 | 0 | null | null | null | null | GB18030 | R | false | false | 2,952 | r | 13-quant.R | # 最后一个回归
# 先加入是否量化
quant <- fread("C://Users//shenfan//Desktop//基金经理文献//俞老师//我的//Fund_Strategy.csv")
setnames(quant, c("量化", "策略", "模型"), c("quant", "strategy", "model"))
quant <- quant[, id := sprintf("%06d", MasterFundCode)
][, .(id, quant, strategy, model)]
load("fund9.RData")
data.quant <- quant[fund.9, on = .(id... |
3b68e3ded4ee8cc377b0102ed9a8acba2057804f | a6c93aacfc26bb5c6763fb4bc82f5fb2734c8831 | /man/bcgsc.ca_CHOL.IlluminaHiSeq_DNASeq.1.somatic.maf.Rd | 9b2aae53747792030614a8e369d2ffe6d9c5d152 | [] | no_license | BioinformaticsFMRP/TCGAbiolinks | c07c7a6d5b669b51a34a58a6213072b7c2f15cba | a4c3804dff8fc520436d49a440f9e22eebaa9735 | refs/heads/master | 2023-06-15T03:30:01.304727 | 2023-06-05T20:43:18 | 2023-06-05T20:43:18 | 31,545,433 | 262 | 125 | null | 2023-06-05T20:43:19 | 2015-03-02T14:56:03 | R | UTF-8 | R | false | true | 324 | rd | bcgsc.ca_CHOL.IlluminaHiSeq_DNASeq.1.somatic.maf.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TCGAbiolinks.R
\docType{data}
\name{bcgsc.ca_CHOL.IlluminaHiSeq_DNASeq.1.somatic.maf}
\alias{bcgsc.ca_CHOL.IlluminaHiSeq_DNASeq.1.somatic.maf}
\title{TCGA CHOL MAF}
\format{
A tibble: 3,555 x 34
}
\description{
TCGA CHOL MAF
}
\keyword{intern... |
a5ac37f6cdb0244a3aef2e1a5ae5b78f1bb8cd4f | 477a844ec2797463c5c29e44f62ffbbed63f2241 | /Legacy/R Scripts/Part 1/LARenewables.R | d64e33836c24b05a4334ee91a578a4d5c3ea6851 | [] | no_license | ischerr/ScottishEnergyStatsProcessing | f5e81cefc4d4cdfdcaa3851a86664a37974352f5 | f21d110c4c91d4c91c55409fd577f07819c526a9 | refs/heads/master | 2022-01-20T03:20:48.630704 | 2022-01-17T16:07:06 | 2022-01-17T16:07:06 | 232,823,735 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,724 | r | LARenewables.R | library(readxl)
print("LARenewables")
#Set Starting year for Loop
yearstart <- 2014
#Set Current Year to be loop end
yearend <- format(Sys.Date(), "%Y")
### Set Working Directory ###
setwd("J:/ENERGY BRANCH/Statistics/Energy Statistics Processing")
### Loop to extract year sheets from source Data ###
for (year in... |
f6a498c224083e2d6f98faad5be343bff32f7aa8 | 9a2f76d016d2b9f3b803131045bc071df961c48f | /intro.R | aaf644a484022d6841a54972a54c769c09a93843 | [] | no_license | s375301/hopr | 7c3d92ad1bec63257c00a764f37e6b2387ea0e59 | 3097e3308c90ef04bfb67c57210518db3c6b5b4f | refs/heads/main | 2023-02-04T17:07:30.663199 | 2020-12-27T05:09:27 | 2020-12-27T05:09:27 | 324,496,668 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 615 | r | intro.R | die <- 1:6
die - 1
die / 2
die * die
die + 1:2
die + 1:4 # vector recycling
die %*% die
sample(die, size = 2)
args(round)
sample(die, size = 2, replace = TRUE)
dice <- sample(die, size = 2, replace = TRUE) # remain same
roll <- function() {
die <- 1:6
dice <- sample(die, size = 2, replace = TRUE)
sum(dice) # Th... |
380dec1c769b57b02d40953b29aeab8048c9d0e6 | 1f6d79658ce351eafa3bf83cf38949d82b58de2f | /data-raw/listing_duplicated_columns.r | e721771509b60534113ea0b78d125f6f0a3fa700 | [
"MIT"
] | permissive | USCCANA/netdiffuseR | 3dd061f8b9951f7bdc5ec69cded73144f6a63cf7 | 7c5c9a7d4a8120491bfd44d6e307bdb5b66c18ae | refs/heads/master | 2023-09-01T08:26:19.951911 | 2023-08-30T15:44:09 | 2023-08-30T15:44:09 | 28,208,077 | 85 | 23 | NOASSERTION | 2020-03-14T00:54:59 | 2014-12-19T00:44:59 | R | UTF-8 | R | false | false | 501 | r | listing_duplicated_columns.r | # This script checks which variables can be repeated...
listing_duplicated_columns <- function(x) {
# Fixing factors to strings
x <- data.frame(lapply(x, function(y)
if (is.factor(y)) as.character(y) else y
), stringsAsFactors = FALSE)
k <- ncol(x)
vnames <- colnames(x)
ans <- NULL
for (i in 1L:nc... |
ee84ba553a3614fe47bdc149e3e94c9456a81f75 | 4483e0c1924204c74d10b30333cd6529ca529d7e | /tests/testthat/test_curds.R | 47ead2836e5b1ecbabd1e4590d7a8bc897153443 | [] | no_license | BorjaZ/NLMR | e6f35912b9af62644543fe183834b70609c06936 | e0516590cc2adc1a27bb453a9a3dd27dca9037d9 | refs/heads/master | 2021-04-28T18:00:32.276707 | 2018-02-16T13:42:29 | 2018-02-16T13:42:29 | 121,864,946 | 1 | 0 | null | 2018-02-17T15:12:04 | 2018-02-17T15:12:04 | null | UTF-8 | R | false | false | 231 | r | test_curds.R | # nolint start
context("nlm_curds")
test_that("nlm_curds is a good boy", {
curds <- nlm_curds(c(0.5, 0.3), c(6, 2))
expect_that(curds, is_a("RasterLayer"))
expect_equal(length(unique(curds@data@values)), 2)
})
# nolint end
|
3f6659829f081b6a540544c02a115e72d15b4202 | 1542b8ef5c6387facf4d49f8fd4f6b5ef5d8e9c0 | /man/xCrosstalk.Rd | ef56a3f39a7c4704c55177048978ef7b857b7b88 | [] | no_license | wuwill/XGR | 7e7486614334b664a05e389cd646678c51d1e557 | c52f9f1388ba8295257f0412c9eee9b7797c2029 | refs/heads/master | 2020-04-12T12:38:04.470630 | 2018-12-19T17:40:30 | 2018-12-19T17:40:30 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 12,564 | rd | xCrosstalk.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xCrosstalk.r
\name{xCrosstalk}
\alias{xCrosstalk}
\title{Function to identify a pathway crosstalk}
\usage{
xCrosstalk(data, entity = c("Gene", "GR"),
significance.threshold = NULL, score.cap = NULL,
build.conversion = c(NA, "hg38.to.hg19", "h... |
0f072908ce8becb843e93f69dffda63522f66f3c | 0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb | /cran/paws.analytics/man/glue_batch_delete_table_version.Rd | 18081ae3190d80546a201a5503ba11772941e0e2 | [
"Apache-2.0"
] | permissive | paws-r/paws | 196d42a2b9aca0e551a51ea5e6f34daca739591b | a689da2aee079391e100060524f6b973130f4e40 | refs/heads/main | 2023-08-18T00:33:48.538539 | 2023-08-09T09:31:24 | 2023-08-09T09:31:24 | 154,419,943 | 293 | 45 | NOASSERTION | 2023-09-14T15:31:32 | 2018-10-24T01:28:47 | R | UTF-8 | R | false | true | 1,111 | rd | glue_batch_delete_table_version.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glue_operations.R
\name{glue_batch_delete_table_version}
\alias{glue_batch_delete_table_version}
\title{Deletes a specified batch of versions of a table}
\usage{
glue_batch_delete_table_version(
CatalogId = NULL,
DatabaseName,
TableName... |
375b0732a51cb993046ea5399084217bf5e727e2 | 530a21a9c80490b10be949f023b17bc56cd2ed87 | /Statistics/modules/stats_test32_anova_for_selection_error_and_bubblesize.R | fc942416e6c2f726afeab523e3039c3577d20de9 | [
"MIT"
] | permissive | ssafty/graph-viz-eye-tracker | 86778ff7f211c1d48a9b46888197f5304bc8405f | f552b09f704e52a9927ca123453b84cfaad673a6 | refs/heads/master | 2023-07-12T23:51:48.023880 | 2017-05-05T11:23:20 | 2017-05-05T11:23:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,657 | r | stats_test32_anova_for_selection_error_and_bubblesize.R | ######## Statistical tests for SelectionError ##################### for 'BubbleSize'
###################################################################
# 1. ANOVA with the Sphericity test
df_anova <- marg_PB_data_frame
df_anova[5] <- NULL # remove CorrectedSelectedTime we only analyze SelectionError
df_anova[3] <- N... |
27fd75470e1d1329415f0bda5bafd1d17cca3983 | 752cffe764883b04304591b87c4d76848d60626d | /src/generator.R | c7a437e1e3d5bf1864cac8f5f0acc287ea383c8e | [
"MIT"
] | permissive | samtaylor54321/dog-gans | d7a979f42d07dd0ee6fbe5dc91104c220f2fc427 | e1094a2faaad69305f84bb7e12b1758a77c8cc1c | refs/heads/master | 2022-11-18T06:57:03.046565 | 2020-07-15T20:37:41 | 2020-07-15T20:37:41 | 275,195,757 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,578 | r | generator.R | library(keras)
library(magrittr)
library(R6)
Generator <- R6Class("Generator",
public = list(
generator = NA,
initialize = function(latent_dim, channels) {
private$latent_dim = latent_dim
private$channels = channels
private$generator_input = layer_input(shape = private$latent_dim)
... |
390b3489a64078d1fe787a4325acd04015d1004b | 26cb660689bc2e02cacb4a0dc74941fe48465ee8 | /Proteomics/explore_data.R | e6d292eff3ec3334d2621d2d02720a22c24a7574 | [] | no_license | rnabioinfor/METTL1_m7G | 8f73e58b74a0e57622eb81f9090ba6db2822e871 | 70b5ba41032db5b53ad872de3b65c144ca67c058 | refs/heads/master | 2023-05-24T13:17:58.301154 | 2021-06-11T03:58:19 | 2021-06-11T03:58:19 | 375,522,246 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,507 | r | explore_data.R | ###########################################
# fischerlab.org
# Explore SILAC data
# ESF 2020-09-24
# Explore SILAC data
# Tmp script - no repository yet
###########################################
# Load dependencies:
#source("~/R-helper-functions/mypairs.R")
library("gplots")
library("stringr")
library("limma")
libr... |
af6ffca55730ab1ada0feabf7d1d323587fb23fa | 4bc7519c101f9f8ed2f9f49ebf9414836b60f574 | /Introduction to Probability and Statistics/06/figures/pValueCPRStudySmallSampleAnalysisInSmallSampleSection/pValueCPRStudySmallSampleAnalysisInSmallSampleSection.R | d8a9e6e2518dce5b64dc3d3470a09898c49e4b53 | [] | no_license | nishanmudalige/ebooks | dcbf11662c511abd2be8669f098a6751d1f794ab | abfeed951a14415c5967ca21cf73cc794fc6c9a3 | refs/heads/master | 2023-05-30T07:12:15.349608 | 2023-05-20T22:19:26 | 2023-05-20T22:19:26 | 287,881,227 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,519 | r | pValueCPRStudySmallSampleAnalysisInSmallSampleSection.R | library(openintro)
data(COL)
set.seed(1)
tr <- rep(1:2, c(50, 40))
su <- c(rep(c("s", "d"), c(11, 39)), rep(c("s", "d"), c(14, 26)))
N <- 10^5
d <- rep(NA, N)
for(i in 1:N){
trf <- sample(tr)
p1 <- sum(su[trf == 1] == "s") / 50
p2 <- sum(su[trf == 2] == "s") / 40
d[i] <- p2 - p1
}
sum((d) > 0.1299) / N
myPDF... |
e0a3a83bfdc8ff22ceee0c3219b2dd02824eacfb | a7dd545bd4529bce3364fbd8078e26ad86499aea | /PufferSphere/ICOADS3/old/obs_3.0.R | 6795e0d57058c0bb0f110e13e212d144f0ef2061 | [] | no_license | philip-brohan/weather.case.studies | 335d15e4bc183f0139b56d411cc016f98b7be0b0 | 2139647d51156e1cd7f227b088fdc66ea079920e | refs/heads/master | 2021-04-18T20:21:05.017207 | 2018-06-19T16:36:45 | 2018-06-19T16:36:45 | 42,944,588 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,404 | r | obs_3.0.R | #!/usr/bin/Rscript --no-save
# Global obs coverage - icoads3.0 and ICOADS2.5
# Puffersphere version.
library(GSDF)
library(GSDF.WeatherMap)
library(parallel)
library(lubridate)
library(IMMA)
year<-1800
month<-1
day<-2
hour<-0
n.total<-as.integer(365.25*(150)-4) # Total number of days to be rendered
Imagedir<-sprint... |
73ea2935c04e455d03b4fc27261a370fcfb57824 | 705a5ddabe1e92e803cf9db7872058fb96008131 | /old/misc/neuralnet.r | 322970d8d506464b68370f72eee673abbb9fdc4a | [] | no_license | MHOOO/axle | 39f45654191f8cf98aa7eec9a6f4f5d46c708d95 | 84c2f949b7acde3450f118146767cbb19481ea7b | refs/heads/master | 2021-04-09T15:28:03.772427 | 2013-01-14T09:05:33 | 2013-01-14T09:05:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,846 | r | neuralnet.r |
# neuralnet.r
x = c(x0, x1, x2, x3)
z1 = Theta1 %*% x
a1 = g(z1)
z2 = Theta1 %*% a1
a2 = g(z2) # a0 bias unit = 1
z3 = Theta2 %*% a2
a3 = g(z3)
# h(x) = a3
# cost function J(Theta):
cost <- function(Theta) {
- (1/m)
* ( Sum(i=1..m) (
Sum(k=1..K) (
yi_k * log( h(theta, xi)_k ) +
... |
6cd09410d85bf923ada673b46a1ae01f163d9775 | 7899f5f9635b592fe4cdfc13b466db980f66ea5f | /R/download.R | 96619ffb76c33914e21cdf4337c4d9c819afe56b | [] | no_license | bquast/Making-Next-Billion-Demand-Access | b628d4be89e25516e7f097f792f54102c47c6664 | 5aa95bd2c1375d20f727788b28fc8adf264131bb | refs/heads/master | 2023-04-26T10:26:53.444860 | 2023-04-16T12:19:16 | 2023-04-16T12:19:16 | 45,461,115 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,939 | r | download.R | # download.R
# ------------------------------------------------------------------
# download files from www.datafirst.ac.za/dataportal
# NOTA BENE: must be logged in to portal in order to downlaod files
#
# Bastiaan Quast
# bquast@gmail.com
# skip line and add description of files ignored by git
write('\n', file = '.g... |
356e2afef2ca3f192f486b9186ca4235f1321a31 | 838208376db364c7dd849ae138217e3e9ea419e4 | /SVR - SARIMA - NN Parallel SA.R | 3b4174b34f51616db82b110cdde99423547c7eee | [] | no_license | vcarlsberg/arimar | 87d9a55f22d2414cab3c1ddf2c29917b5183bf7e | 00b60ce21bc2b15cdbe0689661909b4a50878267 | refs/heads/master | 2020-12-27T11:13:36.816629 | 2020-06-22T09:23:06 | 2020-06-22T09:23:06 | 237,881,927 | 0 | 1 | null | 2020-04-10T06:02:42 | 2020-02-03T04:05:29 | R | UTF-8 | R | false | false | 3,074 | r | SVR - SARIMA - NN Parallel SA.R | #SVR - ARIMA - NN Parallel SA
library(forecast)
library(fable)
library(forecastHybrid)
library(nnet)
library(readxl)
library(GA)
library(Metrics)
library(tidyverse)
library(TSrepr)
library(svrpath)
library(e1071)
library(NMOF)
Dataset_Surabaya <- read_excel("C:/Users/asus/OneDrive - Institut Teknologi Sepuluh Nopembe... |
0bbf6da367176b64d9df6b5ee83dff02ce1da3fa | d175703f8d1de8846380ae92af020ae70ed78843 | /ui.R | c9659e7d3840352191c8436907d1e082d45c401a | [] | no_license | jordaoalves/Analisar-Gratificacoes---IPERN | 3cc54846144f571c5e207bbaf800f32f8b4e0f7a | 298f85b85e7df2e73233e4c19ba11c5f2b5fe1ff | refs/heads/master | 2022-04-24T14:22:16.713522 | 2020-04-27T03:33:45 | 2020-04-27T03:33:45 | 259,187,062 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,116 | r | ui.R | useShinyjs()
dashboardPage(skin = "red",
dashboardHeader(title = "Analisar Gratificações - IPERN", titleWidth = 320,
tags$li(class = "dropdown",
... |
18654c5d19fc79368efbe101228ebbb1ad8bb3b9 | 7e5b6017b2c9ad669cdcf7ad709560a2ef78e94c | /code/packages_list.R | 01d086294ab425bdcc42093ea02fad6d42a61b49 | [] | no_license | acrossthetidyverse/tidycast | 676b5d9a24cdf8d68b9722019679c411ef232dd6 | 76df6739adea53a936dd36a3f8fac52bbb136baf | refs/heads/master | 2021-01-12T00:35:55.563019 | 2017-02-18T06:39:01 | 2017-02-18T06:39:01 | 78,745,553 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 420 | r | packages_list.R | tidypacks <-
c("tidyverse/broom",
"hadley/dplyr",
"wesm/feather",
"tidyverse/forcats",
"hadley/ggplot2",
"tidyverse/haven",
"hadley/httr",
"rstats-db/hms",
"jeroenooms/jsonlite",
"hadley/lubridate",
"tidyverse/magrittr",
"hadley/modelr",
"hadley/purrr",
"tidyverse/readr",
"hadley/readxl",
... |
72f59c3c8e67d78738c5c75d6a3ca09b24c219a3 | 11dd3782354ca82cc5dfc6996d3b707e5f563010 | /man/network_plot.Rd | 8b641ff784ce092e442d3dd509132fb5857b19d2 | [
"MIT",
"BSD-2-Clause"
] | permissive | pmartR/pmartRseq | 49010cceff1a173e924e7b467781cec86c0aaae6 | 75d573e528d14a6563a69be46c9a326c13423738 | refs/heads/master | 2020-12-31T07:33:06.348449 | 2018-02-09T00:39:18 | 2018-02-09T00:39:18 | 86,605,696 | 2 | 1 | BSD-2-Clause | 2018-02-09T00:39:19 | 2017-03-29T16:35:39 | R | UTF-8 | R | false | true | 1,657 | rd | network_plot.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/network_plot.R
\name{network_plot}
\alias{network_plot}
\title{Generate Network Plot}
\usage{
network_plot(netGraph, omicsData = NULL, modData = NULL,
colour = "Phylum", vsize = FALSE, legend.show = TRUE,
legend.pos = "bottomleft")
}
\arg... |
438cedc611a1013996d16cf9d3bc5f13a1ba60a7 | b33f25e07cb53816d0609a9d25df7bcfb0d5a9c4 | /R/prepare_inputs.R | 6f8fb8d33c5b9a24f7f36265fe94dfccf9a04104 | [] | no_license | jaybee84/ceres | cdd53431902016d9253c2f7915ed4404b2294ddf | c57fd3f5ec07f9cdd82e79efe406c5d7acb310dd | refs/heads/master | 2023-03-16T09:58:22.875794 | 2019-03-21T14:20:29 | 2019-03-21T14:20:29 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,546 | r | prepare_inputs.R | #' Map guide to locus
#' @importFrom Biostrings DNAStringSet
#' @importFrom Biostrings writeXStringSet
#' @export
#'
map_guide_to_locus <- function(guides,
genome_id="hg19",
bowtie_exe="bowtie",
samtools_exe="samtools",
... |
4324a8fa8dd724a1f3954bcbd51b9eca462a2e3b | a66023a86ed6cb864361285c8ba37e6a46531abc | /schmidtWorkshop.R | d28f96478717d43ebd81e6a1d6d86a31587cd0ef | [
"MIT"
] | permissive | zhangyd10/schmidtWorkshop | 83ddc6be110fdb103a65ae1f22d656344becf8b9 | 48a441bebfea1e862c36c86b25ce65f1c3102dfa | refs/heads/master | 2020-04-16T08:08:20.765319 | 2018-07-25T16:22:04 | 2018-07-25T16:22:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 28,211 | r | schmidtWorkshop.R |
sshhh <- function(a.package){
suppressWarnings(suppressPackageStartupMessages(
library(a.package, character.only=TRUE)))
}
pkgs <- c("data.table", "plotly", "Rgraphviz", "graph", "BiocGenerics", "parallel", "magrittr")
loads <- sapply(pkgs, sshhh)
###############################################################... |
e063fd73e66cd73df1d916d472936b000c74fb15 | 32886d6690229de10c70952678bc085af1395ff6 | /Hackerrank/Bon_Appetit.R | fefd1b52be173564bbe3244f6dd6e415458af88d | [] | no_license | jimmyyih518/ChallengeR | 4334276a24713b49d3af1aad28d73b6842e7096a | 3b9e0ca0cf5a2e4432f279296a6212c6a136f6ca | refs/heads/master | 2022-12-07T22:58:13.744239 | 2020-08-19T03:26:44 | 2020-08-19T03:26:44 | 280,044,701 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 382 | r | Bon_Appetit.R | # Enter your code here. Read input from STDIN. Print output to STDOUT
f <- file("stdin")
open(f)
l1 = as.numeric(unlist(strsplit(readLines(f, n = 1), split=" ")))
l2 = as.numeric(unlist(strsplit(readLines(f, n = -1), split=" ")))
n=l1[1]
k=l1[2]+1
bill=l2[1:n]
b=l2[n+1]
billa = sum(bill[-k])/2
if(billa == b){
out ... |
ae4f7e19c6b9b8556674fc121db60fbf6b9d18e3 | 73107b9e1fdb61642c680b31be5c2678a3e12366 | /tests/testthat/test-utils.R | d65cdb1562962b57ac3966825f8db2ff4871e22c | [
"MIT"
] | permissive | poissonconsulting/subfoldr | 555eba231e037156339dc1a8bc7f142b7218107e | 7004693ef8c088b41b0bc4397e95ee4dc437f7ac | refs/heads/master | 2021-07-23T00:49:23.745886 | 2021-02-12T22:22:36 | 2021-02-12T22:22:36 | 79,256,325 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,421 | r | test-utils.R | context("utils")
test_that("add full stop", {
expect_identical(add_full_stop("x"), "x.")
expect_identical(add_full_stop("x."), "x.")
})
test_that("capitalize_first_letter_words", {
expect_identical(capitalize_first_letter_words("x"), "X")
expect_identical(capitalize_first_letter_words("oeuoe oo"), "Oeuoe Oo")... |
beda7ebea7a2e648e21a0601a2c53a67656c160b | febcbdc28985329bfc0880b9ebf3a8109eefd55b | /Machine-Learning/Lecture/Advanced R Programming/Date and Timestamps.R | 6ddb4fce9f338f47e85feeba64a62af98ecddd95 | [] | no_license | saanghyuk/Data_Analysis_with_R | fd4d3c996e215992db8167f4664e64d151833340 | 8c6654c885b26876e68462e84aec59806e76d865 | refs/heads/master | 2021-09-13T20:47:22.079511 | 2018-05-04T04:23:28 | 2018-05-04T04:23:28 | 120,984,482 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 855 | r | Date and Timestamps.R |
#Dates
Sys.Date()
today <- Sys.Date()
class(today) #Date Object
#Date as Character
c<- "1990-01-01"
my.date <- as.Date(c)
class(my.date)
as.Date("Nov-03-1990") #이러면 안되겠지
#Foramtting
# %d Day of the month (decimal number)
# %m Month (decimal number)
# %b Month (abbreviated)
# %B Month (full name)
# %y Year (2 digit... |
487705618be13753e8dbd663d6182c59c8f09c09 | c33101fd9e8dc2992d63147c7ae450508e33ad63 | /TESTSVM/R/4Movie Analysis.R | d331a7f33e4382598f568f3e9b6adb9eb8662400 | [] | no_license | bgg11117/USBoxOfficeModel | 2bdfccd40ab5cefb2438c6a379fef29d63201f07 | d934f018f7a8f1de022cc20a55d8b616e5f9a2c3 | refs/heads/master | 2020-07-25T17:47:12.980782 | 2019-11-04T06:34:45 | 2019-11-04T06:34:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 21,777 | r | 4Movie Analysis.R | #rm(list=ls(all=TRUE))
library(e1071)
library(scales)
library(plyr)
library(ggplot2)
library(tidyr)
library(lattice)
library(stringi)
library(quantreg)
library(SparseM)
library(caret)
library(partykit)
library(grid)
library(C50)
library(rpart)
library(ipred)
library(MASS)
library(kernlab)
library(randomForest)
library(... |
2b403b40300e1517dbb8ff2235df3fba57ac4851 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/Rfast/R/skew.R | 22f0be5c0eebdf6935b48092a5d014fadb71be74 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 460 | r | skew.R | #[export]
skew <- function(x, pvalue = FALSE){
n <- length(x)
y <- x - sum(x) / n
b1 <- n * sum( y^3 )
nm1 <- n - 1
b11 <- ( sum( y^2) / nm1 ) ^1.5
skewness <- b1 / ( nm1 * (n - 2) * b11 )
if (pvalue) {
vars <- 6 * n * nm1 / ( (n - 2) * (n + 1) * (n + 3) )
stat <- skewness^2/vars
pva... |
29c91b85f745e687c8e59f1fd5fa3d1a9bb288c2 | bfd0b1430559f6843ee800c12d45c7bcaad448b2 | /etc/split_large_datasets.R | 48e1adcb26f3dca2242fdb070d7ba72bb9ebcc6a | [
"CC-BY-SA-4.0",
"Apache-2.0"
] | permissive | NCEAS/arcticdatautils | 0b77a4a64c25faf714622507ab9ea9ac5f6eaea7 | 6aadd37d08903fa44ef8b8235332da7556415d28 | refs/heads/main | 2023-06-24T23:50:32.488127 | 2022-11-04T23:08:37 | 2022-11-04T23:08:37 | 59,154,705 | 8 | 21 | Apache-2.0 | 2023-08-10T16:58:37 | 2016-05-18T22:06:41 | R | UTF-8 | R | false | false | 1,844 | r | split_large_datasets.R | # Here I split the largest datasets (>1000 files) into nested data packages
devtools::load_all(".")
# Load the entire inventory
inventory <- inv_init()
inventory <- inv_load_files(inventory, "../planning/files.txt")
inventory <- inv_load_sizes(inventory, "../planning/sizes.txt")
inventory <- inv_load_checksums(invent... |
c5b4bf41dea989288c82888d547d5bb4140d3829 | 27a87d4a1e2f62f1a58c961601286b396ce0e1f5 | /R/glm.vc.R | 1b2f83b311f34ccf8463072c6870c302aaf63f47 | [] | no_license | cran/GLMpack | 4ef52e7cdd69a06eb5ee3c781a343dfd0a3adb7e | 7b8f74100ddf1458ec4e629385b2ac5614b7eb49 | refs/heads/master | 2020-06-22T17:34:37.568876 | 2019-07-19T08:40:05 | 2019-07-19T08:40:05 | 197,758,021 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 590 | r | glm.vc.R | #' Compute variance-covariance matrix.
#'
#' Calculate the (unscaled) variance-covariance matrix from a generalized linear model regression output. Used in `GLMpack` within the function `glm.summary()`.
#'
#' @param obj The regression output from glm().
#' @return The output is a matrix.
#' @examples
#' data(campaign)
... |
e8e98f2aa797b6585f6a2485a58805cf94c5a1a0 | d987da8f69a9b8554e21c8c4a56ab6621ec36c95 | /depurar data.R | e291ad6818f05f7a17b917b3c8b4f41086e486bb | [] | no_license | KarenCalva/DGIP | eb2a5e96f0193975363ef75d56e9f2f2b23264d3 | 1c45d607f92e9ef44eb2063cfa70acadd0e36b8b | refs/heads/master | 2020-03-18T12:42:33.649017 | 2018-05-30T13:27:50 | 2018-05-30T13:27:50 | 134,740,006 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,420 | r | depurar data.R | library(data.table)
library(dplyr)
load("dt.RData")
key(dt) # "codigoEstudiante" "periodo"
## codigoEstudiante
# hay codest de 9 7 6 y 5 caracteres
unique(nchar(dt$codigoEstudiante))
## periodo
# # periodo como una vairbale tipo factor
dt$periodo <- as.factor(dt$periodo)
length(levels(dt$periodo)) # hay 20 perio... |
adc4ef0d4b54fae243c50aab58001e17dfe1d316 | 3b36fa3694da1e76451139985235b4bad33e95b1 | /individual_G49944026/ui.R | ac6208dc387537518efc19704f5f351c3834b1ab | [] | no_license | tianweima/shiny | 6f73c12977f54cbd7b7ce6b92cfd16faa3be485b | 24995028394c18768fb974b885399ac965246259 | refs/heads/master | 2020-08-15T22:42:58.909728 | 2019-10-16T00:02:21 | 2019-10-16T00:02:21 | 215,418,268 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,222 | r | ui.R | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define style of application and title
ui <- navbarPage("Comic Books Charact... |
15c1dfe6ca4838ac02cea80fcbbf814cbb3c27e6 | f7c38a9793a87214d41e0f743b1b94606c89952a | /man/get_my_followed_artists.Rd | 8f9287bb8b7ce8874e09b31c515c8586c1f4862b | [] | no_license | TroyHernandez/tinyspotifyr | 34c44b2b7d219161aee565d505bc757beabfa09f | 3f10c2972a0004291f74bcbae4e4eb2cf6899f6c | refs/heads/master | 2023-03-07T03:42:52.948314 | 2021-02-21T13:49:16 | 2021-02-21T13:49:16 | 326,067,413 | 10 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,472 | rd | get_my_followed_artists.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/follow.R
\name{get_my_followed_artists}
\alias{get_my_followed_artists}
\title{Get the current user’s followed artists.}
\usage{
get_my_followed_artists(
limit = 20,
after = NULL,
authorization = get_spotify_authorization_code(),
incl... |
597455b9b6a51b7341b54439bae528e7cb2ec62b | bb42f8600b0d574209b2081a1c57fab2b5e25132 | /tesla_to_MA.R | 985e46ef1b8dbb9ea7be98cdc9c91d5d9323b48e | [] | no_license | delta-gm/TimeSeries | e4454d8cd0f839c554e1f6cfbfd0a327ad2b4e90 | 4a0f8142a65ef0192fe1e4a946265435d58c867a | refs/heads/main | 2023-03-22T23:10:11.779220 | 2021-03-18T03:58:58 | 2021-03-18T03:58:58 | 335,074,519 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 695 | r | tesla_to_MA.R | # tesla ts to MA
tesla<-read.csv("TSLA_2years.csv",header=TRUE)
tesla.ts<-ts(tesla[,2])
plot(tesla.ts,ylab='price',main='Tesla Price Data')
z<-filter(tesla.ts,rep(1/31,31),sides=2)
lines(tesla.MA,col='red')
par(mfrow=c(3,1))
y<-tesla.ts/tesla.MA
plot(y,ylab='scaled price',main='Transformed Tesla Price Data')
acf(na... |
ec06fa2eeb906d6d5bee61fb20456cd5e45530fc | 07f837d8c5236fe5e75ef510cd296814452370ce | /h2o-perf/bench/tests/singlenode/kmeans_one-billion-rows/model.R | 8e07caa67c706441aff5a59ffb8cf1786238e018 | [
"Apache-2.0"
] | permissive | vkuznet/h2o | 6f9006a5186b964bac266981d9082aec7bc1067c | e08f7014f228cbaecfb21f57379970e6a3ac0756 | refs/heads/master | 2021-08-28T11:37:52.099953 | 2021-08-10T22:43:34 | 2021-08-10T22:43:34 | 20,032,996 | 0 | 0 | Apache-2.0 | 2021-08-10T22:43:35 | 2014-05-21T18:46:27 | Java | UTF-8 | R | false | false | 286 | r | model.R | source("../../../R/h2oPerf/prologue.R")
runKMeans.VA(centers = 6, cols = c('C1','C2','C3','C4','C5','C6','C8','C11'), iter.max = 100, normalize = FALSE)
correct_pass <<- as.numeric(abs(log(model@model$tot.withinss) - log(185462248582411)) < 5.0)
source("../../../R/h2oPerf/epilogue.R")
|
32973b1a928970f802a42faca4089178e2612680 | 65ea916d10603c8115266748f8282a2031067e87 | /distance calculator R.R | e2e8f30e18ec39901923c5462bc702ff676dbff4 | [] | no_license | shivamkumar319/compute-distance_km | 9d3d5d071a404b833138ce6e1075381311421eb7 | a0907da8c6801543d7963f44db3b526413eff82f | refs/heads/master | 2022-06-04T06:45:14.908095 | 2020-04-30T20:09:57 | 2020-04-30T20:09:57 | 260,307,743 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 252 | r | distance calculator R.R | computedistance <- function(lat1,long1,lat2,long2){
lat_1=lat1*pi/180
long_1=long1*pi/180
lat_2=lat2*pi/180
long_2=long2*pi/180
d1=3963*acos((sin(lat_1)*sin(lat2))+cos(lat_1)*cos(lat_2)*cos(long_2-long_1))
d=1.609344*d1
print(d)
} |
d3ed3a91fe39d5db18c5d0f9cd2a3cef80a16fb5 | c3fced9fa3881b8d07000adfb5bebe4213eaa4a4 | /ANALYSIS/DATA/control_IDFixedEffects.R | 46a9934231ad4742af6f5fa6f4d3fd1ecc69108b | [] | no_license | rafael-schuetz/Pareto | ea9c06cb588113bbdf6a3b5da27a2d2a22f37dc8 | 74c414268d429373b83ccfb27bf222ae25b97c32 | refs/heads/master | 2022-04-13T11:36:56.587595 | 2020-04-08T18:31:48 | 2020-04-08T18:31:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,262 | r | control_IDFixedEffects.R | ###Erstellen von Einrichtungsdummies, um fixed effects in die Regression einbauen zu können
##Name: dummy103, dummy104...dummy687
library(dplyr)
library(tidyverse)
library(magrittr)
library(tidyselect)
# Erstellung eines neuen Datensatzes, der nur die id als Variable enthält
dfcEF_id <- dfcEF[ ,c("id")]
#erstellen ... |
a839325b0c32256f4a11637024231c1324475da5 | 4739dc8381233fb37b55493eae5552c4edbb092f | /swc-R-module1.R | 49bc3d491c6709658fb9e2bd9c5bc0579e829cd8 | [] | no_license | hcraig2014/planets | a263b1f65eeab03143bf46b4679ed29e14a5d120 | 8cb2c344fdd2f2b4befbebee39c1b806010e3fe8 | refs/heads/master | 2016-09-10T19:47:20.566380 | 2015-06-18T23:47:33 | 2015-06-18T23:47:33 | 37,688,597 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,258 | r | swc-R-module1.R | setwd("C:/Users/hcraig/Documents/swc-R/r-novice-inflammation")
# read in file
dat<- read.csv(file="data/inflammation-01.csv", header=FALSE)
#first row, all columns
patient_1<- dat[1,]
# max inflammation for patient 1
max(patient_1)
# max inflammation for patient 2
max(dat[2,])
# minimum inflammation for var 7
min(... |
4e3028c1f093dce64fbac6364b7022d0a475dd8d | d2a526079e3e2bf94acf633fd8709c383eea3755 | /WeibullPlot.R | 33f3952a62543655acd16eae30de7d72437b8a1d | [] | no_license | ValeriVoev/Reliability | 5ef12f0429608756e9955774e37b7980080df72c | 29b262711eb539737cbfb1812883ad661af32161 | refs/heads/master | 2020-12-30T16:14:49.510805 | 2019-12-06T12:52:39 | 2019-12-06T12:52:39 | 90,967,329 | 4 | 1 | null | 2019-12-06T12:52:41 | 2017-05-11T10:28:54 | R | UTF-8 | R | false | false | 4,563 | r | WeibullPlot.R | library(ggplot2)
library(dplyr)
library(ggthemes)
# Linearize y-axis on Weibull paper
WeibulLinTrans <- function (x) {log(log( 1/( 1 - x) )) }
# Generate some random Weibull data
x <- rweibull(100, shape = 1.8, scale = 60)
# Convert to data frame for convenient plotting
x.df <- data.frame(Lifetime = x)
x.df$rounded ... |
20d21bbba9c9eccbfffdfa84486cadebf792c985 | a0507e8fb57a389477341a81d26fb87994508438 | /Recipes/data_munging.R | d2a2f83ae8d133875b9da1492e94f748064c5136 | [] | no_license | dlimjy/R-general | 051872f503663fa57892979098dd4cc3f36598f5 | 1eb799e0169f620d718e8541b20ebac3efecb572 | refs/heads/master | 2021-09-15T08:15:47.167503 | 2018-05-29T05:51:14 | 2018-05-29T05:51:14 | 125,837,708 | 0 | 0 | null | 2018-05-29T05:51:15 | 2018-03-19T10:02:15 | R | UTF-8 | R | false | false | 2,030 | r | data_munging.R | ##### Some recipes for data munging
# Using titanic dtaset as an example
setwd("C:\\Analytics\\Kaggle\\Titanic")
titan <- fread("titan.csv")
# Null treatment ----------------------------------------------------------
titan %>% select(Age) %>% is.na %>% table # Check distribution of nulls
# Imputing nulls, stratifie... |
1fafbcb8443f6f1f7562cb33f322203c759fcd89 | 492b07e7900b1c4f058fc3c680b1fb709c707bc3 | /inputs/palermo/extract_crime_data.R | 9fbc4a24b36a2f33de8ed513a12e5f6fb736cfec | [
"MIT"
] | permissive | LABSS/PROTON-OC | 4133ba712fa0c69bd7849e94a628ec556e451eeb | a116103aed3f2286db40b092c2d797a59e8b1a39 | refs/heads/master | 2021-09-29T17:12:51.761952 | 2021-09-13T09:50:56 | 2021-09-13T09:50:56 | 148,494,620 | 3 | 1 | MIT | 2021-09-13T09:50:57 | 2018-09-12T14:37:00 | NetLogo | UTF-8 | R | false | false | 1,358 | r | extract_crime_data.R | library(tidyverse)
library(readxl)
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
df <-
file.path("raw", "authors_sex_age_conditional_prob_ corretto.xlsx") %>%
read_excel(sheet = "conditional_probability") %>%
filter(between(row_number(), 11, 12)) %>%
select(-Year) %>%
gather(key=age, value="p"... |
538712456026093a5448e9645dfd9751923c454c | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/ph2bye/examples/PostP.Rd.R | 4a7d2b6152e1e41660d17452f19a871a729f44eb | [] | 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 | 187 | r | PostP.Rd.R | library(ph2bye)
### Name: PostP
### Title: The posterior probability criterion function for Phase II
### single-arm design
### Aliases: PostP
### ** Examples
PostP(8,15,1,1,0.8)
|
d7ae41a3d8a66ec8cdc6b6cac4e83d5dd6fb8b81 | 8d16561b2642ff65cee39870545767c6d2ba6eb4 | /snp/Birdseed2geno.r | 32d8851e3bea5a5d6f5dbba5c8d8078d5af70f4a | [] | no_license | ZhenyuZ/eqtl | bc626cc778512692519f2a5c892f24b10ca22496 | 93a018ff5c05b2dca6bc0c0dcc01d04d49e9d222 | refs/heads/master | 2021-01-15T12:19:13.323323 | 2020-06-30T18:49:07 | 2020-06-30T18:49:07 | 35,136,342 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 4,416 | r | Birdseed2geno.r | # Birdseed2geno.r is a long script to do a lot of related things
# 1. Read the latest Affy annotation file to filter non dbSNP
# probeset, and generate plink map file.
# 2. Collect clinical data to combine and write a patient - gender
# - vitalstatus file
# 3. Modify SNP annotation file to include two base geno... |
700b58bcc65cf3a9739bff4b4a00b824b829d2e7 | 7d2d098142c43d20382a9c4d44396a99b62c2be2 | /plot3.R | cbfed524c34441209ae7e70ca22d00096b095ba4 | [] | no_license | kcobs/ExData_Plotting1 | ea3c43a48cb62c03b6496b2ee169fb610971525c | cf688418ec26a9379640af1b5afecf093c76dd46 | refs/heads/master | 2021-01-18T05:34:45.084905 | 2016-06-14T23:02:24 | 2016-06-14T23:02:24 | 60,739,268 | 0 | 0 | null | 2016-06-09T00:10:47 | 2016-06-09T00:10:47 | null | UTF-8 | R | false | false | 1,341 | r | plot3.R | ##Get data
power <- read.table(file, header=T, sep=";")
power$Date <- as.Date(power$Date, format="%d/%m/%Y")
study_data <- power[(power$Date=="2007-02-01") | (power$Date=="2007-02-02"),]
study_data$Global_active_power <- as.numeric(as.character(study_data$Global_active_power))
study_data$Global_reactive_power <- as.num... |
231f1efbce5556133c5c8f72f604d18d3c6ea69e | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/biogram/examples/calc_cs.Rd.R | 7ca9333519ff3de6dee0cbdc359fa94a1119dd73 | [] | 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 | 293 | r | calc_cs.Rd.R | library(biogram)
### Name: calc_cs
### Title: Calculate Chi-squared-based measure
### Aliases: calc_cs
### ** Examples
tar <- sample(0L:1, 100, replace = TRUE)
feat <- sample(0L:1, 100, replace = TRUE)
library(bit) # used to code vector as bit
calc_cs(feat, as.bit(tar), 100, sum(tar))
|
d4968aeaef97b33cd869b0d379c3e85e1ca0beae | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/r/generated/R/ComDayCqDamCoreImplGfxCommonsGfxRendererInfo.r | 60b5a75bf311364b58aa598eafca8e2c207e131a | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | R | false | false | 4,248 | r | ComDayCqDamCoreImplGfxCommonsGfxRendererInfo.r | # Adobe Experience Manager OSGI config (AEM) API
#
# Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
#
# OpenAPI spec version: 1.0.0-pre.0
# Contact: opensource@shinesolutions.com
# Generated by: https://openapi-generator.tech
#' ComDayCqDamCoreImplGfxCommonsGfx... |
82d64618380c3c783b6b6627e56637d6d13f9163 | fd0622e97276bba2c04d3c2fcba902cdfb65e214 | /packages/nimble/inst/classic-bugs/vol1/seeds/seeds-init.R | 9cee6a5c272f05beb40dfebd5740cd423f01f106 | [
"GPL-2.0-only",
"BSD-3-Clause",
"CC-BY-4.0",
"GPL-1.0-or-later",
"MPL-2.0",
"GPL-2.0-or-later"
] | permissive | nimble-dev/nimble | 7942cccd73815611e348d4c674a73b2bc113967d | 29f46eb3e7c7091f49b104277502d5c40ce98bf1 | refs/heads/devel | 2023-09-01T06:54:39.252714 | 2023-08-21T00:51:40 | 2023-08-21T00:51:40 | 20,771,527 | 147 | 31 | BSD-3-Clause | 2023-08-12T13:04:54 | 2014-06-12T14:58:42 | C++ | UTF-8 | R | false | false | 68 | r | seeds-init.R | "tau" <-
1
"alpha0" <-
0
"alpha1" <-
0
"alpha2" <-
0
"alpha12" <-
0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.