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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1b90bf31caab396bb7d61d48cb692e0ff96aa053 | 15bbda8a2fadb7f1bb3364adca9f7bea0323a787 | /R/rNCV.R | 16ff208ca30762ddca1c7bf53073febf258898cd | [] | no_license | kforthman/caretStack | 39c45517346e4a91931448413bf297c75364b821 | 968416f10b798634257da2e61cc53b00fa39614f | refs/heads/master | 2021-08-16T00:14:54.603504 | 2021-06-18T17:15:21 | 2021-06-18T17:15:21 | 195,125,995 | 2 | 2 | null | null | null | null | UTF-8 | R | false | false | 6,772 | r | rNCV.R | #' Repeated, Nested Cross-Validation
#'
#' Supports classification and regression.
#' Note: only continuous variables are expected to be used as predictors. It is assumed that there are a sufficient number of subjects in each category.
#'
#' @param data The data frame containing the training set.
#' @param nRep Number ... |
c5797c2e67f89e8a01a8b503bdfc31127dd5b739 | fe7ed525e7945c7c29fcf99f345d2ca66dd8f114 | /dwr_07_regular_expressions.R | a07bdc026f5ff8afa50d41ddbfc03295ead5d25d | [] | no_license | TCornulier/DataWranglingInR | 1b52a90c8d1a0f6f1149203cab35811c2e55a68d | c5c6ae61ff7143a1073bef8c64ae4d43e728f67f | refs/heads/master | 2023-02-19T05:08:21.517597 | 2021-01-21T21:44:16 | 2021-01-21T21:44:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 22,232 | r | dwr_07_regular_expressions.R | #' ---
#' title: "Data Wrangling in R: Regular Expressions"
#' author: "Clay Ford"
#' date: "Spring 2016"
#' output: pdf_document
#' ---
setwd("../data")
load("datasets_L06.Rda")
# This lecture uses the following packages:
# install.packages("stringr")
library(stringr)
# install.packages("qdapRegex")
... |
d78409f514e50a3e7d2dd69a68116640402b26cd | 29542f41da364e5be61af302be09c004164a5f5a | /Rscript/02_Total_predation.R | b3982182daec8b2a72c5b69561458b36ef7bfee8 | [] | no_license | KatkaSam/CATEX_BABE | 4213d7414e8074a38b530693acc2255e802d643f | 50d9cac9274595923bb4c1ddda2d9332f22a70e9 | refs/heads/master | 2023-07-05T14:35:13.470705 | 2021-08-18T14:01:13 | 2021-08-18T14:01:13 | 339,658,149 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,995 | r | 02_Total_predation.R | #----------------------------------------------------------#
#
#
# CATEX BABE experiment
#
# Total predation analyses
#
# Katerina Sam 2021
#
#----------------------------------------------------------#
#----------------------------------------------------------#
# 3... |
6bd0b2fbae833fbcf0953cf2b289443cacd5cfbf | 7da718dc45c69be0dbf0409fe423f32f28151dff | /inst/shiny/server_5_prettyPlot/server_5_prettyPlot_prep.R | ca7e396926222d003e9b543dac545941160c63d7 | [] | no_license | cran/eSDM | ac865dd1a35268c31a17be3e20d964b1882bb850 | 35c58df0a1d89e5c501ecd55cb3608c5ebda5101 | refs/heads/master | 2021-06-16T10:59:20.678147 | 2021-05-04T03:50:08 | 2021-05-04T03:50:08 | 199,010,992 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,962 | r | server_5_prettyPlot_prep.R | ### Functions that return data used in server_5_prettyPlot_plot.R
### Get model(s) to plot, generate lists with plotting information
### NOTE ###
# numericInput()'s convert everything to numeric, so entries or symbols are
# coerced to numeric NA
#############################################################... |
b24917ff4f2c9098d4f584bfbca8372caf830fbd | f48e25ade098aef7aa6f9fde4927bbf2b2092d14 | /man/dasl.yeast.Rd | 51efc163a3185c351053b55e1e815c0525cd8ee6 | [] | no_license | sigbertklinke/mmstat.data | 23fa7000d5a3f776daec8b96e54010d85515dc7d | 90f698e09b4aac87329b0254db28d835014c5ecb | refs/heads/master | 2020-08-18T04:29:05.613265 | 2019-10-17T11:44:57 | 2019-10-17T11:44:57 | 215,747,280 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 486 | rd | dasl.yeast.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dasl.R
\docType{data}
\name{dasl.yeast}
\alias{dasl.yeast}
\title{Yeast}
\format{16 observations}
\source{
DASL – The Data And Story Library: \href{https://dasl.datadescription.com/datafile/yeast/?sf_paged=43}{Yeast}
}
\description{
Yeast
}
\... |
f5d11c86090c7efcda6cc00f4230033ef80865fd | f53e353c54541c9282a9822e1fa23698bf533bd7 | /test/test6.R | 989b43ff02d95b2c2798a889af0dbc936c31cb2c | [] | no_license | sakur0zxy/R-practice | acee9b2335077365e70e94fdf4734ed6dee58485 | b8ec1f0a0feddcb16f988e0ca45c9b45b908440b | refs/heads/master | 2020-03-26T05:58:17.014993 | 2018-09-27T08:04:53 | 2018-09-27T08:04:53 | 144,583,426 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 496 | r | test6.R | Newtons<-function(fun,x,ep=1e-5,it_max=100){
index<-0;k<-1
while(k<=it_max){
x1<-x;obj<-fun(x);
x<-x-solve(obj$j,obj$f);
norm<-sqrt((x-x1)%*%(x-x1))
if(norm<ep){
index<-1;break
}
k<-k+1
}
obj<-fun(x)
list(root=x,it=k,index=index,funVal=obj$... |
fcbe618d35b20e4d463484c534e72f76539b27ce | efc94aaf5d6679ed4633ba634727857bb7933ebb | /man/tidyverse_update.Rd | af37120409c8398db5f7c31bd15165b6753f5b38 | [
"MIT"
] | permissive | tidyverse/tidyverse | 035ac53292744d06100ce8050e287bb375121740 | 8ec2e1ffb739da925952b779925bb806bba8ff99 | refs/heads/main | 2023-09-02T21:30:17.203856 | 2023-03-08T21:31:34 | 2023-03-08T21:31:42 | 67,510,715 | 1,411 | 375 | NOASSERTION | 2023-03-07T05:15:08 | 2016-09-06T13:29:39 | R | UTF-8 | R | false | true | 661 | rd | tidyverse_update.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/update.R
\name{tidyverse_update}
\alias{tidyverse_update}
\title{Update tidyverse packages}
\usage{
tidyverse_update(recursive = FALSE, repos = getOption("repos"))
}
\arguments{
\item{recursive}{If \code{TRUE}, will also list all dependencies... |
056e29c49c76dadb33bb4457f125f55bdcdaec9a | b8ec16b847fdf007365acd49fee80f23145f5db6 | /C11_Modified_Variable_Class.R | 14099d95361eef673a9a89492699aa734dd96e5e | [] | no_license | SnowMinxin12/HIVST2 | dac1c98d59168c6714ec016e2cfa34ce72627251 | b74890d937791e2a91659c2cca099249626fb81c | refs/heads/main | 2023-04-29T22:36:05.211776 | 2021-05-10T21:44:48 | 2021-05-10T21:44:48 | 345,498,592 | 0 | 2 | null | 2021-04-27T21:00:16 | 2021-03-08T01:40:21 | R | UTF-8 | R | false | false | 5,258 | r | C11_Modified_Variable_Class.R | ### C11_Check_Variable_Class.R
### add 1 to all factor and binary variables
### Check factors as factors, numbers as numbers
### author: Zhentao Yu, Minxin Lu
### date: 2021-3-31
### input: C01_ReadData.R
### output: a new dataset with variables in the correct class
### DataB for baseline 307 data
### ... |
614cba743e1d7c969cf1c61abdfde24f3d12f120 | 5874ae0a22213c3a692763f285a64433bd512f94 | /R/ggmap.R | 79de3ea6d181129a12d7ae601679ad361916b2d9 | [] | no_license | d8aninja/code | 8356486291a2db9f419549edaa525d9bbe39abfc | 80a836db49a31ecd6d0e62aaf8b6e4417c49df68 | refs/heads/master | 2021-09-06T11:35:13.956195 | 2018-02-06T04:11:33 | 2018-02-06T04:11:33 | 80,898,202 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 337 | r | ggmap.R | library(ggmap)
gc <- geocode("denver, colorado")
center <- as.numeric(gc)
ggmap(get_googlemap(center = center, scale = 1), extent = "device")
# ggmap(get_googlemap(center = center, color = "bw", scale = 2), extent = "device")
map <- get_googlemap(style = c(feature = "all", element = "labels", visibility = "off... |
8de933c3b2ca2bf2801a7526f7d76734b8b81f4f | db1ea206b2ae975ddb0d74af9f6df9a05e994e03 | /R_grambank/dists/fixation_scores_muthukrishna_run.R | 7d22da4a8546a00e440fd737686fac281c604ca9 | [] | no_license | grambank/grambank-analysed | 1b859b5b25abb2e7755421b65a63bef96dfc8114 | 47d54c9fe82c2380d3c89042fd9f477aa117e044 | refs/heads/main | 2023-06-28T20:00:59.261977 | 2023-06-07T17:04:28 | 2023-06-07T17:04:28 | 397,491,052 | 3 | 0 | null | 2023-04-21T13:32:55 | 2021-08-18T06:04:03 | R | UTF-8 | R | false | false | 193 | r | fixation_scores_muthukrishna_run.R | source("dists/fixation_scores_muthukrishna_GB_fun.R")
fun_cfx(df = Language_meta_data, group = "AUTOTYP_area", cut_off = 0)
fun_cfx(df = Language_meta_data, group = "Macroarea", cut_off = 0)
|
806c8ed08cfef99d0a9dd4c725086a4a13d68fd3 | 87472097e88f2e3aef1e9f003add2aa149c50233 | /man/filterImmdataByAge.Rd | 1d011a8798d49a5cf795f9ab451ad831ba4fc768 | [] | no_license | RGLab/ImmuneSignatures2 | f1feca1e5f05f99419a8aca00b0d68928e1b8e82 | 15fc078c4475ae421142aa4b6271c9143db04eda | refs/heads/main | 2023-04-18T07:08:56.765734 | 2022-12-05T22:52:42 | 2022-12-05T22:52:42 | 252,603,828 | 1 | 1 | null | 2022-07-28T23:05:21 | 2020-04-03T01:27:26 | R | UTF-8 | R | false | true | 423 | rd | filterImmdataByAge.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/immuneResponsePreProcessing.R
\name{filterImmdataByAge}
\alias{filterImmdataByAge}
\title{Filter immdata list elements by age filter}
\usage{
filterImmdataByAge(immdata, ages)
}
\arguments{
\item{immdata}{list of assay data.table(s)}
\item{a... |
620ab089fdd605e51374e84790e27b7e527fbde4 | bbe446615c097c400c0adb27ad0850565eb57c0b | /inst/doc/intro_htmlwidgets.R | fb166a5963f2cab52398ac05cfd7f18af55ce397 | [] | no_license | cran/reactR | 83dd22bef80c144564d5488452b310baa5de6841 | 99ba22d9f4a66d85679321ad99550b9ece46b913 | refs/heads/master | 2021-07-18T04:35:53.296417 | 2021-02-22T13:50:06 | 2021-02-22T13:50:06 | 72,949,686 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,234 | r | intro_htmlwidgets.R | ## ---- echo=FALSE, include=FALSE-----------------------------------------------
knitr::opts_chunk$set(eval = FALSE)
## -----------------------------------------------------------------------------
# install.packages(c("shiny", "devtools", "usethis", "htmlwidgets", "reactR"))
## -------------------------------... |
65a202c4d609226d2a041293658c9be3a4d18297 | a2dabe75febdfeb630cf77c370e53e4ca05035fc | /outputplot_valley.R | 3e99040bbc34d16c775f1e59b96f2ddb8eae3bda | [] | no_license | leeyaowen/treemap | e5c5b3574b5320f2cf1035878a62d76ecafbf54f | 4e69db87df59e3403743e279ae24c785c992c569 | refs/heads/master | 2021-01-24T12:36:42.466149 | 2019-07-14T00:19:25 | 2019-07-14T00:19:25 | 123,140,528 | 0 | 0 | null | null | null | null | BIG5 | R | false | false | 6,629 | r | outputplot_valley.R | library(dplyr)
library(ggplot2)
library(ggthemes)
library(ggrepel)
dt<-read.csv(file.choose(),stringsAsFactors = FALSE)
#dt<-read.csv("./valley1output_20190629.csv",stringsAsFactors = FALSE)
#X1=x1,Y1=y1,xbase=x2,ybase=y2
plotmap<-function(X1,Y1,xbase,ybase){
#防呆
if(X1>max(dt$x1,na.rm = TRUE)|X1<mi... |
38838b9943f1324c747df211f97856b5124bbf96 | ea524efd69aaa01a698112d4eb3ee4bf0db35988 | /tests/testthat/test-expect-inheritance.R | 0129dc090baa013d7fabac4d04fedfeee101b274 | [
"MIT"
] | permissive | r-lib/testthat | 92f317432e9e8097a5e5c21455f67563c923765f | 29018e067f87b07805e55178f387d2a04ff8311f | refs/heads/main | 2023-08-31T02:50:55.045661 | 2023-08-08T12:17:23 | 2023-08-08T12:17:23 | 295,311 | 452 | 217 | NOASSERTION | 2023-08-29T10:51:30 | 2009-09-02T12:51:44 | R | UTF-8 | R | false | false | 2,071 | r | test-expect-inheritance.R | test_that("expect_type checks typeof", {
expect_success(expect_type(factor("a"), "integer"))
expect_failure(expect_type(factor("a"), "double"))
})
test_that("expect_is checks class", {
local_edition(2)
expect_success(expect_is(factor("a"), "factor"))
expect_failure(expect_is(factor("a"), "integer"))
})
tes... |
b361b9d7c2aae6e19a6d7298615127131f49cb3e | c750c1991c8d0ed18b174dc72f3014fd35e5bd8c | /pkgs/MMST/man/psych24r.Rd | b656c4ebc3f58e1468d29324a500ac067c220ff7 | [] | no_license | vaguiar/EDAV_Project_2017 | 4b190e66fe7a6b4078cfe1b875bccd9b5a594b25 | 288ffaeec1cfdd873fe7439c0fa0c46a90a16a4f | refs/heads/base | 2021-01-23T02:39:36.272851 | 2017-05-01T23:21:03 | 2017-05-01T23:21:03 | 86,010,131 | 1 | 0 | null | 2017-05-01T23:43:04 | 2017-03-24T00:21:20 | HTML | UTF-8 | R | false | false | 1,822 | rd | psych24r.Rd | \name{psych24r}
\alias{psych24r}
\docType{data}
\title{
MMST PSYCH24R DATA
}
\description{
psychological tests, 587, 588, 595
}
\usage{data(psych24r)}
\format{
A data frame with 301 observations on the following 31 variables.
\describe{
\item{\code{Case}}{a numeric vector}
\item{\code{Sex}}{a ... |
cdeef09b756bd81788df440a436a17d4f79ffdc2 | 4c37705204ff56dd2681a4e4004ea66216a3155c | /plot4.R | 224cf7c5cda6ea9303fde6139ab4ba0b7b4dce0a | [] | no_license | TMcIntyreZA/ExData_Plotting1 | e99fc8f5d0fff59d9f64692be33a1380d1ac7022 | b951d37ee0a77a8923efa7b8687c4a24aeff223e | refs/heads/master | 2021-01-22T19:22:22.116632 | 2017-03-17T08:05:07 | 2017-03-17T08:05:07 | 85,194,864 | 0 | 0 | null | 2017-03-16T12:45:21 | 2017-03-16T12:45:21 | null | UTF-8 | R | false | false | 1,312 | r | plot4.R | d <- read.table("household_power_consumption.txt", header = TRUE, sep= ";", dec = ".", stringsAsFactors = FALSE,)
dim(d)
d[1,]
d2 <- d[d$Date %in% c("1/2/2007","2/2/2007") ,]
dim(d2)
##plot 4
dtime <- strptime(paste(d2$Date, d2$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
gap <- as.numeric(d2$Global_active_power)
grp <- as.n... |
94070bc7c26d07a6b38ffc288cf21cd8c1bcd5fd | c9f23137dbb44f38b4aafbd5391b2ff179090515 | /man/SimpleBondPrice.Rd | 76464b1233986403cce2a7f8543e18997dc37a60 | [] | no_license | phenaff/R-Package-empfin | d7bc1cef3698ee0d4d1a8bce6bcb8831c86a907c | 6bf91c651d92dff6c28de47a86c84ce62310f42b | refs/heads/master | 2023-01-12T08:23:50.503245 | 2023-01-12T02:05:28 | 2023-01-12T02:05:28 | 10,160,673 | 1 | 3 | null | null | null | null | UTF-8 | R | false | true | 618 | rd | SimpleBondPrice.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BondUtils.R
\name{SimpleBondPrice}
\alias{SimpleBondPrice}
\title{Bond price}
\usage{
SimpleBondPrice(coupon, n, yield)
}
\arguments{
\item{coupon}{(real) coupon rate (.05: 5\%)}
\item{n}{(integer) number of years to expiry}
\item{yield}{(r... |
c6bfec11f393315701f11ddfdb87648d143d7a0a | f7872cf7882aed12825c2f118669875cd17224c9 | /QC_plus_doubletsdet.R | 06d15b49f80566d1e95f7e7703d6363977365cfe | [] | no_license | LeGrand-Lab/QC_single_cell | e9e718ee77eee7c5d5cb10cca661a41c286d544f | 85fcb1237f1507d048244dae1b7206339dd6887a | refs/heads/master | 2022-11-13T20:31:41.850076 | 2020-06-25T11:58:13 | 2020-06-25T11:58:13 | 274,629,969 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,793 | r | QC_plus_doubletsdet.R | ###
# QUALITY CONTROL AND PREPROCESSING
# This workflow is valid for 10X-format raw counts.
# Third-party protocol yields matrices where GENE SYMBOLS are rownames.
# ATTENTION: Doublet detection procedures should only be applied to libraries
# generated in the same experimental batch.
# *-* many thanks to Dr. L Modo... |
ab4b45b80c34d1e4252fdd88fe48dae12d70d573 | 54b32e330e8386506fd061ee26ebd5a18534f77d | /man/sampleCore.Rd | 3916d5327bcf37d13279b3ef687a97cf36903076 | [] | no_license | cran/corehunter | cc37fdf35417a256f6f62dbf9b802ebde6c0423f | b94caba741ba9420e828d82701a9b8f6b539064a | refs/heads/master | 2023-05-30T06:49:01.070982 | 2023-05-11T14:50:02 | 2023-05-11T14:50:02 | 70,241,028 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 7,024 | rd | sampleCore.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/execution.R
\name{sampleCore}
\alias{sampleCore}
\title{Sample a core collection.}
\usage{
sampleCore(
data,
obj,
size = 0.2,
always.selected = integer(0),
never.selected = integer(0),
mode = c("default", "fast"),
n... |
788728e906332e4a684a4abddb18b8f8e0c25220 | 9a190c31dcd2e5c1208d3701aedd95ee40cd3a52 | /Scripts/tracksPlot.R | dd9dd6673a66cc28fdf6fae4916bb1840cb0633a | [] | no_license | squatrim/marques2020 | d5d44f19da835e0a371b432aa30cf3dedc117fa1 | 45e31e7d17f006d2d3a17e66a63449f758bf5998 | refs/heads/master | 2023-08-19T07:41:27.915357 | 2021-08-02T14:13:14 | 2021-08-02T14:13:14 | 211,262,384 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,499 | r | tracksPlot.R | tracksPlot <- function(data, gene, bigwig.ymax = 25,
region.min = 1000, region.max = 1000) {
# Plot parameters, only to look better
pp <- getDefaultPlotParams(plot.type = 1)
pp$leftmargin <- 0.15
pp$topmargin <- 15
pp$bottommargin <- 15
pp$ideogramheight <- 5
pp$data1inmargin <- 10... |
26e50861e865d78aa0c196bb401797f93ce74fe4 | 115c6a6a98825f87940ec373558155e921042fd8 | /plot_delly_vaf/plot_delly_vaf.R | f8f41c56678933d67878d0f46cb8c8ff17ae4858 | [] | no_license | morinlab/lab_scripts | a29e879175dd30a98cbde703496a4319f61afb2f | 77639a138e520506e4395cade8ca27b4e6a377c6 | refs/heads/master | 2022-04-30T14:56:23.825628 | 2022-03-14T19:18:56 | 2022-03-14T19:18:56 | 26,938,506 | 6 | 8 | null | 2016-09-14T23:04:39 | 2014-11-21T00:31:04 | R | UTF-8 | R | false | false | 1,539 | r | plot_delly_vaf.R |
# Import libraries --------------------------------------------------------
library("tidyr")
library("magrittr")
library("dplyr")
library("ggplot2")
# Parse command-line arguments --------------------------------------------
options(echo=TRUE)
args <- commandArgs(trailingOnly=TRUE)
input_file <- args[1]
# Create d... |
5014425a543d3b615949f6fd1a550b5b3be0b4b1 | c32c54f47c35737ea4ba3a026c81b594fd02b1cf | /man/unregister.Rd | 6902769cd7b0f9196f3f9aaa3bcf6af3e1208dbc | [] | no_license | quinnpertuit/rDailyFantasy | cd46596122d979b5c389d67b19bc354109fa0722 | fb00d802573c855f58d5b7b4d84f96d6724a66a6 | refs/heads/master | 2022-10-24T06:04:42.025973 | 2020-01-11T15:12:36 | 2020-01-11T15:12:36 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 277 | rd | unregister.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/unregisterParallelFunction.R
\name{unregister}
\alias{unregister}
\title{Unregister doParallel Cluster}
\usage{
unregister()
}
\description{
Unregister doParallel Cluster
}
\examples{
unregister()
}
|
2bdaeb91a3e5ed281e63e11c7f5e47379ceadf2f | 2415aff5aa0882a76a1fa6d3b2c5dbe86ee0fc8e | /Analysis/update_data/counties_merged_data.R | 2f6a4b4641efb801237f895d1035e234ac1a6bae | [] | no_license | blind-contours/Getz_Hubbard_Covid_Ensemble_ML_Public | 3e4456b74dd9d4638e513a7889e1341eeda4c2c6 | b6c609a178af5761ec98454dcb802fe56906a962 | refs/heads/master | 2022-12-05T21:19:22.547100 | 2020-08-18T18:39:44 | 2020-08-18T18:39:44 | 290,294,958 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,270 | r | counties_merged_data.R | # # Clear Workspace
# rm(list=ls())
# Download USFacts data
usf<-data.frame(
read.csv("https://usafactsstatic.blob.core.windows.net/public/data/covid-19/covid_confirmed_usafacts.csv"),
read.csv("https://usafactsstatic.blob.core.windows.net/public/data/covid-19/covid_deaths_usafacts.csv")
)
# Parse FIPS as integers... |
6fc6463924c77951c07cec8513ef36ff541a321a | 60ddf6ce5476c45658f88101c9a935f5d64197b1 | /global.R | a018b2e653baf6a20b126d6724e9f307ad45f820 | [] | no_license | amirms/ITMViz | 5716ae8de6d2c4f44e65061ad414ceccca804db1 | 647dd00bb5eb24ccd7e6da6be4080f6a4db2c02b | refs/heads/master | 2021-01-17T07:43:25.274067 | 2017-05-23T18:52:27 | 2017-05-23T18:52:27 | 35,730,686 | 4 | 4 | null | null | null | null | UTF-8 | R | false | false | 11,831 | r | global.R | library(inline)
library(Rcpp)
library(inline)
library(ITM)
ldaState <- function(alpha, beta, eta, K=1, W=0, D=0, vocab=NULL, doc.names=NULL, session=NULL) {
state = list (
dt = Module("dt", getDynLib("ITM")),
#Current Project in benchmark folder
prname= NULL,
min.tfidf= 3, #the minimum tf-... |
4cbf53c5f847d624569e1edc464c9479517364bb | 551a0f7f4dae3b16deb08b4e2ce1bc369b399c61 | /EOD_2_transportes_graphs.R | 20fe5a25a6ba1494ebf56b4acdecf2aa5f20ec45 | [] | no_license | eduardon6/EOD | 2170506dd38ca7bbae26873007ef729c346b6a59 | 0ed3277b11faf96e69d3210304c2d35077e875ce | refs/heads/master | 2020-04-10T19:06:46.179101 | 2018-12-10T19:16:03 | 2018-12-10T19:16:03 | 161,223,404 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,213 | r | EOD_2_transportes_graphs.R | library(survey)
library(dplyr)
library(lubridate)
library(ggplot2)
library(foreign)
library(stringr)
rm(list=ls())
d <- read.csv(file = "transportes.csv")
names(d)
d$SEXO[d$SEXO == 1] <- "hombre"
d$SEXO[d$SEXO == 2] <- "mujer"
d$EDAD2 <- d$EDAD
d$EDAD2[d$EDAD2 %in% 6:16] <- "06a16"
d$EDAD2[d$ED... |
aa24323a956f9e2c51b22135d589177dffc4b5d5 | e54c158a91574d4379603d2694b0e431818ec965 | /QC-Scripts/Sample-QC/Relatedness/postking/plot-duplicate-concordance.R | 6d9e7461664a41d199973670baed7a1f0addcc1a | [] | no_license | cgbycroft/UK_biobank | 3e9de2a2cfb6e81dae0db3f0c5c20995ca9613e6 | f1bb23cdd8881bebacfedccc289922278de180bf | refs/heads/master | 2023-06-20T03:38:10.405339 | 2021-07-19T12:09:55 | 2021-07-19T12:09:55 | 157,422,053 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,343 | r | plot-duplicate-concordance.R | # This script takes the output from ./postking/duplicate-concordance.sh and plots summaries of the concordance rates
args = commandArgs(TRUE)
#args = c("/well/ukbiobank/expt/V2_QCed.SNP-QC/src/V2_QCed.snpqc-tests.R","/well/ukbiobank/expt/V2_QCed.SNP-QC/src/V2_QCed.bin2clusterplots.R","/well/ukbiobank/qcoutput.V2_QCe... |
f28c0c1e79f1773e698fdaea567fdcfca13bfe71 | 8e54e5a1c8cb0c89a6751e6c6cb17215eb5ff586 | /R/gutenberg_article_extraction.R | c51d5a77efa155130ec7901e8b7a11ae461e4297 | [] | no_license | jandziak/Integration-of-Text-Mining-and-Topic-Modeling-Tools | 15ed73aac5c03ced6deccd6ae69f24d15fb39de7 | 9f2fe01bd80ca1b881a381dadfde300c41c37232 | refs/heads/master | 2021-01-10T10:32:10.136673 | 2016-03-21T12:16:42 | 2016-03-21T12:16:42 | 53,896,364 | 2 | 0 | null | 2016-03-20T10:38:06 | 2016-03-14T22:26:56 | R | UTF-8 | R | false | false | 976 | r | gutenberg_article_extraction.R | #' Function to extract the article from the Project Gutenberg page
#'
#' @param url A complite path to the text file of the selected to download book.
#' @param full_text Logical parameter deretmining wheather to exclude disclaimer or not.
#'
#' @return book_string The string of the book content. (With or without di... |
6a08847e07f5e8075ae3ea8135877fd10e3f2ae3 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/estudy2/examples/apply_market_model.Rd.R | d642527a417bc4a31f3f315e0419ff3b7fe7db85 | [] | 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 | 5,005 | r | apply_market_model.Rd.R | library(estudy2)
### Name: apply_market_model
### Title: Apply a market model and return a list of 'returns' objects.
### Aliases: apply_market_model
### ** Examples
## 1. Mean-adjusted-returns model
## Not run:
##D library("magrittr")
##D tickers <- c("ALV.DE", "CS.PA", "G.MI", "HNR1.HA", "HSX.L", "MUV2.DE",
##D ... |
3c5079ac82f39efe40aa11c559252421c7ef8029 | 422a9321879f597bf9031f6f547b75377fe16c38 | /tests/testthat.R | 90e561168ad9935eb57890c714eaee8062e96a67 | [
"MIT"
] | permissive | KMurray12/mmrefpoints | 3b307eab3079d0328041abd1ee150fc3363c16bb | 05b3997ff7a7a02ec886ca32cfb0d625e49c50a1 | refs/heads/master | 2023-05-29T01:14:20.759907 | 2021-05-28T01:13:20 | 2021-05-28T01:13:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 66 | r | testthat.R | library(testthat)
library(mmrefpoints)
test_check("mmrefpoints")
|
0dcedc4e60ddbb5a6ffb7372b928200cc6ac54cb | 754be5ab881b61f346986bea05dc03ab5b49094c | /man/translateCOMPASStoflowReMixNames.Rd | cac0d51ac4f07a9ca7af4cafce87bdd7e376131e | [
"MIT"
] | permissive | RGLab/flowReMix | 1a2f791a775be25f6910307129d5846910db4c11 | 732fe42e97474cf4ac2b0ee26b65f75e9949cd13 | refs/heads/master | 2021-01-12T11:26:05.593944 | 2019-02-27T04:50:55 | 2019-02-27T04:50:55 | 72,910,585 | 2 | 1 | MIT | 2019-02-27T04:50:56 | 2016-11-05T07:01:12 | HTML | UTF-8 | R | false | true | 585 | rd | translateCOMPASStoflowReMixNames.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{translateCOMPASStoflowReMixNames}
\alias{translateCOMPASStoflowReMixNames}
\title{Translate COMPASS markere names to FlowReMix format}
\usage{
translateCOMPASStoflowReMixNames(x)
}
\arguments{
\item{x}{\code{matrix} with column ... |
b49ebbbc613eee5ac970b3baeb019055b69bc2da | 22f761644fa84c4fe0086e3a013fd1f636e2ae0c | /man/calendar-register.Rd | e86e7de10694ae30487c6765f52f58d6285b214a | [] | no_license | cran/bizdays | a8fe606fd516f02231f0e6e42377f32747a76892 | fc0512ebbae7cbb9d8b26829ca35004fc3cf9f3d | refs/heads/master | 2023-01-25T04:01:52.148067 | 2023-01-20T16:40:06 | 2023-01-20T16:40:06 | 17,694,808 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,153 | rd | calendar-register.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calendar.R
\name{calendar-register}
\alias{calendar-register}
\alias{calendars}
\alias{remove_calendars}
\alias{has_calendars}
\title{Calendars register}
\usage{
calendars()
remove_calendars(cals)
has_calendars(cals)
}
\argum... |
c607e3ddaefac0478b7082de029865666adabfd5 | 8ef27de17d0110828d77ca91b4f4e71af73fc12f | /R/modelturnover.R | e595058b711d445c2858b332459fd837abf0f283 | [] | no_license | marcpaga/pulsedSilac | 95537ce75dc65a9573186708b2917ac700c7cbe6 | 23e5e48083b5edfc99c5dbc42bef487610bec5af | refs/heads/master | 2020-05-17T09:29:16.236700 | 2020-03-07T12:58:50 | 2020-03-07T12:58:50 | 183,634,007 | 2 | 0 | null | 2019-12-05T09:54:02 | 2019-04-26T13:31:31 | R | UTF-8 | R | false | false | 23,075 | r | modelturnover.R | #' @rdname modelTurnover
#' @name modelTurnover
#' @title Estimate protein/peptide turnover
#'
#' @description Method to apply turnover models on protein/peptide data
#'
#' @details The nls and nlrob functions have many arguments that can be tunned
#' for parameter fitting. Unfortunately, not all the possible argument
... |
5bf3f35bcc813a5376fd1af98b572bde562df0c7 | ce58874f810dc6c63451be5496d1704eaa4e2e7b | /Lab 7_Cross-Classified Models/MLM_Lab 7 _ Cross Classified Model (New Slab's conflicted copy 2014-11-19).R | 5e045a9ab5287fb788c3864970537b4ae805e21d | [] | no_license | nmldesjardins/MLM | 6c17135be8962fe2d3f8e82a486e7ec561625600 | be7374922602709798858b4057526dfa3647a37a | refs/heads/master | 2020-05-18T01:09:44.182667 | 2015-04-23T05:30:27 | 2015-04-23T05:30:27 | 34,423,295 | 2 | 3 | null | null | null | null | UTF-8 | R | false | false | 4,770 | r | MLM_Lab 7 _ Cross Classified Model (New Slab's conflicted copy 2014-11-19).R | ### This lab goes through cross-classified models and
### basic diagnostics.
###--------------------------------------------------------------------###
### CROSS-CLASSIFIED MODELS ###
###--------------------------------------------------------------------###
#### This part of lab goes through a basic c... |
d0d23ebd6ab15ce0fd32ea9ecd260d0211314ee3 | b0abc4e1a9593f7bfbc01e4c42687d3d702fa1f7 | /lp.tools/man/Logger.Rd | 056766684ab8bd1e4926b0fcf43ab248d8653a7c | [] | no_license | geohof/R-Library-Public | 6f8abaf3656b4ba2ce572f14d4fd82de38eccd53 | 0424b26664e4bbdd2fb92a18f78e981b68dc2cbf | refs/heads/master | 2020-04-05T08:29:56.394563 | 2019-01-28T14:25:47 | 2019-01-28T14:25:47 | 25,771,442 | 0 | 0 | null | 2018-12-18T15:57:36 | 2014-10-26T12:32:47 | R | UTF-8 | R | false | true | 386 | rd | Logger.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lp.tools.R
\docType{class}
\name{Logger}
\alias{Logger}
\title{Logging via R6 object}
\format{\code{\link{R6Class}} object.}
\usage{
Logger
}
\value{
Object of \code{\link{R6Class}} Logger
}
\description{
Log to screen, file and to a data.fra... |
98585e543246c8f2cc1a091877c58b001422e069 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/TPmsm/examples/image.TPCmsm.Rd.R | 88903814a643a345156974bf34820769262cd5e8 | [] | 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 | 837 | r | image.TPCmsm.Rd.R | library(TPmsm)
### Name: image.TPCmsm
### Title: image method for a TPCmsm object
### Aliases: image.TPCmsm
### Keywords: hplot methods multivariate survival
### ** Examples
# Set the number of threads
nth <- setThreadsTP(2)
# Create survTP object
data(heartTP)
heartTP_obj <- with( heartTP, survTP(time1, event1, S... |
16da541401a0fefda9d14761846eeed999cc5fb5 | cf6dd5e431c3bf01df4d4b181c2e116eb8617bf0 | /Aigues de Barcelona/Code/Analysis_1.R | e6f145a498f3bac386af5caf7486a70b01dbd2c0 | [] | no_license | asinga1982/Competitions | e1503bc72133241b27ea1ea3bc2b8e41964c04d1 | e48464a9439cbc54c8a34dc5b39bc9b29e582753 | refs/heads/master | 2020-12-25T06:46:51.273564 | 2017-06-22T21:01:35 | 2017-06-22T21:01:35 | 64,934,215 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,253 | r | Analysis_1.R | #ANALYSIS FOR PREDICTING CONTACTS
# New,ended contracts and pre contacts consolidated by date
nc_byDate <- aggregate(newCont1$NEW_CONTRACTS, by=list(newCont1$Date), FUN=sum)
colnames(nc_byDate) <- c("Date", "NewContracts")
nc_byDate <- nc_byDate[with(nc_byDate, order(Date)),]
ec_byDate <- aggregate(endCont1$... |
230e99f3f13f2bfe0074c13fa47a4429c00c6ef7 | 7505da6d4b338f172cac1af24d692302d42be6bc | /man/f0.rosenbrock4.Rd | 5297cf68d57b9eb49296837bb9d44079826465b4 | [
"MIT"
] | permissive | antonio-pgarcia/evoper | 367da295fd704bbde96370c990b8be56d70879b5 | 5337eb8917ed851ffb5f916023d08de12bf281d1 | refs/heads/master | 2021-01-19T04:18:37.948801 | 2020-08-30T10:25:53 | 2020-08-30T10:25:53 | 61,146,979 | 6 | 1 | null | null | null | null | UTF-8 | R | false | true | 582 | rd | f0.rosenbrock4.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test-functions.R
\name{f0.rosenbrock4}
\alias{f0.rosenbrock4}
\title{f0.rosenbrock4}
\usage{
f0.rosenbrock4(x1, x2, x3, x4)
}
\arguments{
\item{x1}{The first function variable}
\item{x2}{The second function variable}
\item{x3}{The third fun... |
87711cf453ad669ef021301e8b6f39dc90d74c26 | fd03276234b78a4ed9cac26b9c4b398765de5ae1 | /plot1.R | 7eb2a627c899a350653a4591e5c790df1eedf6ed | [] | no_license | swamypv/ExData_Plotting1 | a41654ebe92528d14bdebc526396de1519f8e981 | dfd62eb49f8949a26968779bfca0c1864aa05ddf | refs/heads/master | 2021-01-18T07:43:14.837071 | 2014-05-11T10:52:23 | 2014-05-11T10:52:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 832 | r | plot1.R | plot1 <- function(){
#get lines numbers of the data where date is matching
lines <- grep('^[1-2]/2/2007', readLines("household_power_consumption.txt"))
#Read the data
energy.data <- read.table(file="./household_power_consumption.txt", sep=";", stringsAsFactors=F, header=TRUE, skip=lines[1]-1, nrows=l... |
59b4009ac5c7d3de2cec69bf436707c5f477ec55 | 05e196e8e28339978921846cbec10d8b6c04d46b | /R Scripts/Merge_data_frames.R | 0bf81e2daf028535d4f45366b1b94724f486a76c | [] | no_license | Joey-Herrera/Texas-Metro-Housing-Prices | 998eb27ada9e4e953e7f7578cadd39b3f64cfaca | 58c23a3bded65d215ab4aaeecb8297a672e709e0 | refs/heads/main | 2023-06-05T22:16:38.582276 | 2021-07-02T18:00:17 | 2021-07-02T18:00:17 | 349,486,473 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,300 | r | Merge_data_frames.R | #Merge data frames
###For Zillow data
#Add year variable to Zillow dataframe to eventually join with ACS data
Zillow_long <- mutate(Zillow_long, YEAR = format(as.Date(Zillow_long$date, format="%Y-%m-%d"),"%Y"))
# Condense data frame by RegionName and year to lower the overall number of observations
region_list_zillow... |
a893dfb18177d28f50112f7be51194331ae636f8 | 5cfa9463ce68e472c7ddad4fbd4bc545996fc626 | /man/brf_summary_cat.Rd | e1ae9b256c4c475fa359ea8c2de9dc4b55e5f176 | [
"MIT"
] | permissive | AdrienLeGuillou/briefr | 277a55cc7758b7fa54919b040c3ea4299fed7194 | d406da1f7ab14886c7229d761c78f665fa78d762 | refs/heads/master | 2022-08-29T17:00:40.695409 | 2022-07-20T13:24:08 | 2022-07-20T13:24:08 | 179,670,547 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 596 | rd | brf_summary_cat.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summaries.R
\name{brf_summary_cat}
\alias{brf_summary_cat}
\title{Summarise a categorical column in a data frame with a grouping option}
\usage{
brf_summary_cat(df, data_col, grouping_col = NULL)
}
\arguments{
\item{df}{a data frame}
\item{d... |
298003f9a6705114dd90906e5169fbef1237be32 | a06d0f71cc50f366f2531d4054b17647ae777566 | /man/promoters_mm9.Rd | 5edd9f20a147c43ceeb1b852cc3a8cdb22070b0e | [
"Artistic-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | CharlesJB/metagene | c50afe14bee3882b774e47de83fd41d974038fac | b01ccc58d07bd644c77aaf649684cb0609c6461c | refs/heads/master | 2021-08-08T10:20:13.092965 | 2021-07-08T04:13:53 | 2021-07-08T04:13:53 | 14,694,458 | 11 | 10 | Artistic-2.0 | 2019-02-13T13:14:17 | 2013-11-25T18:35:41 | R | UTF-8 | R | false | true | 496 | rd | promoters_mm9.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{promoters_mm9}
\alias{promoters_mm9}
\title{Promoters regions of mm9 Entrez genes.}
\format{A \code{GRanges} object with 21677 ranges.}
\usage{
promoters_mm9
}
\value{
A \code{GRanges}.
}
\description{
Each regions... |
cb2e498852e04f3aee3c8e694dff005bc3c17337 | c162d4146e41345c2a1a5bd3db425951f967ff64 | /man/pISVMpeptide.Rd | df82085e05913ef23f5b0bf5beea53401386ea19 | [] | no_license | qwwz/pIR | 494c7ec043783e3f8f305b0ef4be7c062a38189f | b35c644bbd1ee7f25fcd62c9948fea78a78ea556 | refs/heads/master | 2021-06-08T00:39:23.625948 | 2016-09-10T23:54:32 | 2016-09-10T23:54:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 433 | rd | pISVMpeptide.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pISVM.R
\name{pISVMpeptide}
\alias{pISVMpeptide}
\title{pISVMpeptide}
\usage{
pISVMpeptide(sequence, model = "default")
}
\arguments{
\item{sequence}{The sequence to be used}
\item{model}{The SVM-based model to be used in the prediction (use... |
584481e6b06ebd90c35e8b17d0f5d6d917914ad5 | 403d8ecc10bd3257f104b3d51502731505009087 | /R/bananafy_as_in_bash_scripts.R | d47b52413dfee4f32a0c6afc07dbd0911990180b | [
"MIT"
] | permissive | RMHogervorst/bananafy | 2708874c2f972e8ca68064e342ed1cd348750cc3 | 99685e8fc5fdf5920ab9bf600eb10dc0eebfa483 | refs/heads/master | 2021-09-02T00:15:41.317376 | 2017-12-29T10:42:17 | 2017-12-29T10:42:17 | 115,713,736 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,480 | r | bananafy_as_in_bash_scripts.R | #!/usr/bin/Rscript --vanilla
args <- commandArgs(trailingOnly = TRUE)
if (length(args) < 1){
stop("I think you forgot to input an image and output name? \n")
}
offset <- NULL
debug <- FALSE
suppressPackageStartupMessages(library(magick))
## Commandline version of add banana
#banana <- image_read("images/banana.gif... |
7496294d6a0b9057999d83f5717383c927fb976c | 3863aff88126d9754977927390a367ddf3ae9b61 | /lib/backtest.R | 23f9c397c1c9886869c3286408b03564aaa8bde4 | [] | no_license | ZhengyangXu/FinalProject-5261 | c3ee9164f193f81d52b59145c2167a415de4335e | 0153a38ec18ab04ec43d2bbaa967123ce3fbe5e4 | refs/heads/master | 2020-03-11T11:51:36.281593 | 2018-04-13T00:15:22 | 2018-04-13T00:15:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 429 | r | backtest.R |
backtest <- function(wP,data = data_final[,-1]){
n = dim(data)[1]
return = data[2:n,]/data[1:(n-1),]
weight <- matrix(rep(0,250*482),ncol=482,nrow=250)
weight_mat_nrow <- floor((nrow(data)-250)/60)
for(i in 1:weight_mat_nrow){
weight <- rbind(weight, matrix(rep(wP[i,],60),ncol=ncol(data),nrow = 60,byrow... |
eb5a297b2d34af8891d0296fffd19806e11e0348 | 7466dbb3f016774d6cb1ddeb142de1edae496378 | /man/V.Rd | 55ca37415712841c33f094a9117c539396ca07ef | [] | no_license | cran/chinese.misc | 0dc04d6470cff7172c76f3a735986ef7128c74da | 369fd6b193e5d969354a31e568fabe53cb596c8c | refs/heads/master | 2021-01-19T09:55:21.948813 | 2020-09-11T20:50:03 | 2020-09-11T20:50:03 | 82,150,007 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,612 | rd | V.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/V.R
\name{V}
\alias{V}
\title{Copy and Paste from Excel-Like Files}
\usage{
V(tofactor = 0, keepblank = 0, sep = "\\t")
}
\arguments{
\item{tofactor}{if this is equal to numeric 1 or \code{TRUE}, characters will be converted to facto... |
9151fefd7287d64cff14b4be910c1cde65942f1c | 878960a141b8a52b1606a7ccdde801c6dcac4768 | /plot4.R | c87c7080d58f5dcc4ad8a04fd66d455a8a901dea | [] | no_license | patternplot/airpollution | 63700ecd41f22fc80c012a6659d908c6c8c4e197 | 6add5238924df815d94d21d3180ec359339fc840 | refs/heads/master | 2021-01-10T05:27:00.002782 | 2016-03-12T02:21:50 | 2016-03-12T02:21:50 | 53,708,967 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,056 | r | plot4.R | require(ggplot2)
if(!exists("NEI")){
NEI <- readRDS("summarySCC_PM25.rds")
}
if(!exists("SCC")){
SCC <- readRDS("Source_Classification_Code.rds")
}
## Across the United States, how have emissions from coal combustion-related sources changed from 1999-2008?
# First get the SCCs for Coal Sources
coalSCC <- SCC[gr... |
9f9d7e727cfe4cc65f9c92ed84d645be0853b554 | dd8d6d76c90a658682dcb7889edfc79adfb81a70 | /PrepScripts/prep_TLE_Pos.R | 872e7a3646fe4f5a4a89df86e46949482f131e4a | [] | no_license | wkumler/EdwardsLipids | 37b20d7a7936dd716cff9593b2c7fe2fcefa9bb5 | 4decfddba8b310e72b3be2702e10fb651639815d | refs/heads/master | 2020-03-28T09:52:28.593100 | 2018-11-20T00:28:02 | 2018-11-20T00:28:02 | 148,065,885 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 20,522 | r | prep_TLE_Pos.R | # prep_TLE_pos.R
#
################ Caveats and prerequisites #############
#
# Presumes user has installed the R packages "xcms", "CAMERA", "tools", "IPO", with all required dependencies
#
# If multicore tasking is desired, "snowfall" also required; Rmpi doesn't seem to be necessary
#
# This script the followi... |
697a12e62da3856370903f2b0781d11867b1ef4e | 7f72ac13d08fa64bfd8ac00f44784fef6060fec3 | /RGtk2/man/gtkLabelSetText.Rd | 40a4612ad075c253187834b77542f5ec30fb10e8 | [] | no_license | lawremi/RGtk2 | d2412ccedf2d2bc12888618b42486f7e9cceee43 | eb315232f75c3bed73bae9584510018293ba6b83 | refs/heads/master | 2023-03-05T01:13:14.484107 | 2023-02-25T15:19:06 | 2023-02-25T15:20:41 | 2,554,865 | 14 | 9 | null | 2023-02-06T21:28:56 | 2011-10-11T11:50:22 | R | UTF-8 | R | false | false | 475 | rd | gtkLabelSetText.Rd | \alias{gtkLabelSetText}
\name{gtkLabelSetText}
\title{gtkLabelSetText}
\description{Sets the text within the \code{\link{GtkLabel}} widget. It overwrites any text that
was there before. }
\usage{gtkLabelSetText(object, str)}
\arguments{
\item{\verb{object}}{a \code{\link{GtkLabel}}}
\item{\verb{str}}{The text you want... |
55c4b793712ae320422cf30f597b8575e0362782 | d62d9ea2f6aa749fa48455bddbd3208279ce6449 | /man/flip_layers.Rd | 0955a75abce20504865d378a5b2dd4e13253bb62 | [] | no_license | jporobicg/atlantistools | 3bffee764cca1c3d8c7a298fd3a0b8b486b7957e | 75ea349fe21435e9d15e8d12ac8060f7ceef31a2 | refs/heads/master | 2021-01-12T03:06:55.821723 | 2017-05-26T04:03:33 | 2017-05-26T04:03:33 | 78,160,576 | 1 | 0 | null | 2017-05-25T23:35:23 | 2017-01-06T00:51:21 | R | UTF-8 | R | false | true | 1,108 | rd | flip_layers.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/flip-layers.R
\name{flip_layers}
\alias{flip_layers}
\title{Flip layers for visualization.}
\usage{
flip_layers(data)
}
\arguments{
\item{data}{dataframe with columns polygon and layer. layer id is based on
atlantis output (0 = layer closest ... |
77db129a59b857c40952cbada7435f7bd32fa340 | 2972e393d2d5d38b018fe48e85f8991552a2ccf8 | /ED2/transect_runs/NC/run/workflow.R | 65fae3c1080af4137f36a8d40962d28230ef56df | [] | no_license | KristinaRiemer/model-vignettes | 8ba73d33b1bd30f01077daf87b50ec937a658e08 | 91c7d27a948f9b1e0e0f83b85170be0758e72c27 | refs/heads/master | 2022-09-15T18:51:15.139122 | 2022-08-19T21:48:16 | 2022-08-19T21:48:16 | 182,847,131 | 0 | 0 | null | 2020-06-23T17:33:18 | 2019-04-22T18:43:03 | null | UTF-8 | R | false | false | 3,587 | r | workflow.R | # This may take a long time to run. Run as a background job if you don't want
# to tie up your R session. In RStudio click the "Source" drop-down and choose
# "Source as Local Job"
# Load packages -----------------------------------------------------------
library(PEcAn.all)
library(furrr)
library(progressr)
# Read... |
e81d4ffcc863bc31c3994f8541165665eabf6365 | 19e4ab785434b096af3059dce4c533d0ad424b90 | /HMDLexis/HMDLexis/R/d_s1x1.R | 975ba5bd491d092f3693adae8e4a9e15d719d400 | [] | no_license | timriffe/HMDLexis | feaae9eef42d71783e836116b8b0a5d174f838d6 | 9c1c9aa9dc39e27e185320e3b3362f473437af62 | refs/heads/master | 2021-03-26T10:25:57.264746 | 2018-11-10T10:50:38 | 2018-11-10T10:50:38 | 28,879,743 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,242 | r | d_s1x1.R |
#'
#' @title d_s1x1, a function to split RR death counts into Lexis triangles based on regression coefficients.
#'
#' @description The HMD Methods Protocol gives a formula to split Lexis 1x1 death counts (squares) into triangles based on the results of a regression. Function can be run innocuously on any Deaths data,... |
0594dae34699652161a9c0e3090d6d7bc7153575 | befbf39f0718b1444f911dbb7c98d1c4a7dcf7b2 | /man/goblets.Rd | b5f5d1c1c9c9061993f4bc1cc8aafdd29b43b53f | [] | no_license | cran/calibrate | fe5b71eb8b0dc404e773c28097db86f4a05110bc | d41eeeb2509038b18dcc28a6c7bb256ef3b56209 | refs/heads/master | 2021-01-22T14:38:35.100617 | 2020-06-19T04:40:14 | 2020-06-19T04:40:14 | 17,694,921 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 440 | rd | goblets.Rd | \name{goblets}
\docType{data}
\alias{goblets}
\title{Size measurements of archeological goblets}
\description{
This data set gives 6 different size measurements of 25 goblets
}
\usage{data(goblets)}
\format{A data frame containing 25 observations.}
\source{Manly, 1989}
\references{
Manly, B. F. J. (198... |
c3ec00eca5250a52dbb4485cdd9f38ec8fe84371 | 5d07aa560356e77c20833bdbb493c554625a455d | /man/LSRPrisma_flow.Rd | 87d86d38a54831653d163ad270c6bc4bd59686de | [] | no_license | nealhaddaway/livingPRISMAflow | f0403cb63c5d3f2b392efbc8f4569d1c40e0b2ee | 60de662cf3698a3932ffc32592195a60a7155475 | refs/heads/master | 2023-04-13T10:11:41.268084 | 2021-07-01T10:25:48 | 2021-07-01T10:25:48 | 331,282,349 | 6 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,077 | rd | LSRPrisma_flow.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LSRPrisma_flow.R
\name{LSRPrisma_flow}
\alias{LSRPrisma_flow}
\title{Living systematic review flow diagrams}
\usage{
LSRPrisma_flow(data, previous = TRUE, other = TRUE)
}
\arguments{
\item{data}{A dataset ready for plotting, produced as a lis... |
b86639c3fb0f01470de3a87156c74beace71f036 | bca43a8c0fe050a69eaa45adef82ca459b6c58f4 | /R/0onload.R | 5d482b21c4768215c20debaf6875d9f9145263ba | [] | no_license | kkholst/lavaSearch2 | 901fc73a65e1020151df113f049cde34857110f1 | c120b2d7ce0f53c2495d8bb316b49ad18f3a6471 | refs/heads/master | 2020-04-07T07:30:43.989775 | 2018-10-04T16:18:42 | 2018-10-04T16:18:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 801 | r | 0onload.R | ## * .onLoad
.onLoad <- function(lib, pkg="lavaSearch2") {
# available methods to compute the distribution of the max statistic
lava::lava.options(search.calcMaxDist = c("integration","boot-residual","boot-wild"),
search.p.adjust = c("fastmax", "max", "holm", "hochberg", "hommel", "bonfe... |
0b848f81172dbd78cffd2307a75635064fa4607e | 3468f9559e492713fb0461ebae027e8b8bcb85c9 | /R/summarize_concentrations.R | 9f4873e3ca95e6cd5da7a57b277676045bf475ef | [] | no_license | cleberecht/singaEvaluate | 40702f35e8fd75641fe4e362e5138aee484afa49 | c8dd26ae325593e445d0e71f9477724607faa0ea | refs/heads/master | 2020-08-30T07:49:18.919915 | 2020-01-06T12:16:58 | 2020-01-06T12:16:58 | 218,310,239 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,218 | r | summarize_concentrations.R | #' Parses concentrations from a json trajectory.
#'
#' @param trajectory The parsed trajectory
#' @param entity_mapping The entity to collector mapping created by \code{\link{map_collector}} or manually.
#' @import dplyr
#' @export
summarize_concentrations <- function(trajectory, entity_mapping) {
# retrieve collecto... |
0cf6343d045e880272d78294dc561913ec08e9aa | 6c76ad5b8fd4b120363f269fb49a8a41088818e5 | /man/roundSim.Rd | 9110318f05bef87b5d22dde7c719863e62b03eef | [] | no_license | mattsigal/SimDisplay | 4a2d91a688178cf566cd3097276d8532622e1dd0 | ecc3a7568fe6a9de1be7e7a1212f4ca66cafb68b | refs/heads/master | 2021-01-10T07:29:03.573726 | 2017-09-15T15:05:37 | 2017-09-15T15:05:37 | 52,392,430 | 4 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,027 | rd | roundSim.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/roundSim.R
\name{roundSim}
\alias{roundSim}
\title{Rounding values for presentation}
\usage{
roundSim(x, digits = 3, percent = FALSE)
}
\arguments{
\item{x}{A \code{vector} or \code{data.frame} object.}
\item{digits}{An \code{integer} value ... |
fd98e273049597a4e37202280e6bf5d5a264475b | c8c40624cd94035c905479e2b213b05c9e0f9463 | /demos/data_import/pdf_scraping/pdf_scraping_wa_covid_reports_exercises.R | 83640eeaece85d658df13193dbe8dd4329c64813 | [
"MIT"
] | permissive | deohs/coders | 3fba6aeba4fe9a1a246917b4eb7b6b83f78cb857 | e33234625e3910b133894fb9a9cd260fef815c79 | refs/heads/main | 2022-10-28T23:04:06.049888 | 2022-10-19T20:02:41 | 2022-10-19T20:02:41 | 191,814,394 | 9 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,453 | r | pdf_scraping_wa_covid_reports_exercises.R | # PDF "scraping" exercises: WA DOH Covid-19 data
# See: https://www.doh.wa.gov/Emergencies/COVID19/DataDashboard#downloads
# Load packages
if (!require(pacman)) install.packages("pacman")
pacman::p_load(readr, dplyr, tidyr, purrr, tabulizer, ggplot2, RColorBrewer)
# Prepare data folder
data_dir <- "data"
if (!dir.ex... |
8a031cbeb43c1175271b57ea08bf3e72e99f93e1 | 5c9a3e5a02f21cfaed27e5934805cb768479e124 | /src/C50_real_data.R | 4711c50b1be8ed88916ef42c45a3641f90306258 | [] | no_license | jasontgalvin/DM_Project | e8aefd8930cc5b7eab17d4bf805a306764178e3f | 0540e159fc6e1f205f2a1873e424314e9c660eae | refs/heads/master | 2020-12-31T06:31:34.278718 | 2017-04-11T20:03:25 | 2017-04-11T20:03:25 | 86,612,414 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 570 | r | C50_real_data.R | #import packages for C50
library("C50")
#read in data
data <- read.table("pdata",header=TRUE,sep="\t")
#split data by even column and odd
L<-length(data[,1])
even_data<-data[seq(0,L,+2),]
odd_data<-data[seq(1,L,+2),]
#use even data as training sets
t<-system.time(data.tree <- C5.0(formula=label~.,data=even_data))
#pre... |
029200814ac05485ab924fad511f58fdd9aede4f | 8460f01682430d81affb89d2e7d48f2deea5fa41 | /run_analysis.R | 4471631da80aca4fb79df74c10bfd4392e75255a | [] | no_license | blue3sky/CleaningDataProject | 9e94738824466a2e285a3e040ef88e84ae5256b5 | 55d686091e61042258b13e642b7c4221737603ee | refs/heads/master | 2021-01-24T22:59:57.097001 | 2014-10-26T13:37:08 | 2014-10-26T13:37:08 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,977 | r | run_analysis.R | # First please set the working directory as the directory where the Samsung data is located.
# This run_analysis.R file does the following:
# *********************************************************************************************************************
# 1.Merges the training and the test sets to create one da... |
38f615f8aa648ad10806ef6d184dd3271bd759e7 | ae50d81889d88e0510bd4d076c6a559848cf112a | /Shiny-Templates/Self-Contained-Apps/Plotly-map-with-timeline/ui.R | 41815487afee29e61b733a45bc57925488317bb3 | [
"MIT"
] | permissive | ToonTalk/Live-Data_Scripts-and-Templates | a0f784a0320cc9a8dac5e030b51f44aa72cec32c | 4855d56f7b6b2be212ff2f7df3c867788e22e225 | refs/heads/gh-pages | 2021-01-15T12:30:57.498318 | 2016-08-05T14:54:57 | 2016-08-05T14:54:57 | 65,015,940 | 0 | 0 | null | 2016-08-05T12:12:43 | 2016-08-05T12:12:42 | null | UTF-8 | R | false | false | 3,327 | r | ui.R | ## ==== Packages to load for server
library(shiny) # Some advanced functionality depends on the shiny package being loaded client-side, including plot.ly
library(plotly) # Load the plotly library
library(shinythemes) # Template uses the cerulean theme as it is pretty
library(knitr)
library(DT)
## ==== Global client-s... |
d4f2944da3f2fc0761c4703b410bdf9c135d3fc7 | 4852053beec8d61bc1ea1f3443ee4e56ba8f4d89 | /plot2.R | 0ffdb309ef88169db2362b9b8d6a284fe4e1a8bc | [] | no_license | juste-zabarskaite/ExData_Plotting1 | 329b3206159821f4f65ea16a915784f6f4b59551 | 651df2b344f674a5720e701771b9891a4f95d264 | refs/heads/master | 2020-01-24T20:54:16.628755 | 2016-11-17T01:57:52 | 2016-11-17T01:57:52 | 73,968,413 | 0 | 0 | null | 2016-11-16T22:49:18 | 2016-11-16T22:49:18 | null | UTF-8 | R | false | false | 798 | r | plot2.R | # Exploratory Data Analysis - Week 1 Assignment
## Read data, generate plot & save as PNG file
plot2 <- function() {
## read data from text file
## install.packages("data.table")
library(data.table)
source <- "household_power_consumption.txt"
x <- read.table(source, sep=";", header=TRUE, na.strings="?")
... |
9ad7270da664e064f7be52aec8a8b686d20a5726 | 93b800fb677d6c7685a2934be4a44079de170990 | /man/htable.Rd | dd3d0cdb081818f095bd1fa63651553333ba0490 | [
"MIT"
] | permissive | mkearney/lop | fa47144543f9952745c31c8aa0cd7b28ad7ee6e4 | d0a0d468454881462753f81793aa1a23dbc53c1b | refs/heads/master | 2022-04-11T01:49:57.379555 | 2020-04-06T22:02:34 | 2020-04-06T22:02:34 | 202,009,106 | 4 | 0 | null | null | null | null | UTF-8 | R | false | true | 308 | rd | htable.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-funs.R
\name{htable}
\alias{htable}
\title{htable}
\usage{
htable(x, header = NA, trim = TRUE, fill = FALSE, dec = ".")
}
\description{
See \code{rvest::\link[rvest:html_table]{html_table}} for details.
}
\keyword{internal}
|
01d5f5e72efad71482d1627f92d0aa6a9a88194c | 17d582790e37f4a1fa3cfcfc531fdf5c4f4086d4 | /packrat/lib/x86_64-apple-darwin18.2.0/3.5.2/rcmdcheck/tests/testthat.R | a822cfb24789346c77a5fdf9d21ba043ccd77d99 | [] | no_license | teyden/asthma-research | bcd02733aeb893074bb71fd58c5c99de03888640 | 09c1fb98d09e897e652620dcab1482a19743110f | refs/heads/master | 2021-01-26T08:20:58.263136 | 2020-02-27T04:12:56 | 2020-02-27T04:12:56 | 243,374,255 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 62 | r | testthat.R | library(testthat)
library(rcmdcheck)
test_check("rcmdcheck")
|
a1a7de642f44aec4912017244aa2fd43ae9081c8 | 343d1d087b4fe03548e585995cb403085ea15a6b | /src/analysis_for_plots.R | 91a1537f80a14e7b89984deaf97818f4841335e7 | [] | no_license | LaurelineJ/Reservoir_Optimization_Using_KNN | a418756c688be1ff151ebe9f0f9dd484bb8ddf13 | 1697cd60aace2935271b5c4cc875a76b155c617b | refs/heads/master | 2021-04-27T07:59:05.843033 | 2018-02-21T20:37:56 | 2018-02-21T20:37:56 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,485 | r | analysis_for_plots.R |
if(with_rioSF == TRUE){
pdf(file=paste("../results/results from KNN Sim with RSF_",percent_init_reservoir,"initstorage for 25 years.pdf"),onefile=TRUE,width = 12,height=6)
}else{
pdf(file=paste("../results/results from KNN Sim without RSF_",percent_init_reservoir,"initstorage for 25 years.pdf"),onefile=TRUE,width ... |
d267a7620288d2a940500e0c40f256dbf6a744ff | 2eebaf7f9e3246d2453df9289574fba9e7f8151a | /R/flood_risk_map.R | 181e0b6aa0f9b50e4e351c7781c57be1195d88d9 | [
"MIT"
] | permissive | mikejohnson51/FlowFinder | b47f2e726c452770bfa755c0da90ff7d13a1da92 | 617610cb3d53229de23a43775892223f8f854162 | refs/heads/master | 2021-06-07T20:26:34.622266 | 2021-03-15T00:05:05 | 2021-03-15T00:05:05 | 136,057,097 | 6 | 1 | MIT | 2021-03-15T00:05:05 | 2018-06-04T17:00:17 | R | UTF-8 | R | false | false | 2,886 | r | flood_risk_map.R | #' Make Flood Risk Max
#'
#' @param path a path the the maximum value
#'
#' @return a leaflet map
#' @export
#'
make_flood_risk_map = function(path = NULL, dir = NULL){
if (is.null(dir)) {
dir <- system.file("flowfinder", package = "FlowFinder")
}
vals = fst::read_fst(path)
df = fst::read_fst(paste0(dir,... |
7f5a665800273d8c42f954f37930bc43b0ac80ba | ba686f2453edd95f3d310d700590cb675bc5ee7a | /R/table_definition.R | 870cc7cea0b2f1348dd332b4b2afc0feefb42345 | [
"MIT"
] | permissive | RedOakStrategic/redshiftTools | 4f6867d683473f9555d918b4d52820b31b413428 | cb3529700ed4919ec256696c46aa82fe7992ba26 | refs/heads/master | 2021-01-09T01:56:38.431219 | 2020-08-27T14:56:17 | 2020-08-27T14:56:17 | 242,209,200 | 6 | 0 | NOASSERTION | 2020-08-27T14:56:18 | 2020-02-21T18:52:53 | R | UTF-8 | R | false | false | 4,498 | r | table_definition.R | #' @importFrom "utils" "head"
calculateCharSize <- function(col){
col=as.character(col)
maxChar = max(nchar(col,type='bytes'), na.rm=T)
if(is.infinite(maxChar)){
maxChar=1000
warning('Empty column found, setting to 1024 length')
}
sizes = c(2^c(3:15),65535) # From 8 to 65535, max varchar size in reds... |
d3905f2e1411ad7943b8d889f3a1d1807ca83453 | a7b4b3a28483bb2958fc454fb18affd26b3561bf | /R/geneSequence.R | ffed15079278c678665be1daf04fae10ae18869b | [] | no_license | drostlab/seqstats | 9519b99fdc51dbaaeb18da81e542e082a2267568 | b40bcbed58328d6642b3d856535f15236bde1a3c | refs/heads/master | 2022-05-12T09:07:24.444415 | 2020-04-26T13:06:23 | 2020-04-26T13:06:23 | 30,696,232 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,613 | r | geneSequence.R | #' @title Retrieve Biological Sequences of a given Set of Genes
#' @description This function takes an character vector storing gene ids of interest
#' and returns the biological sequence of the corresponding gene ids.
#' @param genes a character vector storing the gene id of a organisms of interest to be queried again... |
762859f11bc0c189fe069ccdbc9288321b6a1372 | 1056ff1109dedd7e36737fcb6ebd80f8fc599b8a | /02_Analisis_series_tiempo.R | df6ae93d7a180dc88fea30b2dfe72186315de793 | [] | no_license | Ajeronimo/Series-de-tiempo | c770bfa963e5e35e2a3a390f0ab83f60fb3d3564 | 7cb02c19c625dc7149a91bf0ce388b7aeb427d8d | refs/heads/master | 2023-07-22T03:56:56.400979 | 2021-09-10T12:00:58 | 2021-09-10T12:00:58 | 296,864,228 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,405 | r | 02_Analisis_series_tiempo.R | rm(list = ls())
# Limpiamos la consola
cat("\014")
# Cambiamos el directorio de trabajo
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
getwd()
# Librerias basicas para el estudio de series temporales
# ------------------------------------------------------
# ----------------------------------... |
1d15a8c4a6f90df0ac279610954fa0ee056a514e | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/beginr/examples/rpkg.Rd.R | a55055594cd9c26d45124faf3a416819676b3ca7 | [] | 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 | 126 | r | rpkg.Rd.R | library(beginr)
### Name: rpkg
### Title: Create a new R package demo folder
### Aliases: rpkg
### ** Examples
rpkg()
|
40c1bfa81edd4dd019471b2f0baf27b73c0548b6 | 43f3286dbec3cbb37c008cffcd75a8faaaca259f | /plot2.R | 537f18de9abfecc9ff61d3c4f2475e83e15adaeb | [] | no_license | Rpvrushank/ExData_Plotting1 | e6a1370ef70f0cb0554d5ade8cd9d5757b4ac0e8 | 5df0c98b21fd704e13ee56eb5b363c69d8a61673 | refs/heads/master | 2022-12-06T22:48:42.012389 | 2020-08-15T12:05:34 | 2020-08-15T12:05:34 | 286,724,159 | 0 | 0 | null | 2020-08-11T11:17:18 | 2020-08-11T11:17:17 | null | UTF-8 | R | false | false | 472 | r | plot2.R | Data_H <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors = FALSE, dec = ".")
sub <- Data_H[Data_H$Date %in% c("1/2/2007", "2/2/2007"),]
datetime <- strptime(paste(sub$Date, sub$Time, sep = " "), "%d/%m/%Y %H:%M:%S")
GlobalActivePower <- as.numeric(sub$Global_active_power)
p... |
6712acdb0a18dec75ac8eff8a3a90eb5593120d7 | 2e1f19f01e19a1acf2465d24fc3954263e281b52 | /man/get_recent_late_contributions_committee.Rd | 52218a62c9ab8c58b932031c246f1512246aa586 | [] | no_license | DavytJ/ProPublicaR | ebdc03ac0bc30efa6933aaa62316fa3fcbf98b00 | e9fe623ffc063665581238c3196f78bb32b08b77 | refs/heads/master | 2020-03-19T08:33:55.239980 | 2018-10-30T16:10:25 | 2018-10-30T16:17:09 | 136,215,002 | 0 | 0 | null | 2018-06-05T17:56:19 | 2018-06-05T17:56:19 | null | UTF-8 | R | false | true | 1,196 | rd | get_recent_late_contributions_committee.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_recent_late_contributions_committee.R
\name{get_recent_late_contributions_committee}
\alias{get_recent_late_contributions_committee}
\title{Get Recent Late Contributions to a Specific Committee
https://www.propublica.org/datastore/apis
HT... |
9be8e305c136c0a5d39d80c7925326c22714a9da | 6c44b1d41d99af5769be7e5e3ad0584522f6d06b | /MLRegression1.R | 3cd8d12892b278e98e3d0cd5cf40d689b831dafe | [] | no_license | ameilij/PracticalMachineLearning | e74411693f84a17d478f98b7b5e69f70e24b1344 | afd11380ddb2ee5ff15145128af5b360804ccc30 | refs/heads/master | 2020-09-21T02:37:26.401715 | 2016-10-10T02:12:08 | 2016-10-10T02:12:08 | 67,361,032 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,315 | r | MLRegression1.R | # Regression Example with Machine Learning
library(caret)
data(faithful)
set.seed(333)
inTrain <- createDataPartition(y = faithful$waiting, p = 0.5, list = FALSE)
trainFaith <- faithful[inTrain, ]
testFaith <- faithful[-inTrain, ]
head(trainFaith)
# Look at relationship with a visual graph
plot(trainFaith$waiting, t... |
d92d008e899b646b8846cc4805fd8f82c7660dc6 | 99ecd4dbba37c42bc06e43ac182b3384607a67e3 | /R/LinesAngles.R | 7e808cced2fa00f3a566760c34008b05548b54ac | [] | no_license | cran/LearnGeom | 0e33990d00d458e24a786a994300b1e1f62d9400 | 6aebc1d73c39d5d3776f0dd364df99307b2e4b0a | refs/heads/master | 2021-06-02T14:03:42.398531 | 2020-07-14T15:00:03 | 2020-07-14T15:00:03 | 99,415,877 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 964 | r | LinesAngles.R | #' Computes the angle that form two lines
#'
#' \code{LinesAngles} computes the angle that form two lines
#' @param Line1 Line object previously created with \code{CreateLinePoints} or \code{CreateLineAngle}
#' @param Line2 Line object previously created with \code{CreateLinePoints} or \code{CreateLineAngle}
#' @... |
cf31ca01831dfc6ee4b4dacbbdd8a5fd48da4c12 | 19ffb430a323bc8a207be7a08e1b716cd215b8fe | /RsNlme/inst/Examples/OneCpt_Seq0Order1stOrderAbsorp_1stOrderElim.R | 6a21ea3459fe94ca2a053e93e8e07a8edd32b1ec | [] | no_license | phxnlmedev/rpackages | 51b9bd9bf955e7da7a3dc4ca6f13b32adfd3f049 | 59dafc62c179d98407c4fbcbb4936786d71ee6a5 | refs/heads/master | 2020-05-07T20:12:28.132137 | 2019-07-23T11:58:39 | 2019-07-23T11:58:39 | 180,429,234 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,635 | r | OneCpt_Seq0Order1stOrderAbsorp_1stOrderElim.R | ##############################################################################################################
## Description
##
## The purpose of this example is to demonstrate how to create a model involving mixed first-order and zero-order
## absorption through RsNlme, and then simulate ... |
644c8e3fc14a6671cc604556346a6b9bd4123840 | d67e790cc65a617c4c58de4c5fec51e43fd85ac4 | /analise/analise.R | d2bc8ce91b48cb0f1940d4d9b440c133d524a78a | [] | no_license | hugogbs/metodologia | 39cd32efafb142f9761ca4a676e54e37c6ca9e1d | 68b8fe3f341ab3e0e6e40031eec4ed0a88b9a49a | refs/heads/master | 2021-01-02T23:03:29.001799 | 2017-08-30T17:05:29 | 2017-08-30T17:05:29 | 99,454,813 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,643 | r | analise.R | library(tidyverse)
heap <- read_csv("dados/output.csv", col_names = FALSE)
insertion <- read_csv("dados/output1.csv", col_names = FALSE)
quick <- read_csv("dados/output2.csv", col_names = FALSE)
quick3 <- read_csv("dados/output3.csv", col_names = FALSE)
dados <- rbind(heap, quick, quick3, insertion) %>%
mutate(algo... |
a6b1a81adb3c83ea2dcc5d8f3ae92b8973a784cd | ff26cd2c4ffd0b6b5b091018905d53e8ed7aedfc | /R/Auxiliares.R | 0d600c0be1e425a9b7ac71287dee34681bca24e5 | [] | no_license | lauzingaretti/LinkHD | 986663e430b9bbb237f6926d6cf0a06364adc9c5 | b451fd947fab979482cab14b7c7d95c2f1cdadee | refs/heads/master | 2023-03-20T08:01:23.423729 | 2023-03-06T18:59:43 | 2023-03-06T18:59:43 | 184,235,740 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,191 | r | Auxiliares.R | # File Created by Laura M. Zingaretti Adapted from previous kimod package function Date April, 24 2019
#' @import stats
# geometric mean
g_mean <- function(Data) {
if (any(na.omit(Data == 0))) {
0
} else {
exp(mean(log(c(Data)[which(is.finite(unlist(Data)) & Data > 0)])))
}
}
# Center_LR ... |
c3552eca90c97ca3c600aaf0cacb7d4ca551e4ca | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/R2ucare/examples/overall_JMV.Rd.R | db474eaa0d0140cb341c2199c82055dbcdb9cedc | [] | 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 | 720 | r | overall_JMV.Rd.R | library(R2ucare)
### Name: overall_JMV
### Title: Overall goodness-of-fit test for the Jolly-Move model
### Aliases: overall_JMV
### Keywords: package
### ** Examples
## Not run:
##D # read in Geese dataset
##D library(RMark)
##D geese = system.file("extdata", "geese.inp", package = "R2ucare")
##D geese = convert.... |
a16c84606eb061291386201922fcdcb93dfc4027 | 0e1d6d0f301463ce7569e077ce0b1918e1cab1fb | /exploratory_data_analysis_project_2_entire_code.R | 229677d2e6035161d18e2f867ce4769a28f97666 | [] | no_license | ilmurjonsdottir/exploratory_data_analysis_project_2 | 1ffbc48d4553523013a4c882c0868cb65762f98e | 19d658d1452f33e71014b0a308938641a91d015e | refs/heads/main | 2023-04-22T20:55:28.187394 | 2021-05-07T12:21:35 | 2021-05-07T12:21:35 | 365,224,094 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,405 | r | exploratory_data_analysis_project_2_entire_code.R | #Load packages
library(dplyr)
library(ggplot2)
library(scales)
library(data.table)
#Setwd
setwd("~/Desktop/R_Programming/Working_Directory/exdata_data_NEI_data")
#Input the data
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
#Exploreing the data
head(NEI)
str(NEI)
head(SCC)
... |
0a2a18a168391758dbcaca1d9524178ec3e055d8 | 2f8a4aee3f8ebd0f216b25caeb29fd3e0b5c299a | /R/day27.R | e72bfecfb6acfaf0b77ce62326fcb47d6b72dcc2 | [] | no_license | PMassicotte/30daymapchallenge | 61063cc094bd0881e43b3e836064e5185f848405 | c6ae65c3baec4804219539133537d08756b0a795 | refs/heads/master | 2022-11-01T04:30:27.813798 | 2022-10-19T18:56:06 | 2022-10-19T18:56:06 | 220,877,067 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,338 | r | day27.R | library(tidyverse)
library(ggpmthemes)
library(sf)
library(ggmap)
library(httr)
library(readxl)
theme_set(theme_light_modified(base_family = "Alatsi"))
GET("https://query.data.world/s/gqkvcrgerj75ptvfsm34eybjqcrd5z", write_disk(tf <- tempfile(fileext = ".xlsx")))
df <- read_excel(tf)
mb <- df %>%
jani... |
fa470a4f9f231960f0414d61dcaca8bf1a2d5e42 | 937c0247bdbd987297a5f90fc0c6defd668dae2c | /man/control.Rd | a1a9f15ca6b3613fa992083ec0fce6f22bd462a7 | [] | no_license | GioBo/TR8 | 40bbea1f87e1f5f40152b5047530c3263c60883b | 10ab03648e726530d9f13c438b23ceda0adf82c4 | refs/heads/master | 2022-06-19T17:55:28.708433 | 2022-06-09T21:37:17 | 2022-06-09T21:37:17 | 24,714,177 | 17 | 8 | null | null | null | null | UTF-8 | R | false | false | 1,168 | rd | control.Rd | \name{control}
\alias{control}
\title{control}
\usage{
control(name_variable, dframe, DB)
}
\arguments{
\item{name_variable}{name of the variable set up by
tr8_config()}
\item{dframe}{a dataframe containing traits definition
(created by the tr8() function).}
\item{DB}{name of the database to be used (eg.
... |
a58b7027d5e18866fbd8ab45098fe82b6c765db2 | c53e367a5a155cfb1ee3a41e8b0351aeaa8d331d | /fBasics/unitTests/runit.colorPalette.R | 844e368cedccff446b59477e26d93229c8d2b8f1 | [
"MIT"
] | permissive | solgenomics/R_libs | bcf34e00bf2edef54894f6295c4f38f1e480b3fc | e8cdf30fd5f32babf39c76a01df5f5544062224e | refs/heads/master | 2023-07-08T10:06:04.304775 | 2022-05-09T15:41:26 | 2022-05-09T15:41:26 | 186,859,606 | 0 | 2 | MIT | 2023-03-07T08:59:16 | 2019-05-15T15:57:13 | C++ | UTF-8 | R | false | false | 2,384 | r | runit.colorPalette.R |
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be use... |
689a332117424812103fa021567f34dded62c73a | a29dba249bbd87c29d731a5b794771fda5cf5117 | /R/interior.r | 28b591ebd7769a5f272cf7e0dcc5f8b02f797f3d | [] | no_license | DaYi-TW/Data-science | 30b4f009c074c7fe9a14e9d963dde37c127802c5 | ce8f5dfcf463a25b5a868fe64014d4311c633a18 | refs/heads/main | 2023-06-29T01:32:59.259537 | 2021-07-21T03:36:34 | 2021-07-21T03:36:34 | 370,018,467 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,124 | r | interior.r | interior=function(t1,test_M_data,criteria){
d=as.data.frame(t1)
Fi=d[ncol(d)]
Fs=d[-ncol(d)]
correlation=0
de1=test_M_data[which(colnames(test_M_data)==colnames(Fi))]
for(i in 1 :ncol(Fs)){
de2=test_M_data[which(colnames(test_M_data)==colnames(Fs[i]))]
correlation=correlation+as.data.frame(criteria(de1,de... |
84b7bb37aa4a337edfd4b4a3b4ee249694f8d63b | 5b82e9e2a0411fe08558ffe5f805f118358034db | /man/ggMA.Rd | 4648269f11236672e2cfe07a8ac39d98a2ad6c30 | [] | no_license | btmonier/ggDESeq | 81f74d40e66622c7a756f68d08c09169781fe090 | d5aa70e33347c2dfe322c26e0665b17de90d9ce1 | refs/heads/master | 2021-01-13T17:02:59.416760 | 2017-02-27T00:08:43 | 2017-02-27T00:08:43 | 76,287,582 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,126 | rd | ggMA.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggMA.R
\name{ggMA}
\alias{ggMA}
\title{MA plot from mean expression and log fold changes}
\usage{
ggMA(data, ylim = NULL, padj = 0.05, lfc = 1)
}
\arguments{
\item{data}{a DESeq object class}
\item{ylim}{optional limits to the y axis}
\item... |
28706a173baeb80b62c74f1804d8ee876fbd678a | 540d6e750d5297f3a5a778e24b12744d2ddbe7e5 | /R/tm.R | 577f972a26d55013c613d19de573df058777b1b9 | [] | no_license | anucc/metatone-analysis | 83d2a862091e9274c21636ff8018bf246edd0ee4 | 208e9eae6c28c689f597981491604db084459bc8 | refs/heads/master | 2020-04-12T03:11:34.572020 | 2019-06-03T03:18:48 | 2019-06-03T03:18:48 | 40,700,065 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,700 | r | tm.R | gestures <- c("N", # 0: Nothing
"FT", # 1: Fast Taps
"ST", # 2: Slow Taps
"FS", # 3: Fast Swipes
"FSA", # 4: Fast Swipes Accelerating
"VSS", # 5: Very Slow Swirl
"BS", # 6: Big Swirl
"SS", # 7: Small Swirl
"C... |
7ed44339062730face9875b6a1c0f1b2fc4ff95b | 28adba2768e03e72e23679190c39bfe3158a83a4 | /P1-final project codes1.R | 194fbd64cf79481434c524f5b9736c1bbd7f5b1a | [] | no_license | danishxr/PROJECTS | 7d52988a6ed7d9cfb4ee6b094bcba7bcbbd03ca5 | 40fa8ddd51cbebc525d7f24939305d7431415321 | refs/heads/master | 2021-01-01T18:10:24.975825 | 2017-10-31T17:47:51 | 2017-10-31T17:47:51 | 98,268,701 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,554 | r | P1-final project codes1.R |
library(RColorBrewer)
require(RColorBrewer)
library(ggplot2)
require(ggplot2)
library(dplyr)
require(dplyr)
library(ggmap)
require(ggmap)
library(XML)
require(XML)
library(tidyr)
require(tidyr)
library(fmsb)
require(fmsb)
train <- read.csv("IndiaAffectedWaterQualityAreas.csv",stringsAsFactors = FALSE)... |
6a18ba2bd6798f6a632e0607dc7d200325ecabbf | 7375604d8538a001987564c7f11f985f94874ddc | /man/invlogit.Rd | 8db448a35a57f08cf875b56072016de8eb160c46 | [] | no_license | crushing05/crushingr | 3b4433c51d90e88c86a5d643566519b15bfc1fcb | 7cc598abb9fafb8b46e40ee15ec5706d65949fde | refs/heads/master | 2021-01-22T03:39:03.055577 | 2017-07-11T02:50:18 | 2017-07-11T02:50:18 | 28,917,439 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 352 | rd | invlogit.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/functions.R
\name{invlogit}
\alias{invlogit}
\title{Inverse logit}
\usage{
invlogit(x)
}
\arguments{
\item{x}{vector of logit transformed numerical values}
}
\description{
Function to compute inverse logit
}
\keyword{logistic}
\keywor... |
b2846752488b5a449875bedb6f22abbff8233e4d | b36bdb960532bb84e9261cef203ae65965d2dbd8 | /ejercicio1_3.R | 85e66682d50308c0359dfd31162c3771e86fdd83 | [] | no_license | lucreciofernandez/R-R.Studio | 4be6fa0e6589fc3535c612a58559815af9be9952 | c6729d522e09b21af46e0823a52bb872484fb540 | refs/heads/master | 2021-01-12T16:53:39.468228 | 2016-12-04T18:09:54 | 2016-12-04T18:09:54 | 71,464,065 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 234 | r | ejercicio1_3.R | # Ejercicio 3: dado
b <- list(a=1:10, b=seq(3), c=rep(2, 5))
# escribe una sentencia que devuelva un vector con la longitud de cada uno de los elementos de lista
v=c(length(unlist(b[1])),length(unlist(b[2])),length(unlist(b[3])))
|
42e706004de3e83bc367e17f32afe0f0e9b2be49 | e045478d3b61cf300cf2f1181287974816724083 | /functions/calcLag.R | d0edeb74ab591edbdf609948f82bb1b3b7b5337f | [] | no_license | TimothyStaples/novel_comm_quaternary | 06bad8614a1a95f9b33b4718b3e07bbbfb5cd5af | a173bfe73d3c110b9d3c0711c0bc512c3a8ba0a4 | refs/heads/master | 2023-04-08T12:47:29.228270 | 2022-04-13T03:15:11 | 2022-04-13T03:15:11 | 481,037,441 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,083 | r | calcLag.R | calcLag <- function(novel.list,
env.data,
env.var,
local.env.data,
local.lag,
global.lag){
# Prepare modelling data ####
print("Prepping data")
# aggregate 50 year temp cha... |
2ae9efb6bd01c69e42105542e4dbc08d82d145a9 | b9225a0f129f5acdd90e356197028471aa36608e | /newsapi_databot/scripts/collect_news.R | 6d72d21d2a88079724ccafcb95028747e0168e92 | [] | no_license | rmnppt/newsfuzz | 54f4f42891d1ab6e6e89c1737d6faed28ed6c9f0 | e7ccb9b299cd91eceac414eea87de1bcbd10b7b3 | refs/heads/master | 2021-01-21T18:21:32.272926 | 2017-07-20T23:12:32 | 2017-07-20T23:12:32 | 92,036,134 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,562 | r | collect_news.R | date()
### install / load packages
library(tidyverse)
library(RMySQL)
library(tidytext)
library(qdapDictionaries)
# devtools::install_github("rmnppt/newsfuzz/newsR")
library(newsR)
###
### collect source and article information from api
sources <- newsapiSources("en", "gb")
saveRDS(sources, "data/sources.rds")
artic... |
8d64aadbb6845c7ebb5eca21e7cb0fb13c75b920 | 4d9a255f944c116d701e31cb79b28edd192a6b8a | /functions/getSummoner.R | 7123e2fb8152b1dc7981ce80a6a55697fe595437 | [] | no_license | Gwangil/C.I.GG | f2d063945e396473060129061723072b34afc91c | 35baf538bab5dba22b6128c9f47fd3ac741b4e49 | refs/heads/master | 2022-05-18T04:32:50.634432 | 2022-05-03T09:11:28 | 2022-05-03T09:11:28 | 172,874,253 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 495 | r | getSummoner.R | # Ref.) https://developer.riotgames.com/api-methods/#summoner-v4/GET_getBySummonerName
# Get represents a summoner
# @param summonerName
# Return type : tibble, data.frame
getSummoner <- function(summonerName) {
GET(url = URLencode(iconv(paste0("https://kr.api.riotgames.com/lol/summoner/v4/summoners/by-name/",... |
54086af6634cac4ca1ee004e7968dadb441f9a9b | c79fa021f5bb195a4abfcf81d88a49b5ae86ce73 | /R/tong-shrinkage.r | 3ed1be950c8d4a5f9b029d007f10d1a9bf726397 | [
"MIT"
] | permissive | topepo/sparsediscrim | 7c99e48f9552455c494e6a04ab2baabd4044a813 | 60198a54e0ced0afa3909121eea55321dd04c56f | refs/heads/main | 2021-08-08T17:04:45.633377 | 2021-06-28T00:27:34 | 2021-06-28T00:27:34 | 313,120,774 | 4 | 0 | NOASSERTION | 2021-06-28T00:27:34 | 2020-11-15T20:51:32 | R | UTF-8 | R | false | false | 2,078 | r | tong-shrinkage.r | #' Tong et al. (2012)'s Lindley-type Shrunken Mean Estimator
#'
#' An implementation of the Lindley-type shrunken mean estimator utilized in
#' shrinkage-mean-based diagonal linear discriminant analysis (SmDLDA).
#'
#' @export
#' @importFrom stats var
#' @references Tong, T., Chen, L., and Zhao, H. (2012), "Improved Me... |
27531947897cb1e3a6db2bd548c7e241a9824f78 | 5a4f0cb1aeb4a0488b365eedc49c96459ded7c7a | /tests/testthat/test-run-simple.R | a151fce684f959060d892ad97ee1b6a028bb72b6 | [] | no_license | beerda/rmake | 8fb80f535d81fc4944e5f7a8fa7afd25a8cc60ad | 61b615a9dd993501cb54a0f39f4bcaf598b14ff1 | refs/heads/master | 2022-07-09T13:14:15.041544 | 2022-06-30T09:06:27 | 2022-06-30T09:06:27 | 118,428,899 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,114 | r | test-run-simple.R | source('realRunTools.R')
test_that('simple R script', {
initTesting('simple')
dep1 <- 'dep1.in'
dep2 <- 'dep2.in'
out <- 'result.out'
r <- 'script.R'
writeToDepFile(dep1)
writeToDepFile(dep2)
createScriptFile(r, out)
createMakefile('library(rmake)',
paste0('job <- list(rRule("', out,... |
e21c271a12884bcecebebdc28d091a2bf6adf8a8 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/paleotree/examples/multiDiv.Rd.R | 45b494de9b5d4489d70fde25e78e1d289cdfa866 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,909 | r | multiDiv.Rd.R | library(paleotree)
### Name: multiDiv
### Title: Calculating Diversity Curves Across Multiple Datasets
### Aliases: multiDiv plotMultiDiv plotMultiDiv
### ** Examples
set.seed(444)
record <- simFossilRecord(p = 0.1, q = 0.1, nruns = 1,
nTotalTaxa = c(30,40), nExtant = 0)
taxa <- fossilRecord2fossilTaxa(record)
ra... |
5b33cf6bd0d702a7a0f7168ea16370a7cd7e017c | 7f6ba6b64f6393773aedc74e1998a86c4afc3b48 | /R/utility_plot_landscape.R | 5e29a1d5a372b01f075f0c0538e877447f585abe | [
"MIT"
] | permissive | kisungyou/TDAkit | e71c8dac42429f5681ea3c16a214cf0d3c80f666 | f7a6a9c4c0bdc92e6d138906e448e8b217627609 | refs/heads/master | 2023-07-12T20:29:19.094110 | 2021-08-22T19:06:52 | 2021-08-22T19:06:52 | 213,769,060 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,645 | r | utility_plot_landscape.R | #' Plot Persistence Landscape
#'
#' Given a persistence landscape object in S3 class \code{landscape}, visualize the
#' landscapes using \pkg{ggplot2}.
#'
#' @param x a \code{landscape} object.
#' @param ... extra parameters including \describe{
#' \item{top.k}{the number of landscapes to be plotted (default: 5).}
... |
1568fd1e0d573c7b0571f845c0e58f9632e2a7ce | c3e542e5b10011f2f209779def58a2a2df393335 | /R/subsetSubjestsDS.R | da8b3bf243430e8902944610879e33d6828a2d20 | [] | no_license | YouchengZHANG/dsMTLBase | 2d7b738b44e6cb54b9477ba416fbb1839672436b | 791ac77ff8146af611e53691e646c9056ba5eb7a | refs/heads/main | 2023-07-12T19:21:50.208248 | 2021-08-07T16:10:19 | 2021-08-07T16:10:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,932 | r | subsetSubjestsDS.R | ################################################################################
#
# Package Name: dsMTLBase
# Description: The server-side functions of dsMTL
#
# dsMTL - a computational framework for privacy-preserving, distributed
# multi-task machine learning
# Copyright (C) 2021 Han Cao (han.cao@zi-mannheim.de)... |
f8691aa845d0f8b4ba31e06db404d9b5576ef985 | d48a6be6d855db72443aa767d680e13596e2a180 | /RMark/R/make.design.data.R | 75592f56c491d7fd20985bff45e65c21efc6a9e1 | [] | no_license | jlaake/RMark | f77e79d6051f1abfd57832fd60f7b63540a42ab9 | 7505aefe594a24e8c5f2a9b0b8ac11ffbdb8a62d | refs/heads/master | 2023-06-26T21:29:27.942346 | 2023-06-25T16:35:43 | 2023-06-25T16:35:43 | 2,009,580 | 17 | 15 | null | 2019-01-10T17:17:11 | 2011-07-06T23:44:02 | R | UTF-8 | R | false | false | 40,631 | r | make.design.data.R | #' Create design dataframes for MARK model specification
#'
#' For each type of parameter in the analysis model (e.g, p, Phi, r), this
#' function creates design data based on the parameter index matrix (PIM) in
#' MARK terminology. Design data relate parameters to the sampling and data
#' structures; whereas \co... |
58ec200d22a5c9201b05db78626eb177c869f47a | 5c852d2a4f164ba82ac165288f448b2401949b7a | /server.R | c221518aa7a9f79054911d2b4d276a5a526e82cf | [] | no_license | cocassel/user-activity-dashboard | 9c26799bf45736e1ec5f14debae2e79e1b473bb4 | 7846208d63a63ebb900612a0ee1411abfc9d6c0a | refs/heads/master | 2020-04-21T20:30:49.979657 | 2019-02-11T05:18:43 | 2019-02-11T05:18:43 | 169,847,273 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 41,907 | r | server.R | #
# This is the server logic of a Shiny web application.
#
# You can run the application by clicking 'Run App' above.
#
#to install a package, follow the following format:
#install.packages('plyr')
#or open the packages.R file
library(shiny)
library(plyr)
library(anytime)
library(ggplot2)
library(scales)
library(data... |
7dd1df7d35d0a8a44e86b5d7a196817ee1489949 | 7f72ac13d08fa64bfd8ac00f44784fef6060fec3 | /books/rgui/ch-WebGUIs/tmp/simpleapp3/app.R | 8dea885103126b8fa48b2a1c2eed4a644c029468 | [] | no_license | lawremi/RGtk2 | d2412ccedf2d2bc12888618b42486f7e9cceee43 | eb315232f75c3bed73bae9584510018293ba6b83 | refs/heads/master | 2023-03-05T01:13:14.484107 | 2023-02-25T15:19:06 | 2023-02-25T15:20:41 | 2,554,865 | 14 | 9 | null | 2023-02-06T21:28:56 | 2011-10-11T11:50:22 | R | UTF-8 | R | false | false | 2,081 | r | app.R | ## for older versions of R
if(!exists("grepl"))
grepl <- function(pattern, x,...) length(grep(pattern, x)) > 0
#' similar to URLencode, but encodes <, >, &, " as entities
HTMLencode <- function(str) {
str <- as.character(str)
vals <- list(c('&','&'),
c('"','"'),
c('<','<... |
a82e412c0cda9a55ba05fd1118e65897f38406cc | 4b80c97c193bec524a24c1df7aba3af037660db8 | /tests/testthat/test-clean_observations.R | ec69bc713297745a73727db38883b194bcf7f8da | [] | no_license | cran/lvmisc | 39ce176be2c08be16b5d09cbf8feba08c5a6747a | 738fa1a1f295a508764102c7bdda46c9945b2a92 | refs/heads/master | 2023-04-01T01:52:11.303753 | 2021-04-05T14:20:02 | 2021-04-05T14:20:02 | 341,248,797 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 913 | r | test-clean_observations.R | test_that("error handling works", {
data <- data.frame(x = 1:10, y = 1:10)
expect_error(
clean_observations("data", x, y, 1)
)
expect_error(
clean_observations(data, id, x, 1),
"Column `id` not found in `data`.",
class = "error_column_not_found"
)
expect_error(
clean_observations(data, ... |
b4a42ac8b9b1b8f9b1dadf5e693e21bdc28dde8f | 99f350773f2db550c3547b9e73424c2511cf654d | /scripts R/process imj.R | 89b0d581ec075009b5cc9a8bbb368cc16da926ca | [] | no_license | Clara-Reichert/R4meropy | e42f60cb596d3e9bebea746a24d44a114f71387d | c6cbe551a52a3d1c236a921ba49b78c70dd655c5 | refs/heads/master | 2022-11-24T02:31:35.393708 | 2020-08-04T13:05:44 | 2020-08-04T13:05:44 | 273,433,253 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 291 | r | process imj.R | IMJ<- read.csv("C:/Users/clare/Desktop/IMJ/SummaryV46.csv")
C<- read.csv("C:/Users/clare/Desktop/mais/mais_csv/mais_train_counted2.csv", sep=";")
C=C[-23,]
M=match(C$name, IMJ$Slice)
C$imagej=IMJ$Count
C$diff=C$tag-C$imagej
moyabs=mean(abs(C$diff))
moy=mean(C$diff)
X=subset(C, diff==0)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.