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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
71a430fb09dfdf7dda00dc808bfa06a336b9f884 | 3425c9e6a3a1c526a27dcd9c9b0a2af7aeed2c56 | /handover/data/COMTRADE_API.R | 9759d617ed37a1d50467479e1a621113d06264ac | [] | no_license | Waztom/FSA | 4632e521c5066df5503f74402be3b5f4a2ab7a0d | dd21e611b82bbbcfb6e5958661fb336e95b7b738 | refs/heads/master | 2021-10-10T07:03:22.445821 | 2018-10-09T07:09:47 | 2018-10-09T07:09:47 | 164,501,997 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,396 | r | COMTRADE_API.R | #Use example: Rscript COMTRADE_API.R --year0 2008 --yeare 2017 --month0 1 --monthe 12 --com1 2206
library(optparse)
library(rjson)
library(tidyverse)
library(comtradr)
library(ggplot2)
option_list = list(
make_option(c("-a", "--year0"), default=2010, type='integer', help="Start year"),
make_option(c("-b", "--y... |
dbf6900c6dd234493f82777ee37636982b28d6c8 | 1f5590d3276d541e8a916bc6d589d6dd98562854 | /man/interval.dist.Rd | c9affdcc6977d8a746fc68ea03e6778e94e91749 | [] | no_license | Frenchyy1/RSDA | 0e8c683e79c73c214b3487991ea3d6e2b8f8b621 | 60445a2749d8f009a748a158f89f53d022edb6f0 | refs/heads/master | 2020-04-14T14:27:57.888698 | 2018-10-10T19:36:39 | 2018-10-10T19:36:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,166 | rd | interval.dist.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interval.dist.R
\name{interval.dist}
\alias{interval.dist}
\title{Interval Distance Matrix}
\usage{
interval.dist(sym.data, distance = c('hausdorff', 'centers', 'interscal'), p = 2)
}
\arguments{
\item{sym.data}{Symbolic data matrix with the ... |
d423aac46b107b9a49b079e59f860abbf8351d77 | 6ac5e3e1930737182af9f110c688143959d8b412 | /venndiagram.R | 1751beec786f8d3a5dffd3f3d741ffcf58dbc1c6 | [] | no_license | AHdeRojas/Experimental-Design-and-Biometry-R- | faaa3642fc2182008e6df28c84cd2f5cf7f587ce | 5f11e9a6fbf54e2c04e67025b15c4c1ed917ae64 | refs/heads/main | 2023-01-03T06:51:06.534760 | 2020-11-01T20:53:17 | 2020-11-01T20:53:17 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 284 | r | venndiagram.R | #Independent
peas=matrix(c(900,300,300,100),nrow=2,ncol=2)
dimnames(peas)=list(c("Tall","Short"),c("Green","Yellow"))
mosaicplot(peas)
#Not independent
peas=matrix(c(900,100,300,300),nrow=2,ncol=2)
dimnames(peas)=list(c("Tall","Short"),c("Green","Yellow"))
mosaicplot(peas)
|
f04283b6a8b2d27211fa1f8f091e13df6b267815 | fc01fc89503fb6f4f87fb5f8d3315127ccf3a178 | /appres/R/script_boxsel_costas.r | b6b5ba02668c5f3fed46b0c4792a7141f2a0459c | [] | no_license | alejandro-reyesamaro/Memoire | 63d5a486242192d3d5cb15dc499485850206527a | 9a11af8c574612e9b6422bb1ef6ae2c517907e6f | refs/heads/master | 2021-01-17T02:50:37.928471 | 2017-02-13T11:28:32 | 2017-02-13T11:28:32 | 55,986,070 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,358 | r | script_boxsel_costas.r | script_boxsel_costas <- function(col_par_box, col_comm_box){
sec=c(55.500,177.520,122.810,191.430,87.350,51.950,42.590,243.340,127.080,121.750,296.950,74.560, rep.int(NA, 18))
par=c(49.190,27.590,22.370,27.660,16.220,22.550,2.730,21.000,15.310,31.520,16.940,27.770,20.900,14.310,47.250,34.830,26.210,28.700,59.630,11.790... |
e2b85f487ca3706d5cb07a1f00cbb1a2ec2b4894 | 0a36d7506471b1fb339eab56498ea9a4b50fa3fd | /K5 Suspensions.R | 7cb2daaa206557810ac0d9e21d6a07620e31fcad | [] | no_license | djrobillard/SCSD | 89db29783cf3c9bc49ce76a90d347ffea5e74a93 | d5b9d403bacfb6997eed2d403dc4eb04b0d97752 | refs/heads/master | 2021-08-20T09:36:59.867736 | 2017-11-28T20:53:28 | 2017-11-28T20:53:28 | 112,387,167 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,297 | r | K5 Suspensions.R | ehout<-ehout_all_years
library(lubridate)
###parse dates and create time intervals
ehout$date <- mdy(ehout$incidentdate) # puts into date format
ehout$year<-year(ehout$date)
ehout$month<-month(ehout$date)
ehout$month<-sprintf("%02d",ehout$month)
ehout$day<-day(ehout$date)
ehout$day<-sprintf("%02d",ehout$day)
... |
f01afc179f4ee52fa4361a245e9a8a82439511c3 | 8d9929e0393339e94042892799aeea6bc2596e7c | /HCB_obitos/obitos_02_frequencies.R | 4ff134c84544d9864853031adede6277937cf509 | [] | no_license | rsoren/201706_moz_research | 340b732e7e412bf66db367d98a3e7bd972d62046 | b43f8205a0880f97f503061bc1fc5a1a179fb19c | refs/heads/master | 2021-01-01T18:39:14.852006 | 2017-10-29T04:43:57 | 2017-10-29T04:43:57 | 98,392,513 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,383 | r | obitos_02_frequencies.R | #
# obitos_02_frequencies.R
#
# Reed Sorensen
# July 2017
#
library(dplyr)
rm(list = ls())
#####
# SYMPTOM FREQUENCIES
standard_symptom_list <- readRDS("_intermediate_files/standard_symptom_list.RDS")
df3 <- read.csv("_data/obitos_data_combined_symptoms.csv", as.is = TRUE)
# function for getting frequency inf... |
deb702edacb52a78726637988676951d2543a6a3 | bc722f06af27474e2df4df312cd554460b280e58 | /Plot_Images_Scripts/Plot3.R | ae78ab192906106801ada9655b42673f67a0a286 | [] | no_license | Justin92/ExData_Plotting1 | 95fe4807d58dea7d8ce5e2d14a002cdf201d4383 | cabb66b2cbbc9b2db108d01f31e5bccf1f65a6ab | refs/heads/master | 2020-04-13T06:43:00.185836 | 2018-12-25T01:40:03 | 2018-12-25T01:40:03 | 163,029,051 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,282 | r | Plot3.R | ##Plot3
#Assuming data in "Downloads" file
PowerUsage <- read.table("Downloads/household_power_consumption.txt", sep = ";", header = T)
PowerUsage <- filter(PowerUsage, Date == "2/2/2007" | Date == "1/2/2007")
PowerUsage$Global_active_power <- as.numeric(as.character(PowerUsage$Global_active_power))
PowerUsage <- mut... |
403d85bfb88761099140c3cd448a26de7bc46afe | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/qgtools/examples/ad.reml.jack.Rd.R | a9e0612f3d01bb8046e9047edf92a8d795006505 | [] | 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 | 388 | r | ad.reml.jack.Rd.R | library(qgtools)
### Name: ad.reml.jack
### Title: AD model with REML analysis and jackknife resampling test
### Aliases: ad.reml.jack
### Keywords: AD model cotton REML cotf2 jackknife
### ** Examples
library(qgtools)
data(cotf2)
dat=cotf2[which(cotf2$Env==1),]
Ped=dat[,c(1:5)]
Y=dat[,-c(1:5)]
res=ad.reml.... |
1f5f4f1562babb109e51d711fcbb7be4c79fa9ef | 437b6455b3af3d258ab7df1eaaece82e4015cfaa | /R/int-impute_fn_knn.R | 9986c4a251cc6c09776f1e716ff9c9fb0b378015 | [] | no_license | alexWhitworth/imputation | 8e57825ffab037d450f2bfad477aeec74fb935bb | 7e939fcde999dcf60cbf6d28d9aa3f9a848fc82e | refs/heads/master | 2020-04-04T18:37:37.505515 | 2017-04-29T00:19:05 | 2017-04-29T00:19:05 | 42,534,932 | 3 | 4 | null | 2015-09-15T17:26:03 | 2015-09-15T17:26:02 | null | UTF-8 | R | false | false | 5,138 | r | int-impute_fn_knn.R |
# @description wrapper to impute_fn_knn for all observations and all columns.
# This function is not parallelized
# @param x_missing From impute_prelim(...)$x_missing
# @param x_complete The complete data matrix x
# @param k ... input to kNN_impute
# @param q ... input to kNN_impute
# @param sigma ... calculated insid... |
8d50ecd0d8be9d3339f1a9a7739f6907eb5e4117 | f7f63838b028cc57a9824e575124b6f4ac0241a6 | /app/settings.R | 8c386817be9377cf92a32934110af83e0443b192 | [
"MIT"
] | permissive | RobinEchoAlex/flexTeaching | 3cfb01fb88b2c9dfdabdcfba4fd27e3f028ff542 | 033b8fb9959d05014d963429f1607a1147e810ca | refs/heads/master | 2023-08-16T13:27:17.208387 | 2021-07-19T13:18:58 | 2021-07-19T13:18:58 | 378,942,363 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,895 | r | settings.R | require(digest)
require(base64enc)
require(haven)
require(xlsx)
require(lubridate)
cols1 = c("#edd9c0",
"#c9d8c5",
"#a8b6bf",
"#7d4627",
"#506C61",
"#E06C50",
"#004073")
par.list = list(bg = "white", #col = cols1[7], col.axis = cols1[7],
#co... |
926086f57fc5ad22a27ebf3b73aa610b4e05c9f0 | 8a97255cb66455dbef0cf01864a3b334cf20a66b | /data_table_basic/permutation.R | 25e1283f609fe23471a64f58f95d43f4cc93c531 | [] | no_license | AshutoshAgrahari/R_Practice | c56bbb3c0893e101305f150c0b74045f24cf5a44 | 4c31ce94f130b363f894177a1505ccac290547e0 | refs/heads/master | 2020-03-19T17:51:05.826260 | 2020-01-25T10:34:55 | 2020-01-25T10:34:55 | 136,781,266 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 150 | r | permutation.R |
library(data.table)
library(combinat)
a <- c("Mum","Blr","Hyd","Lko")
write.csv(data.table(t(as.data.frame.list(combinat::permn(a)))),"data.csv") |
35c0598ad80ce63cea24b3270fb8965b45b94349 | 8ce370da5bfb86eaea3cda891e74a01ac9ebdc1a | /examples/speed.r | 56ef72ffb48fa511e1588efc02497a76e70d556a | [] | no_license | damjad/OPI | d75515bc3b037e7c9df97ff7892536671b051a36 | b03d6c1f0fa1aec3c2c36b8b976a29f5014bf411 | refs/heads/master | 2021-01-02T09:00:25.918322 | 2017-08-10T15:46:19 | 2017-08-10T15:46:19 | 99,120,598 | 0 | 0 | null | 2017-08-10T15:46:20 | 2017-08-02T13:40:59 | R | UTF-8 | R | false | false | 3,600 | r | speed.r | #
# Measure reaction times to numStims presenations of
# Size III white-on-white stimuli at random locations
# in the central 30 degrees of the field.
# Save results in a file.
#
# This was used by me as a demo at my university's Open Day
# August 2012.
#
# Andrew Turpin 17/8/2012 (aturpin@unimelb.edu.au)
#
numStims... |
292656602bab9deb488a6b4d1dd49d04ef85c7ee | 0dca09f2b18e108d930b6ed20041f2a3737bd3cc | /man/sim_data.Rd | a98fd4e4fe197fcce2e3826b55ba44d3ca75e4d4 | [] | no_license | FocusPaka/SCBN | 39dee85e3e525bcd3e7221728dfab9c7f2bd0305 | 8d0142333da5054a21c35a0c151e899189169f64 | refs/heads/master | 2023-04-14T08:27:45.879997 | 2023-04-10T02:26:35 | 2023-04-10T02:26:35 | 145,002,105 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 583 | rd | sim_data.Rd | \name{sim_data}
\docType{data}
\alias{sim_data}
\title{A simulation dataset of orthologous genes between the different species.}
\description{
This data set gives 4149 orthologous genes which include read counts and
genes length between the two different species.
}
\usage{sim_data}
\format{A data.frame c... |
78bf500b1fdcd399236e68de2ff58682353cf7b6 | 80ea90e1bf7a5651fa2153b1d897afc41e9f218a | /R/readpars.R | 7808500cb25e67924c6ee79f93b6053574a6ec86 | [
"MIT"
] | permissive | slphyx/MEEM | 4d8091210c4c3350ae0d1e81205c26bfaf859bfd | d54ec9314d2c9797ee297274b4c40897ed75813c | refs/heads/master | 2021-01-21T10:59:23.926578 | 2017-07-13T04:46:53 | 2017-07-13T04:46:53 | 83,507,141 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,211 | r | readpars.R |
# for removing NA from a data frame/list
removeNA<-function(inputDF){
tmpDF <- inputDF
for(n in names(inputDF)){
txt<-paste0("tmpDF$",n,"<-","tmpDF$",n,"[!is.na(tmpDF$",n,")]")
eval(parse(text = txt))
}
return(tmpDF)
}
MM_readpars <- function(parfile){
if(!file.exists(parfile)){
stop("Your pa... |
fc92cf586540646b60a3eebf714d75a830ef7e19 | 44da3f9d182ce027b2758f5919f1eaa91927363a | /Module-6-Example-4.R | 2c2f0e90161f78bb6e71dbbe9f36d187857b1061 | [
"Apache-2.0"
] | permissive | febikamBU/R-Examples | 1af609ec2bd0789cdff347431b67f9f785d067ae | 748789cbf37507ad0992efa78cf2117703081c90 | refs/heads/master | 2021-06-25T18:48:59.999242 | 2021-01-29T20:24:36 | 2021-01-29T20:24:36 | 204,198,013 | 0 | 0 | Apache-2.0 | 2019-08-24T18:41:13 | 2019-08-24T18:41:13 | null | UTF-8 | R | false | false | 1,918 | r | Module-6-Example-4.R | # setwd("SET THE Working Director to THE PATH TO THIS DIRECTORY")
# install.packages("aod")
# install.packages("pROC")
library(aod)
library(stats)
library(pROC)
data<-read.csv("Datasets/cevent.csv")
attach(data)
# print a small part of the data
head(data)
# multiple logistic regression
data$male <- ifelse(data$sex ... |
a6d5a78c074879110aaf65a5bf2cbb15857ca7ef | d028256882be77ba6f4188da0b4b462c8db8eefb | /R/RcppExports.R | 19b9191f669c85256bd6a89685a8928e7f420dd1 | [] | no_license | njitclass/cidian | 810bc03e7c6aad414d27ea67b27eb904acff5935 | 56b32a9d5ae9efcc5c6a7932ccae412bf5ab3296 | refs/heads/master | 2021-01-18T14:49:05.740685 | 2016-03-14T00:38:22 | 2016-03-14T00:38:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 419 | r | RcppExports.R | # This file was generated by Rcpp::compileAttributes
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
loadUserDict <- function(filePath, defaultWeight, defaultTag) {
.Call('cidian_loadUserDict', PACKAGE = 'cidian', filePath, defaultWeight, defaultTag)
}
decode_scel_cpp <- function(file, output, freq... |
4183e77e3e639f9036c23263aba84b4ab80ea072 | d75b7bc015b47d94254bcc9334ba15972d3ec9a1 | /1. FIRST YEAR/Introduction to Computing/Exercices_Laura/exercici102.R | 39229b4f04ecaad4c4e22ac8c9acbe0f7193666f | [] | no_license | laurajuliamelis/BachelorDegree_Statistics | a0dcfec518ef70d4510936685672933c54dcee80 | 2294e3f417833a4f3cdc60141b549b50098d2cb1 | refs/heads/master | 2022-04-22T23:55:29.102206 | 2020-04-22T14:14:23 | 2020-04-22T14:14:23 | 257,890,534 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 199 | r | exercici102.R | v <- c(1,3,2,5,6,4,7,8)
mediana <- function(v){
v <- sort(v)
N <- length(v)
if (N%%2 ==0){
return(mean(c(v[N/2], v[N/2 + 1])))
} else {
return(v[N/2 + 1])
}
} |
346dfd4c3c45d7716003cf80c7722eb88c4186d4 | dab82520f422d58dbaca5b1e4cb7db74cc3dec98 | /R/new_form.R | cca8d4818e600d7c018fc9a232ef832a212828fb | [] | no_license | urodoct/iuform | 7d9c437fb729ffeffe24d799e4d0467c6423c543 | 689e51289e9a65020085cfa3965cf2074fa9d643 | refs/heads/master | 2023-01-20T16:29:52.783748 | 2020-11-30T15:19:23 | 2020-11-30T15:19:23 | 302,903,084 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,422 | r | new_form.R | #' to start the form, ensures only one form
#'
#' @param name the title/name of the form
#' @param chaptered if many section will be in the form
#'
#'
#' @export
new_form <- function(name,chaptered=F){
#quoting the user arguments using enquo
# enlabel <- rlang::enquo(label)
enname <- rlang::enquo(name)
#qut... |
10e8a47741eaedf250b8f5d05b042af5fc8d4f59 | 86195dac7c6d203b5d83b6e0b17c2a7140bddfdb | /case_control_env_power.R | ab99bb4c8875b3c528cd2aa4840c65d7f4791a77 | [
"MIT"
] | permissive | adams-cam/power_GxE | 1334ba4b0fdf9333e0246a444a32ac98600e1333 | 1f18c088c2bd4592ef6c2f1bb81c5d054c903850 | refs/heads/master | 2023-03-16T02:11:14.727649 | 2023-03-11T01:41:06 | 2023-03-11T01:41:06 | 292,380,058 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,649 | r | case_control_env_power.R |
####create fluid row####
fluidRow(
#### put input area here ####
column(4,
style = "background-color: #E8E8E8",
##change the title here
div(style=paste0("display: inline-block; vertical-align:top; ",
"text-align:center; width: 10... |
9e2025b44cdbcef4f7f06781867a4e2fb07a5c28 | d7a6536d38949396ef6eefe4de44fe6579b13b42 | /analysis/TF_Enrichment_near_SVs/src/PlotDistanceFromPeaksToSVs-d.R | 196c2dbd8bb06e19f0fe5a73d6d8f4fad39554e0 | [] | no_license | RoccoDLucero/epig_str_mut_germ | 3834350ceb4f0392fbe291160f4d662da6aa4092 | 8f0db553e0f1d92a3c18923561a7616547ddbe2a | refs/heads/master | 2021-01-25T04:42:27.430354 | 2017-06-09T23:33:10 | 2017-06-09T23:33:10 | 93,470,128 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,639 | r | PlotDistanceFromPeaksToSVs-d.R |
ks.test(x = RARE_AFR_CNV.SV.bed.sampled$V1,y = RARE_EUR_CNV.SV.bed.sampled$V1)
ks.test(x = RARE_AFR_CNV.SV.bed.sampled$V1,y = RARE_EAS_CNV.SV.bed.sampled$V1)
ks.test(x = RARE_AFR_CNV.SV.bed.sampled$V1,y = RARE_AMR_CNV.SV.bed.sampled$V1)
ks.test(x = RARE_AFR_CNV.SV.bed.sampled$V1,y = RARE_SAS_CNV.SV.bed.sampled$V1)
ks... |
49c360a9ab89f57ed9b3c6dd766b6d73344361f4 | ec3a7973db5d8c855e3f1d30afbf27906ecb41d2 | /slides-pdf/splice_pdf.R | e31eeb6098f66af54ad0fe9f378c4e9f6dd52c46 | [] | no_license | migariane/workshops-1 | 3da2e59979fa88457af633e6d30dd93eface5e88 | 755eff9d98c18d20a068703cfebb273dfb1652fe | refs/heads/master | 2020-03-17T07:22:21.721995 | 2018-05-14T06:58:48 | 2018-05-14T06:58:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 639 | r | splice_pdf.R | library(staplr)
setwd()
remove_pages(c(1:24, 26:29), input_filepath = "2-packages.pdf",
output_filepath = "use_github.pdf")
remove_pages(c(1:28), input_filepath = "2-packages.pdf",
output_filepath = "license_page.pdf")
remove_pages(c(2:13), input_filepath = "2b-github.pdf",
output... |
50cf3173eacf416c547344e2f0e186fa36e9fe0d | 6ee35707d967a44a9fcdebb24a406e2048886413 | /Additional_Files/PartialDependence_Extreme_Cases.R | 63330a80e5aa23bab5cb16a65632a114e67a0dc1 | [] | no_license | RaphaelCouronne/Benchmark_RF-LR_OpenML | 31d9c1f140abd451d9b06034b9fece2fed6349ff | 67a2dd2d6afba5033fbbe25f5ba7a6970eb1405f | HEAD | 2018-09-12T01:12:57.810464 | 2018-06-05T13:59:29 | 2018-06-05T13:59:29 | 65,920,602 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,152 | r | PartialDependence_Extreme_Cases.R | # requires
partialDependenceAnalysis_extremCases = function(regis, seed = 1) {
police.size = 18
# Get the datasets without errors
ids = 1:259
ids = ids[-which(ids %in% c(14))] # error on dataset 14
result.pdp = reduceResultsList(ids = ids, reg = regis)
result.pdp.df = do.call("rbind", result.pdp) ... |
d82e313e037921ba5331a7e7e8e2bfef804d4807 | 18e2b8080aae52e221fba4b47c3bd5087a0c0362 | /DBS_Acoustics_analysis.R | b6f5490473b2712f6f70949b8e78544a957eb108 | [] | no_license | troettge/Muecke-et-al-Thalamic-Deep-Brain-Stimulation-changes-speech-dynamics | b9c63bd680362f1c58778396e7119dbf255e5b55 | f20b0c7db31bc2cf04d4c61833362cf1e062f0b9 | refs/heads/master | 2020-12-02T16:13:11.061431 | 2017-10-08T10:20:16 | 2017-10-08T10:20:16 | 96,520,241 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,175 | r | DBS_Acoustics_analysis.R |
## Analysis of acoustics data for Muecke et al. "Thalamic Deep Brain Stimulation changes speech dynamics in patients with Essential Tremor"
## Author: Timo B. Roettger
## Contact: timo.roettger@uni-koeln.de
## Date: May 30th, 2016
## Load in necessary packages
library(lme4)
## define function for correction of mul... |
442c83491207811e31631df9b477926578621cec | 67c544e7059f67a956029865ec1482d83b7fa484 | /man/eigSdat.Rd | 241cfeaf8203cb31de9e5b0bb1d2698a621081f6 | [] | no_license | StoreyLab/eigenR2 | 1b27983074cf840a1e8b336159c8fee44ba38979 | fdddea07b13c469769adabee79c48443a6904333 | refs/heads/master | 2020-07-03T13:01:18.512134 | 2015-07-19T17:34:24 | 2015-07-19T17:34:24 | 39,342,324 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 839 | rd | eigSdat.Rd | % --- Source file: man/eigSdat.Rd ---
\name{eigSdat}
\docType{data}
\alias{eigSdat}
\title{A simulated data set with independent variables of interest and a gene expression matrix}
\description{This simulated data set consists of two parts. The first
part "\code{varList}" contains three variables: age, genotype and... |
f4c38b669ddcff3aa4443fa2c0f2fe1322e6893c | a8903875bd24b53c0e4d2e771c054f2b144960c4 | /man/coltype.Rd | 889977b1db88e281d897fedb6e99f5f96ec76f58 | [] | no_license | chang70480/YCfun | ceef82a02e55ad16a0c0a50e7e9aeedb7b2de254 | a055dc63946e2d9f012b67bf497c73d6b9b69065 | refs/heads/master | 2021-03-01T20:34:18.422508 | 2020-11-30T07:50:52 | 2020-11-30T07:50:52 | 245,812,658 | 5 | 0 | null | null | null | null | UTF-8 | R | false | true | 622 | rd | coltype.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coltype.R
\name{coltype}
\alias{coltype}
\title{\code{coltype} set reading datatype}
\usage{
coltype(
len,
at = list(),
default = c("?", "guess"),
readfun = c("read_csv", "read_excel")
)
}
\arguments{
\item{len}{set variable datatype}... |
42012cf7f0bdeb819deddff5d1c7c50a3a6bbaa7 | 3aad0bc10eac99131c5d62590cb078ca3a540dc9 | /app/modules/mod_call_react.R | 3bc3eca4b05a60832b17a324373f7486276b9676 | [
"MIT"
] | permissive | moore-datascience/ais-ships | e44c34a23ec04ad7cd5632d0a4a554c28ab211ef | 9db8097c060d8afd3fa794948371a19527adc19d | refs/heads/main | 2023-06-30T10:54:59.338970 | 2021-08-02T05:50:39 | 2021-08-02T05:50:39 | 391,443,481 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,106 | r | mod_call_react.R | #'
#' file: mod_call_react.R
#' loc: /efs/ECS/Shiny/ais-ships/app/modules
#' date: 7.30.21
#'
#' The purpose of this file is to be a kind of 'hosting' area for React code.
#' The reason that this is best served in a module format is to ensure that
#' the app UI is flush before the babel transformed React code attempt... |
49db849a84f8a65082e98792a9589fc6698f01fa | 1ff941c5bfdca03767877c468cb5a9c482fbe1b4 | /man/filter_endpoints_conditions.Rd | e632bfd67a2f6df4ba8b8a0d76d5f5a694647cec | [] | no_license | Sentewolf/edeaR | 0727415f808739670940dd1168cbceb962379e06 | 19ba09107f068ce40805b98c69c5803ef4d2b0b8 | refs/heads/master | 2022-11-09T16:38:43.010212 | 2020-06-18T19:31:25 | 2020-06-18T19:31:25 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,516 | rd | filter_endpoints_conditions.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/filter_endpoints_conditions.R
\name{filter_endpoints_conditions}
\alias{filter_endpoints_conditions}
\title{Filter: Start and end conditions}
\usage{
filter_endpoints_conditions(
eventlog,
start_condition,
end_condition,
reverse,
..... |
9f907d72b954fa8a97cf7788d6be7e4a3809e369 | 05e056455d4fe1a32bfd93e2ed73c008227012d2 | /R/cooperam.R | 3bd3b4a5ca7b479689a10b9406edb827df16b9b5 | [] | no_license | APatman2017/caplist | 3f5e95b17db93e3998fbc2482f21c3d1e1d3e830 | 24143669d68b840e62e9162ffc63cc5337f871d7 | refs/heads/master | 2021-01-24T09:34:07.702698 | 2018-02-26T19:52:21 | 2018-02-26T19:52:21 | 123,021,462 | 0 | 0 | null | 2018-02-26T19:44:55 | 2018-02-26T19:44:55 | null | UTF-8 | R | false | false | 1,508 | r | cooperam.R | # Load libraries
library(stringr)
library(dplyr)
library(readr)
# Sets working directory, reads file and creates a nickname
setwd("Z:/Cap List/")
wd <- getwd()
date <- format(Sys.Date(), "%B%Y")
# Reads in files in format below
#epic <- read.csv(paste(wd,"/CooperAM_180223", ".csv", sep=""), header=TRUE, stringsAsFact... |
9099620a797419f3dfcdf8d4f5e862969b52a103 | da36d96f0231290b53345c06896cd8f543712548 | /my_first_mousetracking_analysis/my_first_save.R | b12416dcc6d9df61b140a2769b02d857688ffdb2 | [
"MIT"
] | permissive | dwulff/EADM_SS2018 | 09f3a126815191577b77f316311b426bc8d68bd3 | 92881a69680aa198b4b8ba85b6ab4a51bb927e64 | refs/heads/master | 2020-03-22T17:38:45.462371 | 2018-07-14T08:20:19 | 2018-07-14T08:20:19 | 140,406,712 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 298 | r | my_first_save.R | install.packages("mousetrap")
library(mousetrap)
?mt_import_mousetrap
mousetrap
some_vector
some_vector <- c(1, 2, 3)
some_vector
print(some_vector)
some_vector + 2
some_vector
some_vector <- some_vector + 2
some_vector
some_vector <- mean(some_vector)
some_vector <- 'hello world'
|
8256f9727fc302f5128d6ef3b67bcddada838eb4 | 652f658c2ca8cadf7e749985856cfcc08d09bf4a | /Circular Plot.R | 1f996e32aad8acc02e59cda6204e5b8a039aa9e7 | [] | no_license | ahmedaquib/sorghum-meta-QTL | e5eb3897f62a50297d628ab27ae1fff427eadfc5 | 90a23d5070a7969f2739aae3c97813976d77f40d | refs/heads/main | 2023-06-23T22:05:37.414197 | 2021-07-29T17:02:43 | 2021-07-29T17:02:43 | 382,636,342 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 7,421 | r | Circular Plot.R | library(circlize)
library(dplyr)
library(tidyr)
library(GenomicRanges)
library(RColorBrewer)
library(yarrr)
############################# DATA PREPARATION #######################################################
source("C:/Users/Shabana Usmani/sorghum-meta/sorghum-meta-QTL/Physical Interval.R")
## Consensus Map Dat... |
5f974126065a65bce53c653206e0d2ff982319ab | 8d4dfa8b6c11e319fb44e578f756f0fa6aef4051 | /man/getIdLevelQvals.Rd | 5b351199494f2eac9c03758b26ed650b51720ce2 | [] | no_license | eahrne/SafeQuant | ce2ace309936b5fc2b076b3daf5d17b3168227db | 01d8e2912864f73606feeea15d01ffe1a4a9812e | refs/heads/master | 2021-06-13T02:10:58.866232 | 2020-04-14T10:01:43 | 2020-04-14T10:01:43 | 4,616,125 | 4 | 4 | null | 2015-11-03T20:12:03 | 2012-06-10T15:35:25 | R | UTF-8 | R | false | true | 713 | rd | getIdLevelQvals.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/IdentificationAnalysis.R
\name{getIdLevelQvals}
\alias{getIdLevelQvals}
\title{Calculates identification level q-values based on target-decoy score distributions}
\usage{
getIdLevelQvals(scores, isDecoy)
}
\arguments{
\item{scores}{peptide/pr... |
36687bd72b07261a0d4de96f63c8ba50b40eca94 | faa2f0bc274f3d7708a010510b281932996dae6a | /data-raw/data_acquisition.R | b6720d06d00436ede90137b30c0361f432549985 | [
"MIT"
] | permissive | martijnvanattekum/cleanse | 3628ce0113e9cf3228f473bf4a0af4081761f16c | 092d695e30399d80dc088599fe30f8ab58396622 | refs/heads/master | 2023-08-16T23:05:25.261398 | 2023-08-16T08:05:32 | 2023-08-16T08:05:32 | 191,123,816 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,645 | r | data_acquisition.R | # data were downloaded from https://depmap.org/portal/download/. The processing below of each data source
# should yield similar data structures, with variable "value" representing the final data returned to the user
# data are in long format; a sample data frame can be found in the file sample.csv
library(devtools)
li... |
c83542b3ede764adfb1c997d4f85d5fd0d5be752 | 2d5553595d54c42907645f0fbe19fb6fef41b098 | /week-2/complete.R | 96d4ee158a352f8d74a1bd447299cb0a9d5a8f6c | [] | no_license | gaocegege/rprog-in-coursera | ee2407955006d0e7848df356bf7c8cd42e155791 | 9ed40de7ae8fccf0abeaccff6381edadd76f9912 | refs/heads/master | 2016-09-02T05:49:03.407521 | 2014-12-07T03:39:00 | 2014-12-07T03:39:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 834 | r | complete.R | complete <- function(directory, id = 1:332) {
## 'directory' 是长度为1的字符向量,指明
## CSV 文件的位置
directory <- as.character(directory)
## 'id' 是正整数向量,指明监测点的ID号,
## 将要被使用的
id <- as.integer(id)
## calculate
filenameArray <- paste("./", directory, "/", formatC(id, width=3, flag="0"), ".csv... |
9f65008e01e72ea68747d56155a9d5b4f5344622 | 92343742887e2957b7d6d2b1f42c70f93d7deece | /IMPUTACION.R | 1cdac6fb4324e79c85c35358aa9090fe58360505 | [] | no_license | GITInformacion/Dps-Scripts | 3d8bd7a4d69c396381be92dd485c08e360057571 | 0f9229a77816bdea9232bcbc9e307dbea2e6bfb3 | refs/heads/main | 2023-01-01T00:09:33.640391 | 2020-10-21T15:03:09 | 2020-10-21T15:03:09 | 305,685,667 | 0 | 0 | null | null | null | null | WINDOWS-1250 | R | false | false | 1,808 | r | IMPUTACION.R | ###########################
# IMPUTACION #
# #
# Andres Romero Parra #
###########################
library("ggplot2", lib.loc="~/R/win-library/3.4")
library("readxl", lib.loc="~/R/win-library/3.4")
library("dplyr", lib.loc="~/R/win-library/3.4")
library("tidyverse", li... |
3abc776b67597c36878f482017fe88f73b2e2f00 | 7cd5ec4afdf109a8f13da0269180a573afc4da19 | /man/get_circle.Rd | 4749c2731e169490183713eb6cbf61870b6b85aa | [] | no_license | SimonCoulombe/cangetpop | c37e47c116bb02963c02a5fbcafd03b2a1b54ef3 | 71c6a7c525821244a865d0bfa7d154e82aed5068 | refs/heads/master | 2023-07-16T15:48:32.955117 | 2021-09-01T12:51:44 | 2021-09-01T12:51:44 | 386,512,668 | 3 | 1 | null | null | null | null | UTF-8 | R | false | true | 379 | rd | get_circle.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_utm_crs.R
\name{get_circle}
\alias{get_circle}
\title{get_circle returns a circle of radius "radius" kilometers around lat/lon}
\usage{
get_circle(lat, lon, radius)
}
\arguments{
\item{radius}{}
}
\value{
}
\description{
get_circle retur... |
d27eaed1eecb9428c1b96befa10af780ae0f7b95 | ded254a14f62f6705715c719f126ff6b557a661e | /R/run_app_ui.R | 58f170af05c02d2f867f994bdf83fa5c2cc768ab | [] | no_license | pedroivo000/lambdaPrimeR | 9a2269fc967242ed79b3a032e0c2cb1b33db1898 | 0a40261fabea18075fc953a2c62e26620c57b65a | refs/heads/master | 2021-06-04T07:57:45.801757 | 2020-01-20T05:34:36 | 2020-01-20T05:34:36 | 119,300,044 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 392 | r | run_app_ui.R | #' Open lambdaPrimeR Shiny user-interface
#'
#' @return Opens Shiny app on a new browser window
#' @export
#'
run_app_ui <- function() {
app_dir <- system.file("lambdaPrimeRui", "shiny_app", package = 'lambdaPrimeR')
if(app_dir == "") {
stop("Could not find Shiny app directory. Try re-installing `lambdaPrimeR`.... |
59b53b076c31775d52c04e390f25d22eb0d48b63 | 898886e1247e9a00868e07b4fae0c16daff520f6 | /Basic Statistics_Level 1/Q9_b.R | a25faaaaca3ce2be5d66dfd4e1144f2d9d326328 | [] | no_license | ShahajiJadhav/R-Codes-For-Data-Science | 56492b71c4082828d7792be25179c0b30a5b82cf | 8eea86faa209ef55e946efd20073be933413256b | refs/heads/master | 2022-09-26T01:21:44.994065 | 2020-06-09T10:02:23 | 2020-06-09T10:02:23 | 269,337,682 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 547 | r | Q9_b.R | #Reading DWTa
Q9 <- read.csv(file.choose(),header = TRUE,sep = ",", stringsAsFactors = TRUE)
Q9 <- Q9[-1]
View(Q9)
names(Q9)#"SP" "WT"
plot(Q9)
attach(Q9)
#Ploting
plot(SP)
plot(SP, type = 'o',xlab ="Frequancy",ylab = 'SP', main = 'SP')
boxplot(SP)
boxplot(SP, horizontal = T, col = "orange")
hist(SP)
hist... |
57c81aa5aa077e5861cba7cb7c2f207f2ee90eed | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/ggip/tests/testthat/test-geom-hilbert-outline.R | b3f0a49413799b85e29448c3ed7dd7b5d62fbd57 | [] | 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 | 2,726 | r | test-geom-hilbert-outline.R | test_that("input validation", {
address_data <- data.frame(address = ip_address("0.0.0.0"))
network_data <- data.frame(network = ip_network("0.0.0.0/16"))
expect_error(
print(ggplot(network_data) + geom_hilbert_outline(aes(ip = network))),
class = "ggip_error_missing_coord"
)
expect_error(
print(... |
3b6bbaa04e08c8af4364fee6cbe21a16cc604917 | 7bed3886e5258d7a0a36f509d762b7859ed63732 | /R/import.R | 45258a7bd440fd707dcb9bd6e8e9c694210a33aa | [] | no_license | JonasGlatthorn/APAtree | a584bd72e35414deea564aea1e6a901ca35e9190 | 383cd9fb95a8396a66a61ae1dae75a962b54df97 | refs/heads/main | 2023-04-19T03:25:58.997681 | 2021-08-20T13:01:47 | 2021-08-20T13:01:47 | 394,584,651 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 142 | r | import.R | # Importing the most frequently used functions of other packges:
#' @useDynLib APAtree
#' @importFrom Rcpp sourceCpp
#' @import sf raster
NULL |
e3b22f06af0c991a6eebebb92f8d9694c600fe37 | df7a77bdbcedb1d272c5a2346cacb57c73b6e846 | /r_modules/analysisPackages/GeneSetTTest/tests/runTests.R | 1ff794707dacc5e3b35646d9fc35457fb58560bd | [
"MIT"
] | permissive | pablopunk/Oncoscape | 72200b482fc0e2350fc361e9b1f1f784fa28c11b | d96276931c45b121a49642a0f713d509a0376233 | refs/heads/develop | 2021-01-21T17:50:48.605435 | 2016-04-05T11:28:32 | 2016-04-05T11:28:32 | 55,501,595 | 0 | 0 | MIT | 2020-04-28T20:43:09 | 2016-04-05T11:15:45 | C++ | UTF-8 | R | false | false | 118 | r | runTests.R | require("GeneSetTTests") || stop("unable to load GeneSetTTests package")
BiocGenerics:::.testPackage("GeneSetTTests")
|
36624fbe14c0c6a412fe53ec6112d4c00cd40a0c | 279049e52fedc26f8a5d47eae470c42ab1cb5d2c | /man/par_discretenum.Rd | 40a216943b6f58905b88bf3d69812d76a001442b | [] | no_license | CollinErickson/comparer | 5e947b63634e03c21a86f4d7fd76aba08dd9783a | b8340a4d165bf22a00d0d7847aa92601edb51e96 | refs/heads/master | 2023-03-06T06:33:25.266036 | 2023-02-20T18:57:59 | 2023-02-20T18:57:59 | 94,040,471 | 3 | 1 | null | null | null | null | UTF-8 | R | false | true | 542 | rd | par_discretenum.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hype_par_discretenum.R
\name{par_discretenum}
\alias{par_discretenum}
\title{Parameter with uniform distribution for hyperparameter optimization}
\usage{
par_discretenum(name, values)
}
\arguments{
\item{name}{Name of the parameter, must matc... |
533103d8fe5abcc50a4e888dd63943db33629061 | 7ab1cf068cc836549a001219a93a7305eb33297e | /R/02_Evaluate_Projection.R | 712e1f99582a15a1db0b55cda819423ddeb8f683 | [
"MIT"
] | permissive | davnovak/SingleBench | 16912eab32f18afd68b992d219166873f7c7efa4 | 34751d16e85605e197153eec62ce69018ff33b71 | refs/heads/main | 2023-05-29T02:53:18.052308 | 2021-06-08T12:30:54 | 2021-06-08T12:30:54 | 368,499,541 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,081 | r | 02_Evaluate_Projection.R |
EvalProjection <- function(
benchmark, verbose
) {
seed <- benchmark$seed.projection
## Iterate over subpipelines
purrr::walk(
seq_len(benchmark$n_subpipelines), function(idx.subpipeline) {
subpipeline_name <- GetSubpipelineName(benchmark, idx.subpipeline)
proj <- benchmark$subpip... |
0a651c7b8dcef7e5016440932b060fb787480d1c | 483018f5af9ba30b8c26add9168f85052891f1fc | /homework1.R | 33b8b319cb5eff20f03c44f46d1d581bd1556a51 | [] | no_license | hscarter/QMECgitrepo | d1682272275d6cbf38bd8c15cd87a03502f91f70 | 2697fa48c7122e4a13ff3574cf28735b5a56124a | refs/heads/master | 2020-12-11T21:21:15.274185 | 2020-01-31T18:00:21 | 2020-01-31T18:00:21 | 233,962,537 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,568 | r | homework1.R | #Homework Assignment 1
#by Haley Carter
#I am not very good at shuffling cards generally and I wanted to see if it made a difference
#which hand I used to initiate the shuffle. The subject is my shuffling, the treatments are
#starting with my right hand or my left hand. Treatment assignment was done randomly
#(see co... |
b4544381d51485ab21c1802231fd637f22a75159 | e2f5c377b0507310f9fe4233fc816d660b73dc1b | /man/testDesignShiny.Rd | f4be98e709140a8b865ba6a37f52f75f655de01e | [] | no_license | SpencerButt/IDPS-LAAD | 6e79d8f3f71e400c51c23c1b6fba4fe7b1d54c56 | 3348e0ba32056637dba72dcb595d1e0eaf69954a | refs/heads/master | 2022-04-22T10:06:53.566404 | 2020-04-20T15:06:38 | 2020-04-20T15:06:38 | 117,839,416 | 0 | 4 | null | 2020-04-20T15:00:28 | 2018-01-17T13:23:35 | R | UTF-8 | R | false | true | 2,270 | rd | testDesignShiny.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rShinyDatasetDocumentation.R
\docType{data}
\name{testDesignShiny}
\alias{testDesignShiny}
\title{Default hyperparameter experimental test design for a single-hidden layer undercomplete
autoencoder neural netowrk.}
\format{A dataset with 600... |
67fc409362f8a771b1bc90baf29e827d7a967e57 | 8bfb07d4492bf8901070e678846991f497794199 | /man/fit_sncm.Rd | b3e8d95d3ffdf2f206365e5d80dd7a33fbe83444 | [] | no_license | DanielSprockett/reltools | 5b38577e1a3257af40d47c19c39778a32214107d | f693109c03ebd6944fdb42b7bff29d18cb49341b | refs/heads/master | 2021-08-23T23:04:48.558234 | 2017-12-07T00:49:13 | 2017-12-07T00:49:13 | 113,137,957 | 3 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,586 | rd | fit_sncm.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/modeling_tools.R
\name{fit_sncm}
\alias{fit_sncm}
\title{Fits \code{sncm} to an OTU table}
\usage{
fit_sncm(spp, pool = NULL, taxon = NULL)
}
\arguments{
\item{spp}{A community table for communities of interest with local communities/samples ... |
8f226754a7e005d213e0fd51d5d2e79e6e011abd | 13e8bd394fc0b606ceb0cf73d0be8ef720910758 | /inst/ConfintLMApp.r | a9a09549204bb3ad04b2088096a9632b12d8b486 | [] | no_license | cran/lmviz | 7e6634a084a5469cf56505dae9c4577f0aba62b5 | ed9121c3f19c7112815107bcab1189c41f46db00 | refs/heads/master | 2021-07-04T08:41:16.480716 | 2020-08-24T19:40:02 | 2020-08-24T19:40:02 | 158,114,582 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 22,884 | r | ConfintLMApp.r | #library(shiny)
#library(shinyjs)
library(car)
ui <- fluidPage(
shinyjs::useShinyjs(),
withMathJax(),
# tags$img(width=300,height=50,src="deams.png"),
# tags$img(width=300,height=50,src="logoUnits2.jpg"),
h1("Confidence intervals for the coefficients"),
#tabsetPanel(
# tabPanel("a",
# Inp... |
b927f0674d083553e55014a09224210035dc8f01 | c1303d49667599235e32afb94f00f68d09eab47f | /process_utilization_data_util.R | f19d55e5501347ba2d981c018b2d88a8471644e8 | [] | no_license | cloudish-ufcg/cloudish-statistics | f037c342a0983bc2b011dba62c1950409480b5c0 | 2742b47a0f962abdf1af00c7762f1f0bb7b64651 | refs/heads/master | 2020-05-21T05:33:43.104740 | 2017-03-15T18:15:15 | 2017-03-15T18:15:15 | 84,579,661 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,862 | r | process_utilization_data_util.R | # Default interval.size is 5 min
SummariseUsageInterval <- function(usage, interval.index, interval.size = 300000000) {
intervalSummary <- usage %>% filter(between(time, interval.index * interval.size, (interval.index + 1) * interval.size))
return(intervalSummary)
}
# Default interval.size is 5 min
ProcessH... |
bdbc5f2ab3217716635c54e6c8f534ca14082897 | a289946a3b069f7e343e9f54590989926ebe7f32 | /man/angle_from_positions.Rd | 3e6e57ef070b6b0c3d8e2296d13bdcc5cb97f83c | [] | no_license | hejtmy/navr | ffdfc1e9e5a6b2c54c35d026a34e39c4a3f9a55b | 2bcc4eba8dbed2d1cb4835139966770cfc6b64cb | refs/heads/master | 2023-03-08T16:49:38.487959 | 2023-03-01T02:21:56 | 2023-03-01T02:21:56 | 119,145,726 | 0 | 0 | null | 2020-03-08T04:06:41 | 2018-01-27T08:10:24 | R | UTF-8 | R | false | true | 575 | rd | angle_from_positions.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/navr-angle-calculations.R
\name{angle_from_positions}
\alias{angle_from_positions}
\title{Calculates angle from two 2d positions}
\usage{
angle_from_positions(pos_from, pos_to, zero_vec = c(0, 1))
}
\arguments{
\item{pos_from}{numeric(2) vect... |
67b12ff114c658311d3e8c9d7c77c7afa7d9765d | 1c319230bfa1064066b2930f329dc4a82437799a | /man/WEE.quantile.Rd | bd1a5760e7c61e5857aefcd38896ebea04c2ef6b | [] | no_license | cran/WEE | 73771c2eae919326fea00f916a79ce2d4ecc4b17 | 3c83105698ce059e6175d6aa4353601ade70365f | refs/heads/master | 2020-07-19T14:01:56.833280 | 2016-11-15T01:19:43 | 2016-11-15T01:19:43 | 73,762,954 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,575 | rd | WEE.quantile.Rd | \name{WEE.quantile}
\alias{WEE.quantile}
\title{
WEE quantile regression
}
\description{
Returns an object of class "WEE.quantile" that is generated by quantile regression with WEE approach for continuous secondary traits in genetic case-control studies.
}
\usage{
WEE.quantile(formula, D, data, pd_pop, tau, iter = 5, b... |
9904af16d71dd60ffbbbab0ff929819dce221f11 | 297cd2ac4f06548e569daf5325c44e66cd3578a0 | /assesment of model.R | 2011903e60ba89d0a5d2395fb6eaede123663004 | [] | no_license | wanghan0501/DPLRadiomics | 7bfe77c8f10a4742647661b9e274571f26c052d1 | b671701dfca10fbe49de7adff912dd563d4585ac | refs/heads/main | 2023-09-03T13:47:37.131400 | 2021-10-29T10:03:33 | 2021-10-29T10:03:33 | 422,521,537 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,334 | r | assesment of model.R | #library packages
library(rms)
library(calibrate)
library(export)
#calibration curve#
train<-read.csv("train.csv")
f1 <- lrm(Label~DPL15+DPL73+DPL230+DPL67+DPL317+DPL461+DPL329+DPL475+DPL361+DPL183+DPL504+DPL60+DPL394+
DPL489+DPL155+DPL228+DPL473+DPL215+DPL212+DPL392,x=T, y=T, data = train)
cal1 <- rms::cal... |
735a3f75b25966b496b03d8f2f79baace162d6ee | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/selectMeta/examples/pPool.Rd.R | 5503e5f8d935efc584af1c2dde613644a9de0c74 | [] | 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 | 229 | r | pPool.Rd.R | library(selectMeta)
### Name: pPool
### Title: Pool p-values in pairs
### Aliases: pPool
### Keywords: distribution htest nonparametric
### ** Examples
# This function is used in the help file for the function DearBegg().
|
5d2daf6c373efc7e7eefbb762519ca3416bb21d5 | 43c714b49291d0781209b8a2ef7965481906d866 | /man/V.PS.nov1.Rd | a0d19bb54cdeaaefc78d66bc28b973b154368187 | [
"MIT"
] | permissive | dosreislab/mcmc3r | b61afeae325695a5ba2a8df9140bbce317bfc682 | 918806995085c279941ba433bd87b404222608ad | refs/heads/master | 2023-05-13T09:55:37.203740 | 2023-05-03T00:48:21 | 2023-05-03T00:48:21 | 108,122,699 | 4 | 3 | MIT | 2023-01-30T11:03:05 | 2017-10-24T12:20:30 | R | UTF-8 | R | false | true | 609 | rd | V.PS.nov1.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/V.PS.nov1.R
\docType{data}
\name{V.PS.nov1}
\alias{V.PS.nov1}
\title{Object of class array output by Morpho after PA}
\format{
Object procSym
\describe{
\item{...}{Check \code{\link[Morpho]{procSym}} for more details}
}
}
\usage{
V.PS.nov... |
cfcab1cfa6edc2b2e8f4b342dc463837c3e2fa5f | b5b9a757a04a083e6cea43832a5af7d9b5ecfb54 | /hw4.R | ac286bbfec992b1cc3b0dc99ce0a6c84232d449d | [] | no_license | nockbarry/ASM-580-Stasitical-Learning | 8a00d6a5d89cc2c571a0e556494d5bb89ebf4b13 | aca13ae7ca9848ebdddd2d767ea1f14436f8b14f | refs/heads/main | 2023-07-07T19:28:19.289453 | 2021-08-16T17:26:12 | 2021-08-16T17:26:12 | 396,868,392 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,661 | r | hw4.R | library(tidyverse)
library(caret)
library(randomForest)
data <- read.csv('Titanic.csv')
data <- subset(data, select = -c(PassengerId,Name,Ticket,Cabin))
# Remember we have added "PassengerId" into the removal list
data <- subset(data, is.na(Age) == FALSE)
data$Survived <- as.factor(data$Survived)
str(data)
... |
5161499c6f1b7e4f77fc1569e4928d35aeb7f712 | b15fdcb6d9cd5da486da4c6631157fb84be184ce | /plot2.R | 3fb3c7839871031880d1ab98525c82ecad08d61d | [] | no_license | bilklo/Exploratory-Data-Analysis | d0b528436ee8dbe314d70b864b515c0a93a10be3 | 427d5850bde69ec8dc54723114cb09de624d3908 | refs/heads/master | 2021-01-01T06:50:20.851212 | 2015-03-22T11:59:28 | 2015-03-22T11:59:28 | 32,668,223 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 581 | r | plot2.R | plot2 <- function()
{
#load the NEI
NEI <- readRDS("summarySCC_PM25.rds")
#load the SCC
SCC <- readRDS("Source_Classification_Code.rds")
#Filter the data based in fips=24510
select<-filter(NEI,fips=="24510")
#summary all the emissions per year from all sources
summOfEmissions <- ddply(select,.(... |
acfe8d9748a51a29d5ad28549937e9e309caee63 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/nws/examples/nwsFetchTry-methods.Rd.R | d9a0d1a9f11a2a56f534bb58460fc8a9865f7889 | [] | 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 | 530 | r | nwsFetchTry-methods.Rd.R | library(nws)
### Name: nwsFetchTry
### Title: Fetch a Value from a NetWorkSpace (Non-Blocking Version)
### Aliases: nwsFetchTry nwsFetchTry-methods
### nwsFetchTry,netWorkSpace-method
### Keywords: methods
### ** Examples
## Not run:
##D ws <- netWorkSpace('nws example')
##D # If variable 'x' is not found in the... |
f86be5439d7157383eb115bd41ece5950c539dc8 | 023131dc04e74ed662b892099996fc3972de093a | /Paper Draft/remake_figures/Fig5/distance_deposition/distance_deposition.R | acbeb2cceaef76fdabab29bcccb1bf5209e74116 | [
"MIT"
] | permissive | Broccolito/LAPDmouse_Analysis | 13614d4efe1d68b0d77a14f6ccc3fc196a2139cc | 8aef0b295f2272d478066a4003fe28b7db57bf13 | refs/heads/master | 2022-11-28T20:20:51.622353 | 2020-08-04T08:51:33 | 2020-08-04T08:51:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,125 | r | distance_deposition.R | rm(list = ls())
graphics.off()
gc()
library(ggplot2)
library(dplyr)
library(rgl)
get_directory = function(){
args <- commandArgs(trailingOnly = FALSE)
file <- "--file="
rstudio <- "RStudio"
match <- grep(rstudio, args)
if(length(match) > 0){
return(dirname(rstudioapi::getSourceEditorContext()$path))
... |
e3b88153a14e95107c6101d47f818fa2890784d6 | de2e025edb41e8acf2efef84b0deae4d5a5cf3a3 | /src/multiNMF_residue_comodule.R | 91a173be890d356cb01e3df78ee60a55cb0314d4 | [] | no_license | ThallingerLab/IamComparison | 4ec0af83ec9b3708ef8016c9e6bec75cccfd284f | 52f48eecef51addd9564946145290f79b1782809 | refs/heads/master | 2021-09-10T11:26:34.881433 | 2018-03-25T16:28:24 | 2018-03-25T16:28:24 | 114,128,981 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 958 | r | multiNMF_residue_comodule.R | multiNMF_residue_comodule = function(Xlist, K, nloop, maxiter){
verbose = 1
# nloop = 100
# maxiter = 1000
ni = lapply(Xlist, nrow); mi = lapply(Xlist, ncol)
n = ni[[1]]
bestW = matrix(0, nrow = n, ncol = K)
bestHlist = mapply(function(X,m) { matrix(0, nrow=K, ncol=m)}, Xlist, mi)
names(bestHli... |
6653fd17948e61f7a7c7151013a7fe3010a2b189 | 04c7f9dbc8447b6626b0b96cd6d9f84608213e95 | /knn sucess.R | 6dd46059b136a2625fd1d5b6c7c46e1cd37d180b | [] | no_license | Loshiga/LungCancerDetection_DataAnalytics | 8edc548709b6aa02d236d38ce0ceb1a93b56c1af | 1dedfb7f22ebcfafff54f830534db00b2b9b4ce2 | refs/heads/main | 2023-04-27T01:28:06.564923 | 2021-05-17T20:32:22 | 2021-05-17T20:32:22 | 366,520,650 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,227 | r | knn sucess.R | cancer <- read.csv("~/Desktop/LosProject/cancer-patient-data-sets.csv")
View(cancer)
dim(cancer)
table(cancer$Level)
x = subset(cancer, select = -c(Patient.Id,Level))
View(x)
dim(x)
data_norm <- function(x) { return((x) - min(x))/(max(x) - min(x)) }
data_norm
#wdbc =
#data(wdbc)
wdbc_norm <-as.data.frame(lapply(canc... |
12e9f796a2b6268a00f475685141e43a92ea3a8b | a481c6b19b700981a7ea880868f0f3e445fe3488 | /Cleaning/PHCleaning15.R | 84b0543e921b5f34a86cee732779d0c8a20bf16a | [] | no_license | MarianneLawless/Irish-Suicide-Data-Analyis | f2a26d99f805834fa372382f4856318731f359ac | d23610318ceccba1032319428e5d01d34fbd8024 | refs/heads/master | 2023-03-17T18:01:35.797447 | 2019-05-14T10:49:10 | 2019-05-14T10:49:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,704 | r | PHCleaning15.R | #set directory
setwd("C:/Users/Alexander/OneDrive - National College of Ireland/4th Year/4thYR Project/Datasets/Final Code/DATA - CSO&PIETAHOUSE/PietaHouse")
#load csv
Gender2015 <- read.csv("2015Gender.csv", stringsAsFactors = FALSE, header = TRUE, sep = ",")
#print dataframe
print(Gender2015)
#Identify NA's
sapp... |
312c601ccd2aae0cae0f77c3ed0495a8c56ec386 | c8c6fa007193c26b4a93cab4dc40b81350a5a23c | /1.RF_Bruvs_dominant.R | 0fb24f495a94054d67ab5edd3ed28901ee3e96a2 | [] | no_license | anitas-giraldo/GB_Habitat_Classification | ba15fa35deae813f6bdb787e76965962eb9579bc | e3def2c2d6fefe84af436e629dc8de771f92e16c | refs/heads/master | 2023-07-13T05:08:24.823385 | 2021-08-15T22:54:33 | 2021-08-15T22:54:33 | 253,971,022 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 23,175 | r | 1.RF_Bruvs_dominant.R | ########################################################
###### Script -- Random Forest - BRUVs data - v1.0 ##############
### Load libraries ----
library(FactoMineR)
library(factoextra)
library(ggplot2)
library(ggthemes)
library(cowplot)
library(randomForest)
library(sp)
library(rgdal)
library(raster)
library... |
5b345a60c594b4ee1ab8af8f237b62f6b5d683be | e11f24d2b742a6b775035b950486ca2a0a598c9c | /Sales/ui.R | 2fb0a45d5b60304c33a8ceefebd87efd83e248d9 | [] | no_license | jdmeyer73/ddp_shinyapp | dd99991e3327861af45b45fcdab800c9af02d43b | 988dfb9e4f02d1f99d5bd283696bf542f4d04608 | refs/heads/main | 2023-08-08T07:41:44.930177 | 2021-09-07T15:39:36 | 2021-09-07T15:39:36 | 404,027,668 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,467 | r | ui.R | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
library(shiny)
# Define UI for application
shinyUI(fluidPage(
# CSS style
tags$head(
tags$style(HTML("hr {border-top: 5px solid #FF0000;}"))
),
# Application tit... |
8f7069f7ef20a3c56b9716b189395167e4f8d0f0 | 87e7afad6293e214dfdf9aa4d75f4937bdd5e36e | /R_scripts/Generate_reports.R | 6f0b40059c6ba37e826baeb3fbae6606288b5db4 | [] | no_license | eleinis/SCBImortality | 9f798d2a7b72ea25b3138c2e28852ef3ac5503ab | 90070954e06975634baad0daba32f7d6e44a7d78 | refs/heads/main | 2023-07-05T08:51:33.197247 | 2021-08-03T13:57:44 | 2021-08-03T13:57:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 26,560 | r | Generate_reports.R | # Generate reports looking at latest mortality census raw data ####
## this script is run automatically when there is a push
# clear environment ####
rm(list = ls())
# load libraries ####
library(here)
library(readxl)
# load latest mortality data ####
## get the name of latest excel form
latest_FFFs <- list.files(... |
b0c5d1bf4323ebc0220d93bf6e1dc60fbda0bc2e | 324f644bc81e1152da777bbb6972ea98a18ba945 | /R/Gffreader.r | 9afe971c98d5e753ed06538e1f853e078af3f455 | [
"MIT"
] | permissive | krishb11/NatTuretzek | 2b4677181239085c0fbeb1b1debe7f896be25462 | 5df2f770d3ddf3cc4adb9bd81d77752d556d3b9b | refs/heads/main | 2023-05-04T00:24:10.856560 | 2021-05-13T04:38:47 | 2021-05-13T04:38:47 | 341,111,042 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,991 | r | Gffreader.r | library("dplyr")
library("readr")
library("Biostrings")
#' Constructor and automated function of class MyDeep to read the gff output after exonerate and extract CDS data
#' @param file: path to gff file.
#' @param species: species that was annotated.
#' @param style: Already set to exonerate, can be modified to use fo... |
1143772c7950dcb0757a508ca062e05f9d3293c9 | 2d2491b342b737d2801cb964b3e4ccf960ee5fed | /man/rp.logistic.Rd | d3c99551f92cf362bfa1d3a46604711a5b19a1c5 | [] | no_license | cran/rpanel | 7f64c93985c228f909f313bdf283b816b084f3ec | b2d139fedc899592e8cd9132c4bf7f1c9b16bc0d | refs/heads/master | 2023-02-21T17:57:55.911293 | 2023-02-07T07:21:06 | 2023-02-07T07:21:06 | 17,699,324 | 1 | 3 | null | 2015-12-05T19:08:29 | 2014-03-13T06:10:11 | R | UTF-8 | R | false | false | 2,595 | rd | rp.logistic.Rd | \name{rp.logistic}
\alias{rp.logistic}
\title{Interactive display of logistic regression with a single covariate}
\description{
The function \code{rp.logistic} plots a binary or binomial response variable
against a single covariates and creates a panel which controls the position of
a logistic curve an... |
6195a0411af234b0bf2ff4e697ff7b5a1c033069 | 24b88b18ee7108bf133b074ee0a97970077413a8 | /dataAnalysis/dataAnalysis.r | 9cc212bde8fcd08ade1a0e5b4287ad48ca57f330 | [
"MIT"
] | permissive | afarcome/LMrectangular | 7b9c9c3d4a81baf4d50130dc62805eee079c5503 | a726ff32158e975d45e11d57c3a0a5a37ece0274 | refs/heads/master | 2020-03-10T07:09:06.343238 | 2018-06-19T13:28:34 | 2018-06-19T13:28:34 | 129,256,309 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,020 | r | dataAnalysis.r | rm(list=ls())
load("HDIdata.rda")
y=array(NA,c(164,6,3))
nams=HDIdata[1:164,2]
u=unique(HDIdata[,1])
for(j in 1:6) {
for(h in 1:3) {
y[,j,h]=HDIdata[HDIdata[,1]==u[j],h+2]}}
source("codeKvariable.r")
x=c(0,0.05,0.1,0.15,0.2,0.25,0.3,0.35,0.4,0.45,0.5)
library(snipEM)
library(mvtnorm)
set.seed(12345)
rl=list()
#... |
fe952e376d1c566d4bbbd9114762f46c0adfb492 | 9fda538efa5f6cd2a5cecc2df29600871b537d6a | /simbionet/cf_cl.R | d9994c43217d148c226ae9632b1cb4556b031b70 | [] | no_license | mfalda/gen-net-sim | f4b84e8215e4ffcf117099e2d096ee4e61b50915 | 3018f43d4e8dfbf4e37593af8d7d22171061f3ea | refs/heads/master | 2021-03-12T20:00:20.007538 | 2015-08-25T07:34:52 | 2015-08-25T07:34:52 | 41,350,192 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 109 | r | cf_cl.R | library(SimBioNeT)
MOD<-createMOD(m=4,auto=FALSE)
net2<-SBNT(N=20,MODULES=MOD,Cf.cl=0.1,sepgraph=FALSE)
net2 |
f6c1c9550a7d125e6ee0fd783e8557f5dcb312fc | 242a06fd956601e453d59869b8df690cbef09223 | /tests/testthat.R | 8757f0cd40ea3cdc23ea36186c62f35447d38b5d | [] | no_license | chambm/proBAMr | d890b0458075b7f44c4181debe3a9c5a40765b56 | a03edf68f51215be40717c5374f39ce67bd2e68b | refs/heads/master | 2021-01-19T14:40:08.539433 | 2017-09-25T14:57:36 | 2017-09-25T14:57:36 | 88,178,516 | 0 | 1 | null | 2017-04-13T15:17:07 | 2017-04-13T15:17:07 | null | UTF-8 | R | false | false | 58 | r | testthat.R | library(testthat)
library(proBAMr)
test_check("proBAMr")
|
e7c942575d65ed776404a750d95e062155477ff7 | 29585dff702209dd446c0ab52ceea046c58e384e | /nFactors/R/eigenComputes.r | 0f381ab8688a68e2efd5e9392519f1b328a520dd | [] | no_license | ingted/R-Examples | 825440ce468ce608c4d73e2af4c0a0213b81c0fe | d0917dbaf698cb8bc0789db0c3ab07453016eab9 | refs/heads/master | 2020-04-14T12:29:22.336088 | 2016-07-21T14:01:14 | 2016-07-21T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 779 | r | eigenComputes.r | eigenComputes <-
function(x, cor=TRUE, model="components", ...) {
dataType <- eigenFrom(x)
if (model == "components") {
res <- switch(dataType,
eigenvalues = as.vector(x),
correlation = {if (cor == FALSE) eigen(x)$values else eigen(cov2cor(x))$values},
data = {if (cor == TRUE) e... |
09dac0c2c31e8b7f9168ce697d16bc55e151de69 | 017414614b3d26ea10faa775fc3d4e630752ddd1 | /R/class_aws_fst_dt.R | 3769770b9616e2a759deff26cfbb239418ec6b66 | [
"MIT"
] | permissive | krlmlr/targets | 4822815b7ae412af115296e5010de2edc61d1c50 | a8cbf46ce5d2274bd623085be749af3059ce6083 | refs/heads/main | 2023-04-13T16:43:18.213413 | 2021-04-21T20:29:07 | 2021-04-21T20:29:07 | 360,385,953 | 1 | 0 | NOASSERTION | 2021-04-22T03:55:53 | 2021-04-22T03:55:53 | null | UTF-8 | R | false | false | 474 | r | class_aws_fst_dt.R | #' @export
store_new.aws_fst_dt <- function(class, file = NULL, resources = NULL) {
aws_fst_dt_new(file = file, resources = resources)
}
aws_fst_dt_new <- function(file = NULL, resources = NULL) {
force(file)
force(resources)
enclass(
environment(),
c(
"tar_aws_fst_dt",
"tar_aws",
"ta... |
61cbcab8b8f48ee4a8e66c40c6e7e326a9cdacf3 | 182077890d03295aa56c4b6a320184e42da190c8 | /man/modulesil.Rd | 2e2526d2143739d74abd38ed59590d1c6ce6dc6e | [] | no_license | xiaowenchenjax/epihet | c5bd97c1e2d6cb06031fde866103cb8e28e07729 | 76da52b7b395233bc8f0de269cdeff02e6103196 | refs/heads/master | 2020-03-12T15:37:25.806931 | 2018-04-23T13:24:49 | 2018-04-23T13:24:49 | 130,694,955 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 487 | rd | modulesil.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{modulesil}
\alias{modulesil}
\title{modulesil}
\format{A data frame with 501 rows and 3 variables:
\describe{
\item{gene}{gene of module CEBPA_sil}
\item{label}{label of module CEBPA_sil}
\item{color}{color o... |
34d588c8c2804516f0f23043975e29b8a0f1ac75 | 8fa69232aa51e5de4d9cc0646eb37fa8a31fa3c9 | /conversion-rate/analysis/logistic-regression.R | d3c18641556bf36e8efaa05023d4e57ea9fc03d6 | [] | no_license | sabman83/data-analysis | e8ef5baf8a3613a34eccbf9c4289824162123100 | bd8e11406b039b3cc3117faa2f2305aafb295bba | refs/heads/master | 2020-12-24T08:37:37.152127 | 2017-01-07T16:49:44 | 2017-01-07T16:49:44 | 73,334,283 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,993 | r | logistic-regression.R | glm.model <- glm(converted~.,data = conversion_rate_table, family = binomial)
summary(glm.model)
glm.probs = predict(glm.model, type="response")
glm.pred = rep(0, nrow(conversion_rate_table))
glm.pred[glm.probs>0.5] = 1
table(glm.pred,conversion_rate_table$converted)
1 - mean(glm.pred == conversion_rate_table$converted... |
8fecea123c4b5b7a72e3fe60fdafde4a5ec2c317 | ba173389ff874bc1c48437625a48d75905630629 | /SA.r | 35d8643922b03765fd097525f24a7e995c7e5f64 | [] | no_license | mina20/soec | b32c9d435c038be281d618c8e3f1342423a7653e | a8d617f464f76223cd5a6dc6fae498436a00d91f | refs/heads/master | 2020-12-02T22:48:20.707832 | 2017-07-04T06:52:31 | 2017-07-04T06:52:31 | 96,184,605 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 692 | r | SA.r | #simulation anneling
func<-function(x1,x2){
y= (x1+2*x2-7)^2+(2*x1+x2-5)^2
return(y)
}
T<-1000
step<-0.05
r<-runif(1,0,1)
eps<-0.001
for(T in 1000:1){
for(i in 1:10){
x1=runif(1,-1,1)
x2=runif(1,4,5)
x1_new=x1+step*runif(1)
x... |
8b4c5456b0799119116efdb0f0bdb52aeaccb6e3 | b891263728fc0108d3701ec9723b627a6d6f484a | /R/createFormulaFromDF.R | cd3803d05b762ae6e3b2273cf2f4750d1d9495f2 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | limnoliver/GSqwsr | 2218a40432f75107b31eb1a50168858032635b85 | 0a59fe050eb851de54b0567c317bd07a1b0b099a | refs/heads/master | 2021-01-01T18:47:17.291369 | 2015-10-14T20:57:49 | 2015-10-14T20:57:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,060 | r | createFormulaFromDF.R | #'Creates text for upperBoundFormula from a dataframe
#'
#'Creates text for upperBoundFormula prelimModelDev formula. Takes a dataframe (df), one column
#'is named 'Scalar', and one is named 'variableNames', the rest are the available parameters. Each row in the data
#'contains one of the available parameters. For ever... |
e2a86f21a92dab054bb047855a4b0e0873e5cf40 | b648e8fc3c21cb8779855d0bbd180bcdcc5a0fcd | /R/qqmathFitted.R | 9fc730bbbf0ac18bda29d845d8fa48536273b091 | [] | no_license | christopherggreen/cggmisc | e65651b889cdc17c8c44175197fc71377fef24af | 69d089ef02f2cd24ebb13e24fcda6373eb9b7abf | refs/heads/master | 2020-05-28T14:01:21.059600 | 2016-08-22T10:09:43 | 2016-08-22T10:09:43 | 20,460,039 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 9,771 | r | qqmathFitted.R | ### Copyright (c) 2012 Christopher G. Green <christopher.g.green@gmail.com>
###
### This file is part of the cggmisc package for R.
###
### This program is free software; you can redistribute it and/or modify
### it under the terms of the GNU General Public License as published by
### the Free Software Foundation; eith... |
33ac0d98a30247749515292a6ed675d421951462 | 91e1df32aa1436f3361311d35c1cb622de80d897 | /tests/testthat/test-tt_read_data.R | 8ce71dda321ef346ef25168e5e5205bc1d5c4514 | [
"MIT"
] | permissive | BESTDATASCIENCE/manosaladataR | deb3d53fbaeb66308092c16b23aa0165bf77e9de | 5ce0bc7cd906aa34c16d8d79dc185ee3cfb8c86b | refs/heads/master | 2021-03-15T14:29:06.868402 | 2020-03-13T13:01:15 | 2020-03-13T13:01:15 | 246,857,200 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,799 | r | test-tt_read_data.R | context("test-tt_read_data")
test_that("tt_read_data only works for numeric,integer, or character entries", {
tt_gh_data <- tt_load_gh("2019-01-15")
numericRead <- tt_read_data(tt_gh_data, 1)
integerRead <- tt_read_data(tt_gh_data, 1L)
characterRead <- tt_read_data(tt_gh_data, "agencies.csv")
numericRead <... |
ff8ab91e8b92e88caaf16e3ea6dde786eb97e6ee | e35ef3815b5b4afd1944b25f31e019ccbe84744b | /8 - Count Data/03 - SCRIPT - Modelos para Dados de Contagem.R | 27d7c8d2efb863803fea2a611778244bd4313c44 | [] | no_license | juanalencarvagas/RLang | 48741ddd13b65b7ef66c167688e53bbe7486b1e0 | 35d443d2e045274011862e32f569d543cb3d6a26 | refs/heads/main | 2023-08-23T00:49:17.893365 | 2021-11-03T16:51:32 | 2021-11-03T16:51:32 | 423,021,170 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 32,094 | r | 03 - SCRIPT - Modelos para Dados de Contagem.R | ################################################################################
# INSTALAÇÃO E CARREGAMENTO DE PACOTES NECESSÁRIOS #
################################################################################
#Pacotes utilizados
pacotes <- c("plotly","tidyverse","knitr","kableExtra","r... |
e9f8e547aa21d42e23f450a7ad728d5c3f0287bd | 0f644a0675c39d23f6348df4a526c7877f4c8b92 | /man/square_lookup.Rd | 8901351fa6f9aaff249ae80cf3f25a916345f105 | [
"MIT"
] | permissive | MatthewJWhittle/osgridref | 30cab8c2b013b6ab3d66f956b15953f148f04189 | cbdee65b45097f10d29a22cf8e7989e5b3ae5556 | refs/heads/master | 2022-11-14T18:37:11.910337 | 2020-07-10T10:38:05 | 2020-07-10T10:38:05 | 268,344,191 | 0 | 0 | null | 2020-06-01T07:05:27 | 2020-05-31T18:57:03 | R | UTF-8 | R | false | true | 564 | rd | square_lookup.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/square_lookup.R
\docType{data}
\name{square_lookup}
\alias{square_lookup}
\title{Square coordinates of the British National Grid}
\format{
A data frame with 104 rows and 3 variables:
\describe{
\item{x}{xmin of grid square}
\item{y}{ymin of g... |
7150fec729f87060bf2480a72f6854313851ae23 | 4ff5c316a1b88fc5856bb0ad2bb78060ffc90597 | /man/cv_entries.Rd | cecf4cb3785b55812cd27edccfd7677a9d4022f3 | [] | no_license | erex/vitae-etaremune | 874225212c8ba529f36884e68cc27d44bdba9a7c | 1cee6f6367e6b0fd5117b0cd20a190416130bcbb | refs/heads/master | 2020-04-17T08:03:18.600693 | 2019-01-18T11:46:57 | 2019-01-18T11:46:57 | 166,395,823 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,258 | rd | cv_entries.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/brief.R, R/detailed.R
\name{brief_entries}
\alias{brief_entries}
\alias{cv_entries}
\alias{detailed_entries}
\title{CV entries}
\usage{
brief_entries(data, what, when, with, .protect = TRUE)
detailed_entries(data, what, when, with, where, wh... |
782a7b62abcd0706925030c246f6969558591d85 | bae91e2a131a521f72b953682c0e2c0255d8905e | /plots_files/table_ics.R | ecb76e765c6eba8848d1440d5f2dbe93e695805e | [] | no_license | McKers/hidiTS_backup | fac9785997aca0f03f103b37f85ec15c39d0321d | b0c844cbddd43f9525abd5803cbb18c11ff8b750 | refs/heads/main | 2023-03-06T20:38:32.469603 | 2021-02-25T19:24:38 | 2021-02-25T19:24:38 | 342,270,122 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,267 | r | table_ics.R | #Latex table MSES
library(xtable)
load("simulated_data/raspberry_paper_medium_lambda_ext.RData")
sim_data_medium <- simulated_data[!duplicated(simulated_data[c('n','T')]),]
ns <- c(5, 10, 30, 50, 100,300)
Ts <- c(7, 15, 30, 50, 100, 300)
data_medium <- sim_data_medium[ which(sim_data_medium$T %in% Ts
... |
494729b33391ca92aef5b53f373d555cbdb396e1 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/simPH/examples/coxsimPoly.Rd.R | b70a43321c54233b8831dd6b3e8bb105e994c248 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,035 | r | coxsimPoly.Rd.R | library(simPH)
### Name: coxsimPoly
### Title: Simulate quantities of interest for a range of values for a
### polynomial nonlinear effect from Cox Proportional Hazards models
### Aliases: coxsimPoly
### ** Examples
# Load Carpenter (2002) data
data("CarpenterFdaData")
# Load survival package
library(survival)
... |
83bcd4430fcd3c0d6a515eb0ac1893d3b0a87d25 | 5e85df6e3edead3eca4a2a4730f1705d1228c23d | /unsorted_code/funzioni erpR altre/average.mean_ver2.R | 1a548a243be1620adf1a5128706d1dca9b4feb72 | [
"MIT"
] | permissive | giorgioarcara/R-code-Misc | 125ff2a20531b2fbbc9536554042003b4e121766 | decb68d1120e43df8fed29859062b6a8bc752d1d | refs/heads/master | 2022-11-06T14:44:02.618731 | 2022-10-26T07:34:09 | 2022-10-26T07:34:09 | 100,048,531 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 887 | r | average.mean_ver2.R | ### INCOMPLETA!!!
average.mean <-
# in questa funzione non uso più base e numbers, ma obj. Non l'ho più sviluppata perché creava casino di consistenza tra soggetti.
function(obj, win.ini, win.end, Subject.n=F, env=.GlobalEnv, startmsec=-200, endmsec=1200)
{
datall=NULL
for (i in 1:length(obj))
{
average.... |
03f63e713ec71bbb322968f838c1c43c9985f287 | 9159536fcc484215c0e89a16e6d177e67a940db8 | /3st Semester/Statistical Consulting1/통계의뢰1,2/2/[통계상담] 작업 문서/ing.R | 9963f507628e0cc6f1746382e4149d7312fa4713 | [] | no_license | ehdrb5011992/Statistic | 6410cdff87e3a1672d1ac0accb58fa1207ea899f | 9475d33552d92eb78905919703924247c6acf4d3 | refs/heads/master | 2021-07-25T07:23:45.566270 | 2020-09-28T14:30:16 | 2020-09-28T14:30:16 | 220,902,621 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 13,754 | r | ing.R | # https://every-day-life.tistory.com/29 참ㄱ
library(tidyverse)
library(survival)
library(survminer)
library(randomForestSRC)
library(clinfun)
# 1. data 가볍게 전처리 ########################################
x= read.csv('C:\\Users\\82104\\Desktop\\600.csv',header=T)
head(x)
name <- colnames(x)
colnames(x) <- c("a",... |
4df8bf8078f31305061c9399060f2e4952e8aa6d | e00befe0f92d42dd1f97e9304973f4b22da03af5 | /BCS_tQQplots/BCS_tQQplots.R | 96f7a0ee297ab0e47f84b23a110606b7b1b13dbf | [] | no_license | QuantLet/BCS | a706ffdc3cf8777b5443b2c66ff601c3bc517ee0 | 4a5d9fc2c058e5e02534ccb37898d9e9cf2edd9e | refs/heads/master | 2023-04-03T23:59:31.647499 | 2023-03-27T22:14:39 | 2023-03-27T22:14:39 | 51,316,067 | 4 | 10 | null | null | null | null | UTF-8 | R | false | false | 393 | r | BCS_tQQplots.R | par(mfrow = c(1, 2))
# create random sample which is t-distributed
x = rt(100, df = 3)
# quantiles of t with 3 degrees of freedom
qqnorm(x, col = "red", pch = 20, asp = 1)
# line of perfect fit
qqline(x)
# create random sample which is t-distributed
y = rt(100, df = 100)
# quantiles of t with 100 degrees of freedom
q... |
2232f69000b13e9febafd37415ff808d3a129090 | 0a906cf8b1b7da2aea87de958e3662870df49727 | /diffrprojects/inst/testfiles/dist_mat_absolute/libFuzzer_dist_mat_absolute/dist_mat_absolute_valgrind_files/1609962288-test.R | 9a49fa2b2f650c90efd4ff2f990e0393ab2f277f | [] | no_license | akhikolla/updated-only-Issues | a85c887f0e1aae8a8dc358717d55b21678d04660 | 7d74489dfc7ddfec3955ae7891f15e920cad2e0c | refs/heads/master | 2023-04-13T08:22:15.699449 | 2021-04-21T16:25:35 | 2021-04-21T16:25:35 | 360,232,775 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 502 | r | 1609962288-test.R | testlist <- list(x = c(673872499L, 1952735075L, 1869443186L, 1702064991L, 1651471726L, 1680418915L, 1869509492L, 543780468L, 704632055L, -24673L, -1616928865L, -1612720385L, -1L, -218103809L, -702277039L, 1358954496L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L... |
20642f84586f077949c6e3887b6ac00c43532081 | 706a46c04c3b0f90a5c89137d5f6f353a627f5f5 | /man/xlex.Rd | a7cb70a1f8dd74de1d8cc4f76b9ce42a4cfcd4eb | [] | no_license | cran/modgetxl | 5d227bab3a5507539a367278f6d9864decd59d20 | a54bf7ece3b29a956ad93af905951aadcc7a2680 | refs/heads/master | 2022-11-18T17:31:49.747642 | 2020-07-09T03:50:03 | 2020-07-09T03:50:03 | 276,696,728 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 763 | rd | xlex.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xlex.R
\name{xlex}
\alias{xlex}
\title{getxl Examples}
\description{
use shiny module getxl/UI for interactive input of Excel files
}
\examples{
library(shiny)
library(modgetxl)
app<- shinyApp(
ui= uiOutput('xltest'),
server= function(i... |
6b23e1dcd96c914a9b455f62620bd909dc7c4776 | 41ccd221d0e284df19df4e7d79b320b46a85534d | /plot1.R | a7ff8d43ccb9fb024cc09ffabc94938f3d13ee42 | [] | no_license | kottawartushar/EDA_Week1_Project_Assignment | 818c5e1d91a3ad833214237da91ef7ac9109d19c | f39457e0410cdc43948d3742baf89700eaf687ad | refs/heads/master | 2022-11-13T04:32:34.945065 | 2020-06-27T14:38:47 | 2020-06-27T14:38:47 | 275,377,607 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 330 | r | plot1.R | read_file <- read.table("household_power_consumption.txt", header = TRUE,
sep = ";", stringsAsFactors = FALSE, na.strings = "?")
##head(read_file)
subsetDate_data <- subset(read_file, Date %in% c("1/2/2007", "2/2/2007"))
subsetDate_data$Date <- as.Date(subsetDate_data$Date, format = "%d/%m/%Y")... |
9ba6a49b7a7262038e7d77313f77e855eaf30b8d | a6905d66cb5948f3487068a758a828c9b4fb3588 | /allCountries/analysis_visualization/helpers.R | 75d3079307c9b5102d2bf3df1af3b127ca2a4b4d | [] | no_license | rahulAgrBej/seafoodGDELT | 2d82fe7a50bf62e2f12975b43c9135732dab006c | 02dd08efa9f9b3d4547072234bb740491fb191e0 | refs/heads/master | 2023-07-15T01:00:23.057648 | 2021-08-20T11:32:31 | 2021-08-20T11:32:31 | 266,158,045 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,826 | r | helpers.R | library(tidyverse)
library(ggplot2)
library(dplyr)
shock.id <- function(dat, thresh=0.25){
# dat is your time series data and threshold is the threshold you want for Cook's D (defaulted to 0.35)
outt <- array(dim=c(length(dat), 3))
x <- 1:length(dat)
ll <- lowess(x, dat, f=(2/3)) # Fits lowess curve (can speci... |
ff02637a211e84b00de8376b6892607ee768a966 | 25801cec4425eb9cfa37136451af3c6a73ff843b | /src/DAPC.R | 9b6d8d98b0367f87e1a8c332e3816fc437d77dfe | [] | no_license | rameshbalan/Tribolium_GWAS | 43e8aefcf9c43a9deb55ca80fc73dc95e4a92d8a | b84943f6ae6d1a1600f18fd118183cc24f148fd6 | refs/heads/master | 2020-04-29T12:52:43.049910 | 2019-03-19T01:19:27 | 2019-03-19T01:19:27 | 176,152,644 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,036 | r | DAPC.R | # All the necessary packages
library(adegenet)
library(vcfR)
library(poppr)
library(ape)
library(RColorBrewer)
library(igraph)
library(ggplot2)
# Input file
Ordered_All_Pop_file <- read.vcfR("Ordered_All_Samples.vcf")
# "pop.txt" file has two columns separated by tab. First column is the name of the sample and the se... |
b9904df737be80b81aebdd2413630d87bf2ae019 | 6ed0753528e9d9cc12ff9195b2e6c65409daec3e | /Scripts/quiz3.R | 7c8eaf94a01dd575a9d377475c4d48b0d205622e | [] | no_license | p234a137/JohnHopkinsR | fbf581cd1a83a0519429da6b42d0200d0fb9f0c6 | 6da57f7c3433175303091964dea5fa9a708a21d4 | refs/heads/master | 2021-01-23T21:38:29.644906 | 2014-12-23T04:28:03 | 2014-12-23T04:28:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 297 | r | quiz3.R | library(datasets)
data(iris)
?iris
# mean(iris$Sepal.Length)
apply(iris[, 1:4], 2, mean)
with(iris, tapply(Sepal.Length, Species, mean))
library(datasets)
data(mtcars)
with(mtcars, tapply(mpg, cyl, mean))
# or equivalent
tapply(mtcars$mpg, mtcars$cyl, mean)
with(mtcars, tapply(hp, cyl, mean))
|
8888f77d41fb1e2001b05f2a96e62a7389d9092c | ade25271ba3b3e47edf7cf9d9b13f30b753b1350 | /Parcial03/Notas de clase/1. Anualidades tiempo continuo-R/Ejemplo.simula.geo.lineal.r | aa41219f664f62b95d131bd46c14542936c31d21 | [] | no_license | Universidad-Nacional-Academica/Actuaria | 93659d85b2ea79015616d6eebb4cf531c1d17092 | ca01a86c9fe6ecd8fb160a3975c31534b511ffd2 | refs/heads/main | 2023-07-17T01:33:32.476569 | 2021-08-24T19:37:58 | 2021-08-24T19:37:58 | 358,053,044 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,548 | r | Ejemplo.simula.geo.lineal.r |
#--- parametros Gompertz-Makeham
M = matrix(0,4,3)
# mujeres-80-89:
a = 4.450e-03
b = 2.814e-05
C = 1.101e+00
M[1,]=c(a,b,C)
# hombres-80-89:
a = 4.918e-03
b = 1.559e-05
C = 1.107e+00
M[2,]=c(a,b,C)
# mujeres-00-08:
a = 4.444e-03
b = 5.017e-07
C = 1.143e+00
M[3,]=c(a,b,C)
# hombres-00-08:
a = 7.121e-03
b... |
4a1e5abfa74444ae7723e91665edf91f94fd0fd9 | 6c4191c8ddb41cd51333fbee225254bf244befc5 | /Okun-s Law/okun.r | cf283156d93eedac51e61b132514004d1b0da9dd | [] | no_license | py0717/Data-Analysis | a6d8b9b3645596ce606cb348ad2a8f4396caf10a | 713b614497293ba01242f6cda1419c823063196a | refs/heads/master | 2021-09-14T12:34:24.820685 | 2018-05-14T00:24:37 | 2018-05-14T00:24:37 | 113,804,677 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,746 | r | okun.r | ######################
# Testing Okun's Law #
######################
# Okun's Law (Differences Version) states that a 1 point increase in unemployment rate is associated with a 3 point decrease in
# real GDP (some texts suggest a 2 point decrease). We will test Okun's Law using annual data from Korea and Braz... |
1fdc4111993a42a47ae05e312e13f0f86055140a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/fluspect/examples/define.bands.Rd.R | b3123181438cbfe5680eab2b563f6f8368bc16b9 | [] | 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 | 142 | r | define.bands.Rd.R | library(fluspect)
### Name: define.bands
### Title: define.bands
### Aliases: define.bands
### ** Examples
spectral <- define.bands()
|
160b944f4da216d8ab781122dd5bab9533579cba | 5e6e88595a6547150ca64fa5a191c2ca7447138a | /tests/testthat/test_discrete_variance.R | 0b1088c55d0efaa06d2e8d5494b43b31b05ae8aa | [] | no_license | cran/BLModel | 2eff602cdc2c284967484239a9929252b1de0881 | 3b6b8747a4b8218df28e69a794a90be914d25c1f | refs/heads/master | 2020-12-31T00:18:03.669269 | 2017-03-29T05:38:36 | 2017-03-29T05:38:36 | 86,547,453 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 111 | r | test_discrete_variance.R | test_that("Input",{
expect_error(.discrete_variance())
expect_error(.discrete_variance(returns_coef))
}) |
8e114b68803ba9e3940888b36dc3b24c48ca9f32 | 074434c8c49b7deaf165a8345dab83e12e17f30d | /cachematrix.R | 7c6423f440ee354bf8a97e8104d9714d2850e2bc | [] | no_license | kmyoshida/ProgrammingAssignment2 | 17c2a8fa712e16d224fb9f6ba9ad08cb782ba98f | 2cf102186745453df1b11106c6067711c9c7872e | refs/heads/master | 2021-01-18T12:16:53.060031 | 2015-03-19T16:20:49 | 2015-03-19T16:20:49 | 32,326,222 | 0 | 0 | null | 2015-03-16T13:21:20 | 2015-03-16T13:21:20 | null | UTF-8 | R | false | false | 1,728 | r | cachematrix.R | ## makeCacheMatrix, cacheSolve
## Pair of functions to handle special "matrix" object that can cache its
## inverse
makeCacheMatrix <- function(m.x = matrix()) {
# Creates a special "matrix" object that can cache its inverse.
#
# Args:
# x: a matrix whose inverse is to be computed and cached.
#
... |
a3723b0e74c115deec15ef04bf9d34d9eb2300e9 | 9a19c5f4f1cad1e506d6b76066584e4923c0a825 | /R/cleaningscript.R | 6a31358b3135cc5586d1d6aeed92f427b90520a3 | [] | no_license | despresj/stt863 | 62b52a9d6e277fea50e37c5f1683339573a31369 | bc6ef8377054c9fc186093daf0c987e91e6cab06 | refs/heads/main | 2023-03-03T14:41:55.317472 | 2021-01-25T21:11:07 | 2021-01-25T21:11:07 | 309,518,062 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,821 | r | cleaningscript.R | library(tidyverse)
# Read and Clean ----------------------------------------------------------
files <- list.files(path = here::here("raw_data"), pattern = ".csv")
cleaning <- function(df){
df <- pivot_longer(df, cols = -country, names_to = "year")
}
data <- files %>%
map(function(x) read_csv(paste0("raw_data/"... |
19041b6334b4b97bc8d650573f8bbcd595df56f0 | b0167cf780b2b1b3f150c123aed5d4dbef2e7ff2 | /src/R/panels/console.R | faf84eb573b01fa1adaf2f24bc081650e9fab48b | [] | no_license | Wu-Li/QuoiR | 3f7cc4f25ba6bdfeb8441350b1052c58f58542bc | d0d56a15e490a48017d4b2bdf2795e821bc34e2b | refs/heads/master | 2021-06-19T12:06:56.323331 | 2017-07-10T22:22:46 | 2017-07-10T22:22:46 | 26,001,667 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,855 | r | console.R | #Console Panel
output$console <- renderUI({
if(is.null(console$.out)) {return(div())}
results <- console$.out$results
types <- console$.out$types
hovers <- console$.out$hovers
widths <- console$.out$widths
div(
#withMathJax(
mapply(
function(result,type,hover,widt... |
3b3374fe0aa49eb4593bea592bed4f7d6c597d07 | 2ff934a8435c4a0bdfb108d2fcf1d36ede49ebfc | /s1-download-data.R | 8cb485d79fc317b044f43481b4c5ff7d4f6a288b | [] | no_license | andre-wojtowicz/uci-ml-to-r | 9de3a379a3b9e06a52b750c17e3c2583ed457d73 | f7debcd1545901815278f204a7cf9a8193b18285 | refs/heads/master | 2021-01-19T04:05:34.084404 | 2016-08-19T19:51:21 | 2016-08-19T19:51:21 | 63,508,847 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,395 | r | s1-download-data.R | # ---- download-data ----
source("init.R")
source("utils.R")
setup.logger(LOGGER.OUTPUT.S1.FILE, LOGGER.OVERWRITE.EXISTING.FILES)
flog.info("Step 1: download dataset collection")
for (dir.name in dir(DATASETS.DIR))
{
flog.info(paste("Dataset:", dir.name))
dest.dir = gsub(DATASET.NAME.PATTERN, dir.name... |
9d8c6981adb955b2e4d5a173bc35381195f1d22b | f4cbd423d21ca7dcbcc8095d8676ff245a06b14b | /scripts_sql.R | e9a25bf262a44920f1cb3092883133c7605315e9 | [] | no_license | DaoHai/R-data-carpentry | e84f1fb71e2e9a8d157d9da72767e7d0e1da3002 | b715e1df4794036c3f7e13ea00d30a028ef9f284 | refs/heads/master | 2021-01-10T18:02:19.962181 | 2015-10-30T16:08:06 | 2015-10-30T16:08:06 | 45,193,476 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,738 | r | scripts_sql.R | install.packages("RSQLite")
library(RSQLite)
#database connection
mydb <- "dbavecR.sqlite"
conn <- dbConnect(drv = SQLite(), dbname= mydb)
#Scriptted Querry
dbGetQuery(conn, "SELECT type, tbl_name FROM sqlite_master")
dbListTables(conn)
dbListFields(conn, "surveys")
dbGetQuery(conn, "SELECT count(*) FROM surveys")
... |
a2b46e038e15d9fc92063bb9c454980d2e54e0e1 | b12f39ce7b0740510ea2499cad444a772ede2169 | /hypothesis_test.R | 5473ee10721650b60402d020a2f8a2100a5f9bd2 | [] | no_license | edsonfajilagot/pupmas-dp | 5940cb5ff9a3e0194e5d349d06d517a78b51a324 | 4b8041bb5efd63ace8744290303a01641952b69a | refs/heads/master | 2022-11-11T06:18:30.266457 | 2020-07-04T08:13:11 | 2020-07-04T08:13:11 | 271,491,252 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 243 | r | hypothesis_test.R |
alpha <- 0.01
M <- 68000
Mbar <- 66900
Sdev <- 5500
n <- 30
z <- (Mbar - M)/(Sdev/sqrt(30))
z.alpha = qnorm(alpha)
pval = pnorm(z)
alpha = 0.05
tc = -2.2436 #calculated t-stat
t.alpha = qt(alpha, df=13)
pval = pt(tc, df=13) #p-value
|
e4fb9a3ed7dce2c3903a2c337283dc0d036fbe55 | 189e33f9fe11b60e361e9b196045f15c21147bf1 | /inst/Shiny/LINES_posterior_viewer/server.R | 3d71eca387e2f435337df3cf488f0424bdb00025 | [] | no_license | cran/EurosarcBayes | a47ba619e45d98cec11ff342d6b11297fa00fd87 | ebc493cfc482c10bbf490dbcc96c326d2da599b4 | refs/heads/master | 2021-01-10T13:17:31.911364 | 2017-11-15T17:09:23 | 2017-11-15T17:09:23 | 48,079,760 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,538 | r | server.R | library(shiny)
x=0:1000/1000
cex.main=1.5
cex.axis=1.5
# Define server logic required to draw a histogram
shinyServer(function(input, output, session){
############################################################################################
# reset app on close
session$onSessionEnded(function() {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.