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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bf94f1eb2223aef209c9480d9703027236e29ceb | b0ac70b2e2e91b62503cc3ae93ca5eedfaa53a2b | /BIP.R | 8117b50242bf88103d6aa1de89cc9170f035b0c8 | [] | no_license | matteopagliari/BIP_project | 07b5dca008fd56a52cd481d2d2c4dc1ef8fad712 | 7459fdb02ce2d9727565f71a6ba6457504843f53 | refs/heads/master | 2020-04-09T17:54:03.539851 | 2018-03-07T13:25:09 | 2018-03-07T13:25:09 | 124,237,794 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,538 | r | BIP.R | library(dplyr)
library(plotly)
library(ineq) #compute gini index
library(base)
library(stringr)
library(ggthemes) # visualization
library(lubridate)
library(forecast)
data=read.csv("./Desktop/Data and description for the course project/dataset_polimi.csv")
fdata <- data
fdata$Weekday <- wday(fdata$Data) #1=sunday
fda... |
838c8f25d235a4779cd020d96122be8046bc5cee | 0aa63f99a9ebe79e55cc09338d5bb4ce2377fd83 | /tests/testthat/test-253-guessDate.R | 076c2d8f3f9e95029038dddae4b94a9eab70a5b3 | [] | no_license | nutterb/redcapAPI | c13b890b5d33b40c134833155861ee42d44b06c7 | 9b7287106198581c352fc91492d83fc7806d2bd7 | refs/heads/main | 2023-09-01T07:41:41.326514 | 2023-08-28T14:02:23 | 2023-08-28T14:02:23 | 11,691,011 | 47 | 31 | null | 2022-11-03T22:49:05 | 2013-07-26T17:31:51 | R | UTF-8 | R | false | false | 1,326 | r | test-253-guessDate.R | context("guessCast.R")
x <- data.frame(
x=c("xyz", "2023-01-01", "", "2003-12-12", "2003-12-12", "2012-10-10")
)
test_that(
"no guess cast below threshold",
{
y <- guessDate(x[1:4,,drop=FALSE], rcon)
expect_class(y$x, "character")
}
)
test_that(
"guess cast above threshold",
{
y <- guessDat... |
9669f7c9b75178709537c91a73b84e30aeca7229 | abb57b664ab66644b0067c2e3f793412ebecf549 | /APLM hw03/APLM hw03.R | 2be76327625881a132d1f3fc50cb7a7cc2d6f845 | [] | no_license | oicjacky/Applied-Statistical-Linear-Model | c06662947287f9f9edcee1a22f1564488dc124ad | 244f8c4fc2f6bfc5b58b31b452cf9eb4f8ddc351 | refs/heads/master | 2021-01-02T14:56:29.292443 | 2020-02-13T06:50:52 | 2020-02-13T06:50:52 | 239,670,484 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,939 | r | APLM hw03.R | library(stringr)
setwd("D:/github_oicjacky/Applied Statistical Linear Model/APLM hw03")
data <- read.table("CH09TA01.txt")
colnames(data) <- c("X1","X2","X3","X4","X5","Y","lnY")
n <- dim(data)[1]
P <- 5 # 5 predict variable
#
R.square <- function(data , mod){
SSTO <- sum( ( data$Y - mean(data$Y) )^2 )... |
b38cfc47d9c3d94ca51bf83e5e3c32b63931f719 | 5f5eb8c35b60d449eaab8f021d403574903f37a0 | /Prácticas-20210209/laborforce.R | 42c36012a723359b2d59af098bcae695cb6bdeff | [] | no_license | Rodrigo-ui-svg/econometria | 20a0c26b92edd6b79128202d30a5e80b82e643b6 | a7c96a1293d5e0f4fae1f665edbf23ef7d62541f | refs/heads/main | 2023-03-03T22:25:07.355841 | 2021-02-09T17:55:35 | 2021-02-09T17:55:35 | 337,488,186 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,566 | r | laborforce.R | setwd("D:/ECONOMETRIA CLASE/Logistico")
# install.packages("pROC")
#cargamos paquetes
library(tidyverse)
library(readstata13)
library(lmtest)
library(pROC)
#cargamos base de datos
labor <- read.dta13("laborforce.dta")
head(labor)
unique(labor$lfp)
unique(labor$agecat)
unique(labor$wc)
unique(labor... |
a912074cda499e8ff7149bfc5a3b2d05ca98a430 | 29585dff702209dd446c0ab52ceea046c58e384e | /lshorth/R/plot.lshorth.R | 8a2c7e639b2abcf54a05bb11c2436c11940aa57d | [] | 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 | 2,930 | r | plot.lshorth.R | #$Id: plot.lshorth.R 92 2012-03-23 23:47:12Z gsawitzki $
plot.lshorth <- function(x, y, xlim = NULL, ylim = NULL,
probs=NULL,
main="Shorth",
xlab=NULL,
ylab=NULL,
frame.plot=TRUE,
legendpos="topright",
rug=TRUE,
rescale="neg", ...)
{
stopifnot(inherits(x,"lshorth"))
if (missing(ylim)) ylim <-NULL... |
4bdbcad475cc59f23327d4a840770339e1be535b | e9b3763e49902026caf817951aee9c20e52a1e93 | /man/fitted.blm.Rd | a2f941dea66edb1cc0c4eac8e674d94efb8b51cf | [] | no_license | MarniTausen/blm | 448d9dadaf9f66ac55c67007aaf26c5a914d3c4f | d17d46ae241177d04ed5fba422e0f85243cc3f5d | refs/heads/master | 2020-06-11T02:28:52.679437 | 2017-01-15T19:46:06 | 2017-01-15T19:46:06 | 76,023,351 | 1 | 0 | null | 2016-12-09T09:54:29 | 2016-12-09T09:54:29 | null | UTF-8 | R | false | true | 484 | rd | fitted.blm.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fitted.R
\name{fitted.blm}
\alias{fitted.blm}
\title{Extracted fitted response values}
\usage{
\method{fitted}{blm}(object, ...)
}
\arguments{
\item{object}{blm model object}
\item{...}{Additional pararmeters, forwarded to predict.blm()}
}
\... |
73a03d09af173207873d70a850495d02ffc264d6 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/HiClimR/examples/HiClimR.Rd.R | 5ce1b5c8618b095adb4cc6f341efa0a96c64eaa4 | [] | 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 | 9,551 | r | HiClimR.Rd.R | library(HiClimR)
### Name: HiClimR
### Title: Hierarchical Climate Regionalization
### Aliases: HiClimR
### Keywords: HiClimR
### ** Examples
require(HiClimR)
#----------------------------------------------------------------------------------#
# Typical use of HiClimR for single-variate clustering: ... |
3382ded47c649bf58ca25f78511e58cd724fdc0c | c6eca3d4330fa1560ada90c5dbb83264e7f04595 | /man/get_pos_based_seq_weights.Rd | 73a35e76ea12fac2394f47f54aeb9223021ff271 | [] | no_license | richelbilderbeek/BALCONY | 7248a94ddfd7588a2822f33613f070efdc1a3667 | 7d26159aa93d1f56427b88e26fb5448b82246ce3 | refs/heads/master | 2022-12-31T18:55:02.309956 | 2020-10-26T09:57:29 | 2020-10-26T09:57:29 | 307,326,223 | 0 | 1 | null | 2020-10-26T09:48:50 | 2020-10-26T09:48:50 | null | UTF-8 | R | false | true | 1,529 | rd | get_pos_based_seq_weights.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/conservationFuncs.R
\name{get_pos_based_seq_weights}
\alias{get_pos_based_seq_weights}
\title{Get position based weights of sequences in alignment}
\usage{
get_pos_based_seq_weights(alignment, gap = TRUE, normalized = TRUE)
}
\arguments{
\ite... |
34292e49779923c41f00fb73dd763f14f8e105a8 | 1ce37a2fabf5ffd64830f97c123621a5aadc30ce | /xgboost/prueba.R | b5957b845c32be25e270f159361f7e2a1b85b349 | [] | no_license | raulcarlomagno/dmuba-dm-economiafinanzas | b0f36a82d257cfdcacc291ed0035865faa7f0abe | 185f6f318f3c2e371f7f3df48e855d78a56af8ef | refs/heads/master | 2020-03-27T22:34:18.072842 | 2018-12-06T03:43:35 | 2018-12-06T03:43:35 | 147,242,696 | 0 | 0 | null | null | null | null | WINDOWS-1250 | R | false | false | 2,341 | r | prueba.R | #require(xgboost)
#
#
#data(agaricus.train, package='xgboost')
#data(agaricus.test, package='xgboost')
#train <- agaricus.train
#test <- agaricus.test
#
#
#bstSparse <- xgboost(data = train$data, label = train$label, max.depth = 2, eta = 1, nthread = 2, nrounds = 2, objective = "binary:logistic", verbose = 1)
#
#bstDen... |
4aad6dfd1645f40f2432b349968020f191d3a982 | 7ca7853ce06b347cc8618986ad9b38ac61969426 | /cachematrix.R | dbf045e402e30d5911feef48b63048365cb65c02 | [] | no_license | RichAlej/ProgrammingAssignment2 | e6f48108bc9bed2c77295db7a80dc8a5174ab293 | b6fff6a4bb3309b3dcacbeb987b10f5ac4809449 | refs/heads/master | 2020-12-27T10:49:58.257972 | 2015-10-23T22:40:09 | 2015-10-23T22:40:09 | 44,771,539 | 0 | 0 | null | 2015-10-22T20:31:14 | 2015-10-22T20:31:13 | null | UTF-8 | R | false | false | 1,790 | r | cachematrix.R | ## These two functions take a matrix and associate with functions that allow
##you to calculate and store the value of the matrix's inverse; this allows
##you to save computation time for this complex task in the case that you need
##to repeatedly refer to the Inverse of a matrix
## makeCacheMatrix() takes a matrix a... |
e9b008ae476c8a971f7f080998f4bb38190a7b4c | 13b21646937de87022c30c8512c0151d5bb3f03f | /openintro/man/immigration.Rd | 2306c0a5b975fe347f52ab989e1cd6002de92b0d | [] | no_license | mine-cetinkaya-rundel/openintro-r-package | 374a104b4241eec05fb4688a5231ba8979e59ad0 | 099da5b776784462f4ff384434cd7a517dfe37d6 | refs/heads/master | 2020-03-28T09:40:40.626621 | 2018-09-01T03:20:39 | 2018-09-01T03:20:39 | 148,051,227 | 2 | 0 | null | 2018-09-09T17:54:34 | 2018-09-09T17:54:34 | null | UTF-8 | R | false | false | 1,031 | rd | immigration.Rd | \name{immigration}
\alias{immigration}
\docType{data}
\title{Poll on illegal workers in the US}
\description{910 randomly sampled registered voters in Tampa, FL were asked if they thought workers who have illegally entered the US should be (i) allowed to keep their jobs and apply for US citizenship, (ii) allowed to kee... |
58d0f710ab1f7c9d17fa79b3653a81123375c607 | b58787ca244bec6e3788d2c875958b04a27fcd22 | /CSE845_Jan19_2012_PlayWithR/Jan19th_R_exercise.R | af735a91f8a935a9efd5a0deaeb91fb092d98b50 | [] | no_license | anhnguyendepocen/CSE845_R_tutorials | 917d4a479ea3d29afae7507c17710fdd2b0359a4 | 1c5a872de767f23a1ce9f0ff7802f522df98e1b0 | refs/heads/master | 2020-03-14T21:21:37.232080 | 2013-05-27T01:14:01 | 2013-05-27T01:14:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,513 | r | Jan19th_R_exercise.R | # A little script to show some of the useful arguments for read.table()
# I will explain this more later, but this will read in a dataset (from the course website in this case)
setwd('/Users/ian/BEACON_COURSE_2011/BEACON R tutorial/')
# Don't worry about the details for the moment
avida_data <- read.table('LZ_avida_... |
bb260eae8b8246966234ee0f1703abba811a7f78 | 1d34d47cbbeae6fa3d35e2081ec264ab11e72a4c | /endogeno.r | aa8cd337c75ba7fd043e28a3c4af09abe37a6c35 | [] | no_license | GustavoPMSilva/AD-UFRJ-PLE | 0cef0e56dc17f1eaf5b40fd7eab6d08bfd042b1b | bad626fbe7e66a2afffcb71dc2e8e48ceec20cff | refs/heads/master | 2023-01-12T23:15:38.660412 | 2020-11-16T13:03:38 | 2020-11-16T13:03:38 | 313,303,634 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 6,076 | r | endogeno.r | K <- 2
N <- 5
L0 <- 0
L1 <- 0
F01mi0 <- 1
F02mi0 <- 2
F11mi1 <- 1
F12mi1 <- 2
GOOD <- 0
FAKE <- 1
gerarEndogenosIniciais <- function(){
for(i in 1:length(Usuarios)) {
gerarEventosEndogenos(i)
}
}
atualizarTempos <- function(tempo){
estado <- c(0,0,0,0)
for(usuario in Usu... |
cdc5c10699b13df897626815e93c38d4261a5e40 | 2e731f06724220b65c2357d6ce825cf8648fdd30 | /NetMix/inst/testfiles/getZ/AFL_getZ/getZ_valgrind_files/1616007464-test.R | f04faa331faae59b19740ffea5f659ad73c9767d | [] | no_license | akhikolla/updatedatatype-list1 | 6bdca217d940327d3ad42144b964d0aa7b7f5d25 | 3c69a987b90f1adb52899c37b23e43ae82f9856a | refs/heads/master | 2023-03-19T11:41:13.361220 | 2021-03-20T15:40:18 | 2021-03-20T15:40:18 | 349,763,120 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 388 | r | 1616007464-test.R | testlist <- list(mat = NULL, pi_mat = structure(c(7.87481755977877e-311, 1.38700635605729e-284, 2.84878851639172e-306, 1.29799017759031e-308, 1.0614123518369e-313, 5.77957377291124e-310, 1.06141235406019e-313, 5.77426876891344e-310, 2.12318152942584e-193, 7.2911220195564e-304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim... |
9f1165d487a1bf6c62b02277ef4e91ce72925744 | 56390f2a77468b2e662f38a726bda8ea7cda0cf9 | /R/functions.R | 12c222f0d05e3a2314f23880ac4a7e94e0685046 | [] | no_license | bsekiewicz/vizhackathon | 4aaed7ae6dad559a8ce2f52ae6053f4ce515c8ce | 390d2e84e498e4270b5d62679112d661ce5bd20d | refs/heads/master | 2020-07-31T23:32:20.579999 | 2019-10-07T20:37:05 | 2019-10-07T20:37:05 | 210,787,204 | 1 | 0 | null | 2019-09-27T16:49:59 | 2019-09-25T07:52:40 | HTML | UTF-8 | R | false | false | 1,769 | r | functions.R | # score ver 3.0
score_3 <- function(data, wgs, params=list(), districts=NULL, popular_times = popular_times) {
popular_times %<>% group_by(place_id) %>% summarise(oi = mean(occupancy_index))
data %<>% select(place_id, rating, user_ratings_total, lat, lng, type, wgs=wgs84_500_id)
# pop times
data %<>% left... |
d1bb60df3b9021c69ed82cef7c4d2b6396c2a546 | 72b117982117ae8df5f769c5871bff70da0cfbab | /02 cleaning/ingredient_extraction.R | d11fdcc5907f8ab8e4508b8b1a0374bd0c9d6257 | [] | no_license | palautatan/perfectBananaBread | 5519ae7e70f9750198c3a968ed69792f1d7154f5 | 4c66a9e602a7af0f2ac257a5d6c4ea5f6f433c85 | refs/heads/master | 2021-01-20T23:11:42.580892 | 2017-12-05T19:13:20 | 2017-12-05T19:13:20 | 101,843,735 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,172 | r | ingredient_extraction.R | bbdata = read.csv("/Users/shermanpeng/Documents/R/banana_bread/all_data.csv", as.is=TRUE)
attach(bbdata)
head(bbdata, 2)
# SPLIT INGREDIENT LIST INTO SINGLE INGREDIENTS
split_into_ingredients = function(py_string) {
ingredients = strsplit(py_string, "\\$")[[1]]
return(ingredients)
}
library(stringr)
# USE REGEX... |
f7a2b3e1008641c7c4c65f6715afbc4e6919f04a | 192fd3dbc491d3c36bd9351f02cf9b5957ea56d1 | /R Packages/comorbidities-icd10/man/cmrbdt.finder.numeric.Rd | c37acfbf2713b6cff6ab70cfd16a818d18ba7190 | [] | no_license | ryerex/Research_and_Methods | d4d211defdbee83e47ecc72c59944c3f60a3bcca | 4010b75a5521c2c18ee624d48257ee99b29a7777 | refs/heads/master | 2023-05-26T01:54:17.048907 | 2020-08-05T16:14:29 | 2020-08-05T16:14:29 | 91,369,271 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,596 | rd | cmrbdt.finder.numeric.Rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{cmrbdt.finder.numeric.ahrq}
\alias{cmrbdt.finder.numeric.ahrq}
\alias{cmrbdt.finder.numeric.charlson_Deyo1992}
\alias{cmrbdt.finder.numeric.elixhauser_Elixhauser1998}
\title{Finds the matching codes for the different comorbidity groups}
\usage{
cmrbdt.finder.nu... |
1872669d1ffc3d7e0d9ce9cb72c00664ec6aebcc | 188608d77584dc0ca6ae35c4b62cd34b8d8ce7fe | /code/ggplot.R | 0ce8fe7ba6216514d258f59c6e608487ad23f3d7 | [
"CC-BY-4.0",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | carpentries-uconn/2020-05-01-UConn-online | 1135ab915c9472b449b9aa87cbb0af2875ebf606 | aba45f79c4974e5368d460d99d2c75c287bf9125 | refs/heads/gh-pages | 2022-08-27T17:17:07.732581 | 2020-05-26T16:39:26 | 2020-05-26T16:39:26 | 255,981,989 | 0 | 1 | NOASSERTION | 2020-05-08T18:52:04 | 2020-04-15T16:56:13 | Python | UTF-8 | R | false | false | 5,931 | r | ggplot.R | # Software Carpentry ggplot2 workshop
# Install 3rd party packages we'll be using
install.packages(c("ggplot2", "cowplot", "gapminder",
"plotly"))
# Read in data
gap <- read.csv("data/gapminder_data.csv")
# Getting help
?read.csv
# Take a quick look at our data
head(gap)
str(gap)
##### Intro to ggplot
#... |
8354b204e98d21800ef0fa04f28aa4bc8bf39698 | c31db2890a672e455e29daeab067be3908207bf6 | /hw2/pollutantmean.R | a12cad92d6ca06a8ca74807d151b012e9f94841c | [] | no_license | xizhonghua/rprog-016 | d9432df091f1ef5e89e7c6f5284339db12c8cf3a | 04c2725333a7ec30406aeb32a24ec2498d3b39d6 | refs/heads/master | 2021-01-23T04:08:32.503566 | 2014-12-06T02:46:06 | 2014-12-06T02:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,700 | r | pollutantmean.R | ## Write a function named 'pollutantmean' that calculates the
## mean of a pollutant (sulfate or nitrate) across a specified
## list of monitors. The function 'pollutantmean' takes three
## arguments: 'directory', 'pollutant', and 'id'. Given a
## vector monitor ID numbers, 'pollutantmean' reads that
## monitors' par... |
b1c12c35a9439e90d4ca5d2de296159e7414c0a1 | a008684e8b0610b04ec5a089d6f4f5bc2d4b8b90 | /inst/tmp.R | a1b948861c60f357117854b9b7426a730c53c3ef | [
"MIT"
] | permissive | jhaineymilevis/dmaps | 9156a7ff88a79fdcd2dc8feff2c896b2426151b2 | fbdf8f6cb072cf0fc3dfae83e823a0c41d554bab | refs/heads/master | 2020-03-26T09:19:22.662950 | 2017-09-14T19:34:57 | 2017-09-14T19:34:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 582 | r | tmp.R | library(devtools)
load_all()
###
d <- read.csv("inst/data/co/departamento-municipio.csv")
d <- read.csv("inst/data/co/ciudades-colombia-poblacion.csv")
d$name <- paste(d$ciudad,d$departamento,sep = " - ")
codes <- read.csv("inst/dmaps/co/dane-codes-municipio.csv", colClasses = "character")
matchCode <- function(codes,d... |
05e5ad5ce444b0075990866fdd181e677412d133 | 0bc75447cc6e4c96dd1f8f015ed1aa17c6a0e218 | /replArchive/appendix/figureA1.R | 64fdd75b96e12f3d8e0d28aae5c78ef1db4cfcfe | [] | no_license | s7minhas/conflictEvolution | 3d19f3d7ad237358234595f9bc692840056d0198 | c53b399ca4c717cc2346cfc3b0fe71e73f56c4eb | refs/heads/master | 2021-03-22T01:22:43.035833 | 2019-05-25T03:20:25 | 2019-05-25T03:20:25 | 50,407,689 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 760 | r | figureA1.R | ################
# workspace
source('../main/setup.R')
source('../main/paramPlot2.R')
################
################
# load data
load('../main/ameResults.rda') # load AME mod results
# quick trace plot
mcmcData = ameFits$base$BETA
varKey = data.frame(dirty=colnames(mcmcData),stringsAsFactors=FALSE)
varKey$clean = ... |
b58216c1f0035f7b4152c36cf22103986ef31105 | f18550811c31c759c2cc7404656b923a924f7a99 | /R/readPindel.R | 4f55ce4b2c5e0b3ddbb7153db3c0757f0b76a599 | [
"MIT"
] | permissive | YaoLab-Bioinfo/intansv | 8ce8e19745fbce0c03d67ad792ca57f131e058a6 | 12905289e0b10f3d8872730f182e253741324ba2 | refs/heads/master | 2022-08-30T23:32:29.165613 | 2020-05-21T02:18:26 | 2020-05-21T02:18:26 | 39,183,991 | 9 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,734 | r | readPindel.R | ## Merging overlapped SVs predicted by Pindel
PindelCluster <- function(df)
{
maxReadPairSupp <- max(df$ReadPairSupport)
dfFil <- df[df$ReadPairSupport>=(maxReadPairSupp/2), ]
dfFilIrange <- IRanges(start=dfFil$BP_left, end=dfFil$BP_right)
outTmp <- findOverlaps(dfFilIrange, reduce(dfFilIrange))
... |
bc071202bb4a66db8d88a72e617566505f2cd0d8 | 4ee7a1db4b20d30fdcc0bba1e10b3ce325f6bdc2 | /R shinymodules/cmip5ScatterPlot_mod.R | e3f3ca490791fd2b3c6e6febaf7b0f2cde3d6478 | [] | no_license | tanerumit/my-repo | a40f71acb246f6c107afb0181d26014fd4f378e3 | 4c9eb48424d67dee9ac2fd17364be262e1b9dda4 | refs/heads/master | 2021-07-19T05:21:22.228151 | 2021-01-30T15:52:36 | 2021-01-30T15:52:36 | 97,176,651 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,307 | r | cmip5ScatterPlot_mod.R |
cmip5ScatterPlot_mod_UI <- function(id)
{
ns = NS(id)
highchartOutput(ns("GCMplot"), height = "500px")
}
cmip5ScatterPlot_mod <- function(input, output, session, data, hist.period,
proj.period)
{
#hist.period <- reactive({input$hist_period})
#proj.period <- 2... |
72fbd4975b2efe60504571e00b8d10444c5dda41 | e04c0d423fde5be2567111b6983cc91e63c93232 | /R/libraries_uninstall.R | 4594fe6f9c3519c3a93c4f883bf4dbd2e66771ef | [] | no_license | RafiKurlansik/bricksteR | b42b3b3556ef3394b7e7801568a8e228083ad336 | 9199ab34dda462601186c25cf8655483f0bbe408 | refs/heads/master | 2022-10-28T14:35:21.875280 | 2022-10-06T15:36:30 | 2022-10-06T15:36:30 | 227,508,502 | 25 | 6 | null | 2021-07-15T11:59:22 | 2019-12-12T03:04:36 | R | UTF-8 | R | false | false | 3,482 | r | libraries_uninstall.R | #'
#' Uninstall Packages (libraries) on a Databricks Cluster
#'
#' Set libraries to be uninstalled on a cluster. The libraries aren’t
#' uninstalled until the cluster is restarted. Uninstalling libraries
#' that are not installed on the cluster has no impact but is not an error.
#' You can locate the cluster ID in the ... |
9a252b4771275ea2bdb34ee686ad6a04617d20a4 | 6813d26adb6b1a6e1295eedcd6a92ec1ffef8569 | /R-functions/funAdjustPop.R | 955e371e61b4395f946c5f4935fa0ebeeffad92b | [] | no_license | jreades/popchange | 6ece3d3f974ae1458d77c605a16946034351aebc | 5dbca9d41841b55d31730a22f5662e8496525c48 | refs/heads/master | 2021-01-20T08:19:10.464494 | 2017-07-17T15:32:23 | 2017-07-17T15:32:23 | 90,128,114 | 1 | 0 | null | 2017-05-03T08:49:05 | 2017-05-03T08:49:05 | null | UTF-8 | R | false | false | 1,081 | r | funAdjustPop.R | #Function to link OA spatial data to population attribute data
#Updated to allow multiple columns within data
AdjustPop <- function(oa2011_grid, data, longLog = FALSE, numberAttributeColumns){
#head(data)
#head(oa2011_grid@data)
#merge data (OAs will be repeated) in oa2011_grid
oa2011_grid@data = data.fra... |
700ae0f84c747078aeabc39ad7bd5e93c8135acd | 40af93322af32d5e64191c4635e0d66c8004997e | /MachineLearing_with_R_language/CarPricePrediction/main.r | eeb41f2db195f9d91f87c26731aaaf5568a6cffb | [] | no_license | akshaysalvi948/MachineLearning | 001a147da0af281353360717788a98d79ff9a272 | 5995349741ff2461c1a79be582b12aabe6299a92 | refs/heads/master | 2021-03-23T03:55:33.646697 | 2020-03-16T14:21:55 | 2020-03-16T14:21:55 | 247,420,582 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 516 | r | main.r |
carInfile=read.csv("Carsdata.csv")
str(carInfile)
summary(carInfile)
mean(carInfile$Prices)
lm1=lm(Price~Mileage + Make + Type + Cylinder + Liter ,data = carInfile)
summary(lm1)
table(carInfile$Make)
table(carInfile$Doors,carInfile$Type)
plot(lm1$residuals)
test =data.frame(Mileage=c(38500,100000),
... |
105df657e7fed2ee36535ac2194cc29bfc62ea46 | 517f4375c836881498e8f08c0ffdfa9a2ba151d8 | /funciones/boton_descarga.R | 030caa8e1ef633fc9072d858e36bbe516a0f54b3 | [] | no_license | Aggarch/MQF-UAH | 877975cf6fe50e995d4ee5a36c1e9ef3a292ff03 | 11f846b686d618a9a00b4d745919d710398162e9 | refs/heads/master | 2022-02-18T10:01:36.885756 | 2022-02-09T02:33:23 | 2022-02-09T02:33:23 | 248,128,384 | 2 | 2 | null | 2020-06-27T21:33:50 | 2020-03-18T03:20:21 | R | UTF-8 | R | false | false | 253 | r | boton_descarga.R |
# 4 downloading time series forecast
boton_descarga <- function(outputId, label = "Download"){
tags$a(id = outputId, class = "btn btn-success shiny-download-link", href = "",
target = "_blank", download = NA, icon("file-excel"), label)
} |
0abbcda2b3ecf34f0beb58277667606843eaf4bb | 97818d99fd3a17ec1d485fe2dd21fa27f8a57ed1 | /assignment5.R | 8782e100ed24c2af4b2e0ace2caae9ec17ce6eb3 | [] | no_license | samuelstriz/Assignment-05 | b2c426ddba7b91e1e76856b9a2e4037169f413b6 | dd93e5b37bd2bf31fa1c534c7e0aadd7ef7a6813 | refs/heads/master | 2020-09-10T19:33:18.164083 | 2019-11-15T02:34:36 | 2019-11-15T02:34:36 | 221,815,613 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 187 | r | assignment5.R | if (!require("data.table")) install.packages("data.table")
library("data.table")
ptm <- proc.time()
DF <- fread("gdp.csv", header="auto",
data.table=FALSE)
as.data.frame(DF)
|
6414e7a97b4cb69f5faf317b2d49f8dee6fbb817 | 8a2ef8564dac1551f9a389c3cc04837453c933d6 | /3_ScriptValidacionClusteres/K-MEANS/Validacion_Fallida/ValidacionClusteres_Kmeans_Luad_1vuelta.R | 844a5b06c75daa87c5f67fac5a7a6f7d3b04d628 | [] | no_license | anemartinezlarrinaga2898/TFM_ANE_MARTINEZ | 0a311e96ccad34f331d798b1f3c459539614e1c7 | 8e41157613fff0cfa4f5eb27e6984d02d000b9ef | refs/heads/main | 2023-07-27T21:41:44.218050 | 2021-08-27T10:15:35 | 2021-08-27T10:15:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,231 | r | ValidacionClusteres_Kmeans_Luad_1vuelta.R | muestras <- readRDS('MuestrasLuadTraspuesta.rds')
library(NbClust)
#CALCULO DE UN POOL DE INDICES:
#Calculamos cada uno de los indices:
system.time(res_nb_silhouette <- NbClust(muestras, distance = 'euclidean', method = 'kmeans', min.nc=2, max.nc=10, index='silhouette'))
print("Calculado Silhouette_luad")
syst... |
831ec5996b458deb7e117a60c1871de711859cbb | 0755012385996546b7f81caaa66d44ba066d5362 | /R/pkRamp.r | 5f9711391ef8dba02f9b778903834bde8c3f229b | [] | no_license | CristianPachacama/pkrf | 0e95b68b30e638317959f574d8685f149214d0e3 | 1ce1990c266645ca232dec6886adad33fecc6db6 | refs/heads/master | 2020-06-14T18:34:53.730912 | 2019-07-03T08:43:52 | 2019-07-03T08:43:52 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,835 | r | pkRamp.r | # custom color ramp generator
# philip kraaijenbrink
#' Load preset color ramps
#'
#' Load color ramps from preset
#' @param name Name of the color ramp (string).
#' @param number Number of output colors desired (integer).
#' @param reversed Should the ramp be reversed (logical).
#' @param show Show a plot of all ava... |
095c993a8cbac49fea63fdf07582bc1990ebd0b3 | 45ab1e397b5fc69ba84c8f5dfb66c09b79bca4c6 | /Course_II/R/pract/pract6/task4.r | 02de7ddea125f15b97e774eabcd9305eea3b43f0 | [
"WTFPL"
] | permissive | GeorgiyDemo/FA | 926016727afa1ce0ee49e6ca9c9a3c60c755b35f | 9575c43fa01c261ea1ed573df9b5686b5a6f4211 | refs/heads/master | 2023-06-28T00:35:43.166167 | 2023-06-16T14:45:00 | 2023-06-16T14:45:00 | 203,040,913 | 46 | 65 | WTFPL | 2022-04-09T21:16:39 | 2019-08-18T18:19:32 | Jupyter Notebook | UTF-8 | R | false | false | 1,859 | r | task4.r | #Функция
calc <- function(number,
parameter = "rus",
short = FALSE) {
#Округление
number <- round(number, 0)
#Если больше - берем остаток
if (number > 7) {
number <- number %% 7
}
#Если меньше 1 - пробел
if (number < 1) {
return(" ")
}
#Если есть английс... |
c0c2b7172f22e0ac132232bfc0a83c1bc06209c5 | 9caa55c11b8da87b4a8881df0b9ec6ab092f4648 | /ClusterFire.R | c664a78bdb95e8f51720a19fcb9f02885101a841 | [] | no_license | zl22good/Forest-Fire-Cluster | b3f810c4604a90c7befa6a02546b81f8ec6c6ad7 | 2fdc48eb0ed1bb1b36d7e03986fc85e34fa66c1e | refs/heads/master | 2020-05-18T04:41:52.206353 | 2019-04-30T03:25:50 | 2019-04-30T03:25:50 | 184,181,773 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 661 | r | ClusterFire.R | #Clustering
#K-means
ab = read.csv("forestfires.csv")
a = ab[,c(3:8)]
str(a)
rownames(a)
complete.cases(a)
all(complete.cases(a))
# 2 standardize your data
Xs = scale(a)
Xs
# 3 Compute the "distance" between observation
dd = dist(Xs)
dd
# 4 K-means pick k
km=kmeans(dd,3) # 3 clusters (just for example)
km
km$clus... |
b1707a5ddf3a95517d10f0012f4a41eb4f74f2a7 | d7ff71e8ffb07419aad458fb2114a752c5bf562c | /man/style_roxygen_example_snippet.Rd | e1ed4d4fd3efe13a1949e4c99ce716b6959606e1 | [
"MIT"
] | permissive | r-lib/styler | 50dcfe2a0039bae686518959d14fa2d8a3c2a50b | ca400ad869c6bc69aacb2f18ec0ffae8a195f811 | refs/heads/main | 2023-08-24T20:27:37.511727 | 2023-08-22T13:27:51 | 2023-08-22T13:27:51 | 81,366,413 | 634 | 79 | NOASSERTION | 2023-09-11T08:24:43 | 2017-02-08T19:16:37 | R | UTF-8 | R | false | true | 2,143 | rd | style_roxygen_example_snippet.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/roxygen-examples.R
\name{style_roxygen_example_snippet}
\alias{style_roxygen_example_snippet}
\title{Given a code snippet is dont* or run, style it}
\usage{
style_roxygen_example_snippet(
code_snippet,
transformers,
is_dont,
base_inde... |
9484d64a90c82d3e128481e16383a814825ecb67 | c1e7158f1947a3135a033487482877b77b439072 | /plot OSM extracted centroids - kml file.R | a4cfdbc54843483ed317833418bf55c19de5e2de | [] | no_license | amandairish-zz/Roof-type-project | b9bad302d5d806d8865d34e790c73aa290e80e1b | d21e65fc9ac331226a9676442199e0f31f3383df | refs/heads/master | 2022-02-21T23:58:56.026627 | 2019-09-16T20:32:17 | 2019-09-16T20:32:17 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,137 | r | plot OSM extracted centroids - kml file.R | # plot osm points on google earth
# since osm BWA validation points are not
# working well with training data
# 5/5/19
library(ggmap)
library(maptools)
library(rgdal)
library(tidyverse)
setwd("/Users/amandairish/Desktop/Malaria project/Botswana")
bw.ext <- read.csv("/Users/amandairish/Desktop/Malaria project/Botswana... |
a71d9519961bdf280dce32f45452d82a4def1df4 | 9191950f0e79d501b10201b82e06e8b665194ce9 | /src/central-tendency/mean/Event Study Plot JPE.R | 89ed2148eb908b9290db8a59a076c8edf87b62cc | [
"MIT"
] | permissive | tanxpyox/professional-visualisation | b012380a03897afc7849551ae089345e5ab5e93e | aa7fad0c58a0b2191c98c88f2ae0b89b9fdac42d | refs/heads/master | 2023-04-27T15:53:20.499445 | 2023-04-16T19:07:14 | 2023-04-16T19:07:14 | 271,278,934 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,647 | r | Event Study Plot JPE.R | # Event Study Plot w/ CI
# Proto, Rustichini, and Sofianos, "Intelligence, Personality,
# and Gains from Cooperation in Repeated Interactions",
# Journal of Political Economy, 1363.
# Data from Quek (2017) "Rationalist Experiments on War" (Figure 6)
library(haven)
master <- read_dta("data/quek-rw-2017.dta")
output... |
b5d9f341c58fa1c84bc679d3b362b13e2555d722 | 33ced6d677e62ca13ea8e32a14f7bba6b57d19c4 | /Analytical Modeling/exponential smoothing.R | fb235627099cb80184d676ed346753e02b219601 | [] | no_license | shanwenqian23/Samples | 52a37442397b687b10046ea1d1acb811ba6015f3 | 6f5221b3af5f7342c293e22697da4ec9af9932c5 | refs/heads/main | 2023-04-27T05:59:38.466667 | 2021-05-20T12:40:48 | 2021-05-20T12:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,445 | r | exponential smoothing.R | # Homework 4 ISYE 6501
# 7.2 Build an exponential smoothing model to help make a judgement
# of whether the unofficial end of summer has gotten later over the last 20 years
library(cusum)
library(qcc)
library(dplyr)
# Read in the data
temps = as.data.frame(read.table("temps.txt",header=TRUE))
r_names = as.data.... |
29e7c59465826bdfe45644c906a7f094ffc0b4e3 | 278057fd9b095a2805639d1c5f2cb7afdd33a44f | /man/avsapply.Rd | cad711d955849731fbcbead8fb3215f5f0d3e281 | [] | no_license | tlcaputi/tlcPack | 6301c14540d02c35f05d163f6600d96b2c4fac67 | d8d42ce3e3a807ec0e12bd20549fd1e3ac1861d4 | refs/heads/master | 2020-03-24T11:23:48.352052 | 2020-03-23T22:47:13 | 2020-03-23T22:47:13 | 142,684,188 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 235 | rd | avsapply.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trackProjectFunctions.r
\name{avsapply}
\alias{avsapply}
\title{Make sapply into a vector}
\usage{
avsapply(...)
}
\description{
Make sapply into a vector
}
|
122028c1457205b2f30c6d5ed0acf11d82428f21 | bfcb2d5bed84e7bb28e371d24a18535d95308bd5 | /test.R | 9767e4aa8f5be86141ac31148a54760e165565e5 | [] | no_license | sika0115/R_study | 025f9294b1afc5a2b3c7cdb4472584472252fdbf | 45cd9c067a18be33ad570b94b17ae8299bd68d44 | refs/heads/master | 2020-04-20T05:57:42.040503 | 2019-02-05T01:23:22 | 2019-02-05T01:23:22 | 168,670,348 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 127 | r | test.R | #ベクトルの作成
x <- c(1,2,3,4,5)
x
y <- c(1:5,3:1)
y
z <- c(rep(3,4),rep(c(1,5,10),c(2,3,4)))
z
a <- c("A","B","C")
a
|
f5eba4dca52e77e535c787fb83e9bf1348058eb4 | 6e910000ab0b80f097ba60724834c2ca46830e9f | /supervised /classification_code/bikeshare/true_ensemble.R | 3b6602b2d910a9175080b300b732738b78de7168 | [
"BSD-3-Clause"
] | permissive | taposh/mlearning | 4d65f10ceb57ac13ba45bb357dfa4d0401190020 | 1f33c4223c0a33589530a16bac32a1016231737b | refs/heads/master | 2022-11-01T16:47:42.781101 | 2022-10-18T20:12:52 | 2022-10-18T20:12:52 | 28,143,470 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 37,862 | r | true_ensemble.R | #Default Directory of Data
setwd("/Users/taposh/workspace/kaggle/bikeshare/")
#Loading Required Libraries
suppressPackageStartupMessages({
library(RWeka)#for PrincipalComponentAnalysis filter
library(wavelets)#for discret wavelet transforms
library(nnet)#training simple layer neural network
library(matrixStats)#calcul... |
879f138e7a2d099e9cd5f066cb992d26634fd652 | 27674239c0da0b7afc6ad9dc2622e084c3f5c004 | /inst/9_17_worker.R | 5dce11ef2de3d89cbbadaa993b8ce393570caf19 | [] | no_license | RobinHankin/knotR | 112248605c8a89a21641be35f2363c19db1c3783 | 0a5a6015a51340faa1ee43066d76be8f39adb499 | refs/heads/master | 2023-05-15T03:19:57.311824 | 2023-05-14T09:03:35 | 2023-05-14T09:03:35 | 99,854,849 | 5 | 0 | null | 2017-10-15T04:48:05 | 2017-08-09T21:37:28 | R | UTF-8 | R | false | false | 926 | r | 9_17_worker.R | library(knotR)
filename <- "9_17.svg"
a <- reader(filename)
Mver <- matrix(c(
25,01,
08,18,
07,19,
09,17,
10,16,
24,02,
05,21,
23,03,
22,04,
11,15,
06,20,
12,14
),ncol=2,byrow=TRUE)
sym917 <-
symmetry_object(
x = a,
Mver = Mver,
xver = c(... |
f0bea070ff36cbb688e83ac73f1a6bfd3d14e861 | ba6a84161acd6a7f8d7a8c3ba10b90a16fcfb2e8 | /Rcode_SVM_salaryData.R | 20a51e13aa8d776b106c2fe616eb0637e22c607d | [] | no_license | DarshanaBhamare/Assignments | 0c06e5559a3374d29945ee6590761ee6116c752f | fb628948f500dcf844ac15384cc0d9e00b070f74 | refs/heads/master | 2021-02-12T16:32:54.295133 | 2020-03-03T10:51:22 | 2020-03-03T10:51:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 719 | r | Rcode_SVM_salaryData.R | salaryData_train<-read.csv(file.choose())
library(kernlab)
str(salaryData_train)
salaryData_train$educationno <- as.factor(salaryData_train$educationno)
class(salaryData_train)
salaryData_test<-read.csv(file.choose())
str(salaryData_test)
salaryData_test$educationno <- as.factor(salaryData_test$educationno)
c... |
740585acb28b6840f7f4ac0198294e06e25c20ad | 536b625de4dd42b21949f2cd9ba4a675bbb13fae | /R/predict.grpreg.R | 890a23fe763695a91840de5682c7e9959d4b84f0 | [] | no_license | debinqiu/grpss | 2e844735f22cd4d2dc36d76c3f55c9998f45fdeb | c1af576e411258fb0d97b694330e814aab0692d2 | refs/heads/master | 2016-08-11T12:31:35.284762 | 2016-01-30T17:41:27 | 2016-01-30T17:41:27 | 50,691,531 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,556 | r | predict.grpreg.R | #' Model predictions for a fitted \code{grpreg} object
#' @description Similar to usual predict methods and \code{predict.grprep} in \code{grpreg} package.
#' @param object A fitted "\code{grpreg}" object from \code{\link{grpss}},
#' or \code{\link[grpreg]{grpreg}} function.
#' @param newdata Optionally, a matrix or da... |
f634f1d7410a60f01ae5e9734bbc2188111a5a35 | 15aaef23c9e9ecc481c89ca5fad56e98e62e2abf | /stage2_model.R | e7330d3aa3296f0361d97b91265548a937a63208 | [] | no_license | ngraetz/cfr | 950e9635836a79dd9858200ee603893f14681bfd | 42fca80332044724fdd5959fb908c564227a2a08 | refs/heads/master | 2020-03-26T14:30:22.669905 | 2019-08-09T01:48:28 | 2019-08-09T01:48:28 | 144,991,160 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 81,728 | r | stage2_model.R | library(rsq)
library(relaimpo)
library(plyr)
library(data.table)
library(ggplot2)
library(olsrr)
library(interplot)
locs <- fread('C:/Users/ngraetz/Desktop/gaul_to_loc_id.csv')
setnames(locs, 'loc_name', 'name')
locs[name=='Tanzania', name := 'United Republic of Tanzania']
locs[name=='Democratic Republic of the Congo'... |
a598423237ca934af14a428b9266a93195b19028 | cb297ed62881e7ec3b2fd2734ef830fa1f2018f4 | /R/krw_mafa_helpers.R | 6c97b20aacdb2714d50f5049ceeb51c44452c794 | [
"MIT"
] | permissive | RedTent/krw | 0c72d57e360c211072ec5bc7a6bcc34183a312b9 | ec190548d5d5e74f446cd59003f2ba6aaa90fddb | refs/heads/master | 2021-12-27T14:29:22.274431 | 2021-11-12T14:03:07 | 2021-11-12T14:03:07 | 195,770,080 | 0 | 0 | NOASSERTION | 2019-08-12T17:33:50 | 2019-07-08T08:33:08 | R | UTF-8 | R | false | false | 1,598 | r | krw_mafa_helpers.R | # omrekenfunctie van aantallen naar abundanties
n_to_abund <- function(x){
abund <-
x %>%
log() %>%
+1.5 %>%
floor() %>%
ifelse(. > 9, 9, .)
abund
}
ept_factor <- function(taxa, krwwatertype.code){
if (!krwwatertype.code %in% c("R7", "R16")) return(1)
families <- unique(twn... |
0dfc2e9153a4269c6a65b19bf089b646f4e06558 | 7cbc27673d06901a43b65ebf5100c16c78781524 | /extras/MultiAnalysesVignetteDataFetch.R | 27b66a6b141445e50ea974502ff09092599b27f5 | [
"Apache-2.0"
] | permissive | krfeeney89/CaseControl | 4deece643e3970ca0d4a04fb43e957a0e2505649 | a8312bc464c685a43ed2e43884dc377821d8e5bd | refs/heads/master | 2021-01-23T12:44:08.287611 | 2017-05-30T09:52:45 | 2017-05-30T09:52:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,577 | r | MultiAnalysesVignetteDataFetch.R | # @file MultiAnalysesVignetteDataFetch.R
#
# Copyright 2017 Observational Health Data Sciences and Informatics
#
# This file is part of CaseControl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the Licens... |
cf63d221167aedd113e7d5534226f5b179a90e47 | 7679f049a406b760ce93e31068a784c33276941b | /R/Extract.mcmc.list.dc.R | 0a7b6a37a46c8bfdbaaedb2b3ecfa70d5b334545 | [] | no_license | datacloning/dclone | e5ec61ea3d3cc484bd4df1a8e3efa0cae882fc57 | b17d9a663e92ff935ce6b130ce6c1c30ed6e2909 | refs/heads/master | 2023-07-10T10:09:29.324647 | 2023-07-03T17:52:36 | 2023-07-03T17:52:36 | 25,499,525 | 6 | 2 | null | 2018-02-27T06:27:27 | 2014-10-21T03:14:14 | R | UTF-8 | R | false | false | 312 | r | Extract.mcmc.list.dc.R | "[.mcmc.list.dc" <-
function (x, i, j, drop = TRUE)
{
class(x) <- "mcmc.list"
#out <- coda:::"[.mcmc.list"(x=x, i=i, j=j, drop=drop)
out <- as(x, "mcmc.list")[i=i, j=j, drop=drop]
attr(out, "n.clones") <- attr(x, "n.clones")
class(out) <- c("mcmc.list.dc", "mcmc.list")
out
}
|
7f9367c916743e64b30257d53ea9a43a5171d71c | 057ac9d20c897349eacfb47405136bdb8e0e071f | /man/simResultSinglePeriod-class.Rd | ff96e5e316789a772b37503ed4824722d865f138 | [] | no_license | cran/portfolioSim | a588b186a93b60474b2b24c50d2c3887d4cde85a | 30dd4328db735ab0226e9ddd04f9b70f0df0a2e8 | refs/heads/master | 2020-05-17T11:25:32.863031 | 2013-07-08T00:00:00 | 2013-07-08T00:00:00 | 17,698,675 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,625 | rd | simResultSinglePeriod-class.Rd | \name{simResultSinglePeriod-class}
\docType{class}
\alias{simResultSinglePeriod-class}
\alias{loadIn,simResultSinglePeriod,character,missing-method}
\alias{saveOut,simResultSinglePeriod,character,missing,character,missing,logical-method}
\title{Class "simResultSinglePeriod"}
\description{Contains simulation result dat... |
0f5c79444bd86007bbbd8f08f6e5c58793616a18 | 47ac09d7c2a1dd0546ef1c4afa5f53ebc03ce472 | /R_to_Word.R | 1438ac017da7bac0065fd9acd2d7a1606ad127eb | [] | no_license | sbraddaughdrill/WRDS_to_R | 444f3ad261bb2e1022f474b1161d01b680f9e096 | e15bd84996db0a54247a9131232c7ad3fb0b9667 | refs/heads/master | 2020-05-30T17:56:06.096689 | 2015-02-05T20:13:22 | 2015-02-05T20:13:22 | 29,551,981 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,910 | r | R_to_Word.R | # install.packages("R2wd")
# library(help=R2wd)
require(R2wd)
wdGet(T) # If no word file is open, it will start a new one - can set if to have the file visiable or not
wdNewDoc("c:\\This.doc") # this creates a new file with "this.doc" name
wdApplyTemplate("c:\\This.dot") # this applies a template
wdTitle("Example... |
0db9b3a905a68d1def7c296891d8e980a1835faf | b170752e9e937098aa5e551189ebd876e8d4c774 | /R/Introducao/07-Matriz.R | e362332a1f968ccd467d860935f5342aa2d23508 | [] | no_license | DeividWillyan/Data-Science | e9a33ce6fa108ffbebf3debd2df91a466bb3990a | 557d610eb099fa02c69a9c72a49cef48482fbcb2 | refs/heads/master | 2020-04-07T23:39:15.166138 | 2018-11-27T18:50:48 | 2018-11-27T18:50:48 | 158,820,473 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 1,670 | r | 07-Matriz.R | # Matrizes
# Criando Matrizes
#Número de Linhas
matrix (c(1,2,3,4,5,6), nrow = 2)
matrix (c(1,2,3,4,5,6), nrow = 3)
matrix (c(1,2,3,4,5,6), nrow = 6)
# Número de Colunas
matrix ( c ( 1,2,3,4,5,6), ncol = 2)
# Help
?matrix
# Matrizes precisam ter um número par de valores
matrix( c (1,2,3,4,5), ncol ... |
9961b8cb65464dbbc792ee7ba4dbdbe426fd5081 | f86ebf6ac4278139f8eee3a714ad3aa1c88dbdc9 | /leaflet/app.R | 7a81581effa4723d750b53ebb8f59a46fc2aade4 | [] | no_license | nara907/mapPE | a1f2405115eaf33492ad8a9a859c14b72c167c77 | d05b4100b28f95938840b7951d32ec7572377cb5 | refs/heads/master | 2020-03-14T08:36:05.844893 | 2018-05-01T20:43:55 | 2018-05-01T20:43:55 | 131,528,355 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,884 | r | app.R | library("googlesheets")
library("leaflet")
library("shiny")
library("rgdal")
library("raster")
library("sp")
library("devtools")
library("roxygen2")
library('mapPE')
library("mapview")
library(shinymaterial)
library(shinydashboard)
install.packages("mapPE")
sheet<- gs_key('1hT9JHKGhKR1QcUDB8ylylURmgxoIkylLd4SF9zqdTVo'... |
ba09c0bd8aa01e63da85a52f760e43f8e8925932 | 607d3cbb96e05c489cd5e9e939488d0f9de59e82 | /man/lengthNorm.limma.createRmd.Rd | 894c5d6ab91effaf761dea59d31f98aaa5e58ccf | [] | no_license | csoneson/compcodeR | 95fa5f8867af7fc8c034dacffa91642a5a4506d0 | e7b809e889789bf5e9b627f8a136cb4089fc5f78 | refs/heads/devel | 2023-07-06T13:36:51.779149 | 2023-07-03T14:21:36 | 2023-07-03T14:21:36 | 18,625,797 | 9 | 3 | null | 2023-07-03T14:14:37 | 2014-04-10T06:03:04 | HTML | UTF-8 | R | false | true | 6,827 | rd | lengthNorm.limma.createRmd.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generateRmdCodeDiffExpPhylo.R
\name{lengthNorm.limma.createRmd}
\alias{lengthNorm.limma.createRmd}
\title{Generate a \code{.Rmd} file containing code to perform differential expression analysis with length normalized counts + limma}
\usage{
l... |
ae13037dfe1949dda2f3ba6f0eb6a781e2ee56d3 | e4d7ab3d8da49cba570277133631c8d7ae134b93 | /R/update_version_control.r | 8c109327258c1f9fec69d6a88adc2fbed992b83f | [
"MIT"
] | permissive | williamlief/DataVersionControl | dd5cc156b7c90408a981487df012bb45f32fb205 | d876fc76f57549f1f224649464ba2d7b15280e95 | refs/heads/master | 2020-08-22T14:46:07.893544 | 2020-01-05T01:14:34 | 2020-01-05T01:14:34 | 216,418,898 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,386 | r | update_version_control.r | #' Update Version Control
#'
#' @description DATA_VC is a file that tracks which data files are currently
#' used in the program. This is used because git is not tracking changes in the data
#' files. Whenever a new file is saved or an old file updated,the record in DATA_VC
#' will be updated to include the current sta... |
15b2088dd502ee3cbe939794e60e80d7f59804cd | 770b14ae44e4991d444f0a0b1af124396bf2960f | /pkg/R/aaa.R | 1497cf52b49eb92da324429be1b321bfeea5750d | [] | no_license | melff/memisc | db5e2d685e44f3e2f2fa3d50e0986c1131a1448c | b5b03f75e6fe311911a552041ff5c573bb3515df | refs/heads/master | 2023-07-24T19:44:10.092063 | 2023-07-07T23:09:11 | 2023-07-07T23:09:11 | 29,761,100 | 40 | 10 | null | 2022-08-19T19:19:13 | 2015-01-24T01:21:55 | R | UTF-8 | R | false | false | 5,321 | r | aaa.R |
.memiscEnv <- new.env()
.SummaryTemplates <- list()
.SummaryStats <- list()
.CoefTemplates <- list()
.CoefTemplates$default <- c(est="($est:#)($p:*)",
se="(($se:#))")
.CoefTemplates$stat <- c(est="($est:#)($p:*)",
stat="(($stat:#))")
.Coe... |
8da2d832ccb771e5c4fb416acb9c36fe1905abd1 | 9d2b24865162fe4020d0ba2a769961b781eba894 | /R/getDataValueSets.R | 90ed96f70a0382c36d53aac5783ad20cc357a53f | [
"CC0-1.0"
] | permissive | pepfar-datim/datimutils | a127e7617b580f2a0af400aab152ad804b5a16b8 | 31c0be49b3e7d224394c54f1578a0d901b93d8e0 | refs/heads/master | 2023-08-31T07:50:09.729702 | 2023-07-18T15:12:16 | 2023-07-18T15:12:16 | 202,563,797 | 8 | 11 | CC0-1.0 | 2023-09-13T14:50:05 | 2019-08-15T15:14:43 | R | UTF-8 | R | false | false | 3,866 | r | getDataValueSets.R | #' @export
#' @title getDataValueSets
#'
#' @description Used to read DHIS 2 data using the data value set endpoint
#' @param keys character vector - data value set parameter keys
#' (e.g. "dataSet", "period")
#' @param values character vector - values marching the key from keys
#' (e.g. "Abcde123456", "2019Q1"
#' @p... |
91795cac652b35cc5cd42df05794ec6a935ebe8c | 5ba49d899e7c1cbea1f4968891d61a2d5e18a1ea | /byAreaMapCompare.r | f4ab753d753a8d84f2dbaa3ee87df26ed36372cc | [] | no_license | vppatil/YRBscripts | 1545fe266989e73e97f25b224feb7f66526fd0d5 | 2f27426d0febd464d939379ba5169b7e0b823455 | refs/heads/master | 2021-01-10T20:39:32.118092 | 2012-07-23T00:11:31 | 2012-07-23T00:11:31 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,166 | r | byAreaMapCompare.r | library(RODBC)
#check
#sqlQuery(copy,"select TransectID,VegEndEasting,VegEndNorthing from tblTransects where TransectID like '%0_32_1'")
#next 2 odbc connections are created) or TransectID like ( called yrb and yrb2011
yrb<-odbcConnectAccess2007('c:/users/vppatil/desktop/yrb/YRBiodiversity.accdb')
#get average ha... |
6c083a8281c5dddf87b60c34465f9389419af076 | d4b16f7f36b2a3a32d4cc9841424d680cf0cac2f | /.vim/templates/template.R | 0c2d88a5787c23f36df2cdc1969abe43322cca97 | [] | no_license | vsbuffalo/dotfiles | 5a724741229b1744b1f3de8a768656db8cae5161 | 5d7c4584d8ce42743bae9a37dee368bd30ff9a10 | refs/heads/master | 2023-02-05T09:37:28.289282 | 2023-01-27T00:28:00 | 2023-01-27T00:28:00 | 13,942,607 | 51 | 16 | null | null | null | null | UTF-8 | R | false | false | 111 | r | template.R | # %FFILE% -- %HERE%
# Copyright (C) %YEAR% %USER% <%MAIL%>
# Distributed under terms of the %LICENSE% license.
|
550454808685c235b4a97b7022bc24fa119348ad | 7a95abd73d1ab9826e7f2bd7762f31c98bd0274f | /mcga/inst/testfiles/ByteCodeMutation/libFuzzer_ByteCodeMutation/ByteCodeMutation_valgrind_files/1612802636-test.R | 507bf7b136836f090576ed755a2ea3aa643eafe3 | [] | no_license | akhikolla/updatedatatype-list3 | 536d4e126d14ffb84bb655b8551ed5bc9b16d2c5 | d1505cabc5bea8badb599bf1ed44efad5306636c | refs/heads/master | 2023-03-25T09:44:15.112369 | 2021-03-20T15:57:10 | 2021-03-20T15:57:10 | 349,770,001 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 686 | r | 1612802636-test.R | testlist <- list(bytes1 = c(-1L, -30199L, -822148992L, 0L, 33751253L, -587076224L, 8443357L, 32342528L, 32768L, 32768L, 33023L, -13910017L, -11298L, 1595159295L, -16702465L, -213L, -1L, -740401408L, 262143L, 706871060L, 336860180L, 336860180L, 336860180L, 336860180L, 336860180L, 336860180L, 352261140L, 336860180L, ... |
4fd65613b48c532cb7006caf3d8796fe96e2716d | cad1cf40be29ccd980b0871bb6c79ed1838b3e04 | /man/oadmin.installed_package.Rd | fefedd27037daa0955c2f8e01b121d32d940a914 | [] | no_license | StuartWheater/opaladmin | b42c2487c99a04db29369b940ddd8a50f14cce19 | a0161f7ff36c20916ae8b743ddf8683008d62eef | refs/heads/master | 2020-03-25T21:12:53.604158 | 2018-11-23T13:16:21 | 2018-11-23T13:16:21 | 144,165,262 | 0 | 0 | null | 2018-08-09T14:38:33 | 2018-08-09T14:38:33 | null | UTF-8 | R | false | false | 353 | rd | oadmin.installed_package.Rd | \name{oadmin.installed_package}
\alias{oadmin.installed_package}
\title{Check if a package is installed in Opal(s).}
\usage{
oadmin.installed_package(opal, pkg)
}
\arguments{
\item{opal}{Opal object or list of opal objects.}
\item{pkg}{Package name.}
}
\value{
TRUE if installed
}
\description{
Check if a pac... |
80fdea871be89eff59a9c0a8c5cd55337efde48c | b99a692b325e6d2e6419172fc37fd3107ffb79c2 | /tests/testthat/test_ops.R | bffce5c5fc7fdcbc4d6588fa6a90df400b401229 | [] | no_license | RobinHankin/stokes | 64a464d291cc1d53aa6478fe9986dd69cf65ad1e | 0a90b91b6492911328bad63f88084d7e865f70a9 | refs/heads/master | 2023-08-17T07:46:50.818411 | 2023-08-15T01:56:56 | 2023-08-15T01:56:56 | 177,894,352 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,188 | r | test_ops.R |
foo1 <- function(S){
expect_true(S == +S,info=S)
expect_true(S == -(-S),info=S)
expect_true(S - S == S*0,info=S)
expect_true(S + S == 2*S,info=S)
expect_true(S + S == S*2,info=S)
expect_true(S/2 + S/2 == S,info=S)
} # foo1() closes
foo2 <- function(S1,S2){
expect_true(S2 + S1 - S2 == S1,info=list(S1,S2)... |
9381f35d70fff7b4e5b60b34d7a46d23a2779990 | 8327aedc9fca9c1d5f11c160d440ecc082fb915d | /man/layerBiom.Rd | 169d0084c0642198a4420f8922d659ba57c1d806 | [] | no_license | SESjo/SES | f741a26e9e819eca8f37fab71c095a4310f14ed3 | e0eb9a13f1846832db58fe246c45f107743dff49 | refs/heads/master | 2020-05-17T14:41:01.774764 | 2014-04-17T09:48:14 | 2014-04-17T09:48:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 826 | rd | layerBiom.Rd | \name{layerBiom}
\alias{layerBiom}
\title{Compute the biomass in each layer during the day and night periods.}
\usage{
layerBiom(grp, all.col = FALSE, layers = NULL, is.day = NULL)
}
\arguments{
\item{grp}{Atomic vector giving the functional groups
biomass in the following order: \code{c(epi, meso, mmeso,
bathy, ... |
28d1011189edeb7fa20c3bde4cab68f3b42b2660 | f4ce32716a7a0051c0b15ec1e0bbc664298418c0 | /MechaCarChallenge.R | 49b5172698bdf303a40c17e6613641b125928798 | [] | no_license | kimango/MechaCar_Statistical_Analysis | 4ae39c2d4ba2594e627a24516a0178a28ea048b0 | 9ce1bf5a4313a3df643ef5c34fcb429403cfb1dd | refs/heads/main | 2023-08-13T01:50:35.989174 | 2021-09-15T21:04:57 | 2021-09-15T21:04:57 | 406,581,262 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,783 | r | MechaCarChallenge.R | > library(readr)
> library(tidyverse)
> MechaCar_mpg <- read_csv("MechaCar_Statistical_Analysis/MechaCar_mpg.csv")
Rows: 50 Columns: 6
0s-- Column specification --------------------------------------------------------------... |
87f0ad7ed10c416f6e959fecb64c55924fe905a7 | 2def8d9222401713e5d173968cda06ab149df781 | /tests/R6Unit/test_resources/example_packages/SignaturesMinimalWithOutdatedAutoComments/man/G1-numeric-method.Rd | e83f4d20ce2df2764ba3c8699dbb4939a718b8fc | [] | no_license | mamueller/roxygen2 | 5d25d131fc70cc7cedaef70a8a230961dd6cd535 | 0eb82a4c6719c0d6bdc8ecc5ff89a9a659d7dc2b | refs/heads/master | 2021-08-17T08:54:52.383731 | 2020-08-05T20:12:33 | 2020-08-05T20:12:33 | 211,916,767 | 0 | 0 | null | 2019-09-30T17:32:47 | 2019-09-30T17:32:47 | null | UTF-8 | R | false | true | 410 | rd | G1-numeric-method.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/source.R
\name{G1,numeric-method}
\alias{G1,numeric-method}
\title{Automatic description: G1,numeric,ANY-method}
\usage{
\S4method{G1}{numeric}(a1, a2)
}
\arguments{
\item{a1}{object of class:\code{numeric}, no manual documentation}
\item{a2... |
1688ff8d2d525d02cf519d56b4f8eca0a38199e2 | a04d6571573a33959ddc1e8285b74867097a1254 | /Election_Map_Work.R | 45c9aa7659c7c341c187a09ae1eb5e4187c6fa47 | [] | no_license | robwebby/robwebby.github.io | 76e5eaf5aba203fd4d130387fdb6b3ec11d6d5fe | 28b209d8bc0fe242c13ba00ed8506fdb949aac7c | refs/heads/master | 2021-01-23T01:46:24.086332 | 2019-08-25T17:25:11 | 2019-08-25T17:25:11 | 92,885,704 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,856 | r | Election_Map_Work.R | library(sp)
library(rgdal)
library(raster)
library(plyr)
library(rgeos)
library(leaflet)
library(rmapshaper)
library(htmlwidgets)
setwd(mydir)
Constituencies <- readOGR("Cartogram_GE.shp")
Ref_Votes <- read.csv("Estimates_Leave_Vote.csv")
GE_2015 <- read.csv("GE2015_Results.csv")
GE_2010 <- read.csv("GE2010_Results.cs... |
66eb1bad9b8a626b502fe686ff0af18be67d29f2 | 9c077831aaa80a56cff9e78303e3b923ff9c66d3 | /R/app_server.R | eb74b0110b07e5c2a3592027f264c4cf0dc379e2 | [
"MIT"
] | permissive | MaryleneH/Exo_activity | ae5df7c3ef80d4a211a8491c4cad3169d8e1707b | 18a132862e3ed8fd57c9f3e3eb8154042eee8bb2 | refs/heads/main | 2023-03-08T10:53:56.720355 | 2021-02-24T14:36:15 | 2021-02-24T14:36:15 | 340,514,066 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 688 | r | app_server.R | #' The application server-side
#'
#' @param input,output,session Internal parameters for {shiny}.
#' DO NOT REMOVE.
#' @import shiny
#' @importFrom skimr skim
#' @importFrom readr read_csv
#' @importFrom DT DTOutput renderDT datatable updateCaption
#' @importFrom dplyr sample_n filter
#' @importFrom ggplot2 ggplot ... |
70d37557e8419e90ae261ee250591b987af6293c | 1f74a31dce7c679d3ef4507335e2f6e763987ff1 | /stockassessment/man/is.whole.positive.number.Rd | 67c6b4b6ee799d24e2092434ab16f7f0dae5fdba | [] | no_license | fishfollower/SAM | 5b684c0a54d6e69f05300ebb7629829b2a003692 | a1f1c5b17505a7a73da28736f0077805a7606b30 | refs/heads/master | 2023-07-22T00:50:48.411745 | 2023-04-21T10:25:20 | 2023-04-21T10:25:20 | 67,597,583 | 55 | 35 | null | 2023-02-22T08:42:23 | 2016-09-07T10:39:25 | R | UTF-8 | R | false | true | 374 | rd | is.whole.positive.number.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reading.R
\name{is.whole.positive.number}
\alias{is.whole.positive.number}
\title{Function to test if x is ...}
\usage{
is.whole.positive.number(x, tol = .Machine$double.eps^0.5)
}
\arguments{
\item{x}{number}
\item{tol}{precision}
}
\descri... |
1792ab3b115e136b1b19fbd9b9ebd1da32563202 | 14fe2c3d47b44d1f65ea25dddc0b5ffbf977f2fb | /R/limma-voom.R | 3311620c9f82ac869d2bfa73514addbe96c2506d | [] | no_license | zhanghfd/contamDE | 7cea396eb43712099fb19ef4998cadafc6860c62 | 3712abcfabf93b7093858671d090dd936bd0e1a2 | refs/heads/master | 2021-01-13T12:27:57.351062 | 2019-11-26T05:43:43 | 2019-11-26T05:43:43 | 72,605,127 | 6 | 6 | null | null | null | null | UTF-8 | R | false | false | 735 | r | limma-voom.R |
limma_voom <- function(counts){
d <- DGEList(counts)
d <- calcNormFactors(d)
size <- d$samples[,2]*d$sample[,3]
size <- size/mean(size)
N <- ncol(counts)/2; # number of patients
pair <- as.factor(rep(1:N,2))
condition <- as.factor(c(rep(0,N),rep(1,N)))
design <- model.matrix(~0+conditi... |
867d02322143f602e6ea6a9daa5dae8bc77d5de6 | 591f92914707a8c233795a8b7e6178760449db8a | /man/data_scraping.Rd | 86c9df7e6d49040b486f25f3a64d5002a6a6737d | [] | no_license | nnguyen2496/gradinfo | afd0dc025badd014b339dc7bf5482cab42a66f2c | 37b490fc8f1fbda2de59dcaab4007da517fe9370 | refs/heads/master | 2020-12-31T07:11:35.962035 | 2017-02-01T10:48:49 | 2017-02-01T10:48:49 | 80,595,514 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 602 | rd | data_scraping.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_scraping.R
\name{data_scraping}
\alias{data_scraping}
\title{Read in data on all available graduating classes}
\usage{
data_scraping()
}
\value{
A dataframe object containing information about all available graduating classes
}
\descript... |
c832683c6cd4a970c9b5cba9265e89307ffe42a6 | 1e9072fb96c3f5cb47e156fed8ede092d6e56d14 | /man/PPQcxLat2.Rd | ff2059a450b3bd271914560367e9d86faf7f9ba8 | [] | no_license | cran/pgs | 1102955328ea60e733e611148f852088d91b05c9 | 4154077e52a8814f979775bfddb604e30d50cb32 | refs/heads/master | 2020-04-06T03:53:31.051960 | 2013-11-29T00:00:00 | 2013-11-29T00:00:00 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 1,745 | rd | PPQcxLat2.Rd | % Documentation file for PGS package
% Version: 0.2-0
% Authors: Kien Kieu & Marianne Mora
% License: CeCILL
% Copyright © 2009 INRA, Université Paris Ouest Nanterre la Défense
\name{PPQcxLat2}
\alias{PPQcxLat2}
\title{Generator of 2D quincunx lattices of point patterns}
\description{
Create a \code{FigLat-class} ... |
e89f029c92efd45d9e6a9f2d8b3bd0d07eb5aeb8 | 0bae1a0fee545d466ea074db52e18693caa7324b | /ZTest/TwoSample.R | 76b142f98505dd4bbc709c99e93c8e503ff1bf2a | [] | no_license | anillimaye/R-codes | 3d0827a76f1c80875f63e89e6cc5921ceb743385 | 78ea38bb17b515a59b9785a927abe0536a71d04e | refs/heads/master | 2022-12-14T22:39:09.680482 | 2022-12-04T10:04:55 | 2022-12-04T10:04:55 | 204,685,493 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 635 | r | TwoSample.R | # This code is for two sample z test. The sample sizes are large.
# Takes two columns of values as input and computes mean.
# Performs a two sample two-tailed z test to find whether means and significantly different
Data <- read.table(file.choose(), header=TRUE, sep="\t")
mG1 = mean(Data$Group1); mG2 = mean(Data$Group2... |
94e9cc9010eca6fd2682ecb8e91e0433709f38d3 | cbb8de54c2b49bb7b61c435b909c4b6bcf3e2ca5 | /cachematrix.R | b83dfb4fb3f72cc52f53b1e3d560aac5ce1f51e9 | [] | no_license | pizzaqq/ProgrammingAssignment2 | 949665029999faa52255a08c5120e51389a9b1e4 | 80fea6cab783101a0999fb07b2ff91ef05a73b4f | refs/heads/master | 2021-01-15T09:42:23.721311 | 2015-07-20T10:36:57 | 2015-07-20T10:36:57 | 39,298,556 | 0 | 0 | null | 2015-07-18T13:06:42 | 2015-07-18T13:06:42 | null | UTF-8 | R | false | false | 1,351 | r | cachematrix.R | ## It is often costly to calculate the inverse of matrices so we want to
## cache the inverse of a matrix rather than compute it repeatedly.Below
## are two functions that will
## 1) create a special "matrix" object that can cache its inverse
## 2) computes the inverse or retrieve the inverse from cache
# The make... |
d4458f49de5993b47f28edc4d93aa5364427d590 | f7a70d93b566c9f866ef4934e6c0886f9261cb3b | /Lab_6/ChiassonK_201255916_Lab6.R | a42ab8f7286a6f68a3c26dcb4aea67c7119d142e | [] | no_license | pitoucc/geog3222 | f7ff580e685c989de127b9166a5b40fa39234319 | 00d27d768929a3c4438702e47ed5a1ed0a2d4642 | refs/heads/master | 2020-04-19T04:33:16.250977 | 2019-03-21T13:18:22 | 2019-03-21T13:18:22 | 167,965,887 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,675 | r | ChiassonK_201255916_Lab6.R | # Geog 3222 - Lab 6
# Karl Chiasson
# 201255916
#Set working directory
setwd('D:\\Class\\geog_3222\\Labs\\Lab_6')
#Load data/scripts/libraries
library(extRemes)
library(MASS)
load('Dataset3.Rdata')
source('decluster.g3222.R')
source('event.decluster.R')
source('pareto.thresh.decluster.R')
source('grouping.ts.R')
#Ap... |
72231d2d3047c5d0c36e122c65c2bbc5e5dbb0d1 | edebce025e08bfb9a4a427465298ae4fd3ede569 | /code/deloitte.R | 359e5798b2e5aef45d2f321ac77c8d5282db71e1 | [] | no_license | pssguy/worldSoccer | 50b60db5e18ce85406b8cdb3814dd27a8641ef45 | 22a3f7be911c55bf4eee9640e2cd59d2b4c551aa | refs/heads/master | 2021-01-10T04:40:49.708917 | 2016-02-16T17:30:39 | 2016-02-16T17:30:39 | 36,517,392 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,384 | r | deloitte.R | ## tables from https://en.wikipedia.org/wiki/Deloitte_Football_Money_League
## compiled into data.frame
output$deloitteData <- DT::renderDataTable({
allYears %>%
ungroup() %>%
arrange(desc(Year),Rank) %>%
mutate(Revenue=round(Revenue)) %>%
select(Rank,Year,Club,Country,Revenue) %>%
DT::d... |
7991e8cd2fa2b37f62274cbca61fa7367cd1a707 | 06aa6ef719c8d1de4e9520043760a0153aced8e8 | /understanding_stats_using_r/Chap07c_HypothesisTest.R | 18fae72aa4592ee41ffe738739a9777242247d6a | [] | no_license | alexmerk/courses | 8be9e85330c768ced99857766ad7254e14ca6c8b | e0a0fb3fa4067084e93fbc3b3984c2337607b2e7 | refs/heads/master | 2022-11-23T14:42:27.775464 | 2020-07-31T11:32:11 | 2020-07-31T11:32:11 | 112,396,700 | 1 | 0 | null | 2017-11-28T22:29:46 | 2017-11-28T22:29:46 | null | UTF-8 | R | false | false | 3,078 | r | Chap07c_HypothesisTest.R | # HYPOTHESIS TEST program - Chapter 7
# Set popMean and popVar to the population mean and variance
# Set nullMean to the mean of the null hypothesis
# Set tails for the type of test being conducted
# Set sampleSize to the size that each sample should be
# Set alpha to the desired confidence level
# Set varUse to 0 for... |
6892508b3c668d945514095765d2bbee696d20d1 | 818b023db0c8273606ae8e046bb8a829b8c859e8 | /mycode.R | a204bd804bab1162efe619e4cec3c61620e85a98 | [] | no_license | yashwanth104/datasciencecoursera | c3c98ab019112a4980392ab536700fbbd2f0be61 | d23a72b6c97fb5991a180cca244e41ccc1afb389 | refs/heads/master | 2021-04-15T07:57:22.448004 | 2018-06-04T05:17:26 | 2018-06-04T05:17:26 | 126,745,106 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 97 | r | mycode.R | myfunction <- function(){
x <- 1:4
y <- 2:3
x + y
}
second <- function(x){
x + rnorm(length(x))
} |
51d15a2aebceb8be858de8d6fb741efcefdd67dc | b7b83e40e803452dfdd904a76291d244d51d4a6a | /2stagemodelbyleire/functions_loglik.r | f0ceaaa31b5a686d0dc2687123889d90f99447be | [] | no_license | a4a/model-dev | 0996bbba2ce6d47b2230ccf18628d36304b50b27 | a1fbcb6bbb37321ac2516e7f389f4ecf68616d25 | refs/heads/master | 2021-01-09T22:39:06.925439 | 2015-11-25T10:42:54 | 2015-11-25T10:42:54 | 14,422,218 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,364 | r | functions_loglik.r | ################################################################################
################################################################################
# functions to compute the log likelihood to be maximised for the CBBM model
# version with and without closed-form solutions for some of the parameters
... |
7a22041403a4824c92fe57c9ccf5278d7898ba82 | caabc947bd905f4b17d4c0c0de9ff1db532c14c5 | /man/Merging.Rd | f72dcb9874e8b6ab4c19f48ba64388f7dbd7e451 | [] | no_license | tallulandrews/TreeOfCells | a97b38eaa5839dcddf9c30761b7250b8d104382a | 309fb1fa892ed02d2de0acce74ae270d01b3b1fc | refs/heads/master | 2021-05-12T01:51:36.727639 | 2020-04-14T17:13:43 | 2020-04-14T17:13:43 | 117,569,510 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,549 | rd | Merging.Rd | \name{merge_lists}
\alias{merge_lists}
\alias{merge_profiles}
\alias{merge_across_protocols}
\title{Merge Profiles}
\description{
Methods for merging profiles across cell-types, and experimental protocols.
}
\usage{
merge_across_protocols(merged_profile_list, norm_func=scaled_regression, fs_func="none")
merge_profil... |
64d19caa37208eb3b45e1a4f568d0b5213b52b00 | 5788da1d6726711a21a5b710835e739c337248b7 | /pymontecarlo_casino2/casino2/int/RPO.R | c2e094842fa2d4e6cf3a797ae3c78cf8dadf3cd7 | [
"Apache-2.0"
] | permissive | pymontecarlo/pymontecarlo-casino2 | 23df0911da1161cea7e9394528faab85927fd696 | ccb9505a49ec2b8c108691a5e930441b1a9ddcb4 | refs/heads/master | 2022-01-14T00:31:53.346316 | 2022-01-03T14:23:31 | 2022-01-03T14:23:31 | 41,909,147 | 0 | 2 | NOASSERTION | 2021-12-29T16:35:26 | 2015-09-04T10:01:05 | Python | UTF-8 | R | false | false | 130 | r | RPO.R | version https://git-lfs.github.com/spec/v1
oid sha256:3740ce407a20e211da38576bf4a1915be1555e353729a5233a5eca6053dbc6fa
size 20800
|
02908f59b9d834d4beb6e84e841635ab1d64fbef | 4d848e9a52f6efa7c5d34fe414116cc9d7847924 | /simkim.R | a7e0d552dcd732bf6f9439d0ce81e2d0d8f4d931 | [] | no_license | kimkimroll/Polio-environmental-surveillance-algorithm-simulation | 0c9c399facb424aec8fd5492e5cc2ea12e457a10 | 689030367e72a2dce2edc8852bc39d1e25bef217 | refs/heads/main | 2023-04-01T14:06:10.230421 | 2021-04-08T15:47:03 | 2021-04-08T15:47:03 | 355,964,680 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,488 | r | simkim.R | setwd("//cdc.gov/project/CCID_NCIRD_DVD_PPLB/_PMDDL/Kim/R/simulation")
library(tidyverse)
library(readr)
library(janitor)
envs<-function(rw){
#number of simulations
n.sims<-10
#randomly assigning positive or negative results to each assay
p1f1<-sample(c("positive", "negative"), n.sims, replace = TRU... |
815963371e4e5c045d08c99215def24a4928ff50 | 70dd6507c11fa1ecabe84d781e56dbd4ee93097b | /R/t_test.R | ae150022d29b2fcbdb34ee40c50ef9062ee63107 | [] | no_license | jrpriceUPS/Math160UPS | 4604d17f810be65ccd1d2cd03e294da9c345ce4f | d0ff7cec6eda8d8da860d7d4b8d6c6fe9185683d | refs/heads/master | 2023-06-09T11:55:19.386088 | 2023-06-08T18:11:25 | 2023-06-08T18:11:25 | 190,257,509 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,020 | r | t_test.R | #' t-test
#'
#' This function asks you a sequence of questions in order to execute a t-test. It finds a confidence interval and a p-value, produces a plot, and indicates how this could be queried directly from R.
#' @export
#' @examples
#'
#'
#'
#'
#' > x = c(1, 2, 3, 4, 5, 6, 7)
#' > t_test()
#' Do you have a single p... |
dafb7ff95ab29783bebb20c792b0dc74cd793778 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/ahnr/examples/fit.Rd.R | 19d32370cf40fdfa29218ca5d6dbcc08456743c4 | [] | 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 | 428 | r | fit.Rd.R | library(ahnr)
### Name: fit
### Title: fit
### Aliases: fit
### ** Examples
# Create data
x <- 2 * runif(1000) - 1;
x <- sort(x)
y <- (x < 0.1) * (0.05 * runif(100) + atan(pi*x)) +
(x >= 0.1 & x < 0.6) * (0.05 * runif(1000) + sin(pi*x)) +
(x >= 0.6) * (0.05 * runif(1000) + cos(pi*x))
# Create Sigma list
S... |
5c52f7a8059bfe91119a2af7199ea85e62eb075f | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/NominalLogisticBiplot/examples/plot.nominal.logistic.biplot.Rd.R | ae5a312cd3548ee57914689997cbc060fa07f835 | [] | 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 | 780 | r | plot.nominal.logistic.biplot.Rd.R | library(NominalLogisticBiplot)
### Name: plot.nominal.logistic.biplot
### Title: Graphical representation of a Nominal Logistic Biplot.
### Aliases: plot.nominal.logistic.biplot
### Keywords: plot
### ** Examples
data(HairColor)
nlbo = NominalLogisticBiplot(HairColor,sFormula=NULL,
numFactors=2,method="EM",penaliza... |
903efbf8fe81aa24abaef55b7e9d563da31a5378 | bf3b28de48464cb180928a2333b805d3ea8d97aa | /man/read_sea_csv.Rd | 5cea20c92b1f106d12729b02a82bc15f5e35d24e | [
"MIT"
] | permissive | e-leib/aceR | afb39e862862cf8486fb3412ba2a9607e2f95058 | f056aeae68a15a7489c5fe2d00ec539142396b8c | refs/heads/master | 2020-05-18T02:25:06.892011 | 2019-05-05T18:05:27 | 2019-05-05T18:05:27 | 183,947,083 | 0 | 0 | MIT | 2019-04-28T18:57:06 | 2019-04-28T18:57:06 | null | UTF-8 | R | false | true | 608 | rd | read_sea_csv.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/load-sea.R
\name{read_sea_csv}
\alias{read_sea_csv}
\title{Because the "Reading Fluency" module has some cells with unquoted commas,
They are causing the usual read.csv delimiter guessing to split
one cell into two, creating too many columns ... |
db59f868a0db8fe92cfe26b4bfc09a747a21a081 | 5dddaf7f6939fd7e257753847cc1ebdfc169af0d | /R/ChapmanMR.R | f33e599479372c19526457e53b6c5ddba3ce2638 | [] | no_license | KevinSee/SiteAbundances | 57c2359a135b23e14681438eab1e288dce88f452 | 483dc6c2402c368e259f2bc0528084cedb752b9e | refs/heads/master | 2021-01-22T14:33:10.084752 | 2015-07-01T18:51:48 | 2015-07-01T18:51:48 | 11,206,391 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 891 | r | ChapmanMR.R | ###############################################################
# modified Lincoln-Petersen (Chapman) estimator
# to estimate abundance from single mark / single recap mark recapture dataa
###############################################################
ChapmanMR = function(data, rmInvalid=TRUE){
if(is.data.frame(data... |
55de20c44931eeac83c70bb878b85c2aaf85ec42 | 87d68604d034086d1dc2582e4c618f5e8c729748 | /script/ancestorPopulationStructure/db2SNP.R | ef5e689f4abbfc01aab4da6eab492179c0faf176 | [
"MIT"
] | permissive | naturalis/changing-invaders | 1618edb5b274cb0e6a8d8f6a3c48b213eadfb255 | c0a848991d32a76d75807694fd9aa23ef501b72a | refs/heads/master | 2023-04-07T01:53:12.213808 | 2022-06-23T15:53:26 | 2022-06-23T15:53:26 | 206,013,632 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,642 | r | db2SNP.R | #!/usr/bin/env Rscript
# changing invaders
# by david
# create 0.3k SNP bcf file
# so a structure analysis could be done over that data
library(RSQLite)
library(dplyr, warn.conflicts = FALSE)
# sed -En '/>.*voor/s/.(.*) .*/\1/p' SNP_V3.fasta > SNPOUT
# sed -En '1!s/,([^,]+).*/-\1/p' SNP_Vfinal.csv > SNPOUT
# sed -En '1... |
fe19eff309fea41ac817f3ab683ff29d973a291c | fdfc22afa8f51ac83096fc8dbb145909d9c61edc | /man/get_us_regional_cases_only_level_1.Rd | 55ba8f03251c0e1452904e5df62e29042ce38fc3 | [
"MIT"
] | permissive | GuilhermeShinobe/covidregionaldata | 1581cc8fbc92123646f934854a25e5452710bfe0 | c1f0b5c6ab5284ac6cf9608b64e002c757bd1da7 | refs/heads/master | 2022-12-05T20:36:09.681272 | 2020-09-02T12:41:17 | 2020-09-02T12:41:17 | 292,276,446 | 0 | 0 | NOASSERTION | 2020-09-02T12:27:20 | 2020-09-02T12:27:19 | null | UTF-8 | R | false | true | 605 | rd | get_us_regional_cases_only_level_1.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/usa.R
\name{get_us_regional_cases_only_level_1}
\alias{get_us_regional_cases_only_level_1}
\title{US Regional Daily COVID-19 Count Data - States}
\usage{
get_us_regional_cases_only_level_1()
}
\value{
A data frame of daily COVID cases for the... |
285321135b005871b8734908d88fb06da47e31c7 | 80b660989fecff2b947aaf930ef54abcb30b3119 | /R_Practice/2_tree_classification.R | 8c6463871c447e93baa3f7cf17889adec18d3722 | [] | no_license | jasonkwak190/works | 9f1847238cf40de23bf10477eb236d40e675febf | 9fcfcee721d2b578dfd6cd91749ee0f9d3dbb13b | refs/heads/main | 2023-06-18T16:01:26.434404 | 2021-07-19T13:19:23 | 2021-07-19T13:19:23 | 377,873,941 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,009 | r | 2_tree_classification.R | # 1) (20 points Modified Exercise 14.4 in ESL)
# Cluster the marketing data of Table 14.1 (ESL) using a classification tree. This
# data is in the ISLR package, and also available on UB learns.
# Specifically, generate a reference sample of the same size of the training set.
# This can be done in a couple of ways, ... |
12d29392e92754feed9e946447da3bb023c930db | 5a7e12e77006ddd46c9cd69bbb3985945138894b | /man/bru_model.Rd | 0067c89963317277ba72e95bc82b4efbb168b22c | [] | no_license | cran/inlabru | ba002f0eb10ba85144dfbfeb1f3af4755b9d8acb | 77e5590164955a652e9af2d6a814fdf2c8d9a1f2 | refs/heads/master | 2023-07-12T01:38:40.674227 | 2023-06-20T13:10:02 | 2023-06-20T13:10:02 | 110,278,992 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,655 | rd | bru_model.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.R
\name{bru_model}
\alias{bru_model}
\alias{summary.bru_model}
\alias{print.summary_bru_model}
\title{Create an inlabru model object from model components}
\usage{
bru_model(components, lhoods)
\method{summary}{bru_model}(object, ...)
... |
95ac4c73ceda902b73b408a4c45691fa681cc5cc | 26730e472b6ee4892b4e1dd93c85933797d3356a | /meta_analysis_stuff.R | 988d2ef988e03cd0aca0344483556ac43eb84549 | [] | no_license | NKalavros/thyroid-cancer-a-bioinformatics-approach | ba6f37aa876ed30e3210d21c60c1509df4fb171c | 4f5b07e10abb1610f8c3e184ca9ceb7ba9368d97 | refs/heads/master | 2020-08-04T08:58:17.691065 | 2019-10-08T02:10:59 | 2019-10-08T02:10:59 | 212,081,016 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,359 | r | meta_analysis_stuff.R | library("devtools")
library(arrayConnector)
install_github("https://github.com/metaOmics/MetaQC")
library("MetaQC")
library("GEOquery")
library("arrayQualityMetrics")
BiocManager::install("hgu133a.db")
BiocManager::install("hgu133a2.db")
GSE58545 <- getGEO("GSE58545",GSEMatrix=T,AnnotGPL=FALSE)[[1]]
arrayQualityMetrics... |
0bf582ca340f211d386ed38ceaf0a9453249ec6b | a7c95f93e964ce75eaaeeb4adbb5acdeac2a442e | /Assignment/Untitled.R | 248ceb27974489188d4ceb01413e89701001418b | [] | no_license | NielsKrarup/DemMorCourse | effae7d81f84fd1093e4a3dc6def80929e04e81d | d4de8e3386e3259e15ee01f5d4dd5d1f28042e55 | refs/heads/master | 2023-08-14T23:05:37.056570 | 2021-10-05T16:01:24 | 2021-10-05T16:01:24 | 403,335,037 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,060 | r | Untitled.R | tmp <-
surf_obj$mu[,,dimnames(surf_obj$mu)$Year %in% as.character(1836:2020)] -
surf_obj$mu[,,dimnames(surf_obj$mu)$Year %in% as.character(1835:2019)]
tmp[,,5]
#sum array
apply(X = OEdata$O, MARGIN = c(1,3), FUN = sum)
arr_long <- reshape2::melt(surf_obj$mu) %>% arrange(Year, Group, Age)
arr_long %>% mutate(a... |
04c2536ea326a9583473acaec35e34ce3a7df745 | 97e8ef7f8220ed512c0b7270f38158df702168e5 | /R/pxtable.R | 91d6e4de208d39a85c10a527d2c5e7bd1e28d6b8 | [
"MIT"
] | permissive | HanOostdijk/HOQCutil | 9441048f2c637b1b0ce1e2c038ce16d18971ad8c | 2021c2cb2dac1ad181b570db6fe2408e02328c43 | refs/heads/master | 2023-08-22T15:51:42.185724 | 2023-07-21T20:11:56 | 2023-07-21T20:11:56 | 140,326,813 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 8,275 | r | pxtable.R | #' print data.frame in LaTeX
#'
#' This function adds to the print function of the `xtable` package by providing predefined `add.to.row` code for the `longtable` LaTeX package: 'continued on/from ...' and 'end of table' lines that can switched on or off. This functionality can only be used with the `longtable` environm... |
8d3c5d783d166ea5d28eeb653dfc9049a8e4166e | 8ff8c54737289ee29e1e9dbee6153e7e8be2d17a | /cachematrix.R | 0e5c8d5285099343d5ef4ced060cc91fdd6c2580 | [] | no_license | mturle/ProgrammingAssignment2 | 3e1b43057901da85296caf1780f03f6d359fcb7f | 9e1c5edb79474d7d053b57452481d354b5d8d55a | refs/heads/master | 2021-01-15T20:14:12.772526 | 2016-05-18T08:03:25 | 2016-05-18T08:03:25 | 58,883,731 | 0 | 0 | null | 2016-05-15T20:50:19 | 2016-05-15T20:50:19 | null | UTF-8 | R | false | false | 1,793 | r | cachematrix.R | # Programmatic Assignement 3
# This function returns a list containing a function to store (set), read (get)
# the value of a matrix and later to store the the inverted matrix or retrieve it
# from cache
makeCacheMatrix <- function(x = matrix()) {
minv <- NULL
set <- function(y) {
x <<- y
... |
a3a27e10038788c149b85c9bcd0d967de6f0e3b2 | e5c43a31a082bbfec5ebbc20b34d373896721579 | /R/functions/reptile_juv_survival.R | f82288e9209161c659c2a14ece78c5da5afeba77 | [] | no_license | geryan/rfst | 3dde3a499651f3a1ccc736f8c6597c5972f0e17c | 0aac1f0c3b17096af0c5b0b06e1ad80ac6d709ca | refs/heads/master | 2023-05-02T12:32:51.743467 | 2021-04-27T01:26:47 | 2021-04-27T01:26:47 | 164,573,310 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 447 | r | reptile_juv_survival.R | reptile_juv_survival <- function(
a, # age at first reproduction
Sa, # adult survival
n, # number of clutches per year
c # number per clutch
){
Sj = (2*(1- Sa)/(n*c))^(1/a)
return(Sj)
}
# Formula from:
# Pike, D.A., Pizzatto, L., Pike, B.A. and Shine, R., 2008.
# Estimating survival rates of uncatcha... |
d549daee7909193731b447419f0828f6267a17f9 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/sampSurf/examples/bboxCheck.Rd.R | 75bd37da6c8a4fcf7d12a9387525adb80b61e3dd | [] | 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 | 235 | r | bboxCheck.Rd.R | library(sampSurf)
### Name: bboxCheck
### Title: Function to Check Spatial Bounding Boxes
### Aliases: bboxCheck
### Keywords: ~kwd1 ~kwd2
### ** Examples
tract = Tract(c(x=20,y=20), cellSize=0.5)
bb = bbox(tract)
bboxCheck(bb)
|
825a85cc31d2cc2ee674308b087df821505f2715 | bf48edd26c053b4ce61dd3e70e1db40588af1b7e | /r/init.R | 347461d9110ec2f2c8fd304803083a66c32908ad | [] | no_license | syncShan/kjm | 1df3509232370c876cb537d7d6e9ff0c0102f925 | 7f5bc9e65720370f91757150155a454b6b146042 | refs/heads/master | 2021-01-15T15:43:05.974886 | 2018-03-03T09:14:25 | 2018-03-03T09:14:25 | 44,855,385 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 416 | r | init.R | source("r/mongoFunc.R")
source("conf/parameter.R")
source("r/restore.R")
library(rjson)
library(quantmod)
date = as.character(as.Date(Sys.time()),"%Y%m%d")
#idList = readLines("conf/etf.conf")
idList = readLines("conf/etfInd.conf")
for( id in idList){
stockdf = updateSingleStock(id,"20100101",date,mongodb,rawTable)
}... |
5e9bd6490182fc3fb3829f93d7695e214ecd3886 | 9db1042b59eccaa4729882c619631599426b6f14 | /data_cleaning_ea.R | 8415f5682e2933efc844c9be76b564a77048c8f3 | [] | no_license | sreifeis/maRkov-chain-gang | 4ef242c22922888d302eb4d1f81981f5a8b93479 | 6a09359ddf17fdf92b8d95396b52fa3e19002201 | refs/heads/master | 2020-05-01T19:09:04.733684 | 2019-04-26T22:50:24 | 2019-04-26T22:50:24 | 177,640,699 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,345 | r | data_cleaning_ea.R | remove(list = ls())
############################################################################
## Programmer: Ethan Alt
## Last updated: 03/28/2019
##
## Description of file:
##
## This file inputs the data into R. Performs some basic cleaning, and runs
## latent dirichlet allocation (LDA) on the data set.
#####... |
c66046dd2002561b677cf447090a184b516b387c | 3f312cabe37e69f3a2a8c2c96b53e4c5b7700f82 | /ver_devel/bio3d/R/read.dcd.R | 255b9b043dd5594174dbfd05949d055b56ffd2fc | [] | no_license | Grantlab/bio3d | 41aa8252dd1c86d1ee0aec2b4a93929ba9fbc3bf | 9686c49cf36d6639b51708d18c378c8ed2ca3c3e | refs/heads/master | 2023-05-29T10:56:22.958679 | 2023-04-30T23:17:59 | 2023-04-30T23:17:59 | 31,440,847 | 16 | 8 | null | null | null | null | UTF-8 | R | false | false | 10,624 | r | read.dcd.R | "read.dcd" <-
function(trjfile, big=FALSE, verbose=TRUE, cell = FALSE){
# Version 0.2 ... Tue Jan 18 14:20:12 PST 2011
# Version 0.1 ... Thu Mar 9 21:18:54 PST 2005
#
# Description:
# Reads a CHARMM or X-PLOR/NAMD binary
# trajectory file with either big- or
# little-endian storage formats
#
# De... |
c7ee5c9d451cb3b1a6a70f1af5d2cfdc51bdc69e | c0ca17c30d8739deacd4f246bb2fc0ceb3dce183 | /plot1.R | 991b67a9722ae3c5d3ba1e38c500033f1e4c821f | [] | no_license | jackelincl/ExData_Plotting1 | 9d3a237566e0df8801814982951fabbdca5fa03b | e1187e40327da17eabfafb0397020bea4ed9f5f2 | refs/heads/master | 2022-12-17T07:34:27.216005 | 2020-09-27T22:19:36 | 2020-09-27T22:19:36 | 299,112,859 | 0 | 0 | null | 2020-09-27T20:24:31 | 2020-09-27T20:24:30 | null | UTF-8 | R | false | false | 779 | r | plot1.R | #Downloading the file, unzipping and saving the data
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(fileUrl, destfile = "electricpower.zip", method="curl")
unzip("electricpower.zip")
rawData <- "household_power_consumption.txt"
#Subsetting the data
data... |
b32f94576ffdf1c124192d545783ab0f2757006b | cd76594c45fd529e00000ba6f436913c3a31b40a | /copula.R | 7e0642360c8742f3884692d40f1e49d383887b20 | [] | no_license | irudnyts/CopulaMLE | 0de514371089835e05dcc99f51e82e98ca413dc4 | f5af3c0ecd4afcefdc385bb457c873490f430e74 | refs/heads/master | 2016-09-05T22:07:45.087277 | 2014-12-11T10:23:06 | 2014-12-11T10:23:06 | 27,123,897 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,701 | r | copula.R | #install.packages("copula")
library("copula")
set.seed(1)
n <- 1000 # number of observation
p <- 0.3 # mixing parameter
a <- 5 # parameter of 1st copula
b <- 10 # parameter of second copula
I <- rbinom(n = n, size = 1, prob = p) # Bernoili r.v.
#_________________________________Gumbel copula__________________________... |
b9d1353c01a54162974e6410b2908b031c4cfa34 | 388d7a62bbbd144f243438f9e6a5a456eb2cce3c | /R/getDayNight.R | 9e7e04641e00dc40c61a84a45c1afb70f0c1b3fe | [] | no_license | aspillaga/fishtrack3d | 64c7dcb2a97a833ef830d845e8bfbc3aaf387827 | 2be695e0f88d97e095f074acd17240cb8878dbbc | refs/heads/master | 2022-01-18T10:50:53.776454 | 2019-05-23T15:09:18 | 2019-05-23T15:09:18 | 118,634,135 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,293 | r | getDayNight.R | #' Classify the time stamps of a track into 'day' and 'night' categories
#'
#' This function classifies the time stamps of a track into day and night
#' categories according to the local sunrise and sunset times.
#'
#' @param time.stamp vector with the date and time of the detections, in
#' \code{POSIXt} format.
#'... |
767ea1420cd3b6ead92a7662fd3d9f0276805353 | c5585993ea0bea0ebea10b1142f12098984806f2 | /R/operators.R | fa40ef7c87520de6b4ef7ecfe216103d7ceacac3 | [
"MIT"
] | permissive | Sithara26/strafica | b0ff86e3339e868152c840c61379ef8571248dcb | 0e1084a96c17c6e69b419893d7844940f946bc4f | refs/heads/master | 2023-03-18T12:49:31.617195 | 2021-03-04T07:00:53 | 2021-03-04T07:00:53 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 376 | r | operators.R | # -*- coding: us-ascii-unix -*-
#' Test against inclusion, opposite of \code{\%in\%}.
#' @param x vector or \code{NULL}: the values to be matched
#' @param table vector or \code{NULL}: the values to be matched against
#' @return A logical vector.
#' @export
#' @name %nin%
#' @rdname nin
#' @usage x \%nin\% table
`%nin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.