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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
124064ec49554e396377b08dccb4518130c1f0c9 | bbe1d2df7586e19a6390d80f88b99847aab39177 | /code/Steve/SNX19_clustering.R | 8c6b36ffbc0ce82701354a8885938831657779c6 | [] | no_license | LieberInstitute/SNX19 | 0d9122855bb3b0d292dd22412193a96a5ed49698 | eb946058427c9300d16e81908e260f1df854c533 | refs/heads/master | 2021-10-14T11:00:08.897850 | 2019-02-04T19:59:16 | 2019-02-04T19:59:16 | 79,872,410 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 22,654 | r | SNX19_clustering.R | ## Load features of interest
load('/dcl01/lieber/ajaffe/Steve/SNX19/SNX19_8Features_of_Interest_crossBuild.rda')
#### eQTL heatmaps
load('/dcl01/lieber/ajaffe/Steve/SNX19/eqtl_runs/Merge/rdas/FinalObject_Annotated_5LIBD-CMC_set_Merged_filtered_noLIBD_PGC_Missing_1e5sigFilt_reOrdered_morePGC_100417.rda')
## Top 10 SNP... |
438a89e53a6e3eb98290df9789385c403471f44f | 2b1de183372b11d8eda80f69ed0c7c484f91377b | /Shiny_Power/code_check.R | 276525e716d21c7b3262c8831197244bc943c94d | [] | no_license | cschwarz-stat-sfu-ca/ABgov-fish | 69cf70d05e7c403ec0a359b93eeff824f6ef6889 | 6a0043da2c59e7193edcf8c25446ad7fbefa40fc | refs/heads/master | 2021-01-18T21:12:10.922422 | 2017-07-04T19:04:53 | 2017-07-04T19:04:53 | 87,013,731 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 209 | r | code_check.R | PerChange<-300
y<-5
Trend<-(PerChange/100+1)^(1/(y-1))-1
lambda<-(PerChange/100+1)^(1/(y-1))
x<-1:y
mu<-Trend*(x-1)
lf<-log(lambda)*(x-1)
plot(x,exp(mu),type="l",ylim=c(1,5))
lines(x,exp(lf),col="red") |
f8e665aa36cf504c21fd490c6ea92a65c4418caf | 9036fb7c2e851e70a81a2de4bc0a1aedf9600efa | /R/trial1.R | 1ea58aedd8f64980660e377816528329aa1961f2 | [
"MIT"
] | permissive | Hebams95/Foofactor | a965eae76c02b5ad8a8cf0410ebcf432b4bf9502 | fa50824a1f5760201f06bf2c7071c001c5986c2b | refs/heads/master | 2022-12-21T14:38:29.041437 | 2020-08-29T17:15:16 | 2020-08-29T17:15:16 | 291,312,041 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 756 | r | trial1.R | library(devtools)
library(tidyverse)
library(fs)
use_git()
dir_info(all = TRUE, regexp = "^[.]git$") %>%
select(path, type)
(a <- factor(c("character", "hits", "your", "eyeballs")))
(b <- factor(c("but", "integer", "where it", "counts")))
c(a, b)
fbind <- function(a, b) {
factor(c(as.character(a), as.character... |
68a0b5ee4e409b729daff10d85c2c7a016b9a0e8 | 73b192614b1326dbbe6ff4b6f2f4dbf5e5f77781 | /code/exploratory/Fostercare_group2.R | 96503d14ab5bf4c7a2f8c62eaa546ae3328c23bd | [] | no_license | datafordemocracy/PublicInterestData2018 | b8809f0b9e1c62c18efdcf9676ba8337dca7a48d | cf17dfaf6cb24f91b479eba40adacb1da3fe8534 | refs/heads/master | 2018-12-22T13:31:06.851891 | 2018-11-03T02:02:48 | 2018-11-03T02:02:48 | 117,559,773 | 3 | 5 | null | 2018-11-03T02:02:49 | 2018-01-15T15:05:48 | R | UTF-8 | R | false | false | 6,476 | r | Fostercare_group2.R | ####################################
# DS 5559: Public Interest Data Lab
# CVille Child Welfare Services Data
# Read, Examine, Clean Foster_Care Data
# Group 2
# Updated: February 19, 2018 - Naifei Pan (nfp) and Michael Woon
####################################
## SET UP
rm(list=ls())
getwd()
setwd("/Users/naifeipa... |
da47fcf33f56c1ad1beebd703a1598cad24214c1 | 7c917a03544aa26a36632a38e5c9184b498d1686 | /man/manageCountData.Rd | c044d5f39b9d9025f0d443b5fdc51e2cf206526c | [] | no_license | stuartWagenius/echinaceaLab | 1cfbffab49b0170571ae29ad89f99d1df75bfd44 | cb100b8626af101e7e656223117f15a6ea867559 | refs/heads/master | 2022-12-24T01:19:21.164064 | 2022-12-19T23:08:00 | 2022-12-19T23:08:00 | 6,947,769 | 1 | 9 | null | 2022-12-19T16:31:20 | 2012-11-30T23:39:57 | R | UTF-8 | R | false | true | 922 | rd | manageCountData.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/manageCountData.R
\name{manageCountData}
\alias{manageCountData}
\title{This function can be used to check count data for errors}
\usage{
manageCountData(df, viewAllMismatches = FALSE)
}
\arguments{
\item{df}{data.frame of count data. This da... |
552a2630460bc60783d41e0e58ef633161236440 | 0eb87c697d21c87fe6ffdeb731033ea17e92a327 | /R/plot_grid.R | 83f179d8f3fac121c618d679700330961d4fb11e | [] | no_license | Grelot/rgeogendiv | e4566fcb965a07db5a655a95744eb20221f893ce | d261bcea4d12a70d40ce3efd058b0908744a3c27 | refs/heads/master | 2023-02-16T18:41:09.436973 | 2020-12-17T16:26:31 | 2020-12-17T16:26:31 | 300,564,835 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,734 | r | plot_grid.R | library(ggplot2)
library(sp)
library(rgdal)
library(rgeos)
library(maptools)
library(rnaturalearth)
#' @export
#' @title labels of Intervals
#' @description A list of label of intervals is produced based on a
#' numeric vector of probabilities with values in [0,1].
#' The smallest observation corresponds to a probab... |
af626674869b0ff06710059653eee1c80a8dd0b1 | dfc2829ca5ebe47b62b7a2e6f4f21d1e035447ab | /knn.R | 41897b159cc49002734f9266bcb9763091444c92 | [] | no_license | RobinMoRi/machine-learning-tutorials | 88aba9dc3e12846c150ab31b8436d80d6a57f06f | 2190d8c3b72f9b44d5248b5a4eb6b5707947162b | refs/heads/master | 2022-11-22T13:51:01.107005 | 2020-07-07T07:49:09 | 2020-07-07T07:49:09 | 277,751,534 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 833 | r | knn.R | rm(list = ls())
library(caret)
library(dslabs)
library(MLmetrics)
library(e1071)
data(heights)
set.seed(1, sample.kind="Rounding") # set.seed(1, sample.kind="Rounding") if using R 3.6 or later
test_index <- createDataPartition(heights$sex, times = 1, p = 0.5, list = FALSE)
test_set <- heights[test_index, ]
train_set ... |
cf7fb7e51177f40afccb563d3e9e0984229986b6 | bad538073a6ed5bd9f8f0653db02fdd433137380 | /packages/RSuite/R/14_setup_structure.R | e8f7521843ed6b1a68cd6a5853815f186343c68c | [
"Apache-2.0"
] | permissive | WLOGSolutions/RSuite | 5372cfc031b518e38c765b574a99944324a46275 | da56a5d1f4a835c9b84b6cebc1df6046044edebe | refs/heads/master | 2021-06-08T14:07:27.322986 | 2021-05-03T14:09:11 | 2021-05-03T14:09:11 | 104,214,650 | 157 | 11 | Apache-2.0 | 2021-05-03T08:27:54 | 2017-09-20T12:48:44 | R | UTF-8 | R | false | false | 10,732 | r | 14_setup_structure.R | #----------------------------------------------------------------------------#
# RSuite
# Copyright (c) 2017, WLOG Solutions
#
# Utilities for managing project structure.
#----------------------------------------------------------------------------#
#'
#' Structure compliance table
#'
#' @keywords internal
#' @noRd
#'... |
de76459ae8460e0dcb5d5caa24d1fc1eb4075aee | b85b26cbd201a1317453bc0814b9fec0fc1ebcea | /sources/4-wranglers/2-prepare/3-format-number/patterns/r/format-number_currency.R | f0a98b2d706024d98ee0f7bd4909b31934da08e8 | [
"MIT"
] | permissive | UN-AVT/kamino-source | d9d06b50fd2a808693b22b04decf8690b609c884 | 95c6e151e69d55d61a3dc15a3344a75a4abe2cbc | refs/heads/main | 2023-05-21T20:34:08.342314 | 2023-02-28T14:12:01 | 2023-02-28T14:12:01 | 305,565,875 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 444 | r | format-number_currency.R | # Required libraries
#NA
####################################################################################
# Change numerical Data to Currency Format
f_currency <- function(df_currency) {
df_currency <- paste0("$ ", df_currency)
}
# Call the function with your values to the parameters
df_1$avg_hourly_wage_men <-... |
2c63e56f1f0db864df8227d8345d45a72842572d | a63a7417037021411965dd260d6a71ae742a07f7 | /app.R | d77e0ae3a58865589e341c92ed48c1f217c790e5 | [] | no_license | AntoniKedzierski/StackExchange-Analysis | a43970bdb61bdd5e3e956ee1f61b0fbb4d63be45 | d66f355b5a341e55529497a9ef7cfa2f072ddf11 | refs/heads/main | 2023-02-21T04:11:28.898378 | 2021-01-20T12:08:28 | 2021-01-20T12:08:28 | 331,294,170 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,368 | r | app.R | # === Uncomment this if running the script for the first time ===
# install.packages('dash')
# install.packages("devtools")
# install.packages("rlang")
# library(devtools)
# install_github('facultyai/dash-bootstrap-components@r-release')
# === If the instalation of 'rlang' fails, try to run RStudio as an administrator... |
faccc3d86dce11c0f0cbbceb23083f2c1834e41d | 3ca1380eefc7eaba25fc6149e32ea8fc088babf8 | /R/steam.R | d98be1de77763a118bb73166138902f4abb14b69 | [
"MIT"
] | permissive | skannan4/singleCellNet | a52341f029d5c7f74c36a0ffd28989a9ee557eff | 2c91d3a05bbbb5857c6af9a4cc691124b977b1ca | refs/heads/master | 2020-04-19T07:11:07.169109 | 2019-01-28T22:58:50 | 2019-01-28T22:58:50 | 168,039,964 | 0 | 0 | MIT | 2019-01-28T21:24:54 | 2019-01-28T21:24:54 | null | UTF-8 | R | false | false | 9,279 | r | steam.R | # Patrick Cahan (C) 2017
# patrick.cahan@gmail.com
# functions to assign samples/cells to groups using dbscan, mclust, treecut and frienemies
#' @export
cutTreeToNames<-function # converts the result of running cutreeDynamicTree to a list of entities
(entNames, # vector of names in same order as ctRes
ctRes # result... |
8bf39cfa83976583164c40bc3bdcea26b7f89795 | 0e1e693bea4c20210cb40ef1cdb577cc052f62d9 | /man/renderSqlFile.Rd | b3d7150c4f9868836bff3b40694dff7ab5ec1953 | [
"Apache-2.0"
] | permissive | hajarhomayouni/SqlRender | 1ffd2eedcaca404c5a95dc81ed58b3abeb6abb1e | fd7ac23ebc6ec788ad9ca08c08c27cacab0c0786 | refs/heads/master | 2021-01-20T19:45:10.976846 | 2017-06-16T22:12:49 | 2017-06-16T22:12:49 | 60,558,867 | 0 | 1 | null | 2017-05-09T02:13:53 | 2016-06-06T20:32:37 | R | UTF-8 | R | false | true | 1,171 | rd | renderSqlFile.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/HelperFunctions.R
\name{renderSqlFile}
\alias{renderSqlFile}
\title{Render a SQL file}
\usage{
renderSqlFile(sourceFile, targetFile, ...)
}
\arguments{
\item{sourceFile}{The source SQL file}
\item{targetFile}{The target SQL file}
... |
36b58cad303228f73c3e277e28b31a27f04a1e1b | 29585dff702209dd446c0ab52ceea046c58e384e | /WufooR/tests/testthat/test-forms.R | f442b5bbd5df13a694d2a66ba4397974b41a4cff | [] | 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 | 729 | r | test-forms.R | library(testthat)
library(WufooR)
options(Wufoo_Name = "johnmalc", Wufoo_API = "F1QH-Q64B-BSBI-JASJ")
context("Forms")
test_that("Form request returns 17 rows, always", {
userDB <- form_info()
expect_equal(dim(userDB)[2], 17)
})
test_that("Form returns entries, with the requested URL", {
userDB <- form_entrie... |
0111983b12bf54bef187e3f1f7480fad5699ebce | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/pvsR/examples/Local.getOfficials.Rd.R | 3c7be10406fea56c0e7bba50643771575bef3872 | [] | 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 | 410 | r | Local.getOfficials.Rd.R | library(pvsR)
### Name: Local.getOfficials
### Title: Get officials for a locality
### Aliases: Local.getOfficials
### ** Examples
# First, make sure your personal PVS API key is saved as character string in the pvs.key variable:
## Not run: pvs.key <- "yourkey"
# get a list of officials according to certain local ... |
f6cf4a907a3ca850c6f91bbd8ed8b09dce55a3ed | 0d54f410d18798dc8a8c824552c23ce4edc0596b | /functions.R | 94b0afb30581676d5565a2abe4437c9b07e494bc | [] | no_license | paultanger/COVID_LIC | 4661f8056417a1cf07e4b5d57c96a40c2a4dfe8a | e4c7a15ac01248453eabe67c2a02a7957096330c | refs/heads/master | 2023-02-10T13:35:34.412379 | 2021-01-10T19:28:02 | 2021-01-10T19:28:02 | 262,830,651 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,145 | r | functions.R | # Define function for filenames with date stamp
addStampToFilename = function(filename, extension){
filenameWithStamp = paste(filename, "_", format(Sys.time(),"%Y%m%d_%H%M"), ".", extension, sep="")
return (filenameWithStamp)
}
#http://stackoverflow.com/questions/13649473/add-a-common-legend-for-combined-ggplots
g... |
5fd702dee479912597d40edd7c7c8f3f0813c5ed | b149df305dea721e1a1a55e6c3d4d700b7de36c2 | /man/droplet_delete.Rd | eca2e10d24908b27f8208688284c9a6e7544a7f5 | [
"Apache-2.0"
] | permissive | pachadotdev/analogsea | f5302d21e4fa11680a12bb16bee3133ec78b064a | 947d17175a0ac219a1ef7dae885688320aef59b3 | refs/heads/main | 2023-07-07T14:39:55.017718 | 2023-07-01T14:52:27 | 2023-07-01T14:52:27 | 20,135,875 | 21 | 3 | Apache-2.0 | 2023-04-18T17:35:58 | 2014-05-24T17:54:43 | R | UTF-8 | R | false | true | 1,073 | rd | droplet_delete.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/droplet-actions.R
\name{droplet_delete}
\alias{droplet_delete}
\title{Delete a droplet.}
\usage{
droplet_delete(droplet = NULL, tag = NULL, ...)
}
\arguments{
\item{droplet}{A droplet, or something that can be coerced to a droplet by
\code{\l... |
f507ffd8b719c14f19cefe5e5cc478b7199f1477 | cf6273eb81e073c2b48f24f94b63539d62918f97 | /cachematrix.R | eeb7e17592b77bf50092c4614a6ce374f61675bb | [] | no_license | davidclarance/ProgrammingAssignment2 | e1c9aa20ff6e8c3e74219a9524465238108980c7 | 70e78566b704b962636059c9ddf0f3733a751271 | refs/heads/master | 2020-12-25T04:18:45.410651 | 2015-02-22T07:42:15 | 2015-02-22T07:42:15 | 31,153,646 | 0 | 0 | null | 2015-02-22T05:23:50 | 2015-02-22T05:23:47 | null | UTF-8 | R | false | false | 1,234 | r | cachematrix.R | ## The two functions calculate and store/cache inverses of matrices.
## Once calculated, the inverse doesn't need to be recalculated, it will be retrieved from memory
## This function creates a list containing four functions to set and get the value of the vector and to set and get the value of the inverse
make... |
290bd23267ef5ab3598ac07f621eb451ad7eb5e4 | cebd2c07f266db48f5e3cdb914a8a8f5214aaf3f | /pdb2wave/man/get_structure_pdb.Rd | a532fb4fac1b58b87e942f7455bcb7e90f34b13e | [] | no_license | dprovasi/pdb2wave | eff8f1728bc64d3533122f058254ef44dd6753f9 | 81550ccab438bf0ab10426e2cb1de96ca4b4c89d | refs/heads/master | 2020-06-18T11:58:52.911272 | 2019-07-11T03:23:42 | 2019-07-11T03:23:42 | 196,297,131 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 764 | rd | get_structure_pdb.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pdb2wave.R
\name{get_structure_pdb}
\alias{get_structure_pdb}
\title{Read pdb extract sequence, call dssp for secondary structure,
calculate distances to two points for sound source localisation}
\usage{
get_structure_pdb(filename, refL_resn... |
71f86caf403a034ac0e22b4b3e5263c30cbef034 | c09ddeaa31b0ef553d82bc617181784e80b03d71 | /functions/clusterit.R | 18823948395754278eb6d224dfab58fd0f0a74b9 | [] | no_license | alecstansell/code-masters | d4bafa7836ffe02fc9e9b02e94bce9c4e6cf92a1 | e9df78f782caf0bb3eefb86c6197ecd1a06345aa | refs/heads/master | 2022-09-18T09:43:10.488042 | 2020-05-28T10:50:32 | 2020-05-28T10:50:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,796 | r | clusterit.R | #####################################################################################################################################
#Cluster Profiler Function
#####################################################################################################################################
'Inputs for cluster it a... |
0df56f36fb0bed140113b1a0729634d208f6893c | 855f8ca0f6e5efc297cc057ccb9691ec1a2ae07c | /movies/rvest_douban.R | 16fe3ae28b264fade1292ee42d7c16bdf60d20c3 | [] | no_license | wenrurumon/intbot_selenium | 9b213dd2f8b10e6c2d45ba9c99e43b79cabd66e9 | c874df3cd73569bb1a7c1ed573eaa6f9f6c74d69 | refs/heads/master | 2020-06-11T11:49:19.453440 | 2018-01-15T04:41:33 | 2018-01-15T04:41:33 | 75,675,151 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,118 | r | rvest_douban.R |
rm(list=ls())
library(rvest)
#Get Movie Urls
#2014 867233; 2015 836808; 2016 3516235
getdouban <- function(year){
url1 <- paste0('https://www.douban.com/doulist/',year,'/?start=')
url2 <- '&sort=seq&enc=utf-8'
urli <- paste0(url1,0,url2)
paginator <- read_html(urli,encoding='UTF-8') %>% html_nodes('.paginato... |
f5f945bcdafb25efc13ecabbc8ab2d3c87259a15 | 0a906cf8b1b7da2aea87de958e3662870df49727 | /grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610051244-test.R | 11ca05bb7a831b33d14e0aaa93a95235bf7a00ac | [] | 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 | 488 | r | 1610051244-test.R | testlist <- list(rates = numeric(0), thresholds = numeric(0), x = c(1.67792003657653e+243, 9.07655807768029e+223, 2.06525086871434e-27, 1.1076641767647e-123, 7.52609340439445e-304, 3.32760790845441e-310, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0... |
d79939caebdc7f4e8ac1b30e47ccfde4afaa7843 | 2d34708b03cdf802018f17d0ba150df6772b6897 | /googleadexchangebuyerv13.auto/man/Account.bidderLocation.Rd | 72a63c1b9896af9f664816ebf277dd55b5178911 | [
"MIT"
] | permissive | GVersteeg/autoGoogleAPI | 8b3dda19fae2f012e11b3a18a330a4d0da474921 | f4850822230ef2f5552c9a5f42e397d9ae027a18 | refs/heads/master | 2020-09-28T20:20:58.023495 | 2017-03-05T19:50:39 | 2017-03-05T19:50:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 543 | rd | Account.bidderLocation.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/adexchangebuyer_objects.R
\name{Account.bidderLocation}
\alias{Account.bidderLocation}
\title{Account.bidderLocation Object}
\usage{
Account.bidderLocation()
}
\value{
Account.bidderLocation object
}
\description{
Account.bidderLocation Objec... |
5050b10b8a107937f2b801b349d6ad247f5c9a94 | f5279bbb062078f42a52f2d5c3613907ccf132ee | /man/dbRenameTable.Rd | 9703a243804ba24437a2e73c204aafc5a06148df | [
"BSD-3-Clause"
] | permissive | prestodb/RPresto | cff084d4679bcb0e1237147d76f37b9e1cf42a83 | 3a9fb5baf81bca7c53ea8187ffc7ba784223ca23 | refs/heads/master | 2023-09-03T03:54:41.119049 | 2023-05-05T03:37:54 | 2023-05-08T02:49:45 | 32,487,073 | 140 | 50 | NOASSERTION | 2023-05-08T02:49:46 | 2015-03-18T22:11:28 | R | UTF-8 | R | false | true | 410 | rd | dbRenameTable.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dbRenameTable.R
\name{dbRenameTable}
\alias{dbRenameTable}
\title{Rename a table}
\usage{
dbRenameTable(conn, name, new_name, ...)
}
\arguments{
\item{conn}{A PrestoConnection.}
\item{name}{Existing table's name.}
\item{new_name}{New table ... |
bbeb8853e3c8cb686bf234a2ddd3ecbc56da4616 | 77985a89af42786e246d3e35cf2a6f757b2be147 | /tests/testthat/test-expectedbiodiversity.R | df372538dfeecc523f73cfea53c4e97ea052c1ef | [] | no_license | sustainablefarms/linking-data | 0c125db98dd0639fbfccaaf0204bcb8836c9a81c | 4dafa33d86c220fb3e5c838d8194f96fbb4ba740 | refs/heads/master | 2021-07-16T13:39:28.538843 | 2020-10-26T06:51:32 | 2020-10-26T06:51:32 | 222,566,003 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 34,111 | r | test-expectedbiodiversity.R | # test expected number of species
context("Number of Detected Species Expected")
# tests:
# multiple different draws*****
# model has LVs, use fitted LVs, in sample data
# model has LVs, marginalise LVs, in sample data
# model has no LVs, in sample data
# model has LVs, marginalise LVs, holdout data
# model has no L... |
5a4356b5305e3cca03f73d7577e9b9112eb946a0 | f6ac2340ee0059d2e79376979aeb4ab8b6cd5fe8 | /man/conf.set.Rd | e5563c07e78c85ecaa6b0367ca8b1014f4fd3483 | [] | no_license | cran/conf.design | e8bdca718957ef3c9692af5cf2303e6197e31189 | 45930fa52c446cb0af13b463094e092633205c64 | refs/heads/master | 2021-01-23T17:30:29.255892 | 2013-02-22T00:00:00 | 2013-02-22T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,772 | rd | conf.set.Rd | \name{conf.set}
\alias{conf.set}
\title{
Find all confounded effects
}
\description{
Find minimal complete sets of confounded effects from a defining set
for symmetric confounded factorial designs. Useful for checking if a
low order interaction will be unintentionally confounded with
blocks. As in the usual co... |
8f6012f6a117983fd8e30c4c0e0eccd1857a9bd2 | 4a0d80d21812719a974d3c1b97a1642a1d331c1d | /man/plot_graph_with_legend_and_stats.Rd | 42db2016f913437002be4198fa12a48cba2ea3f1 | [] | no_license | tilltnet/rdimensions | 16e1eccc95930a05e071b928b575918a2b115e46 | 2c1b020b937f1679d488759d60de9eab9070a0e7 | refs/heads/master | 2022-02-12T18:46:31.514318 | 2022-02-03T17:49:02 | 2022-02-03T17:49:02 | 251,707,078 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 488 | rd | plot_graph_with_legend_and_stats.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graph_helper_functions.R
\name{plot_graph_with_legend_and_stats}
\alias{plot_graph_with_legend_and_stats}
\title{Plot graph with stress layout and optionally with legend and some statistics.}
\usage{
plot_graph_with_legend_and_stats(
g,
l... |
364c7c75c56d90680d59abd575e9368ab136201b | ae357798a91f95d0190a9fb49c510bcbbd9e01e7 | /HW05.R | db59fe0d90c271718148825b205172103e0db087 | [] | no_license | chejuiliao/R_class | 65b631df21e136d88329d8e62ad6f5c8dc09cbe7 | 8c8fbaf49f323da65d9c90987ee416d460b578ac | refs/heads/master | 2021-01-20T10:16:19.269485 | 2017-10-26T08:13:33 | 2017-10-26T08:13:33 | 101,625,914 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 760 | r | HW05.R | # R class HW05
# 自訂standard deviation函數
my_length <- function(vec){
cnt <- 0
for(i in vec){
cnt <- cnt + 1 #計算迴圈跑了幾次
}
return(cnt)
}
my_sum <- function(vec){
sum <- 0
for(i in vec){
sum <- sum + i #將vec每個元素加起來
}
return(sum)
}
my_mean <- function(vec){
mean <- my_sum(vec) / my_length(vec) #... |
54a85bd95eff59e999a09c50452da615543d9d1a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/orthopolynom/examples/polynomial.functions.Rd.R | d88b7e5a02177352660554829917399c0721d339 | [] | 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 | 409 | r | polynomial.functions.Rd.R | library(orthopolynom)
### Name: polynomial.functions
### Title: Coerce polynomials to functions
### Aliases: polynomial.functions
### Keywords: math
### ** Examples
###
### generate a list of T Chebyshev polynomials of
### orders 0 to 10
###
p.list <- chebyshev.t.polynomials( 10, normalized=FALSE )
###
### create t... |
312b63a8cf70a60817369ec1d941c5d4116c3f6d | 74fe29da37e54fb5e49a1ae7d4cf5051428202eb | /man/settings_colours_getColors.Rd | 3f127b2fc6e4fe5321574a3f9df4c1a60201fc64 | [] | no_license | CRAFTY-ABM/craftyr | 7fd8e63f85f4ddc13fbb0a79b67710a7b5a818f2 | 5630d1f0e4a1b1c34e3d10740640d414346f1af4 | refs/heads/master | 2022-08-11T13:20:13.579266 | 2018-06-16T06:55:19 | 2018-06-16T06:55:19 | 266,212,786 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 478 | rd | settings_colours_getColors.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/settings_colours.R
\name{settings_colours_getColors}
\alias{settings_colours_getColors}
\title{Get colour palette of requested size.}
\usage{
settings_colours_getColors(simp, number, dim = 1, set = "Set1")
}
\arguments{
\item{number}{}
\item... |
f8385447286e37c8f58bf33db09cac876ac105b1 | 9ea9f426e4c58384869c0fd359aa86b5b35d764c | /man/getNodeLabel.Rd | 7fa24ae5c708aff0b58ee924b62d6ebf3d3468b5 | [] | no_license | cran/iSubpathwayMiner | 89dd8dc5f5bd9c05817659f8715ae53697963cb2 | e7a510b5d3826007967e040fa957a49219775c7e | refs/heads/master | 2016-09-09T20:35:38.137453 | 2012-07-08T00:00:00 | 2012-07-08T00:00:00 | 17,718,884 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,029 | rd | getNodeLabel.Rd | \name{getNodeLabel}
\alias{getNodeLabel}
\title{Get new node labels according to names attributes of graph}
\description{
Get new node labels according to names attributes of graph.
}
\usage{
getNodeLabel(graph,type="symbol",displayNumber=1)
}
\arguments{
\item{graph}{ The igraph object of a pathway gra... |
e05b169df1f6693f3a09d169a0f7a20f4b7b5367 | 0d7702f9e21eace56dc305889f81871a5434c3e9 | /flu/normalizeReadCounts.R | 3d85c2cae5357be572e292e2956d8b9c02fab64b | [] | no_license | sowmyaiyer/new_repo | 71f37b48fd502960488462a94b789ec21fd9482e | 6fe37a6abbb5e339793710eb04c5f9e017ceb072 | refs/heads/master | 2021-01-10T03:35:13.789393 | 2016-03-10T18:40:40 | 2016-03-10T18:40:40 | 53,608,144 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 432 | r | normalizeReadCounts.R | input <- commandArgs(TRUE)[1]
output <- commandArgs(TRUE)[2]
reads_df <- as.data.frame(read.table(input))
colnames(reads_df) <- c("chr","start","end","gene_name","score","strand","readCount")
scalingFactor <- sum(as.numeric(reads_df$readCount))/1000000
reads_df$rpm <- reads_df$readCount/scalingFactor
write.table(reads... |
d9a1a9fe43d6fd6d550c36c86aa581e2d74b7cd7 | 149d02e0443112da626d6c457ea32883e92ec515 | /R/bankhols.r | 345519583dfe964acb8dc4f28b1de51b123327ff | [
"MIT"
] | permissive | iainxingham/clinics | d7935152caa276938be7970b6ee66185bf09392a | a8c9dc43f597e483b010e255da7acb017de6a252 | refs/heads/master | 2021-01-01T20:19:39.970804 | 2017-07-30T18:14:46 | 2017-07-30T18:14:46 | 98,815,818 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 651 | r | bankhols.r | # Clinics R package
# Bank Holidays
#' Scrape bank holiday dates from UK government website
#'
#' @return A Date vector containing bank holidays for England
#' for the current and next year
#' @examples
#' bh_list <- scrape_bh_dates()
scrape_bh_dates <- function() {
bh_webpage <- read_html("https://www.gov.uk/bank... |
c868998bd93bbb7cd4a34c64ddca093f88635b32 | 83f3c69f010186fc7476572009e615010d061ecf | /man/TD.Rd | 2affd8d0e9888dd7d38fd4eb5f78ebdbd56f3e56 | [] | no_license | cran/singcar | 27f05520cc6f2115ccf4160720255fda2646e0b7 | 813e820fb1af609d0a60223b98a45bb00934000a | refs/heads/master | 2023-03-31T06:13:28.697842 | 2023-03-16T08:10:02 | 2023-03-16T08:10:02 | 305,968,018 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 4,233 | rd | TD.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TD.R
\name{TD}
\alias{TD}
\title{Test of Deficit}
\usage{
TD(
case,
controls,
sd = NULL,
sample_size = NULL,
alternative = c("less", "greater", "two.sided"),
conf_int = TRUE,
conf_level = 0.95,
conf_int_spec = 0.01,
na.rm = ... |
1264b4052c682385b15603c0f28374ae24705b15 | 1233f01e5dde9016f0e9a611d59acbaf9e212021 | /ridgeplot.R | 464c2dc5452f7176f3f830b68db7b2f356f955e6 | [
"MIT"
] | permissive | garikoitz/paper-reproducibility | 07bd0a56cd6f6cec73a19a5d17050f91265bf663 | d6c72e822430e7cead8f50325881cded32b5690e | refs/heads/master | 2022-01-04T19:34:51.879914 | 2019-07-24T13:46:41 | 2019-07-24T13:46:41 | 179,405,161 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 166 | r | ridgeplot.R | library(ggplot2)
library(ggridges)
data <- data.frame(x = 1:5, y = rep(1, 5), height = c(0, 1, 3, 4, 2))
ggplot(data, aes(x, y, height = height)) + geom_ridgeline()
|
121c63253cd7a22a1f2f99d5460818ec9c75607b | 6f21fc1d395a49a138888b228805f34d1fadff5b | /reto.R | eb75a658c467815acd2c32d24c42511f0818d174 | [] | no_license | ALandazabal/Profesional-Ciencia-de-Datos-Platzi | c4566bc8bcce157d5abce971d7a7e76ee732b313 | a12243069747079d78fe1924a3119f7c717c4b83 | refs/heads/master | 2021-02-16T21:10:10.291896 | 2020-03-06T15:37:38 | 2020-03-06T15:37:38 | 245,044,679 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 410 | r | reto.R | library(rvest)
url<-"https://www.laliga.com/laliga-santander/clubes"
library(stringr)
pag<-"#__next > div:nth-child(2) > div.styled__ClubsWrapper-sc-1el5vkx-1.dHwnXs > div.styled__ClubsContainer-sc-1el5vkx-0.eManki.styled__ContainerMax-ujqhyo-0.dIbAc > div > div:nth-child(1)"
lista_clubs<-c(1:20)
pagL<-character()
f... |
0f08603b7e6d6fb5a0cf3eb2fd5d8d873978fe71 | 6e012caa8d23f76498892dd4a5053c618e74a0d5 | /scripts/basic concepts/Func-LoadLibrary.R | 8acbf2c44058905ca8a20cccf667370ba4984ee2 | [
"MIT"
] | permissive | duttashi/learnr | 4bc973fed064fe496673fc53d65cb797db7ae120 | 3d7e17d044dfd2e4ce1996d1a2a5a02dc7e4db45 | refs/heads/master | 2023-06-29T01:39:40.940465 | 2023-06-16T05:00:07 | 2023-06-16T05:00:07 | 62,351,661 | 81 | 51 | MIT | 2023-06-16T05:00:08 | 2016-07-01T00:56:08 | R | UTF-8 | R | false | false | 177 | r | Func-LoadLibrary.R | # Create function for loading the commonly used data analysis libraries
LoadLibraries<- function(){
library(ISLR)
library(MASS)
print ("The libraries have been loaded")
} |
2653b47b2d6460e8392a82b6a745ba61e8666338 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/clampSeg/examples/gramA.Rd.R | 9c0c70b189b72f351c19ebeaebecb620910a174b | [] | 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 | 618 | r | gramA.Rd.R | library(clampSeg)
### Name: gramA
### Title: Patch clamp recording of gramicidin A
### Aliases: gramA 'gramicidin A' gramicidin gramicidinA
### Keywords: datasets
### ** Examples
# the recorded data points
gramA
# the used filter
filter <- lowpassFilter(type = "bessel", param = list(pole = 4L, cutoff = 1e3 / 1e4),... |
1924c70d5a364aad986327bcf2cfb8999222ef75 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/memisc/examples/Iconv.Rd.R | bd9653747c640ca72aa1a2987b45326c251328de | [] | 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 | 845 | r | Iconv.Rd.R | library(memisc)
### Name: Iconv
### Title: Convert Annotations, and Value Labels between Encodings
### Aliases: Iconv Iconv.annotation Iconv.data.set Iconv.importer
### Iconv.item Iconv.value.labels
### Keywords: misc
### ** Examples
## Not run:
##D # Locate an SPSS 'system' file and get info on variables, their... |
a27b257399eb397ce455dfd12031f5dcb8f6cb78 | 679434ca1ba128194fa2f1cb1328d82a6e6812ea | /Reproducible_SA.R | 40d00de3cd39001fe61b5f29e3e9959a67ed1114 | [
"MIT"
] | permissive | yexiaoqingruc/yxqhomework | 7c7a7617feb406610795b8a1a073395b966fba48 | d39d597c41667a3741f727fdb6a0808754f2cd45 | refs/heads/master | 2020-05-19T16:05:25.408496 | 2019-05-09T06:51:00 | 2019-05-09T06:51:00 | 185,098,673 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,515 | r | Reproducible_SA.R | #===============================================================
# Subgroup Analysis with the Ovary dataset
# [Xiaoqing Ye]
# May, 2019
#===============================================================
#===============================================================
# Reproducibility: Reproducible_SA script
#==========... |
26c00893f20fd0006ea8628dd520d1a76623c72c | 4a411afcafea626670dd79dddf8ce1f9771f761f | /l4/clase_4_ejercicio_2.R | 8fe9e6e4dd4f7ecb18c18cb2cf3ee58ec618bae2 | [] | no_license | alfonsokim/machine-learning-class | 75402424b60e399044f4704709c021448f0dbc8d | 8ea97008e7303146df7e58634a6b0e93741484f1 | refs/heads/master | 2020-03-29T13:10:55.321689 | 2013-12-09T22:04:17 | 2013-12-09T22:04:17 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 482 | r | clase_4_ejercicio_2.R |
## Aquí usamos las estimaciones de glm
library(MASS)
summary(Pima.tr)
mod.x <- glm(type ~ ., data = Pima.tr, family='binomial')
coef(mod.x)
### Aquí usar Pima.te para calcular especificidad y sensibilidad
prob.pred <- predict(mod.x, newdata=Pima.te, type='response' )
##
##
##
## Comparar con modelo de una vari... |
37b8f39508cdfd6bb810849622265df19f9c07a4 | 6e1c80121579870daaf30aef3c5a239de857c222 | /test.R | f6793634ab312ab261bac37f1d628f77e19258a0 | [] | no_license | nmrnm/copulas-and-tail-dependence | d05e3488bf685ad5ce4c436823d23b4a63652bcb | 33be8550c5ea2a856fb5e9bbb15ab8317486125e | refs/heads/master | 2023-05-03T08:22:41.313022 | 2021-05-30T23:11:28 | 2021-05-30T23:11:28 | 268,592,759 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,177 | r | test.R | li0= list(n = 10000,
dim = 10,
rho = 0.1,
thresh = 0.3,
eps_sd=0.01,
r = 1,
initPopSize = 500,
carryingCapacity = 500,
timeSteps = 10000,
setseed = FALSE,
seed = 10)
li1= list(n = 10000,
dim... |
c6a23c3d6969f9ea3116d4bae564380c90d5fc14 | 5d578fc2afcccc4bafb2242fc2d62f9c4bfe3298 | /R/3_Exploratory_Analysis/Summary_Analysis/Data Table Pivot Count.r | 9d62864bb5bc6cf1907e6c0b0041d57005a02f39 | [] | no_license | moone009/AnalyticsProcess | 6e213a76f0f941559e9db3ce760734e5e5c44865 | 4103c0c72d18def0344518218196e9dc15525ee9 | refs/heads/master | 2020-04-06T06:58:16.949739 | 2016-08-08T16:20:51 | 2016-08-08T16:20:51 | 40,722,318 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,020 | r | Data Table Pivot Count.r | ###############################################################################################################################
# Name : Pivot Count
# Date : 04-15-2015
# Author : Christopher M
# Dept : Business Analytics
# Purpose : Pivot data example
# Called by ... |
b7c6795f30c0c9bdc53126adddeadd7749c028f6 | 2a643a8256d6ca78418637947f11c372768a816d | /Assignments/Assignment_4/Assignment_4.R | 5b42d795dc7a2dd1f631dbd0b612343bfd27cb80 | [] | no_license | talia-backman/Data_Course_BACKMAN | fe2d51f61efcd22a162ab19ce0abaa80c3ae9719 | 8e9cb2f39eb5c38a7e86c617f4896857befc3596 | refs/heads/master | 2020-12-06T07:56:00.745262 | 2020-05-11T18:15:13 | 2020-05-11T18:15:13 | 232,399,313 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 373 | r | Assignment_4.R | ?read.csv
library(tidyverse)
df <- read.delim("./Data/ITS_mapping.csv",sep="")
df <- read.delim("./Data/ITS_mapping.csv")
#Learn how to load files into R no matter what they are separated by (For the exam)
summary(df)
glimpse(df)
apply(df,2,table)
table(df$Ecosystem)
png(filename = "./Assignments/Assignment_4/silly_... |
3a9e1606a9db149afe4a1f3e3cbfa3f5f733ae6d | 019a82bd346543c9137cfac87a8b6578010fa21a | /R/beachmat.R | 3d955973230d1583055784ef3c08a42fde0e655c | [
"MIT"
] | permissive | drisso/mbkmeans | 85bb697a275e10d12d71af5781a985c1dabdb8fa | 656214a0121ed6ef6944794ff9e79c9252c8d254 | refs/heads/master | 2022-05-31T12:28:35.978504 | 2021-10-26T16:50:45 | 2021-10-26T16:50:45 | 130,084,310 | 9 | 4 | MIT | 2021-01-19T08:10:22 | 2018-04-18T15:34:11 | R | UTF-8 | R | false | false | 83 | r | beachmat.R | #' @importFrom Rcpp sourceCpp
#' @useDynLib mbkmeans, .registration = TRUE
#'
NULL
|
fdf56465d3f6efafe15d81bb6d2c0de033de4c2c | 1907a641896c498fc123aaf910b475252d34b3fd | /association rules -aprori-my_movies.R | 9c0df1b80f3ebd82893066859c8c83477744f25b | [] | no_license | PATELVIMALV1/Aprori-AssociationRules | d2a092a720ac1ae69f3ce23f01a7ca3931269a01 | 61fa14a8a0b49396f2eb7d54ca32c21bab7df853 | refs/heads/master | 2022-09-12T06:45:13.257308 | 2020-06-02T09:13:14 | 2020-06-02T09:13:14 | 268,754,232 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,653 | r | association rules -aprori-my_movies.R | #import movie data
movie_data<-my_movies
View(movie_data)
summary(movie_data)
# converting everything into character format
movie_data[] <- lapply(movie_data,as.character)
View(movie_data)
# Creating a custom fucntion to collapse all the items in a transaction into
# a single sentence
paste_fu... |
cf981b67b53afd06084779bcbdc73af724378da2 | 8fecd0f2df62c3c4979b76c21a8c9c70973a8d52 | /R/create_graph.R | 12ee7c09fb6837de5e1e9560f05176ffd7af51b0 | [
"MIT"
] | permissive | tmirus/TTT | 39e22854d6003515f161db601aa684295e8743fa | a6792c959fdbe0463fa254ecbb3ce2d1f1c21460 | refs/heads/master | 2023-04-01T15:24:47.645932 | 2021-04-15T13:05:12 | 2021-04-15T13:05:12 | 268,074,506 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,287 | r | create_graph.R | create_graph <- function(spots, ids){
ids <- ids[spots,]
# create adjacency matrix
adj.mat <- matrix(0, nrow = length(spots), ncol = length(spots))
rownames(adj.mat) <- spots
colnames(adj.mat) <- spots
for(s in spots){
s.x <- ids[s, "X"]
s.y <- ids[s, "Y"]
for(y in c(s.y+1, s.y-1)){
... |
b0d90b4462db7dd9794e077dcb9aff145517f99c | 2d4fc409ec221e6f5e61eeb5a845e131a9475e93 | /R/tar_cue_skip.R | 5ae97ebe55c347f2960386417c0bf8adb5b505ff | [
"MIT"
] | permissive | ropensci/tarchetypes | b69add279398f3d5d1bfcfc99365c429a7802d16 | 960797400f20698212bd0b8e7bb1cebdb58ce51d | refs/heads/main | 2023-07-08T02:16:33.895532 | 2023-06-27T20:06:53 | 2023-06-27T20:06:53 | 282,774,543 | 80 | 8 | NOASSERTION | 2023-05-02T20:09:23 | 2020-07-27T02:25:17 | R | UTF-8 | R | false | false | 2,091 | r | tar_cue_skip.R | #' @title Cue to skip a target if a condition is true
#' @export
#' @family cues
#' @description `tar_cue_skip()` creates a cue object to
#' skip a target if an arbitrary condition evaluates to `TRUE`.
#' The target still builds if it was never built before.
#' Supply the returned cue object to the `cue` argument... |
65feb4e70a262f928652becf63f0ea4525b4d052 | 1d7683d7394100ff40ffca9a906987f553058e46 | /MCM/美赛/model_building.R | 32609f3e75c95a01622cb26037209efd2a83d801 | [] | no_license | lvksh/2018MCM | 49353b5c5b3e0e222fcdb4042a508e1e51d857fd | a3a73e62f3032cc60d455025742ea0a7958da0bd | refs/heads/master | 2020-07-25T12:29:09.134851 | 2019-09-13T15:24:54 | 2019-09-13T15:24:54 | 208,289,750 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,153 | r | model_building.R | # model building
# load data_1
#####
ProblemCData_CRTCB <- read_excel("ProblemCData_CRTCB.xlsx")
Y <- filter(ProblemCData_CRTCB,
MSN == 'TPOPP' | # population
MSN == 'TETCB' | # total energy consumption
MSN == 'CRTCB') # renewable + nuclear total consumption
X <- filter... |
1da5dfc7e4a2cbe897452c4b9b10a404d9f24789 | eb6f8b652a5c600f5f84d67b2e643fb6fe29cd17 | /41_naiveindex.R | dfe56b1ad67a371d7ec6aad3e1422d349b38b3f0 | [] | no_license | jkbest2/spatq_sims | b528ab6a81f3a42473700bfa295247152f0186a0 | e2f4c1e65a32ce437e878717773dd41ff3574c6e | refs/heads/master | 2022-08-15T05:01:25.337849 | 2022-05-18T21:33:29 | 2022-05-18T21:33:29 | 225,442,641 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,338 | r | 41_naiveindex.R | if (interactive()) {
devtools::load_all("~/dev/spatq", helpers = FALSE)
} else {
library(spatq)
}
library(hdf5r)
library(tidyverse)
poparray_file <- function(repl, opmod, root_dir = ".") {
repl_str <- str_pad(repl, width = 2, pad = 0)
repl_dir <- paste0("repl_", repl_str)
h5_file <- paste0("pop_", repl_str, ... |
6c0d781efdc6cbd7a48a54a7b4c846e95c0d214e | f0b042c9ff4914e242dcef26b987900c6e62283c | /app.R | cf8160f5a44cb415ce38f640088f7fb8d920e685 | [] | no_license | jwiethase/Humboldt-state-bird-heatmaps | 0ade5b18b464c4ce619fbc722a99aa71858fad84 | 4d38bdd0d0ff6025911f890edef26b9a83ad57d4 | refs/heads/master | 2020-04-01T04:48:14.499436 | 2018-10-13T14:12:43 | 2018-10-13T14:12:43 | 152,877,947 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 17,309 | r | app.R | #
#
rm(list = ls(all=TRUE))
library(shiny)
library(dplyr)
library(ggplot2)
library(gstat)
library(sp)
library(lubridate)
library(DT)
library(shinycssloaders)
library(raster)
library(RStoolbox)
load("banding_data_CJ.RData")
Species <- c("Wrentit (Chamaea fasciata)", "Swainson's Thrush (Catharus ustulatus)",
... |
e8a26dce453e185b4cfc8d8decde0cdbb8694f74 | 01bcdbc1d4b6b4c3062aa1625024e5189a98c062 | /ClusterAnalysis.R | cab1e2d0f762631e96bc12cf22dcee7ec0a873d8 | [] | no_license | liw13006/MSSP_MA_615 | 1a25dff1101d72187643806b47e3b15f37cd2fb0 | 3255ba733e6067ca219211427cd3e64f66b2d8c1 | refs/heads/master | 2020-07-19T07:29:52.080082 | 2019-12-17T04:45:39 | 2019-12-17T04:45:39 | 206,401,677 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 532 | r | ClusterAnalysis.R | pacman::p_load(tidyverse,rattle,psych,GPArotation,magrittr)
wine <- force(wine)
factorwine = select(wine,Alcohol:Proline)
summary(wine)
corwine = cor(select(wine,Alcohol:Proline))
parallel = fa.parallel(select(wine,Alcohol:Proline),fm = "minres",fa = "fa")
zscore = function(DF){
}
factorwine = mutate_all(factorwine,... |
662130536d647f3fb82661818625112311808523 | bd0ff0492d12431e88ae8b1d4a471c15ab26e76b | /man/docbook.default.Rd | 9b80e9526b424d34b3a7ded5a2264ba9a2b5c8c0 | [] | no_license | cran/CADStat | b01fe3c32c4e7ab24a592c744e259e6ed67aa6d4 | 2c8110fb89a8b7c9706359c00d12ccae399f276f | refs/heads/master | 2021-01-18T14:20:35.989297 | 2017-05-10T01:09:22 | 2017-05-10T01:09:22 | 17,717,270 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 139 | rd | docbook.default.Rd | \name{docbook.default}
\alias{docbook.default}
\title{General function for preparing output}
\description{
Internal function
}
|
e4368cd3f17c7952da9c5c499e960a9b1f703e8e | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/SpatialTools/man/dist2.Rd | 4d6bb1758e91b28fc099782160e81f1a5d4f24b3 | [] | 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 | 709 | rd | dist2.Rd | \name{dist2}
\alias{dist2}
\title{Calculate Euclidean distance matrix between coordinates of two matrices}
\usage{
dist2(coords1, coords2)
}
\arguments{
\item{coords1}{An \eqn{nr1 \times nc1} numeric matrix of
coordinates.}
\item{coords2}{An \eqn{nr2 \times nc2} numeric matrix of
coordinates.}
}
\... |
f87ef1493c7a5dd88347e8d530a99e267cc2fc2d | eb5653f7a35ef27c58c0807b48bcd7b6d7e62578 | /anchap/R/phase_plotting.R | 4409e3f0cce537f8ac8323186d4f43aebe410982 | [] | no_license | DominikGlodzik/AncHap | 86d5d0eba22ca82cac1e1526a5bd1588619edbf7 | f5e0ae94a733aee85b39ed4ab8f7ea25f843bf9b | refs/heads/master | 2021-04-30T17:25:06.358409 | 2017-02-22T15:41:19 | 2017-02-22T15:41:19 | 80,205,084 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,924 | r | phase_plotting.R |
plotPhasing <- function(probandId,plotFolder, genomeMap, cumEnds, iMap, noInds, plotFileExt='') {
# requires
#
# noSurrs1 - number of surrogates at a locus: genome-leng vector
# genomeLength
# selectedSequencesH1
# selectedSequencesH2
# cumEnds
# stitches
# betHapMismatches
# i1
# i2
# finds ... |
0204e629103608a689dfc93d968af5c301bb6763 | 1e16e40ef7c84e8bbcb4268c0b381f6607bc1f5b | /Scripts/Anne_14-10-2016/OLS final.R | 260e0ab62b424a4d185745f8cec9edc3c5ab5c46 | [] | no_license | vincentlinderhof/NutritionTZA | eaa62af7fa10742fd1e3d55e8ccbaa35208d1260 | 98f7a4fb0de8944ce7190ad359653ae1f2094736 | refs/heads/master | 2020-09-16T13:40:55.196601 | 2016-11-28T11:28:11 | 2016-11-28T11:28:11 | 67,121,018 | 0 | 1 | null | 2016-10-19T14:43:15 | 2016-09-01T10:15:18 | HTML | UTF-8 | R | false | false | 2,316 | r | OLS final.R | dataPath <- "C:/Users/afver/OneDrive/Documenten/Removable Disk/verbe038/TZA"
setwd("C:/Users/afver/OneDrive/Documenten/Removable Disk/a.Thesis/Outputs")
library(haven)
library(stringr)
library(reshape2)
library(dplyr)
library(stargazer)
library(plm)
library(systemfit)
library(pglm)
Data2010_2012maize <-readRDS(file.... |
173660ba542ebc799edc237cc21c8874e2d95f4f | 3360fbf9f86eb9d76a42916448c246fbe6ecf4aa | /run_analisys.r | 784fc19f10efb6b6b16883dc4798e20d0c99036a | [] | no_license | JgLgRigel/Getting-and-Cleaning-Data---Course-Project | 47a71b0e85a60792d5690d8ef33731f6dd770545 | 32702b376a622704edf32e6dd0a1d5f0bae9fd60 | refs/heads/master | 2021-01-25T06:00:44.266919 | 2015-02-23T00:30:09 | 2015-02-23T00:30:09 | 31,185,292 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,599 | r | run_analisys.r | ## Tables to make readable the database
dirActivities<-paste(getwd(),"/UCI HAR Dataset/activity_labels.txt",sep="")
dirFeatures<-paste(getwd(),"/UCI HAR Dataset/features.txt",sep="")
Activities<-read.table(dirActivities)
names(Activities)=c("Activity.Code","Activity.Description")
Features<-read.table(dirFeatures)
## t... |
cb62c6808d69761379d715aa468ae0d74703dbb4 | b923858816f49393155e8feb79eccac7080a8894 | /EDGE2/Checkingforlargepextvalues.R | de3a93a54fa9580bc68ff06af516513c7abab3ff | [] | no_license | OScott19/PhD_Other | 771649461c7e89ad6a3bed824ca4843e37bcc199 | 48dfb710b8e1e5aa0388e94993b39b005cbccacb | refs/heads/main | 2023-07-04T20:55:47.915244 | 2021-08-16T17:09:29 | 2021-08-16T17:09:29 | 396,892,413 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 896 | r | Checkingforlargepextvalues.R | load("D:/Documents/ResearchProject/Results/MASTER_ALLEDLOSS_FINAL.Rdata")
groups <- unique(master.all$group)
ACT <- subset(master.all, master.all$group =="Act")
ED <- list()
ED[c(1:6)] <- NA
names(ED) <- groups
for (i in 1:length(groups)) {
ED[[i]] <- subset(master.all, master.all$group == groups[i... |
e7b83ffcdbaa11a579d9809a730217131d04d83f | acd9ba63d2780db1550acc7e460f73e5750af052 | /plot4.R | 3e252c64ee0b0ca5ed74fc0e5d739a2114f7d17d | [] | no_license | sayy85/ExData_Plotting1 | 2398bfc6fb839c0843f44f554a85718916b611c8 | eeb965971a23b8281f36bd9b2d319b2165f14e2f | refs/heads/master | 2020-12-25T12:28:37.519995 | 2014-08-12T06:49:51 | 2014-08-12T06:49:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 760 | r | plot4.R | plot4 <-function() {
#Read data
source('EDA_P1_ReadData.R')
D<-ReadData()
#Plot the data and save the plot as png
png('plot4.png',width=3D480, height=3D480,unit=3D'px')
par(mfrow=3Dc(2,2))
with(D,{
plot(Time,Global_active_power,type=3D'l',ylab=3D'Global Active =
Power',xlab=3D'')
plot(Time,Volta... |
3556fb927810eb27aadd6a97cda31c1dc37d7c5f | babac763748a83cc9e14e67236a9cc8a3e4ada34 | /man/plot.simpsr.Rd | 1a6f30e1ef291582880afe152d168fe1c9a57fdd | [] | no_license | cran/JOPS | 84e0a06484f480a2ab6b01d40a7c386fdd635173 | 932ab4e5c2117e91a682fbf0cb1c675a6234a82c | refs/heads/master | 2023-05-12T01:00:20.338969 | 2021-06-03T10:00:17 | 2021-06-03T10:00:17 | 341,417,657 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,825 | rd | plot.simpsr.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_sim_psr.R
\name{plot.simpsr}
\alias{plot.simpsr}
\title{Plotting function for \code{sim_psr}}
\usage{
\method{plot}{simpsr}(x, ..., xlab = " ", ylab = " ", Resol = 100)
}
\arguments{
\item{x}{the P-spline object, usually from \c... |
7dd5141ace13ff9c2ffd152d4a2550b0c63aa3ff | fe81817df78ce1626d358d6a78f985bfce89fbcd | /Summary-Problem.R | 129675773c9bbe07eb391bbe0039d4a9b73e50a2 | [] | no_license | panupind/SMDM | 06a8a2cc4adace593216d64e2cce8c0837a607bb | 5fdb3a2b6e1346576e76aa84347b3a13dedc006b | refs/heads/master | 2020-06-10T20:10:05.661709 | 2019-08-09T07:46:57 | 2019-08-09T07:46:57 | 193,732,708 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 455 | r | Summary-Problem.R | cardioGoodFitness
attach(cardioGoodFitness)
library(lattice)
histogram(~Income| factor(Gender))
boxplot((Income/1000)~Gender , horizontal = TRUE)
install.packages("psych")
library(psych)
by(data=CardioGoodFitness, INDICES = Gender , FUN= summary)
t.test(Miles~Gender , var.equal = TRUE)
library(rpivotTable)
rpivotTable... |
205a4a08b4073c164abf7ed037ccc186c4e1339b | 5d6c12bb7a698d9d94427902527f57ec379a7fb4 | /APP/Cristian_Benalcazar.r | 5bb704ef0ba5f2210c044cae37b014698d9a806c | [] | no_license | YakryR/TMV4M3 | cb4e8018e23dc183a89c6f995f0d6afbc32ae692 | 358ea5bd1d774deefd7071e2d0c8774b63f2793c | refs/heads/master | 2020-04-02T05:36:40.817155 | 2018-10-23T03:24:03 | 2018-10-23T03:24:03 | 154,092,141 | 1 | 0 | null | 2018-10-22T05:36:34 | 2018-10-22T05:36:26 | null | UTF-8 | R | false | false | 82,825 | r | Cristian_Benalcazar.r | easypackages::libraries(c("shiny","shinythemes","rjson", "rCharts", "highcharter", "DT", "rpivotTable", "dplyr", "xlsx", "scales", "xts",
"reshape2", "httr", "devtools", "ggplot2", "quantmod", "RPostgreSQL", "DBI", "ineq", "anytime", "gsubfn"))
################ VARIABLES ##################
{... |
dfc14fc256610e4d31a52fc15bf057b2e209d67e | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/numbers/examples/sigma.Rd.R | e9c69847f798ab87d937aa4224f27ef68b39c178 | [] | 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 | 197 | r | sigma.Rd.R | library(numbers)
### Name: Sigma
### Title: Divisor Functions
### Aliases: Sigma tau
### ** Examples
sapply(1:16, Sigma, k = 0)
sapply(1:16, Sigma, k = 1)
sapply(1:16, Sigma, proper = TRUE)
|
07933b606d81a5e76602b9e53f749a26d0d3f657 | 0556fda4ad2060e64ab7e9483f3022ca068702fa | /base_models/Rfunctions/LoadFormatData.R | 96d00d14300a096378faf75c9a8a7071e9f33b23 | [] | no_license | CarlosVecina/nn_crypto_tfm | aa0b4563b56632641b2682c089388e80ce360955 | c8211d40eea22d3944bc0513daae0d188630c86b | refs/heads/master | 2020-03-29T05:45:39.844602 | 2019-03-18T23:23:19 | 2019-03-18T23:23:19 | 149,595,675 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,818 | r | LoadFormatData.R | setwd("C:/Users/Carlos/Desktop/Data Science/00 -TFM/9- Parsing & Modelling")
library(magrittr)
library(purrr)
library(dplyr)
library(tidyr)
library(lubridate)
library(tidyquant) # Loads tidyverse, tidyquant, financial pkgs, xts/zoo
library(plotly)
library(xgboost)
# Hay que tener en cuenta que el Ylabel lo desplaza a... |
25bfe291a7a674ce0b110dd3c1c159bcd523bb7f | b4bed23f4628cae8ed8636ef1af92130904a6470 | /MotorVehicle(Project).R | 5e8e4cffe7c4718211dd031b706e27db6ef5dc7f | [] | no_license | Deeptikumari04/Analysis-and-Prediction-of-Road-Accidents-using-Machine-Learning-Algorithms | d0d83b03a2df19e28c674d6e7b63325677e5dbac | 69717c0b1f302320a8725cb0a1e82b751208c0b0 | refs/heads/main | 2023-03-08T06:36:25.938188 | 2021-02-02T15:20:50 | 2021-02-02T15:20:50 | 335,326,632 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,380 | r | MotorVehicle(Project).R | motor_crash =read.csv(("Motor_Vehicle_Crashes_-_Case_Information__Three_Year_Window.csv"), header=T, na.strings=c(""), stringsAsFactors = T)
motor_crash
motor_crash <- motor_crash[,-15]
#to check for null values
sapply(motor_crash,function(x) sum(is.na(x))) #Municipality has 11977 missing data
#to add id col... |
6debcd388129ae95ee50c1bbd57aff178ff9d8a4 | aeb246c2352cd2bd7016125fb8cc451d256c3445 | /testprecrec.R | 790ba9b1200c191884665db5dc200581a155edfb | [] | no_license | raghavendranpartha/coevolution | 3eda7f4090131a7e7d531bb22a8db8176acae482 | de2c2388392c6348fa2aa162820cc472717e8015 | refs/heads/master | 2020-06-14T05:04:50.751663 | 2019-07-24T15:38:38 | 2019-07-24T15:38:38 | 194,910,853 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 509 | r | testprecrec.R | require(precrec)
require(ggplot2)
s1 <- c(1, 3, 2, 4)
s2 <- c(5, 6, 7, 8)
s3 <- matrix(1:8, 4, 2)
scores1 <- join_scores(s1, s2)
scores2 <- join_scores(s1, s2, s3)
l1 <- c(1, 0, 1, 1)
l2 <- c(1, 0, 1, 1)
l3 <- c(1, 0, 1, 0)
labels1 <- join_labels(l1, l2)
labels2 <- join_labels(l1, l3)
mmmdat <- mmdata(scores1, labe... |
b0e18e5d6bac6fade5c0ee9fde5b1ec0d5cdf420 | d765e7c7443930fd412ceefc1549b6d36ab1a4dc | /Decision Trees/Decision trees.R | 5bb4b5970382fb91065fbb9a67b94095d2f5e3ee | [] | no_license | ramkumarr02/R-Programming | b2a90f551cbc0dca14159fde815829a1e16633a1 | d6ff40e73f96034dc7fe6827088c40420be8e5e7 | refs/heads/master | 2020-03-28T09:00:46.142635 | 2018-09-09T08:28:50 | 2018-09-09T08:28:50 | 148,006,924 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,024 | r | Decision trees.R | # Working Directory and other Initial setup
setwd("F:/Ram/Data Science/GitHub/M17/R/Decision Trees")
# install.packages("tree")
# install.packages("ISLR")
rm(list = ls())
ls()
library(tree)
library(ISLR)
# View Dataframe Carseats
head(Carseats)
str(Carseats)... |
d175c6923b3322903cb4755408ba72c047cded28 | 902037115141ead7b315e7b63e437ec61c01c2c1 | /man/identifyMonomorphism.Rd | 815c71e7677d25d14e1496c4a16096f1b5a5d5d9 | [] | no_license | cran/scrime | 4bdc7e989ba9e648d004ca47cd2d10bb5e78a717 | cf0033dbfe2a6fa807593a460ef4bcb0931db96a | refs/heads/master | 2021-06-02T21:50:17.706604 | 2018-12-01T10:00:03 | 2018-12-01T10:00:03 | 17,699,500 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 985 | rd | identifyMonomorphism.Rd | \name{identifyMonomorphism}
\alias{identifyMonomorphism}
\title{Identification of Constant Variables}
\description{
Identifies the rows of a matrix that only show one level.
}
\usage{
identifyMonomorphism(x)
}
\arguments{
\item{x}{a matrix consisting of integers between 1 and \eqn{n_{cat}}{n.cat},
... |
db86481dbbc3c95676718516a69c99839e5a8f7b | 10462cb5a471c2afbb286b0f6fd83eaf40a14349 | /R/app.R | 5bc6e9b01d993d5f3b98e12874b848da182b8bcb | [] | no_license | Erickcufe/SCRADv1 | 2f9c4633dde6e15c2fc92a2d477cba04fcd7f267 | 1c2b8db865a4fda67dba64fe1ed57f94f4bdb13c | refs/heads/master | 2020-07-03T16:37:36.616400 | 2019-08-12T17:17:26 | 2019-08-12T17:17:26 | 201,968,065 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,037 | r | app.R | #' SCRAD v0.1
#'
#' A shiny app to visualizate the risk of SNPs associated with five types of dementia
#'
#' @return
#' A shiny app to visualization
#'
#' @import
#' shiny
#'
#' @import
#' ggplot2
#'
#' @import
#' dplyr
#'
#' @import
#' DT
#'
#'
#' @examples
#' app_SCRAD()
#'
#' @export app_SCRAD
app_SCRAD <- function(... |
665ffdda4f91dcb2c51f1d7a9d7977b3941900a1 | abd7e70ea47c38299ad4038c4c4532c95a4db656 | /R/annotate_fun_calls_active_file.R | 7090c192aae28dd5bc06137de01890432ab748c0 | [
"MIT"
] | permissive | luisDVA/annotater | 89e066c8e5b14a3928bc125e1c10bcee9992e81f | cbb87db88a82591922e8283fdfa814ad87de24f9 | refs/heads/master | 2023-04-03T10:07:55.151665 | 2023-03-29T21:06:49 | 2023-03-29T21:06:49 | 186,200,985 | 82 | 3 | NOASSERTION | 2020-06-13T20:27:18 | 2019-05-12T02:11:43 | R | UTF-8 | R | false | false | 871 | r | annotate_fun_calls_active_file.R | #' Annotate function calls in active file
#'
#' Annotates package load calls with the used functions of each package in the
#' active .R file
#'
#' @importFrom rstudioapi getActiveDocumentContext modifyRange
#' @importFrom stringi stri_split_lines1
#' @return No return value, wraps [annotate_fun_calls()] for access via... |
92707a7813c20e24aca0fb658b9ed4d7946180be | ee3c321939e7d8899fed042575057c368b6c59e3 | /Project/Code/Movement_Networks.R | d72c1ac2e5877f85ea0b5550ebea086795d78166 | [] | no_license | KBicks/CMEECourseWork | f30e29440077e95c5c87836a2ecc8194d4ee658a | 8cff4651f1ce27ff731137255646e3baccf11387 | refs/heads/master | 2020-03-31T10:54:53.862344 | 2019-08-29T12:04:49 | 2019-08-29T12:04:49 | 152,155,192 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 31,425 | r | Movement_Networks.R | #!/usr/bin/env Rscript
# Author: Katie Bickerton k.bickerton18@imperial.ac.uk
# Script: Movement_Networks.R
# Desc: Building movement networks and visualisations from acoustic telemetry data,
# and calculating network metrics for the attribute file.
# Arguments: None
# Date: 20 Mar 2019
rm(list=ls())
graphics.o... |
c8498963e66e72ad4504fff9b092298ff9228be2 | c84163ea18b800098a9e664a9f51f9a2d471d831 | /src/PBC-ASWplot.R | 0e750877b5804d46d128e532fddfb6a90fc9daf5 | [] | no_license | alballow/alignment-gaps-analysis | cbc105c57c25892925930fefde38fce26b035097 | 23d259605eb35464fc634a45ae4b770dc14ed18c | refs/heads/master | 2020-03-20T22:17:07.688410 | 2018-07-31T20:36:21 | 2018-07-31T20:36:21 | 137,789,788 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,783 | r | PBC-ASWplot.R | library(TraMineR)
library(tidyverse)
library(colorspace, RColorBrewer)
library(gridExtra)
library(cluster, factoextra)
library(WeightedCluster)
library(reshape2)
library(ggplot2)
load(file="temps/Clusterinfo")
load(file="temps/plotinfo")
#plotting
#ASW
colnames(ASW)<-c("numberClusters", "ASWn0", "ASWn2", "ASWb0", "AS... |
cf9414b4e4df76ce01e02245820d052ba566193c | 197590555db25e2b43692e4a89c3c8388c03fdf1 | /R/declare_assignment.R | a8e0222e85f347b71cdfe078a41c867f14158e65 | [] | no_license | yadevi/DeclareDesign-1 | f843ef77d937d1dd0975b99f8ab5914c20461c1c | badcd6e6edbb2e0bb3cf51b3da1047664acea789 | refs/heads/master | 2021-06-14T03:53:23.472797 | 2016-12-05T06:16:05 | 2016-12-05T06:16:05 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 28,063 | r | declare_assignment.R | #' Declare the experimental assignment
#'
#' @param condition_names A vector describing the conditions to which subjects can be assigned. Alternatively, condition_names can be obtained from a potential_outcomes object.
#' @param potential_outcomes potential_outcomes object, as created by \code{\link{declare_potential_... |
415ecc91f335d4289aa590989f285a44fed2c5df | ecd4c4e238d45bf163aa9d4837758227d901807c | /plot2.R | be0a013fea60c85f195eaf4e3836e9b805cbe429 | [] | no_license | gianimpronta/ExData_Plotting1 | 3c8649cebc5861aef739e0797560ba5d345ff6a7 | 6c86c9aba13cb87349919babad62a2264ce4e7d2 | refs/heads/master | 2020-05-29T08:47:12.101220 | 2016-09-26T01:13:54 | 2016-09-26T01:13:54 | 69,143,478 | 0 | 0 | null | 2016-09-25T04:22:04 | 2016-09-25T04:22:04 | null | UTF-8 | R | false | false | 612 | r | plot2.R | library(dplyr)
data <- read.table("household_power_consumption.txt", stringsAsFactors = FALSE, sep = ";",
header = TRUE)
data$Date <- as.Date(data$Date, format = "%d/%m/%Y")
twoday <- data[(data$Date == "2007-02-01" | data$Date == "2007-02-02"),]
twoday <- select(twoday, Date, Time, Global_active_po... |
ccd26374a703d34077424babf0eb57fc81da3acc | b43473527dc04958dfc4f2431bc77d1ccb3369bd | /Churn Prediction on Telecom Dataset/server.R | e6fb30ff90d03b06a50c3d8fc3986336cc653cdb | [] | no_license | PawanRamaMali/ML-Lifecycle-Dashboard | d314ba2cb8a6c8736694619af5d34baf46403eb7 | cb1f7f957d83ce9cf94dc698480152dfb528d629 | refs/heads/main | 2023-06-28T01:03:50.441096 | 2021-07-23T17:35:05 | 2021-07-23T17:35:05 | 356,496,519 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 740 | r | server.R | # server.R
server <- function(input, output, session) {
# Data Selection Tab ----
#
rv <- reactiveValues()
observe({
if(input$show_features_responsive){
features <- c("Responsive")
}
else
features <- c("FixedHeader")
rv$data_set <- data_list %>% pluck(input$da... |
141fc73043472b1d6619d43d42d0bd30175d5bd7 | d3f405da380b8f95e37a3098cc4996ed52221ae3 | /R/extract-package-code.R | 06a621480d719be97feb38fdbc2f0242e94eba0b | [] | no_license | PRL-PRG/genthat | 4c21fcbeb54ba8292c903a47fe8fb956498945cc | a77d2d85bb107bcba6d407df4a6683296de717a5 | refs/heads/master | 2021-08-28T01:36:10.088953 | 2020-03-27T07:34:50 | 2020-03-27T07:34:50 | 68,630,010 | 16 | 8 | null | 2021-08-13T12:08:43 | 2016-09-19T17:36:46 | R | UTF-8 | R | false | false | 3,770 | r | extract-package-code.R | #' @param filter a regular expression matching desired filenames without the '.R' extension
#' @export
#'
# TODO: support commentDontrun, commentDonttest
extract_package_code <- function(pkg, pkg_dir=find.package(pkg),
types=c("examples", "tests", "vignettes", "all"),
... |
de8620cbf880347fdb48de26f1e9888b35b50a63 | db398298080aaa6e982bcb4b76f1ea38da7d6651 | /pollen_its_wrapper/src/run_dada2.R | 873992ca71d98a7126db637c204d67afc9536900 | [] | no_license | TomHarrop/pollen-its-wrapper | 4382b57dc37209b8379d195362090a0b3f20082e | 69cf3b435b0524b7437af495abcb9407852d4c4b | refs/heads/master | 2023-02-06T01:53:12.216221 | 2020-12-22T02:23:06 | 2020-12-22T02:23:06 | 323,479,335 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,082 | r | run_dada2.R | #!/usr/bin/env Rscript
log <- file(snakemake@log[[1]], open = "wt")
sink(log, type = "message")
sink(log, type = "output", append = TRUE)
library(dada2)
r1_files <- snakemake@input[['r1']]
r2_files <- snakemake@input[['r2']]
ref_fasta <- snakemake@input[['fa']]
threads <- snakemake@threads[[1]]
seqtab_file <- snak... |
3a762c9e5a6ba5fce68e1736390f29403a9742d7 | 2cd73fa97515cbf38369d181d5f1df2012158886 | /plot2.R | a54b78944eee668ce3d96214ba81f1e317206c8e | [] | no_license | psemaganda/ExData_Plotting1 | aef23f742d5ba38e002d809a425cca121245d2c9 | 0d0047cdc02f0b693e8cf037b29a3b3eae795189 | refs/heads/master | 2021-01-15T19:04:10.405632 | 2015-02-05T21:57:57 | 2015-02-05T21:57:57 | 29,009,134 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 853 | r | plot2.R | ## Read data from "household_power_consumption.txt"
## located in the working directory on your computer.
EPC <- read.table("~/data/household_power_consumption.txt", header = T, sep = ';', na.strings = "?")
## Transforming the Date variable into a date object.
EPC$Date <- as.Date(x = EPC$Date, format = "%d/%m/%Y")
... |
95ca26307e3a889f0b179cd5ecab6dbd2c275615 | ec39440f33e9652cd7705b1d11f31bcb417ae806 | /man/stripe_abandonned_payments.Rd | 71c8ba4889737b1a5e7543beb831f262c8d2d29d | [
"MIT"
] | permissive | koad7/anahita | 61ae9870df69becc6bf395fa63c87ab818eb6f33 | 480be5f5ec8e3f65de790f11825bfa8c63bc62c2 | refs/heads/main | 2023-05-06T17:29:45.348845 | 2021-05-28T22:38:19 | 2021-05-28T22:38:19 | 371,832,792 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 452 | rd | stripe_abandonned_payments.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-stripe.R
\name{stripe_abandonned_payments}
\alias{stripe_abandonned_payments}
\title{Retrieve abandonned payments}
\usage{
stripe_abandonned_payments(conn)
}
\arguments{
\item{conn}{connection to the anahita Data Base}
}
\value{
tibble
... |
edee5bcde60c691deff6c03714d9172f11f9f9a6 | b491ca882113909452ebf30d6d9dd5606687d2bc | /R05_Regular_Expression2.R | 05762153d75bc65145ad3137e76536748264edef | [] | no_license | Kaushik13k/NLP_R | 6c49ee10f8d1e85e719a63ce247a002cf80082c9 | 92f92a35314202a3842d0867dff47e38027ab40a | refs/heads/main | 2023-04-24T04:46:34.986152 | 2021-05-13T09:33:01 | 2021-05-13T09:33:01 | 364,974,825 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,710 | r | R05_Regular_Expression2.R | #Replacing Regex Matches in String Vectors
data1 <- read.csv("C:/Users/13kau/Desktop/NLP(R)/gapminder-FiveYearData.csv")
#If we want to search country names with an apostrophe
grep("\'", levels(data1$country))
grep("\'", levels(data1$country), value = TRUE)
#update data or use another dataset and repeat above comm... |
5ce2a10f515ecf0420996d38c8fea7e6eb3858e3 | 2c2fda3ad217ac20ed3e1b4a47e863ef45af7f45 | /man/getMegaProfData.Rd | cc6b8156006ea21f0eeff6aba0ca1078867db12f | [] | no_license | kmezhoud/canceR | 3af369e502beb112079b9fd2b958f841c84b3322 | 1bf729ed8ac7b5f907fe84042e96c4ac3dc2d528 | refs/heads/master | 2022-05-21T19:09:37.849564 | 2022-04-25T17:44:04 | 2022-04-25T17:44:04 | 32,315,232 | 8 | 1 | null | null | null | null | UTF-8 | R | false | true | 628 | rd | getMegaProfData.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getMegaProfData.R
\name{getMegaProfData}
\alias{getMegaProfData}
\title{Get profile data for more than 500 genes list.}
\usage{
getMegaProfData(MegaGeneList,k)
}
\arguments{
\item{MegaGeneList}{Genelist >500}
\item{k}{integer number of studi... |
6ecac22264fbbffe4f60d38f06c5968084ef4f52 | 7e27c240d6d41fff498db9c1f151ed620cb448a2 | /R/best.band.R | 961f4b4d59e892d1d471f8fc79add72151fabc0f | [] | no_license | cran/highmean | c237e9f638bcd34ad19bdc5e5bb1c55306511d73 | c22b07f3b4d4c915b8fe812fdcd78e32bace95ab | refs/heads/master | 2021-05-04T11:23:07.782419 | 2016-10-14T00:35:09 | 2016-10-14T00:35:09 | 48,081,533 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 941 | r | best.band.R | best.band <- function(sam, bandwidth, cv.fold, norm){
p <- dim(sam)[2]
n <- dim(sam)[1]
fold.size <- round(n/cv.fold)
sam.idx <- sample(1:n, size = n, replace = FALSE)
n.bandwidth <- length(bandwidth)
diff.norm <- matrix(0, cv.fold, n.bandwidth)
for(i in 1:cv.fold){
if(i == cv.fold){
temp.idx <- sa... |
2b95ee63816b24e6203ece6e36fba794485943d9 | d5207f94d18393efdc86e552d777eaa06759cdbb | /R/rglwbysm.R | 9fd77fc18bc69ff2924bed6842c6d076c01aa235 | [] | no_license | cran/afthd | 547a5d17e399c2b5bfd5da8d176d5c8a51da1bd7 | 5ec629860e84581615cb17f130a7081bb1eadc1d | refs/heads/master | 2023-08-05T13:59:44.205708 | 2021-10-01T09:00:05 | 2021-10-01T09:00:05 | 372,566,144 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,161 | r | rglwbysm.R | #' @title
#'
#' Bayesian multivariate analysis of AFT model for selected covariates using regularization method.
#'
#' @description Provides posterior Estimates of selected variable in AFT model for multivariable(maximum 5 at a time) in high dimensional gene expression data with MCMC.Incorporated variable selection... |
0422c059351b205a2e7a20119c1890b821d9b101 | 26298801c10e21b2848985b01579fb360303d470 | /plot3.R | 4d48799bb292d07f677a753736cf32cb0b870155 | [] | no_license | dscott1462/ExData_Plotting1 | 98dcb6fe9644ddc800f256b1aae8e1ca651bd00f | 714c0d3b624ffc8e41af7df7cd3d31bf3d3a3a60 | refs/heads/master | 2021-01-01T16:33:12.240811 | 2017-07-20T18:17:12 | 2017-07-20T18:17:12 | 97,857,331 | 0 | 0 | null | 2017-07-20T16:37:09 | 2017-07-20T16:37:09 | null | UTF-8 | R | false | false | 1,168 | r | plot3.R | #Read in the table
varTypes = c("character","character","numeric","numeric","numeric","numeric","numeric","numeric","numeric")
electricity <- read.table("household_power_consumption.txt", header=TRUE,
sep = ";", colClasses = varTypes,na.strings = "?")
#Create a date time variable
electricity$... |
b0ad43e2a5df29e49acbf2c5e41d0ee86814be27 | ace7060160e6e2cfcf12fd22222dadb3a217df80 | /plot5.R | b645c64b4ede42ddc744eaad98f61f5b6c398c7c | [] | no_license | ianfmc/ExploringDataProgrammingAssignment2 | 626ea9dd59ddf3ff163568729fabdf6e5fe57a4b | df5750485e8783b2cd6f5866e09a4278f57e68b2 | refs/heads/master | 2021-01-02T23:13:08.930549 | 2014-12-31T19:03:54 | 2014-12-31T19:03:54 | 22,890,148 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,038 | r | plot5.R | plot5 <- function(NEI, SCC) {
## Select for Baltimore
b <- NEI[NEI$fips == "24510",]
years <- unique(NEI$year)
## Find all the vehicle-related classes; use the SCC Category
## "Onroad" to find those classes
## Filter the NEI data set for SCC codes in the desired set
... |
40fbd1c3e554913cf8e6516ea9532d9ad71bedc3 | b5b70771c20ae699662e75d09f46c0f98ef52d05 | /scripts/heatmap_nonorm.R | 453c474a078420c3c88e573784ae96b0d967440f | [] | no_license | raja-gopalakrishnan/chip-seq-pipeline | 9b396113b5381964bfc524ad754c08abe707431a | 9da9736cdac3ab31587efbff39f228aa13f30e73 | refs/heads/master | 2020-04-21T00:16:54.516605 | 2019-02-12T03:54:10 | 2019-02-12T03:54:10 | 169,191,647 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,509 | r | heatmap_nonorm.R | library(dplyr)
library(ggplot2)
library(tidyverse)
library(pals)
window = snakemake@params[["binsize"]]
upstream = snakemake@params[["upstream"]]
downstream = snakemake@params[["downstream"]]
bodylength = snakemake@params[["bodylength"]]
align = snakemake@params[["align"]]
annotation = snakemake@wildcards[["... |
765445ce4ff62764a525655fb18e56ac68e89a57 | 5d6156ff9113920d9cb1163d540c15548b31f0fd | /Module8/Misc/FacetChart.R | 55f041799e58eb98fc4ea1629582238e4c04e66a | [] | no_license | Karagul/PowerBI_With_R | a2b98632bcf4b1db0d72b6891f0cc8e461094887 | 0bf7f30cd5f84261b0b3184c588fb1b91d661a13 | refs/heads/master | 2020-07-23T18:29:18.752803 | 2018-06-17T20:59:46 | 2018-06-17T20:59:46 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 947 | r | FacetChart.R | library(dplyr)
library(readr)
library(ggplot2)
library(ggthemes)
dataset <- read_csv("./Data/FacetChartData.csv")
chart.title = switch(
as.character(dataset$Stat[1])
, "GDP" = "Gross Domestic Product Comparison by Country By Year ($ Billions)"
, "GDPPPP" = "Gross Domestic Product Comparison by Country By Year... |
ce82850717558f0eb58d5ddf41599c3989cf166b | ada409eeea59f0ab0716de11225bfae29a90e5e9 | /functions/rmtl_ipw_function.R | a3f09b3ad29cc2f68ff460a68e0daeb3de7376f8 | [] | no_license | yilunsun/rmtl | dd0ba06de6a15f61aa1d8e429c97c12322cee636 | c2fb18876b041234cf6ce2d7e6b61ec71775c8ff | refs/heads/master | 2023-04-08T15:41:05.610926 | 2021-04-20T00:59:20 | 2021-04-20T00:59:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,124 | r | rmtl_ipw_function.R |
### Function to estimate the IPW-adjusted RMTL
### Null weights yields the unadjusted RMTL
### Sarah Conner, Updated September 30 2020
library(survival)
rmtl <- function(times, event, eoi=1, group=NULL, weight=NULL, tau=NULL, alpha=.05, entry=NULL, ...){
if(sum(times<0)>0){print("Error: times must be positive."... |
4ffb9f37c760df924b5484810a08c7509ed56968 | 4afab1667d997951483479bc3ad861190e08502f | /R/data.proc.R | c3f356a1ce01adc3c87a780688bddde526f0fc33 | [] | no_license | cran/relevent | aa7da84c29f092490a7ebbc3ef74b1b60c779893 | 7f7748ffa3b89bc8829f4e9159e76bbcb779611c | refs/heads/master | 2023-02-03T05:20:35.671430 | 2023-01-24T07:10:02 | 2023-01-24T07:10:02 | 17,699,130 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,840 | r | data.proc.R | ######################################################################
#
# data.proc.R
#
# Written by Carter T. Butts <buttsc@uci.edu>.
#
# Last Modified 11/23/22
# Licensed under the GNU General Public License version 2 (June, 1991)
#
# Part of the R/relevent package
#
# Contents:
#
# as.sociomatrix.eventlist
#
######... |
0d108c025cf570d0ce644621fed21d2dc52a17f7 | 320f8d2ef42a792017ea4bc9da0149526a975991 | /src/postprocessing/4.community38_analysis.R | 8ef419e42e0871d4989496a223121c6dce15d7e8 | [] | no_license | katehoffshutta/DRAGON-TCGA-BRCA | df039b0b5f9623bb0d377ebe36097938b411046d | 6f34abbc97784cc495a6031859d6941803c35308 | refs/heads/master | 2023-04-12T13:19:07.735695 | 2022-11-19T07:23:38 | 2022-11-19T07:23:38 | 513,280,418 | 6 | 0 | null | 2022-11-19T07:10:48 | 2022-07-12T20:15:58 | R | UTF-8 | R | false | false | 2,183 | r | 4.community38_analysis.R | # look at differential methylation of ZNFs by subtypes
# run full-postprocess.R before this to get the comms object
# load the methylation data
library(ggplot2)
library(ggpubr)
library(gridExtra)
library(data.table)
library(dplyr)
# load the subtype data
meth = data.table(fread("data/interim/analysis_dataset.tsv",sep... |
51e1a33ce8388cc460fb60988efe1fba0340b02e | d6c74bac655e53cf6d417ab635bff1d2d3fa8576 | /Sesion-05/Reto-01/Solucion/Reto01.R | 0b1163995d4ba1f80f652e348ab2633bdb22cc5f | [] | no_license | abrownrb/DA_R_BEDU_2 | 58f75ecdcead16c966c0807419b74999b1dd8879 | 6fe9ba47da5c759656459872a47a76b93c1eae9c | refs/heads/master | 2023-01-01T06:19:27.239662 | 2020-10-27T19:50:16 | 2020-10-27T19:50:16 | 277,850,824 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 434 | r | Reto01.R | df <- read.csv('Metro_Interstate_Traffic_Volume.csv')
str(df)
sapply(df, function(x) sum(is.na(x)))
df.filter <- df[,c(2,3,4)]
mean(df.filter$temp)
mean(df.filter$rain_1h)
mean(df.filter$snow_1h)
median(df.filter$temp)
median(df.filter$rain_1h)
median(df.filter$snow_1h)
table.temp <- table(df.filter$temp)
table.temp... |
6e29a9421509dee9fc4d926d526bdf180de74c83 | 48e7895ffddaf4258b63a8c824f714dcb936ca9d | /man/extrainfo.df.Rd | 115a1f3aee7b369045c00a92c2ed3523bf049a2b | [] | no_license | DDS-MCSM/spring19-group-assignment-foreverdraft | 3fe4fd68d59c3aca82fd747f479d667e0c687666 | 7fedd2109b175fc2a3d539a570aee6679a09315c | refs/heads/master | 2020-05-23T07:19:17.859218 | 2019-06-02T21:07:42 | 2019-06-02T21:07:42 | 186,676,021 | 2 | 1 | null | 2019-06-02T21:07:43 | 2019-05-14T18:13:48 | R | UTF-8 | R | false | true | 292 | rd | extrainfo.df.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Group4.R
\name{extrainfo.df}
\alias{extrainfo.df}
\title{extra info}
\usage{
extrainfo.df(func_df1)
}
\description{
to output to the console a lot of info about df
investigate dataframe console
}
\examples{
TBD
}
|
ff1944092085f490737d557c4f45eae86873bd2c | a69d9ddd3561430cfd3c2446be5fae9971354076 | /R/Old R Scripts/LSA.R | b3500338621b2a4da4692cd2e40a0f4002783405 | [] | no_license | lucasjfriesen/Text-Mining-Project | 1aad40d7c5c19d3c364c2127e818af0b70e318d9 | d87ca201f5ff034a0f38edc524c5696ee6502f7b | refs/heads/master | 2021-05-01T09:02:46.941879 | 2018-02-11T06:25:24 | 2018-02-11T06:25:24 | 121,091,999 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,674 | r | LSA.R | library(LSAfun)
library(lsa)
library(jsonlite)
library(tm)
tweets <- fromJSON("/Users/lucasfriesen/Google Drive/R/Whatarepeoplesaying/Collected data/merged_file_b.json")
tweets$text <- sapply(tweets$text, FUN = function(x) gsub("http\\S+\\s*", "", x))
tweet_corpus = Corpus(VectorSource(tweets$text))
tweet_corpus = tm... |
adb82b6b489259f603d50f8d96682227c86f6655 | 6faf04afee8b955ea380e48b511ec083b1163d5b | /tests/testthat/test-object_table.R | a56366400ef0c3eba55f2248981118a0a41ad3cd | [] | no_license | isabella232/objectable | 5f2c7ab2a02b9fc06ed8b518be55315eef04d28b | 0f0024e0cf1614ca61c53006c8e684ea84d0afab | refs/heads/master | 2021-12-28T19:48:55.493449 | 2018-01-24T16:16:49 | 2018-01-24T16:16:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,782 | r | test-object_table.R | context("object_table")
test_that("missing functions pass through to underlying env", {
env <- new.env(parent = emptyenv())
env$a <- 10
ot <- object_table(parent_env = env)
expect_equal(ls(envir = ot), "a")
expect_true(exists("a", envir = ot))
expect_equal(ot$a, 10)
expect_false(exists("b", envir = ot)... |
9125e82ddfe4c061de45afe424067ba3bebb155a | 2a14b33e9a45745a74cd8b656e7faf03f6cbe5c1 | /R/mark_import.R | 03a1c03dd6196a0e451b7999aab0c3ba244fe6fa | [] | no_license | OpenBioMaps/obm.r | 9743219e96f938ffd5a1a6727dc995b99d88c0e9 | b8ad117240ecb5150db17e483be14f301938b388 | refs/heads/master | 2023-03-02T13:51:20.804040 | 2023-02-16T03:56:25 | 2023-02-16T03:56:25 | 80,066,256 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,743 | r | mark_import.R | #' mark_transform Function
#'
#' Import a csv file and transform to Mark input file
#' ./mark_transform.R --file foo.csv [--sep , --quote \' ... ]
#'
#' @param file A CSV or Excel file path
#' @param data Optional data.frame instead of input file
#' @param csv.sep CSV separator string. Default is autodetect
#' @param c... |
d7189460cc31cd2a06882ae6c1b8edccf57c77a0 | 132c868650be85a4eaf605832e6cd57d9aa8faf3 | /R/transmission_hughes_and_exp.R | da8b81f7bd85be5b777fffbc7d0e893bc105fd11 | [] | no_license | EvoNetHIV/RoleSPVL | 9797fe146afa1e750ef1cfdaf231b62e0f19e848 | 113b55fedbdd2ac6627b751df3e102e801e36c5c | refs/heads/master | 2021-09-14T17:46:30.726252 | 2018-05-16T22:16:13 | 2018-05-16T22:16:13 | 103,449,083 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,729 | r | transmission_hughes_and_exp.R | #' @title Title
#'
#' @description Description
#'
#' @param x A number.
#' @param y A number.
#' @return return value here.
#' @details
#' Additional details here
#' @examples
#' example function call here
#' @export
transmission_hughes_and_exp<-function(dat,acute_phase_status,sti_status_sus,
... |
985701ec027a0a3b096dceec775cedfe668da571 | fdd5f9373bd535dda8575a681fbd5be7c8e3af1a | /R/changeColOrder.R | 20b90640704384f0579d7bd73c0b29ec00b496c7 | [
"MIT"
] | permissive | jakesherman/jakemisc | 941f46cd724cc15610c9dc9acb19bd6b973bc6eb | 13dab160b6776b813c9768fd66654332741b5de1 | refs/heads/master | 2016-09-15T03:41:46.207665 | 2016-05-05T21:29:49 | 2016-05-05T21:29:49 | 27,505,697 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 7,439 | r | changeColOrder.R | #' changeColOrder()
#'
#' Changes the order of columns by placing a specified column to the left of
#' another specified column.
#'
#' This function uses seperate methods for data.tables and data.frames. By
#' default, data.tables will be modified by reference. To turn off this
#' behavior, set \code{ref} to \code{F... |
fcdb93ccdfb1ef9cc6cc987c3305e281675d6f83 | 3e508d7cd0798f70f70242a837f99123397fc1c4 | /tests/survey/20210330-realMargins.R | 577e700ee6e20a8840f154624ca0201e1ab2e3a5 | [] | no_license | jlivsey/Dvar | f0d142df9866a4232947d114891111097c4c5851 | 824cdcc822829d655b905bfeca54a40b82f16e36 | refs/heads/master | 2023-07-26T19:17:28.531305 | 2023-07-06T13:55:28 | 2023-07-06T13:55:28 | 237,249,747 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,599 | r | 20210330-realMargins.R | # Extract margins from PDB and POP data
# ---- POP --------------------------------------------------------------------
# Load POP data
# load("tests/ES/PopEst.rdata")
library(readr)
x <- read_csv("data/cc-est2019-alldata-51.csv")
# Load array format from ES
# Age (18) x County x Sex x Hisp x Race (7)
source('tests/... |
2ed3071592759533e19966152f60a5b8f10e4d47 | cfa3ca9d97146a8b6e271c9b9fd5ff54b5fd10ee | /man/boatman_2017.Rd | 39ded65d02e77c904fb9f503359d0139c51de842 | [] | no_license | padpadpadpad/rTPC | 21ceb135a8ff8fc5eee13216446406e3b4eef3b7 | 923f7c2fa53bc282f1ece1a109c65cf1d428b709 | refs/heads/master | 2023-08-17T14:44:46.561739 | 2023-08-17T08:20:50 | 2023-08-17T08:20:50 | 169,631,560 | 23 | 2 | null | 2020-04-09T14:04:13 | 2019-02-07T19:43:57 | R | UTF-8 | R | false | true | 2,477 | rd | boatman_2017.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/boatman_2017.R
\name{boatman_2017}
\alias{boatman_2017}
\title{Boatman model for fitting thermal performance curves}
\usage{
boatman_2017(temp, rmax, tmin, tmax, a, b)
}
\arguments{
\item{temp}{temperature in degrees centigrade}
\item{rmax}{... |
3c95adbebb96d7da40da3503bae0841e12ae9c24 | 52b57e049f480e08dc86ee93934c7266cc9a7008 | /R/Functions/stats.r | 47aa77904ba29b619688f948748c9657acb7f1fb | [] | no_license | amcox/step-1415 | 403cb3ec9309adac0f6a742a7115c200ed48ef36 | f08dce384e645becf59c97988de198aee0caf9c8 | refs/heads/master | 2020-12-24T19:18:51.252754 | 2016-02-28T20:54:35 | 2016-02-28T20:54:35 | 24,353,994 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 183 | r | stats.r | make_nce_from_percentile <- function(percentile.vec) {
qnorm(percentile.vec/100)*21.06 + 50
}
find.mode <- function(x) {
ux <- unique(x)
ux[which.max(tabulate(match(x, ux)))]
} |
2c26fbbebe47648f843f8931ba2239c63a5809e5 | 6d716483af64e5f85e30aa4d1a051e05fbcd4932 | /01_solve_for_one_file.R | 16cd31f469d3e2a2b0aa7498011305716c90171d | [
"MIT"
] | permissive | amkessler/intelcmte_facebookads_extract | d9d206bd52b7727f20e29fbe9340b0d02ee83bc4 | 47e87f074593f37a33a8ae4b2611c815f397f4dc | refs/heads/master | 2020-05-27T06:36:40.954878 | 2019-11-15T18:48:15 | 2019-11-15T18:48:15 | 188,523,686 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,661 | r | 01_solve_for_one_file.R | # source of pdf files:
# https://intelligence.house.gov/social-media-content/social-media-advertisements.htm
library(pdftools)
library(tidyverse)
myfile <- "pdfs/P10004855.pdf"
text <- pdf_text(myfile)[1]
text
txt <- pdf_text(myfile)
cat(txt[1])
# All textboxes on page 1 - doesn't seem to help here
textboxes <- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.