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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
914d15bcc73e0f6229b0b2554af77d5a3f8c93ba | f8cd722f40a9f5c1b08809765bd785928cd60c6f | /man/adaptiveLassoEst.Rd | c35fcd683173b5cf12d78625067ea7726c90d348 | [
"MIT"
] | permissive | PhilBoileau/cvCovEst | bd62df4c7811995e756701091f3a5d4d4ef5f1d2 | 89d57c6326f3723dca9e8e878f1d09c18b85cb51 | refs/heads/master | 2023-06-25T03:40:50.232754 | 2023-06-22T23:44:31 | 2023-06-22T23:44:31 | 256,326,827 | 12 | 8 | NOASSERTION | 2023-01-12T20:40:06 | 2020-04-16T20:50:11 | R | UTF-8 | R | false | true | 1,304 | rd | adaptiveLassoEst.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estimators.R
\name{adaptiveLassoEst}
\alias{adaptiveLassoEst}
\title{Adaptive LASSO Estimator}
\usage{
adaptiveLassoEst(dat, lambda, n)
}
\arguments{
\item{dat}{A numeric \code{data.frame}, \code{matrix}, or similar object.}
\item{lambda}{A ... |
b431969ab049d5a9a6023b3c82f2c6892be22eb4 | 62d4a5ee6f68119bcd54fbf3799254acbb22beb9 | /Test1.R | 6c30bf4c54689cd9eb048d7ed851fbc0cf7bffda | [] | no_license | mssavoca/NewMacTest | 910e61ee58127e8ce50d38c214c6b8d9b88aa5b3 | 9ef5bad09929f672aa4c81866e3174307c4721d4 | refs/heads/master | 2020-04-01T12:10:40.985072 | 2018-10-15T23:48:28 | 2018-10-15T23:48:28 | 153,194,896 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 27 | r | Test1.R | # Connecting get to RStudio |
87517647382186d44f6d5c348745e231a623f708 | 94aed35f1f7cca636419b88a53799f34e5c5dfee | /tests/testthat/test-makeGene2Symbol.R | fb56163da4d63fc1dafb290311337ab4c562f26c | [
"MIT"
] | permissive | trichelab/basejump | a4a3b9e58016449faeb9b3d77cf1c09d4eafe4c7 | 6724b10dbf42dd075c7db5854a13d9509fe9fb72 | refs/heads/master | 2020-12-12T11:54:17.660956 | 2020-01-08T13:24:07 | 2020-01-08T13:24:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 335 | r | test-makeGene2Symbol.R | context("makeGene2Symbol")
with_parameters_test_that(
"makeGene2SymbolFromEnsDb", {
object <- makeGene2SymbolFromEnsDb(
object = "EnsDb.Hsapiens.v75",
format = format
)
expect_s4_class(object, "Gene2Symbol")
},
format = eval(formals(makeGene2SymbolFromEnsDb)[... |
c3ab8ac5345ff6f4a6117aa495ee784c2149a191 | 2099a2b0f63f250e09f7cd7350ca45d212e2d364 | /DUC-Dataset/Summary_p100_R/D109.FBIS4-26769.html.R | 58cc7ad66353470e8fe9e1b291c6140706ca1960 | [] | no_license | Angela7126/SLNSumEval | 3548301645264f9656b67dc807aec93b636778ef | b9e7157a735555861d2baf6c182e807e732a9dd6 | refs/heads/master | 2023-04-20T06:41:01.728968 | 2021-05-12T03:40:11 | 2021-05-12T03:40:11 | 366,429,744 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 849 | r | D109.FBIS4-26769.html.R | <html>
<head>
<meta name="TextLength" content="SENT_NUM:5, WORD_NUM:101">
</head>
<body bgcolor="white">
<a href="#0" id="0">Meanwhile, 740 million yuan in loans and another 50 million yuan in donations have also been sent to flooded areas in Guangdong Province.</a>
<a href="#1" id="1">As one of China's major bread bas... |
bd39273d66138a2ebde9814c0db5d8952a8f2786 | 92626a21f23ab35e82cb439255e10cde2a7047c1 | /man/heat_transfer_coefficient_approximation.Rd | bf635cef601cde8ca0b46578483fc50774d19c4b | [
"MIT"
] | permissive | ArchiYujie/TrenchR | 04630ddd078eca187a517c0c98e59065b3054a74 | f45c2f0b54eab4ce578c0b3b631f9d93058ba731 | refs/heads/master | 2023-07-16T22:25:21.419072 | 2021-08-26T21:30:12 | 2021-08-26T21:30:12 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,980 | rd | heat_transfer_coefficient_approximation.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/energybalance_functions.R
\name{heat_transfer_coefficient_approximation}
\alias{heat_transfer_coefficient_approximation}
\title{Calculate heat transfer coefficient using a sphereical approximation (based on Mitchell 1976)}
\usage{
heat_transf... |
5fc719be1616b281f82ae54eb4f3406efb82d59e | c51ca43d4e5be4cce45281acd89f2bb3c0294ea2 | /regression-Dalgaard.R | 4d22e6f851b15544e4108ea1b039c342f1bb751f | [] | no_license | professorbeautiful/bioinf2118 | e9d6adf2c8b596a1fab239301e511999e0d9f401 | aa70f61333119372680fb66d34be350aa9947c39 | refs/heads/master | 2022-07-19T02:22:20.667851 | 2022-06-27T20:35:11 | 2022-06-27T20:35:11 | 116,890,225 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 556 | r | regression-Dalgaard.R | # regression-Dalgaard
while( ! require(ISwR) )
install.packages("ISwR")
data("thuesen")
help("thuesen")
dim(thuesen)
thuesen
##Notice one missing value.
attach(thuesen)
search()
ls(pos=2)
plot(short.velocity, blood.glucose)
summary(lm(blood.glucose ~ short.velocity, 1))
abline(lm(blood.glucose ~ short.velocity)... |
005822a54822a992edf445ee953fde59f072f93a | ceb9d8ee5c3cb352693d119d04c81fb1ee46426f | /data/processData.R | 1ba4897c24b91f37f37bbf181c7caf1575fc2abc | [] | no_license | jtipton25/mysis | 662495376f67a87422ad0f72120ddb3c9bc2fa4e | 464063b67cd27f4abef2991a2ccf1ea56de1a335 | refs/heads/master | 2023-05-01T00:27:35.645837 | 2023-04-21T16:40:32 | 2023-04-21T16:40:32 | 40,909,801 | 0 | 0 | null | 2016-01-12T21:36:31 | 2015-08-17T16:21:29 | HTML | UTF-8 | R | false | false | 6,908 | r | processData.R | ## File to process the CSV files to RData files
##
## Created 12_15_2015
## Edited 12_15_2015
##
##
## Count Data
##
data_one_way <- read.csv("~/mysis/data/ttestData.csv", skip = 3, nrows = 40, header = TRUE)
# data_one_way$full ## count per m^2 for full net
# data_one_way$half ## count per m^2 for half net
count <-... |
222ea9d2021d4aa6a525bfa650d1ffa43b55673b | ce0a89ee1244e995c160d3202ebedb3ff860c3f3 | /Archive/test_Records.R | 867870ddec783c830c3c5d1e62df9a167f2b4403 | [] | no_license | Iceylee/NGS-Pacbio | 1dc8d9f7e6327414dffe8500921fa2cf1e56fe72 | 4d4f6052eff9ae13b170e8f8431e79ed5b39d6ca | refs/heads/master | 2020-04-05T06:32:17.031168 | 2019-09-04T03:34:24 | 2019-09-04T03:34:24 | 156,641,487 | 9 | 5 | null | null | null | null | UTF-8 | R | false | false | 3,112 | r | test_Records.R | Rscript /data1/script/deseq2+GO+KEGG/Rpipe/3GO-KEGG.R AH57973 hsa SYMBOL ENTREZID /data2/ClientData/2018_08/Lishuang/
##1 2.1
setwd("/Users/Icey/work/2018/plot/0823热图-谢华平/")
coldata_file="colData.csv"
count_table="CountMatrix4DESeq.csv"
path1="./"
path3="./"
path2="./"
Rscript /data1/script/deseq2+GO+KEGG/Rpipe/run... |
f2fb148979eb267a9c6f20873cdea0d80a5bf63f | 2d1f4a315a1b6fda16341144a95e62da2898c9d9 | /workflow/dashboards/rivm-date-corrections.R | 68abc34f45c61c71ec9a7688dd549d5466d5be13 | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | sonar98/covid-19 | 913893c15a5ff1f765b7c55bcd16b9ce185849a3 | cd56342803266f83850be4170d54ad520f0966bf | refs/heads/master | 2023-01-10T00:10:00.817896 | 2020-11-02T13:59:58 | 2020-11-02T13:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,589 | r | rivm-date-corrections.R | require(tidyverse)
require(data.table)
rm(list=ls())
#### Corrections scripts
temp = tail(list.files(path = "data-rivm/casus-datasets/",pattern="*.csv", full.names = T),2)
myfiles = lapply(temp, read.csv)
df <- map_dfr(myfiles, ~{
.x
})
df$date <- as.Date(df$Date_file)
df.cases <- as.data.frame(table(df$Date_stati... |
268e6d6f3a10f6744f880624fd7f05094a5e75df | 5a767b9bde2c4099cd4796e541ac92b31d7e5350 | /Aansluitingen_analyse_obv_CAR.R | a8dc1bafd7160a5ecb03dc5f96f87456873df2bc | [] | no_license | jaccoheres/VnDigitaalNetbeheer | 5cf4485f47f4fff85cc4e41f2541c33b48d98604 | 924bf7809f316995f24d45bf43b9a01c8924876b | refs/heads/master | 2020-06-04T05:31:07.690552 | 2015-01-16T16:16:31 | 2015-01-16T16:16:31 | 25,514,417 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,136 | r | Aansluitingen_analyse_obv_CAR.R | setwd("N:/Bottum Up Analyse/2. Data/3. Nettopologie")
library(data.table)
library(plyr)
# Hoe goed is elke aansluitcategorie in beeld? ---------------------------------------------------------
CAR <- fread("CAR_E.csv",colClass="character") #inlezen alle EAN's
PC4s <- read.csv("N:/Bottum U... |
6135816c508bfb9c53934d1ddda6ab48a94bc06d | 7917fc0a7108a994bf39359385fb5728d189c182 | /cran/paws.security.identity/man/macie_list_s3_resources.Rd | 02b298b91e521e2f4fd0c30f5dbb37665db61627 | [
"Apache-2.0"
] | permissive | TWarczak/paws | b59300a5c41e374542a80aba223f84e1e2538bec | e70532e3e245286452e97e3286b5decce5c4eb90 | refs/heads/main | 2023-07-06T21:51:31.572720 | 2021-08-06T02:08:53 | 2021-08-06T02:08:53 | 396,131,582 | 1 | 0 | NOASSERTION | 2021-08-14T21:11:04 | 2021-08-14T21:11:04 | null | UTF-8 | R | false | true | 1,657 | rd | macie_list_s3_resources.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/macie_operations.R
\name{macie_list_s3_resources}
\alias{macie_list_s3_resources}
\title{Lists all the S3 resources associated with Amazon Macie Classic}
\usage{
macie_list_s3_resources(memberAccountId, nextToken, maxResults)
}
\arguments{
\i... |
dffdfd1ea58478911e4381716bb1f035f7b5d61f | 8dd9aac2ca7b762fd56fdba4394b3171e68b1ce2 | /code/R/functions.R | d92f49a97b79c852eb5248bf6b2e56280ad601de | [] | no_license | zach-nelson/veg-water-requirement | e4a93078273f5c91501807cbf6103d72628b3205 | 4937d406adf63a60f5106cf4711e4a267f17a37d | refs/heads/master | 2023-06-15T21:43:53.998005 | 2021-07-08T21:00:02 | 2021-07-08T21:00:02 | 382,192,973 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,591 | r | functions.R |
#' Title
#'
#' @param vwr
#'
#' @return
#' @export
#'
#' @examples
weighted_avg <- function(vwr){
vwr %>% filter(species != 'OTHER') %>% filter(all.hits >0) %>%
group_by(site,period) %>%
summarise(w_avg_vwr_per_lai = sum(vwr)/sum(lai)) %>%
mutate(species = 'OTHER')
}
#' Title
#'
#' @param vwr
#' @param ... |
988b7d05bf9f88b12b879781e51d5d126b029e9c | 66416793e3f2a8371cdb815906b6f60b9bddb83f | /R_Programming/week2/lecture.R | a7b4059bd962dce569b4ac162236ec1dff5d02c0 | [] | no_license | abysmalocean/Data_Online | 7fff3310af5b50a3326a904bb39365ee85e8d5db | 1e674b1f6d267af27b528eb23e1b5b7a47bd5120 | refs/heads/master | 2021-01-10T18:35:27.518244 | 2015-01-20T05:04:33 | 2015-01-20T05:04:33 | 29,333,053 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 452 | r | lecture.R |
add2 <- function(x,y){
x+y
}
above <- function(x,n = 10){
use <- x>n
x[use]
}
colum <- function(y){
nc <- ncol(y)
means <- numeric(nc)
for(i in 1:nc){
means[i] <- mean(y[,i],na.rm = )
}
means
}
x <- matrix(1:6,2,3)
for (i in seq_len(nrow(x))){
for(j in seq_len(ncol(x))){
print(x[i,j])
}
... |
3fcaadeff5474ebd8d7310ab22bd58f6763fdb31 | aa0e6b5c88fb5351d207aebf04dc96d6870f73d4 | /functions/func_compute_avalanche_static_grids.R | a084461e917e3628ac360004a992b027f01375fc | [] | no_license | pohleric/mass_balance_model | 119d96164389002a8689fb4feef3bedc1b791d1d | de1e641bb7639542d36f0a8d262b4833ae24507d | refs/heads/main | 2023-08-05T05:56:30.270151 | 2021-09-22T13:44:06 | 2021-09-22T13:44:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,062 | r | func_compute_avalanche_static_grids.R | ###################################################################################################
# Author: Enrico Mattea (@unifr.ch) #
# Description: this program models the distributed mass balance of a glacier at daily #
# re... |
3298564796a21e0325f3c724af9f06373a6615a2 | 6e1127ae119393660d3e527944dbf84b0b808bc1 | /Machine Learning with R/Chapter3/knneighbor.R | 8e8caa216ad4a7bdadac87bf38b4c3736cd55eac | [] | no_license | dheis1337/MachineLearning | 48cb55cadecefb1ef8653056249ba206d2a7ecf5 | cad92f7972bb611e3de104a703a7debe88b8fc05 | refs/heads/master | 2021-01-11T23:27:24.061971 | 2018-05-03T04:50:26 | 2018-05-03T04:50:26 | 77,752,090 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,206 | r | knneighbor.R | library(class)
library(gmodels)
setwd("c:/mystuff/datascience/projects/machinelearning/Machine Learning with R/chapter3")
dat <- read.csv("data.csv", stringsAsFactors = FALSE) # load data
# Let's do some exploring
head(dat)
summary(dat)
# Our data is comprised mostly of numeric data, that represent different measu... |
e0949c407e9a1bf17a99071e3becde399643166e | d631485475ccb99744272b6749e519944c1f98d2 | /3-GeographicInformation.R | 0b06d2df712d4ec2d284d4911f10a40a93ec9a37 | [] | no_license | garonen/2019_Acropora | e052c67799ff768c2d3bce9e360f4bead315c052 | d1b342d0bc7f310dea4137a6fdc69c448158dba1 | refs/heads/master | 2021-10-27T19:03:50.474130 | 2019-04-19T01:42:12 | 2019-04-19T01:42:12 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,043 | r | 3-GeographicInformation.R | # Characterising geographic data and save to locations.Rdata for future use
# Makes a dataframe that includes site specific colors and additional set of geographic variables are
# created with an axis that captures distance to shoreline and an orthogonal eigenvector (parallel to shore line, roughly)
# Written by Cynth... |
a0e3c4a8f67c691dd590c6fde4e300a303407c7b | 3b7ef709ee9adadf13d71087e817647565ad1bb7 | /plot4.R | b796585335bdc04b8178f6cd9099931f40828790 | [] | no_license | nclsbarreto/ExData_Plotting1 | a1538e89ad7bd5b50fff1d622e480f9a136c4bef | 790419c45e72b4ffcc83e8a57bdd61650d4c05dc | refs/heads/master | 2020-05-22T11:20:00.493110 | 2019-05-13T01:02:27 | 2019-05-13T01:02:27 | 186,321,602 | 0 | 0 | null | 2019-05-13T00:52:51 | 2019-05-13T00:52:51 | null | UTF-8 | R | false | false | 1,525 | r | plot4.R | library(tidyverse)
getwd()
list.files()
# read in file
df <- read.table(file = "./household_power_consumption.txt", header = TRUE, sep = ";",
na.strings = "?")
# look at data
head(df)
names(df)
str(df)
head(df[c(1,10)], 30)
# convert date to date format
df$Date.2 <- as.Date(df$Date, "%d/%m/%Y")
s... |
cceb51d476ec735874920f66586c78c551b876c0 | 1446f8659af6b8c82f46b511cfd7d18d75975017 | /R/moreno.R | 0b4d74155bec10dc01203efba13b5c734bce7d93 | [] | no_license | aL3xa/moReno | beaa957ba514a85b8c15877b1ab91d3408cbd401 | b50751ed27cf09601e7781757ae4e73ac7a2f097 | refs/heads/master | 2020-05-17T22:34:55.417163 | 2014-01-20T19:54:29 | 2014-01-20T19:54:29 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 250 | r | moreno.R | #' moReno - an R package for Jacob Moreno's sociometry technique
#'
#' Provides helpers for calculating sociometric indexes (both group and individual) and sociogram plot. Allows data import from CSV.
#' @docType package
#' @name moreno-package
NULL
|
d6b3ced09962e280c0ec57f88c4f4065eda1df14 | 5cdc28ca46d98557a4199a4664308454c860751d | /R/master_field_stat_mle.R | 41305ce1e79648e04d00703d370e4e1d9d719439 | [] | no_license | AndyTan524/baseball_backend | e96902192981b3528d111c5aafcf06a7f24b0059 | f8de8733e83a1306e75c9d42b18b34ad1dfcdf55 | refs/heads/master | 2020-05-16T18:51:18.653678 | 2019-04-24T14:15:22 | 2019-04-24T14:15:22 | 183,242,198 | 0 | 1 | null | 2019-05-10T09:34:15 | 2019-04-24T14:08:25 | R | UTF-8 | R | false | false | 3,306 | r | master_field_stat_mle.R | library(XML)
library(tidyr)
library(plyr)
master_field <- read.csv("master_field_stat_mle.csv")
aaa <- read.csv("2016_aaa.csv")
aaa$date <- substr(aaa$game,5,14)
aaa$date <- as.Date(aaa$date,"%Y_%m_%d")
aaa <- aaa[aaa$date == as.Date("2016-07-10"),]
master1 <- data.frame(matrix(NA,nrow=1,ncol=9))
colnames(master... |
2469bde307c43623e2ebccf32187e0a3986fa2fa | 4e184c3d5fb98b6b0d860970755f31beb737a453 | /Exploratory Data Analysis/Project Assignment 2/Plot2.R | 3c248e92b1dc6bb6e8522637e66072796746b604 | [] | no_license | Teolone88/datasciencecoursera | 97cece01aacd982ebed2346580b37b230ddef53b | 521109847ca7807e427be8dc6f523ae5c233d6ef | refs/heads/master | 2023-03-01T04:49:16.082810 | 2021-02-08T13:31:07 | 2021-02-08T13:31:07 | 292,025,815 | 0 | 1 | null | 2020-10-15T01:54:34 | 2020-09-01T14:49:18 | HTML | UTF-8 | R | false | false | 1,370 | r | Plot2.R | Sys.setlocale("LC_ALL", "English")
## Download file best practice
##if (!file.exists("./downloaded_files")) {
## dir.create("./dowloaded_files")
##}
## Download zip file
fileUrl <-
"https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
download.file(fileUrl, destfile = "./exdata%2Fdata%2FNEI_data.z... |
88d3d090c465faaaf826e0352d91235ada6243b4 | b9121d329483b371fcd048e036661cfa288bfe08 | /lectures/R/07-data-vis2.R | f6bc3c82890bc9b993162b9b1e0489b68ff27a3e | [] | no_license | earowang/stats220 | 3ca02f5113294a40b3101edfe78e0edcda4c6ca2 | 183c260d3ac3036f4e842829f8f6501c1da3c33e | refs/heads/master | 2023-08-26T02:48:58.138357 | 2021-06-07T22:55:18 | 2021-06-07T22:55:18 | 242,031,925 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,990 | r | 07-data-vis2.R | ## ---- t-shape
library(tidyverse)
set.seed(220)
n <- 30
tbl_pre <- tibble(
x = runif(n), y = runif(n),
type = sample(c(TRUE, FALSE), replace = TRUE, size = n, prob = c(0.1, 0.9)))
ggplot(tbl_pre, aes(x, y)) +
geom_text(aes(angle = ifelse(type, 0, 90), label = "T"),
size = 3, fontface = "bold") +
labs(x... |
eedc40e123744fbeeb420e844d7c7fcd1efb4f2c | b43aecbaa84a8219521430e8f2832e4311828901 | /Coursera/R/Loop - tapply.R | ddb00e6a5383beab60a460b4a0686118e9f8cfeb | [] | no_license | cpm205/Machine-Learning | f36f0920847d9789954b793b33848e5f099e48d7 | df2a540005301822a746b78e3a48d0578975890e | refs/heads/master | 2022-12-24T05:37:46.428660 | 2020-01-19T09:53:18 | 2020-01-19T09:53:18 | 100,146,868 | 1 | 0 | null | 2022-12-08T02:48:55 | 2017-08-13T01:35:37 | Jupyter Notebook | UTF-8 | R | false | false | 117 | r | Loop - tapply.R | x <- c(rnorm(10),runif(10),rnorm(10,1))
f <- gl(3,10)
## above operation can be replaced by tapply
tapply(x, f, mean) |
18b3fa292da0438cc5f9ebd4f51b8b16f4c409ba | 5ac16c68d5b9445a5e76c724b63ea8694e36bedb | /R/mpestrf.R | 7c7275691531cae4030536a2910b9c22cb68dbeb | [] | no_license | lmw40/mpMap | 47542430e0cd02783e6d2de80442fa420122ad10 | af113ccc97fa3ebd1d71b4588218e949e20a3fbb | refs/heads/master | 2021-01-15T10:26:14.922590 | 2015-03-26T02:59:16 | 2015-03-26T02:59:16 | 33,126,984 | 1 | 0 | null | 2015-03-30T14:11:33 | 2015-03-30T14:11:32 | R | UTF-8 | R | false | false | 16,921 | r | mpestrf.R | #' Estimate pairwise recombination fractions between markers
#'
#' Estimates pairwise recombination fractions by maximizing the likelihood for a multi-parent cross over a grid of possible values. Theta values and corresponding LOD scores are returned for each pair of markers in the object.
#' @export
#' @useDynLib ... |
9d250a7b54d2cdf9558b824e1833be76ada8d438 | d0c72def22b832453eda4ecaf2d3ef350dc5fab0 | /se.R | 15f0ed050e2a6f8ebea68e7c6fbf6d2c8922a636 | [] | no_license | diazrenata/ldats2020 | 9e12ac91ba4e4a172a3515880281a6632e63f7cb | 10dfafb89443a90a9c430328f52ef32058dcf443 | refs/heads/master | 2023-07-06T07:57:13.605804 | 2021-05-20T19:07:22 | 2021-05-20T19:07:22 | 294,782,847 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,144 | r | se.R | library(ggplot2)
library(readr)
library(dplyr)
all_evals_bbs_rtrg_102_18_cv <- read_csv("all_evals_bbs_rtrg_102_18_cv.csv")
#View(all_evals_bbs_rtrg_102_18_cv)
#library(ggplot2)
ae <- all_evals_bbs_rtrg_102_18_cv %>% group_by(k, seed, cpts, nit, nfolds) %>% summarize(mean_ll = mean(sum_loglik), se_ll = sd(sum_loglik) /... |
20ef54f3cb6a0c5c78612ad5a33463e0e47b328a | 9022bd8259d28cb22fc6c99212a240bf21296e04 | /R/methods-inferMagicFounder.R | db84f1286b9d4c0741892038cc819a6893a87eb9 | [] | no_license | tavareshugo/MagicHelpR | e82fe83169bf2c2f657994e46f8d630b10c2b8a0 | 0077f511dab084f2ec0c9a2c7a5fb950549d7106 | refs/heads/master | 2021-01-20T15:41:39.531644 | 2020-05-01T07:19:40 | 2020-05-01T07:19:40 | 63,859,789 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,828 | r | methods-inferMagicFounder.R | #' Infer most likely founder for a given SNP
#'
#' @param x an object of class MagicData.
#' @param marker name of SNP marker to infer founder.
#' @param prob_thr probability threshold for attributing a genotype to a founder.
#'
#' @export
#' @rdname inferMagicFounder
setGeneric("inferMagicFounder",
function... |
0777663c8a6ae486cfd3e956a108ff8b616b616b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/jsonlite/examples/serializeJSON.Rd.R | 9e25c0739a5a1cdeb15a12754403624c750687b6 | [] | 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 | 729 | r | serializeJSON.Rd.R | library(jsonlite)
### Name: serializeJSON
### Title: serialize R objects to JSON
### Aliases: serializeJSON unserializeJSON
### ** Examples
jsoncars <- serializeJSON(mtcars)
mtcars2 <- unserializeJSON(jsoncars)
identical(mtcars, mtcars2)
set.seed('123')
myobject <- list(
mynull = NULL,
mycomplex = lapply(eigen... |
64c40d881edcf44042177babd38cef259aad9450 | 10475485cd2efa1a57e6a2043ad03f29faf5c963 | /man/create_statement_cran_versions.Rd | 5152986b40e00a83009db9f23f14e226c7b20a6f | [] | no_license | cran/dockr | 6efe668f71d42e51cade47676faa22bf9de6bea1 | d6f13708d3bce79b146ced6feeb2c23f0761ba25 | refs/heads/master | 2020-12-21T22:36:40.435776 | 2019-12-20T09:30:02 | 2019-12-20T09:30:02 | 236,586,401 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 612 | rd | create_statement_cran_versions.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_statement_cran_versions.R
\name{create_statement_cran_versions}
\alias{create_statement_cran_versions}
\title{Create Install CRAN Packages Statement for Dockerfile}
\usage{
create_statement_cran_versions(deps, verbose = TRUE)
}
... |
0060efeccd595c2e8f79787ec7850b3f343ec7da | fef4e424895c532b27ff52fd4331a6af5145d3c7 | /codes/chapter6.R | 92389bd2a008e791c63426cceb4e12f1338a98ac | [] | no_license | harryyang1982/tmwithR | fe7101a51ceafcd62ae6326a2a9a3ee6051b73a5 | ae8becd4b0a99fb123b63a71f145c7d8c4f7708c | refs/heads/master | 2021-05-13T22:01:11.185303 | 2018-04-09T06:38:38 | 2018-04-09T06:38:38 | 116,477,283 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,789 | r | chapter6.R | library(tidyverse)
# Latent Dirichlet Allocation
library(topicmodels)
data("AssociatedPress")
AssociatedPress
ap_lda <- LDA(AssociatedPress, k = 2, control = list(seed = 1234))
ap_lda
## Word-Topic Probabilities
library(tidytext)
ap_topics <- tidy(ap_lda, matrix = "beta")
ap_topics
ap_top_terms <- ap_topics %>% ... |
3785d74105c8db81456e14df85d1e10b089fb72a | 29585dff702209dd446c0ab52ceea046c58e384e | /ProgGUIinR/inst/Examples/ch-gWidgets/ex-gWidgets-basic-menubar.R | d6e5942088de351ae24457cd9019f0c104127bbf | [] | no_license | ingted/R-Examples | 825440ce468ce608c4d73e2af4c0a0213b81c0fe | d0917dbaf698cb8bc0789db0c3ab07453016eab9 | refs/heads/master | 2020-04-14T12:29:22.336088 | 2016-07-21T14:01:14 | 2016-07-21T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,510 | r | ex-gWidgets-basic-menubar.R | ###################################################
### code chunk number 133: Controls.Rnw:1424-1441
###################################################
stub <- function(h,...) gmessage("called handler",
parent = window)
action_list = list(
new = gaction(label = "new", icon = "new",... |
c717911b3fbcc4f63685abd54719335c9b8e1717 | 9fc5d07956259ecedcd36d1f1107975ffdf300f4 | /src/experiments/covariance_estimation/collect_results.R | 1bebd60d1065c152c11b0665042e3493920f1a20 | [] | no_license | ZhuoqunWang0120/LTN_analysis | 9412487b286a75063c1be7f533616f8caaddc066 | ac3911eadfece22d1f02adf9d7de856e17968404 | refs/heads/main | 2023-06-07T06:59:29.065089 | 2021-06-27T23:29:59 | 2021-06-27T23:29:59 | 381,838,286 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,370 | r | collect_results.R | #!/usr/bin/env Rscript
argv=commandArgs(TRUE)
WORK_DIR=argv[1]
lambda=argv[2]
nsim1=as.numeric(argv[3])
source(paste0(WORK_DIR,"/src/utility/utility.R"))
if (lambda=='0'){lambda='hp'}
risk=matrix(-1,4,4,dimnames = list(c("Frobenius","L1","L_inf","spectral"),c("LN-hub","LN-block","LN-sparse","DTM")))
# DTM
result_dir=... |
50d61ed01aee99f4dd261bc8cd96695777f8afd3 | 1bda17508c8734f8aa1132d4f8f80b91ba332ef7 | /R/0.preparation/old/2.clean_names/OLD/10feb_failed/join_shape_population.R | 8f51f78038dd217fd4626b547ca353158841ab3d | [] | no_license | araupontones/ETH_IC | b08b12bee201905859292e53de36ced454bd5dba | 681c6d7ae98926a111ed1b887974f0741519e2d4 | refs/heads/main | 2023-08-03T11:59:55.612161 | 2021-09-27T06:42:58 | 2021-09-27T06:42:58 | 329,865,799 | 0 | 0 | null | 2021-09-27T06:42:59 | 2021-01-15T09:25:24 | R | UTF-8 | R | false | false | 2,700 | r | join_shape_population.R | #joint population census
source("Set_up.R")
clean_zone = import(file.path(dir_data_reference_cleanINT, "population_SNNPR_Oromiya_int.rds"))
centroids_names = import(file.path(dir_data_reference_cleanINT, "centroids_int.rds"))
#Zones-----------------------------------------------------------------------
#check diffe... |
e879319110152b88150ec46b679adf47561a641a | addd191fee0de966c2c5b717dd083e91ea960438 | /R/name-dashboard-file.R | 3fbcf44b5731c08a413c1a21f73386d8babc3b7c | [
"MIT"
] | permissive | GiuseppeTT/RiskParityBrazil | a8efa0b28d213b5f89c1ca8fbdf3306cae8f954f | f2fd3c8db12b1b48585187b2ba267e482b001370 | refs/heads/main | 2023-05-03T05:48:21.700520 | 2021-05-07T14:48:25 | 2021-05-07T14:48:25 | 350,794,700 | 0 | 0 | MIT | 2021-05-07T14:48:26 | 2021-03-23T17:11:23 | R | UTF-8 | R | false | false | 228 | r | name-dashboard-file.R | #' @title
#' Name dashboard file
#'
#' @description
#' TODO
#'
#' @param name
#' TODO
#'
#' @return
#' TODO
#'
#' @export
name_dashboard_file <- function(
name
) {
"{name}.html" %>%
glue() %>%
return()
}
|
27cb7ddab3bdd2b9067fd95c08edcd53286ee2e3 | ea9c56c3fe7139f6eee0a4271ac4947e774da412 | /R/rlcd.R | 2ce9e0151d03fecb7ad0179ef3978fd340783fd7 | [] | no_license | cran/LogConcDEAD | a57e8a9f53610806a8a93cc77a6c6a58e9914218 | 9b0b745605a395a9b85f2a2f32e29ef74b38e573 | refs/heads/master | 2023-04-13T04:26:48.647672 | 2023-04-05T16:53:27 | 2023-04-05T16:53:27 | 17,691,853 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,701 | r | rlcd.R | ## Generate samples from mle log-concave density
'rlcd' <- function (n = 1, lcd, method = c("Independent","MH")) {
method <- match.arg(method)
triang <- lcd$triang
x <- lcd$x
logMLE <- lcd$logMLE
nrows <- nrow(triang)
d <- ncol(x)
prob <- rep(0, nrows)
for (j in 1:nrows) {
prob[j] <- lcd$detA[j] * J... |
f121f966842d467a5085ad84f310967dcf95ad68 | 5cfc686149876fd49755d709a82047b68f85e7b5 | /r2.R | 135beb300ffad2ae0bee2d0ed5b694cf90df0f66 | [] | no_license | kira1508/Rprograms | 9ab2754bc312295b80a1fcf9dc7c5e6623ca56d9 | d09ea5cea8c44b695f8fb8356aed12392f703757 | refs/heads/master | 2021-09-01T07:28:36.629746 | 2017-12-25T17:30:50 | 2017-12-25T17:30:50 | 113,028,836 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 110 | r | r2.R | library(datasets)
hist(iris$Sepal.Length[1:5])
plot(density(iris$Sepal.Length[1:5]))
pie(table(iris$Species))
|
5ebd35ed726e1797bc160d63240fedc190f6d0ff | 2195aa79fbd3cf2f048ad5a9ee3a1ef948ff6601 | /docs/ViewFilterCustomAction.rd | 6f75ff34de16fc3515c8788505ef1a935e26fbd3 | [
"MIT"
] | permissive | snakamura/q3 | d3601503df4ebb08f051332a9669cd71dc5256b2 | 6ab405b61deec8bb3fc0f35057dd880efd96b87f | refs/heads/master | 2016-09-02T00:33:43.224628 | 2014-07-22T23:38:22 | 2014-07-22T23:38:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 571 | rd | ViewFilterCustomAction.rd | =begin
=ViewFilterCustomアクション
カスタムフィルタを適用します。引数が指定されると指定されたマクロをフィルタに設定します。引数が指定されない場合には、((<[カスタムフィルタ]ダイアログ|URL:CustomFilterDialog.html>))を開いてフィルタを指定します。フィルタについては、((<フィルタ|URL:Filter.html>))を参照してください。
==引数
:1
フィルタに設定するマクロ
==有効なウィンドウ・ビュー
*メインウィンドウ
=end
|
539857df590e644aedd159caa5a7dc7b16ca4af2 | e189d2945876e7b372d3081f4c3b4195cf443982 | /man/parsers_MasksMixin.Rd | a5f17236c0e0505802d59c6ab8e240cc81afb879 | [
"Apache-2.0"
] | permissive | Cdk29/fastai | 1f7a50662ed6204846975395927fce750ff65198 | 974677ad9d63fd4fa642a62583a5ae8b1610947b | refs/heads/master | 2023-04-14T09:00:08.682659 | 2021-04-30T12:18:58 | 2021-04-30T12:18:58 | 324,944,638 | 0 | 1 | Apache-2.0 | 2021-04-21T08:59:47 | 2020-12-28T07:38:23 | null | UTF-8 | R | false | true | 307 | rd | parsers_MasksMixin.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/icevision_parsers.R
\name{parsers_MasksMixin}
\alias{parsers_MasksMixin}
\title{MasksMixin}
\usage{
parsers_MasksMixin(...)
}
\arguments{
\item{...}{arguments to pass}
}
\value{
None
}
\description{
Adds masks method to parser
}
|
4910d8d7adb7a0fe6734409d9c62b291f857f552 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/plotGoogleMaps/examples/stfdfGoogleMaps.Rd.R | 629a0ff2cec69aa9c097ded303d519ff3dfd240a | [] | 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 | 777 | r | stfdfGoogleMaps.Rd.R | library(plotGoogleMaps)
### Name: stfdfGoogleMaps
### Title: Create a plot of spacetime (STFDF) data on Google Maps
### Aliases: stfdfGoogleMaps
### ** Examples
## Data preparation
## STFDF data from spacetime vignette spacetime: Spatio-Temporal Data in R
#library("maps")
# states.m = map('state', plot=FALSE, fill... |
808e707650cc94b4b1c4301cc180bf0296e0e6e7 | 26ec468c649c35fb6a4d360d96bfec5c052dde02 | /ui.R | 690f0c97279a668277808ee853ef671d9a0f410a | [] | no_license | sli-wb/WBTV-Budget-App | 4728038cee28db7f5d02e694d2a9f2aeb5951fab | 10f4196eee7a7e6d9581fc4a17ff3eed87d8d801 | refs/heads/main | 2023-02-17T18:58:49.298056 | 2021-01-09T00:44:13 | 2021-01-09T00:44:13 | 328,044,706 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,274 | r | ui.R | dashboardPage(
dashboardHeader(
title = tags$span(tags$img(src='img/Warner_Bros_Television_2019.png', height="90%"), "TV Show Production"),
titleWidth = 300
),
dashboardSidebar(
sidebarMenu(id = "tab",
menuItem("Cost Summary", tabName = "cost-summary"),
menuItem("View B... |
8a283c07e882083d03e49fc050b873fdf74f7313 | cd702f481643c7bdff1ba8fb200f794e7c271e33 | /man/summarizeFollowUpTime.Rd | 98c942d58d8b3b52675884c608a4e3bad19cca5f | [] | no_license | alondhe/MPHThesisPAD | 1177b4cd74f1721e12d710f92e076a15d25530e7 | 1e18269661af8b3b3251d7a1e58012e72a18ae03 | refs/heads/master | 2020-12-02T11:07:24.326159 | 2017-07-27T19:02:22 | 2017-07-27T19:02:22 | 96,605,165 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 614 | rd | summarizeFollowUpTime.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/main.R
\name{summarizeFollowUpTime}
\alias{summarizeFollowUpTime}
\title{Get Median Days of Follow-up time}
\usage{
summarizeFollowUpTime(dcoList, cmOutputPath, reportsOutputPath)
}
\arguments{
\item{dcoList}{The list of drug-comparator-outco... |
6549bb5bbf4d80c32cd3be853f7c164e39fcdfe9 | b8056cebf9e05002d66f70c4be4c6599e65a7064 | /Walmart Store Sales Analysis.R | 520d40c64e892c199fe56f3c385b53c687305d55 | [] | no_license | shishir247/ML-Projects-with-R | a6d4cfbe77d14128c6b7d5e7e0bc4e736b815159 | 7ed4bd27cdc1460f7438f58e1a99593c37cafdef | refs/heads/master | 2022-12-15T06:42:39.358041 | 2020-09-13T19:05:29 | 2020-09-13T19:05:29 | 274,356,618 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 26,461 | r | Walmart Store Sales Analysis.R | # Cleaning global environment
rm(list = ls())
###################################################################################
# Project 1 Retail Analysis with Walmart Data #
###################################################################################
# Reading dataset and assigning it as W... |
4ee5b152a1db6e98055f86775ae54e7ed4dfa8de | 28167d5d08a332b193a5e87c66f4687319dbbb9e | /man/pgas_the_package.Rd | 7911215a9f9dded496e1bc94be4245402b24b491 | [] | no_license | niharikag/PGAS | a8a26b06d6c0c3cec13e7e4357d1b49f28c71d6e | 45615ee2ea6ecdfa3cf6b07c0506a80dff79cf13 | refs/heads/master | 2020-03-23T12:55:35.087211 | 2019-03-17T06:22:03 | 2019-03-17T06:22:03 | 141,590,688 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,002 | rd | pgas_the_package.Rd | \docType{package}
\name{ PGAS-package}
\alias{PGAS-package}
\title{Implementation of Particle Gibbs Particle Gibbs Method and its Extensions and Variants}
\description{
Implementation of Particle Gibbs Particle Gibbs Method and its Extensions and Variants
}
\details{
Implementation of Particle Gibbs Particle Gibbs... |
77c4960d55a702cd95517e794419a23e7702861d | 0c2019feffbcb12510df6636264361538ee4e58f | /man/skktest.Rd | fdeb064f58966a013fc57d9c901e8e764e780a9e | [] | no_license | cran/MethylCapSig | 997472725776faefb4acd1ec380eb2bdbf2ca4af | 9b84e9651ea2aeca8f502970fbc00fab6b3496aa | refs/heads/master | 2020-06-08T07:48:49.908412 | 2015-08-12T00:00:00 | 2015-08-12T00:00:00 | 40,618,133 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,881 | rd | skktest.Rd | \name{skktest}
\alias{skktest}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Srivastava-Katayama-Kano test statistic
}
\description{
Calculates the two sample test statistic and p-value for the Srivastava-Katayama-Kano test.
}
\usage{
skktest(X, Y)
}
%- maybe also 'usage' for other objects docu... |
d9b1d8a1d65d2737da018145c0ec701a8aa16c53 | f009dcaeb338350e148c02de800db563a04318eb | /FOSSGIS-workshop/sf_meets_airports.R | 214b98eec9afe32648fff8742e3ece966dc55ad4 | [] | no_license | crazycapivara/rosgeo-live | 1311d028d7a04d21a39e71dcde7c66c6b35e5567 | b566663069867c90d59ca626e15703bd27f365f1 | refs/heads/master | 2020-05-26T09:21:18.680262 | 2017-03-25T14:04:44 | 2017-03-25T14:04:44 | 82,475,499 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 663 | r | sf_meets_airports.R | library(sf)
library(magrittr)
countries <- readRDS("FOSSGIS-workshop/data/ne_10m_admin_0_countries.rds") %>%
st_as_sf()
names(countries)
germany <- subset(countries, SUBUNIT == "Germany")
plot(germany[c("LABELRANK")])
fn <- "FOSSGIS-workshop/data/ne_10m_airports/ne_10m_airports.shp"
st_layers(fn)
airports <- st_re... |
a310d54a5f5a2b78ace3df342cd2c033e59d1aff | c4c0f4b3595ac4458261b3f45fdfba8366ee8cc0 | /Cap12/05-Frequencia.R | f2f5f7eb912bc489673c69af9c5e69a310b1aa9a | [] | no_license | laranelson/PowerBI | e9b467068fc43a7bb686275081862fc79d67cafd | 9cb52e7d1121aad7bcc5f6fe47f250e41e8dd7f5 | refs/heads/main | 2023-09-03T01:56:23.514053 | 2021-11-19T00:00:19 | 2021-11-19T00:00:19 | 420,478,679 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 1,339 | r | 05-Frequencia.R | # Estatística Básica
# Parte 4 - Tabela de Frequência
# Definindo a pasta de trabalho
# Substitua o caminho abaixo pela pasta no seu computador
setwd("D:/DSA/PowerBI/Cap12")
getwd()
# Carregando o dataset
dados <- read.csv("usuarios.csv",
dec = ".",
sep = ",",
h ... |
2471a25b1769c79e9e6bd7be9e04f29423011990 | fc41c0a908e332b2dc021f5aca4a17ca7d58803e | /R/round2.R | 16d91f2b64f672c2ad4ae18b0e9bdbed7d37a76c | [] | no_license | MHS-R/mhs | 92ba9bb646a1f55fcf06638773cad714547de108 | b7593333dc638634eb9adcc3f9fec8f4644d9590 | refs/heads/master | 2020-01-27T10:00:19.252327 | 2019-03-11T14:23:00 | 2019-03-11T14:23:00 | 66,571,885 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 398 | r | round2.R | #' Round half up
#'
#' R's default round() function does banker's rounding. This round2 function rounds a number half up.
#'
#' @param x number
#' @param digits numeric; a number specifying the number of digits to round to.
#' @export round2
round2 = function(x, digits = 0) {
posneg = sign(x)
z = abs(x) * 10... |
34a5511f1fb41c68aae0562873be4649e1cc7486 | ecb6ffc6b42a1f7d060e07a32241f6975945a83b | /JAGS/examples/classic-bugs/vol1/leuk/test1.R | 7a0930be4bb347f785465acf0c1cda542efbacf3 | [] | no_license | amandawarlick/IPMWorkshop | a260b987b8d7c44ec4e4bb6a0634ecc778e8b160 | 0e227039b2aa27ee862d92fc07e7be9ff4f43418 | refs/heads/master | 2020-03-19T06:58:51.286981 | 2018-07-14T02:28:46 | 2018-07-14T02:28:46 | 136,073,048 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 328 | r | test1.R | source("../../R/Rcheck.R")
d <- read.jagsdata("leuk-data.R")
inits <- read.jagsdata("leuk-init.R")
inits$tau <- NULL #not used in this model
m <- jags.model("leuk.bug", d, inits, n.chains=2)
check.data(m, d, skip=c("fail","Y","dN"))
update(m, 1000)
x <- coda.samples(m, "beta", n.iter=2000)
source("bench-test1.R")
chec... |
eb4fa3dd6184d92d2adab1cb8ff00ff2458c99a1 | 442b144ad8aadefe504a14894abff925d70be070 | /all_commands_99_analysis_07.R | 7efeb0470ccfb8a60855ebc39022b6af1fcd9d7a | [] | no_license | RishiDeKayne/Alpine_whitefish_WGS | 20b4eba5590d1d1871f89a23a86dc17b49ddf24b | 6f9e458d26f6f7fab3e9e1c8ca57f4f65eee2fe7 | refs/heads/main | 2023-04-17T15:07:50.163799 | 2022-10-09T11:14:38 | 2022-10-09T11:14:38 | 389,911,930 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,860 | r | all_commands_99_analysis_07.R | ###This script contains commands run for the whole-genome analysis paper for whitefish De-Kayne et al.
#for all bash analyses please look at all_commands_99_analysis.txt
#then the following analyses
# 7. f4 statistics
#Pop1 – brienz
#Pop2 – neuchatel
#Pop3 – Luzern
#Pop4 – walen
#set directory and load backgroun... |
9011bfe9b9fc8d5775bb2d2a0e61082de4bc88ed | 1b031918c16ba0dd5ef1939a6f860ccfd5a3e238 | /R/plantGrowth.R | 19b507a8a6e314007c5ce8fcc04030df9d816052 | [] | no_license | dgreenhoe/doc-building-blocks | 6e6434a436c1b53e7b96d15a4c4369255f9bc472 | 38784af9ece0e32bdf96c2656ee63b86903ca2a3 | refs/heads/master | 2023-08-10T14:13:12.766248 | 2023-07-23T18:34:49 | 2023-07-23T18:34:49 | 126,101,159 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,504 | r | plantGrowth.R | #============================================================================
# Daniel J. Greenhoe
# R script file
# setwd("c:/dan/personal/r/R");
# source("plantGrowth.R");
# Reference: https://math.stackexchange.com/questions/3990086/
#============================================================================
#----... |
0224349f2c991be9b4f50038791c5372676e64b2 | 51df41598d9789998306f563f0e9b083e4e8c3f5 | /man/EdgeProba.Rd | fddb7fc78999b8f330cdbe9366a72ad8aaf88839 | [] | no_license | Rmomal/EMtree | 92f88a06cd58799750467d31cc524aafaed6d656 | 0358eb8e7f384ebc5227ab02f9f364b692f2657b | refs/heads/master | 2021-06-10T21:19:51.466382 | 2021-04-13T06:58:53 | 2021-04-13T06:58:53 | 166,967,948 | 5 | 2 | null | 2020-03-10T13:12:15 | 2019-01-22T09:42:08 | R | UTF-8 | R | false | true | 507 | rd | EdgeProba.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FunctionsTree.R
\name{EdgeProba}
\alias{EdgeProba}
\title{Computing edge probabilities}
\usage{
EdgeProba(W, verbatim = FALSE)
}
\arguments{
\item{W}{squared weight matrix}
\item{verbatim}{controls verbosity}
}
\value{
Edges conditional prob... |
2da7b0e7f050d7cfa46f03dccea8fc853458c12f | 29585dff702209dd446c0ab52ceea046c58e384e | /fields/R/fields.x.to.grid.R | cf35f59d5731d2a01e60b6375c4070374a5daa48 | [] | 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 | 1,711 | r | fields.x.to.grid.R | # fields is a package for analysis of spatial data written for
# the R software environment .
# Copyright (C) 2016
# University Corporation for Atmospheric Research (UCAR)
# Contact: Douglas Nychka, nychka@ucar.edu,
# National Center for Atmospheric Research, PO Box 3000, Boulder, CO 80307-3000
#
# This program is fre... |
7efa2c1f781b722b9ef0e24d74e04719233aec04 | 7a95abd73d1ab9826e7f2bd7762f31c98bd0274f | /mgss/inst/testfiles/MVP_normalfactor_rcpp/AFL_MVP_normalfactor_rcpp/MVP_normalfactor_rcpp_valgrind_files/1615949508-test.R | 8064746f18a8c34f8864ba89343af0ec6e87430e | [] | no_license | akhikolla/updatedatatype-list3 | 536d4e126d14ffb84bb655b8551ed5bc9b16d2c5 | d1505cabc5bea8badb599bf1ed44efad5306636c | refs/heads/master | 2023-03-25T09:44:15.112369 | 2021-03-20T15:57:10 | 2021-03-20T15:57:10 | 349,770,001 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 459 | r | 1615949508-test.R | testlist <- list(A = structure(c(2.78698306639832e+233, 4.08354876418797e+233, 4.08354876418806e+233, 6.01347001699907e-154, 4.08354876418797e+233, 4.08354876418797e+233, 4.08354877058483e+233, 3.37974877952032e-154, 6.01347001699907e-154, 1.87725413656227e-09, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... |
9eb2852d9f0d66f7fe67a6c2417fb6db17453743 | 546907eb5b27d97e554e92564e4d660fef3601c1 | /222830-parametric-bootstrap-testing-for-random-effect-in-glmm.R | e034ceb7d44a630d87608d084b637da7ae0d1692 | [] | no_license | WRobertLong/Stackexchange | ec405b64d31065bfbdb485fa50c2514826e7de4d | ef1e383b32371ed1a6548f9ddfac9b1a9d85fcbb | refs/heads/master | 2020-12-15T01:57:57.989417 | 2020-09-26T14:17:41 | 2020-09-26T14:17:41 | 234,954,626 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,343 | r | 222830-parametric-bootstrap-testing-for-random-effect-in-glmm.R | m0 <- lmer(Reaction ~ Days + (1 | Subject) + (0 + Days | Subject), sleepstudy)
summary(m0)
str(sleepstudy)
head(sleepstudy)
summary(sleepstudy)
sleepstudy$days_fac <- sleepstudy$Days
sleepstudy$days_fac[sleepstudy$Days == 0] <- "A"
sleepstudy$days_fac[sleepstudy$Days == 1] <- "A"
sleepstudy$days_fac[sleepstudy$Days ... |
269314fdd863db47eb0008f95ac6864c72c0ddd4 | a8a679a3015eb257bf4a6825593b496ce380a58a | /ThomasZacharyTools/man/farmData.Rd | 87eeb82a189159498cb76be726e876bb4d019fab | [] | no_license | zthomas2222/ThomasTools | 3466b741f4fc8c34df35d94de461caec4b06833f | f70660e7506f20aac73b8831e8f033897660748e | refs/heads/master | 2021-01-25T10:01:00.446433 | 2018-03-07T19:46:05 | 2018-03-07T19:46:05 | 123,335,012 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 511 | rd | farmData.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_farmData.R
\docType{data}
\name{farmData}
\alias{farmData}
\title{Example data from Lecture 7}
\format{An object of class \code{tbl_df} (inherits from \code{tbl}, \code{data.frame}) with 9597 rows and 1754 columns.}
\usage{
farmData
}
\d... |
318333c1bab016dc9e3a6e76a1e6b331cefe5271 | 9c6e2ab15a4c32e6ed864807d887be8b5b467db9 | /R/pbpareto2.R | 371ec1eb5525afbe7a0e72c1344ef09ad106d877 | [] | no_license | cran/CaDENCE | 853b37566024fd329a0419b5e643c4b16c4d698e | 7c754e5e408f46aa3704cdf0c06626a52a548c00 | refs/heads/master | 2021-01-23T13:22:25.997825 | 2017-12-05T03:05:17 | 2017-12-05T03:05:17 | 17,678,401 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 396 | r | pbpareto2.R | pbpareto2 <-
function (q, prob, scale, shape)
{
if (length(prob) == 1)
prob <- rep(prob, length(q))
if (length(scale) == 1)
scale <- rep(scale, length(q))
if (length(shape) == 1)
shape <- rep(shape, length(q))
p <- 1 - prob
p[q > 0] <- 1 - prob[q > 0] + prob[q > 0] * ppar... |
6739ddd09f1371bdf2e83a6c4ff61dfa62b7877e | eaba1d36412ff88bbeebb8feedf852f994a3d2f7 | /Social Network Analysis Harry Potter.R | 708c6fc4983fbab769bd6d19ffb6027db0f3b934 | [] | no_license | pm867/Harry-Potter-sentiment-Analysis | fec2683d009f886a65137613f7c5a5fb87c313aa | 233ec28d3467c45919706440570a1073d7c24319 | refs/heads/main | 2023-01-13T07:05:56.214423 | 2020-11-02T13:04:13 | 2020-11-02T13:04:13 | 309,370,355 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,701 | r | Social Network Analysis Harry Potter.R | #########################################################################################
############################### Social Network Analysis #################################
#########################################################################################
##############################
######## lo... |
75a354b2aa7767181f2a1644d4c2a4207be58f52 | 58b911103a4cf74233b726681ddaadf7874a360f | /R/setDesignG.R | 3ab0e5bf8c6b3898c5ac11e79e3a875227a387a7 | [] | no_license | cran/PEIP | 3ebf210cfe3aebd5529a0bf7ffa3197e406e8c61 | 715c8edc83992565dabf8b910b4283cfcf9b1494 | refs/heads/master | 2021-06-26T01:36:10.166393 | 2020-08-29T13:30:03 | 2020-08-29T13:30:03 | 17,713,781 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,607 | r | setDesignG.R | setDesignG<-function()
{
##### create a 94 by 256 design matrix for 2D simple tomography
m = 256;
G = matrix(rep(0, 94*m), ncol=m, nrow=94)
for(i in 1:16)
{
for(j in seq(from= (i-1)*16+1, to= i*16))
{
G[i,j] =... |
b7571383ddbb1448b3bf37b86512639f640a1117 | ac655728cfed40aacb3686b9a3fd2c26f8facdc0 | /scripts/nconds_analysis/summarize_by_n_tissues.R | 29111375a1bb17f18285b071b144dc5d18ad3bf3 | [] | no_license | jakeyeung/Yeung_et_al_2018_TissueSpecificity | 8ba092245e934eff8c5dd6eab3d265a35ccfca06 | f1a6550aa3d703b4bb494066be1b647dfedcb51c | refs/heads/master | 2020-09-20T12:29:01.164008 | 2020-08-07T07:49:46 | 2020-08-07T07:49:46 | 224,476,307 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,810 | r | summarize_by_n_tissues.R | rm(list=ls())
remove.wfat <- TRUE
library(ggplot2)
library(hash)
library(dplyr)
library(reshape2)
library(gplots)
library(penalizedLDA)
library(wordcloud)
# First source my functions I wrote
funcs.dir <- file.path('scripts', 'functions')
source(file.path(funcs.dir, 'SampleNameHandler.R')) # for shortening sample nam... |
309e42f87ecc24e3e9a095a28266e11753fbeb77 | f60bf36a00296046fd6bdf6a654c7925bdd8d228 | /SusitnaEG/data-raw/chinBEGs.R | fea4da06ed430a3b54639694e5da19a2b1b501ba | [] | no_license | adamreimer/SusitnaEG | 3c5b407ea74a307ef570580ce0bf2f268197c4e2 | 0eaf41a437ae20da102e9cc09be606d2b8f9feed | refs/heads/master | 2021-05-02T15:12:50.502298 | 2020-10-08T19:48:27 | 2020-10-08T19:48:27 | 120,691,401 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 209 | r | chinBEGs.R | chinBEGs <-
read.csv(".\\SusitnaEG\\data-raw\\chinBEGs.txt",
stringsAsFactors = FALSE) %>%
dplyr::filter(Stock != "Deshka")
devtools::use_data(chinBEGs, pkg = ".\\SusitnaEG", overwrite = TRUE)
|
64d6d30df8648c96fac43ec33417278477f68cb7 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/openCR/examples/utility.Rd.R | ef141d623211c26b99275eefa4ebd2264b30a89f | [] | 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 | 369 | r | utility.Rd.R | library(openCR)
### Name: JS.counts
### Title: Summarise Non-spatial Open-population Data
### Aliases: JS.counts m.array bd.array
### Keywords: manip
### ** Examples
JS.counts(ovenCH)
m.array(ovenCH)
## probabilities of b,d pairs
fit <- openCR.fit(ovenCH, type = 'JSSAbCL')
beta <- predict(fit)$b$estimate
phi <- p... |
eb21e18321ecfe08763b0fb88ea2171b820bc009 | f5d7ab6d2d174be0b13bc3ad3b29901565b115c5 | /scripts/predict.R | b037899e7bb809c1c2800a83d2c762f862f2510b | [] | no_license | josiahdavis/earl | 7b9a28f69d07b47bb7ec42dbbf2bd27f24244454 | 0b88955931c3613f98847098777274d66bd97ac2 | refs/heads/master | 2020-03-29T10:45:39.837390 | 2015-10-19T16:29:37 | 2015-10-19T16:29:37 | 40,487,297 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,450 | r | predict.R | # ============================
# SCRIPT FOR PREDICTING THE
# USEFULNESS OF A REVIEW
# ============================
# Identify bigrams and trigrams amongst nouns and adjectives
# Predict the usefulness of the review using this dtm
rm(list = ls()); gc()
library(tm)
library(openNLP)
library(magrittr)
library(randomFor... |
75d3c1c34aea02149aac2850c8022e049c9db57c | 279277403782c464d08a388e114fa28a41c2bb7c | /man/rob.ncutrange.Rd | 8febd77a8083f1fcf2e111189396c632c71d2432 | [] | no_license | nenaoana/SetMethods | 44be0a8331e51faaff72bd67ad05e1133520646b | eae2232c57c8db822c3cc6c0741d23b16249f0dc | refs/heads/master | 2023-04-07T12:52:41.675428 | 2023-03-31T08:40:13 | 2023-03-31T08:40:13 | 61,364,860 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,866 | rd | rob.ncutrange.Rd | \name{rob.ncutrange}
\alias{rob.ncutrange}
\title{
Function for identifying the frequency threshold range within which the Boolean formula for the solution does not change.
}
\description{
Function for identifying the frequency threshold range for a truth table within which the Boolean formula for the solution does not... |
c9b0ad2bc4fa45414ac9b4031c6e70fd0fedec5a | 7e77b57a2d6e9aa91f16272dfe21518cf794c44d | /code/03_Empirical_Properties_of_Financial_Data/03_Ljung-Box_test_of_serial_independence.R | e3e048f8b70af3036eb167dd89d655aed1ed5160 | [] | no_license | qrmtutorial/qrm | 654ff4553584628c4837944e9986e077743b3dc2 | 7ef6cf15b9f19775dfc1f58fb16d955cb4673de0 | refs/heads/master | 2023-08-17T23:32:33.052610 | 2023-08-08T11:14:12 | 2023-08-08T11:14:12 | 36,744,252 | 224 | 163 | null | null | null | null | UTF-8 | R | false | false | 3,662 | r | 03_Ljung-Box_test_of_serial_independence.R | ## By Alexander McNeil and Marius Hofert
### Setup ######################################################################
library(xts)
library(qrmdata)
library(qrmtools)
### 1 Constituent data #########################################################
## Dow Jones constituent data
data("DJ_const")
## We extract a... |
bb1815134f02bc94d7b59547840bba1c7ee01c99 | a6af23799b58180495218fec7286f1ed5b80da6b | /Tidyverse Functions/06 Wide and Long Data Handling/06_04 convert long to wide/data-processing-barath.R | b999158ff6d843422d0cbabd1df685cdc142dcf0 | [] | no_license | barathevergreen/tidyverse_DS_toolkit_R | 9368972d06dbfada054addff206904dd0a47c840 | d88d4b34b21877b2b69b4ac83614bde8962b151f | refs/heads/master | 2023-06-12T12:12:24.274974 | 2021-07-09T15:14:03 | 2021-07-09T15:14:03 | 384,352,995 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 294 | r | data-processing-barath.R | library("tidyverse")
long_monthly_tdiff <- read_csv("data/long_monthly_tdiff.csv")
long_horses_data <- read_csv("data/long_horses_data.csv")
#spread using key and value:
long_monthly_tdiff %>%
spread(airport,avg.tdiff) %>%
view()
long_horses_data %>%
spread(year,horses) %>%
view()
|
caac7c8fba121fc5d9c33f664a39b90820d5c26e | ff469b2d284b46791ca52f35c64d22d3f81ba5f1 | /man/PhdAsy.Rd | 4fca88c2dbd3f2458912a76f3e4df8046884d7ef | [] | no_license | YanHanChen/iNEXTPD2 | fbcd0248e827c90734c9f7e1e4db5cb7ca17b61e | 38613d19c5acc4a0cf11c81a0ce816ab836035c8 | refs/heads/master | 2022-11-29T08:08:28.041885 | 2020-08-15T06:12:52 | 2020-08-15T06:12:52 | 283,961,817 | 2 | 5 | null | 2020-08-13T19:37:39 | 2020-07-31T06:37:05 | R | UTF-8 | R | false | true | 3,647 | rd | PhdAsy.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MainFun.R
\name{PhdAsy}
\alias{PhdAsy}
\title{Computes asymptotic estimates for phylogenetic diversity and mean phylogenetic diversity (phylogenetic Hill numbers)}
\usage{
PhdAsy(
data,
nT,
datatype = "abundance",
tree,
q = seq(0, 2... |
1f676d4ffa4104c32622a098a9ca6f52a93d65e9 | c3dae5adc7ccc7886a560e0939918fe2ade9124c | /packages/RSuite/R/21_repo_adapter_dir.R | 28f776b33fcc132ecf624d8fd9e98bd4ebf3b772 | [
"Apache-2.0"
] | permissive | gitter-badger/RSuite-1 | c85a20da50942e0d69fa288a6818671217a3aa02 | f5eea2791861f1453cd9ebb1ce549ad6d3884891 | refs/heads/master | 2021-07-12T06:37:12.788730 | 2017-09-30T13:15:49 | 2017-09-30T13:15:49 | 106,171,745 | 0 | 0 | null | 2017-10-08T11:40:09 | 2017-10-08T11:40:08 | null | UTF-8 | R | false | false | 4,470 | r | 21_repo_adapter_dir.R | #----------------------------------------------------------------------------
# RSuite
# Copyright (c) 2017, WLOG Solutions
#
# Repo adapter working on directory.
#----------------------------------------------------------------------------
.is_abs_path <- function(path) {
return(all(grepl("^([A-Za-z]:)?[\\/\\\\]", ... |
1f3f93b65e69001e45fd3506d80213ecdefcbf43 | b2f61fde194bfcb362b2266da124138efd27d867 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query04_query27_1344n/query04_query27_1344n.R | 37bba0f2d08da65112055b5a22cb285c871776be | [] | no_license | arey0pushpa/dcnf-autarky | e95fddba85c035e8b229f5fe9ac540b692a4d5c0 | a6c9a52236af11d7f7e165a4b25b32c538da1c98 | refs/heads/master | 2021-06-09T00:56:32.937250 | 2021-02-19T15:15:23 | 2021-02-19T15:15:23 | 136,440,042 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 70 | r | query04_query27_1344n.R | f14f7ad123c66363569c9877a8dd42a9 query04_query27_1344n.qdimacs 351 583 |
d5c4b52f11eebfc3f6e7d926aba0f8da585c6c10 | 0f37f192db2b523ddaff3747992d5632e3991c77 | /R/apiDF.R | 439883c74ab0718b6589eb745d9f92f7ec38f4fc | [] | no_license | mikeasilva/blsAPI | 42bc2353ab25483cbef2c7e1e4dd719cb4311360 | a125b3a7b8773477443636693623b5e79d20ea5d | refs/heads/master | 2023-05-11T01:44:28.499780 | 2023-05-07T01:05:48 | 2023-05-07T01:05:48 | 22,688,145 | 91 | 28 | null | 2023-05-07T01:05:50 | 2014-08-06T15:39:36 | R | UTF-8 | R | false | false | 850 | r | apiDF.R | # apiDF.R
#
#' @title Creates data frame after data is called using blsAPI.R
#' @description Used in the laus_get_data function
#' @param data The JSON used to extract the data gathered from the blsAPI function
#' @return returns a data frame of the data requested from the bLSAPI function call
#' @export apiDF
#' @impo... |
03030513eb7f3ea23a7c64b3a43541c12abd3b9f | b15a8b5fe7eae0e6c6a21a1764c8db559279b106 | /run_analysis.R | 80371628d1d59286e97165bae9362a271368f555 | [] | no_license | yacoan/datasciencecoursera | 9056deb61194bd000a6bdeaf472dc873c6d976b0 | ea15528300d421677079b06da05bb27010af0841 | refs/heads/master | 2016-09-05T20:01:36.781600 | 2014-04-28T12:24:47 | 2014-04-28T12:24:47 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,214 | r | run_analysis.R | #setwd("C:/Users/js1/Dropbox/SAS/Courses/Coursera/Getting and Cleaning Data/3 Lesson/UCI HAR Dataset")
# Source of data for the project:
# Getting and Cleaning Data Assigment
#Preparation Step, Read Test and Train Data
subject_test <- read.table("./test/subject_test.txt",header=FALSE,sep="")
subject_train <- read.ta... |
d3efbfc9992c0590839147d3bf467b3bdb075027 | a214e706c875e0af7221c0c9ae193d9d93ee20a7 | /R/PureCN.R | 7c6abfff6e00babb8b9e98d3cbf8edb5858aee97 | [] | no_license | inambioinfo/bioinformatics_scripts | fa2292e91ad4134204a09ace27c8a91ae70fa34c | 3a23611f382b7f3dd60e5e2abe841b84408c0d44 | refs/heads/master | 2020-03-20T21:17:10.163061 | 2017-03-28T23:41:39 | 2017-03-28T23:41:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 539 | r | PureCN.R |
#RTFM
#http://bioconductor.org/packages/devel/bioc/vignettes/PureCN/inst/doc/PureCN.pdf
## try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite("PureCN")
library("PureCN")
browseVignettes("PureCN")
bam.file <- system.file("extdata", "ex1.bam", package="PureCN", mustW... |
6863c5a59ab40e30287a9538854181dd972bd15c | 9f8a019d4d19bc763821361499694b606172f7f0 | /man/collate_roclet.Rd | f5f01226b9d6d44f6e9cd19f017a3cd0f7198025 | [] | no_license | miraisolutions/roxygen2 | 92111663d2cdb1dd5eb73ff933e10c6575078909 | 157e8913036954c6216354ef4aa6d2660b6ef95f | refs/heads/master | 2020-12-25T10:35:39.069369 | 2013-06-12T08:41:15 | 2013-06-12T08:41:15 | 10,638,946 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 787 | rd | collate_roclet.Rd | \name{collate_roclet}
\alias{collate_roclet}
\title{Roclet: make Collate field in DESCRIPTION.}
\usage{
collate_roclet()
}
\value{
Rd roclet
}
\description{
Topologically sort R files and record in Collate field.
}
\details{
Each \code{@include} tag should specify the filename of
one intrapackage dependency; ... |
4cecf274f500f86b7e8b358f49e0813a03b8c2df | 51e1c0fe739c69ee375b8609e707e553f588bc01 | /Referrals.R | 158bf336df163bd360d2c0c0a6a930d859fa5af3 | [] | no_license | richgillett/WalesReferrals | fe56cc629410b26c161c2baba902038ec975fbe8 | e764f9fd8a696d5f2a71f03e3f8b0cff2fe15485 | refs/heads/master | 2020-09-10T05:44:09.925187 | 2016-08-29T20:03:48 | 2016-08-29T20:03:48 | 66,875,467 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,458 | r | Referrals.R | # Referrals in NHS Wales, Rich Gillett
# https://statswales.gov.wales/v/BpON
# you'll have to export as csv from StatsWales, and clean the dates
# remove any summary totals
#rm(list = ls())
setwd("C:/Users/Rich/Documents/R/Referrals")
#read the data which is from statswales
raw <- read.csv("StatsWalesCleaned.csv", he... |
2bf3e873704a467dd047bf5528161f5d5488a119 | 69668ad25d79800fed0a6efcf6fc8b0639d34e9c | /Public/Salmon/Salmon.R | d06eaaeb81536d86527084223ccc64ede6f9a3a0 | [
"MIT"
] | permissive | plbaldoni/epigraHMMPaper | 96dc6f18997a42ad8797acd17d86ae1712caa8ef | 93cab7c12bac3ca96c5d4e23cbe5c7aead1f1bc4 | refs/heads/main | 2023-03-30T20:27:08.611206 | 2021-04-10T10:51:02 | 2021-04-10T10:51:02 | 301,452,680 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,901 | r | Salmon.R | # Creating transcriptome index (from https://hbctraining.github.io/Intro-to-rnaseq-hpc-salmon/lessons/04_quasi_alignment_salmon.html)
if(!file.exists(file.path('Homo_sapiens.GRCh37.cdna.all.fa.salmon.index','versionInfo.json'))){
system('mkdir Homo_sapiens.GRCh37.cdna.all.fa.salmon.index')
system('salmon index ... |
dededd932653a0db70708512d5ddadc307d18d1f | 4faf55f71897a90c19491972bd7f7038ce116272 | /R/methyl_sim.R | 1db283c2da7ce01a6aa4c37f1bd46f8bafeb3623 | [] | no_license | cxystat/AFb | d45ac279e2af482bb4422344bb4aa2e70c937ffc | b58a7dae3d2fa5ab140914b733d712c709447850 | refs/heads/master | 2021-07-03T04:42:09.376279 | 2021-06-15T08:24:48 | 2021-06-15T08:24:48 | 239,228,835 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,904 | r | methyl_sim.R | ## Data Simulation
##
## @param n Number of subjects.
## @param tot Total length (in base pairs) of the region being tested.
## @param il Length (in base pairs) of CpG island.
## @param prop Proportion of true causal/associated basis.
## @param strg Effect size. Effects are selected from U(-strg, strg)
## distribution.... |
2e28ce554c34d096051a6dc38abf064471bbf146 | 9b21a78292f73898d450253b82f4cb81849cc3b0 | /Cross The Form.R | 0548272fc8ddcf139c2d48a44d64a33b7c77abcc | [] | no_license | gaoyangxihehe/Crawling-Data-By-R | b173a5a7c172b4dbfae9b4b964a12964c9831064 | 0560e218c251648c9e108d0509bade0fc3818fd5 | refs/heads/master | 2021-05-11T03:42:15.516543 | 2018-01-18T10:43:18 | 2018-01-18T10:43:18 | 117,922,720 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 841 | r | Cross The Form.R | formurl <- "http://open.xmu.edu.cn/oauth2/authorize?client_id=1010&response_type=code"
session <- html_session(formurl)
#创建会话
form <- html_form(session)
#得到网页内的所有表单,以list形式返回
str(form)
form <- form[[1]]
#提取我们想要的表单
UserName <- "*******" #这里填写你自己的学号
Password <- "*******" #这里把password替换成你自己的密码
form <- set_val... |
95bc3a393b4614d6e303ad763433ad1b34764984 | 69162f720f226384a4f48c8ab5f72af856ff8e6d | /src/Model/DTModelTrain.R | 20eae7196ed0ca04a0ab095877be1ce77f9f027e | [] | no_license | SoftServeSAG/aws_anomaly_detection | 4899fdeb93218fa6f50cda190152b5e2211981ad | ca5c4d924032efe770eaaf238e721fb3d305d58d | refs/heads/master | 2021-09-13T09:40:48.016445 | 2018-04-28T02:00:33 | 2018-04-28T02:00:33 | 107,226,234 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,793 | r | DTModelTrain.R | dynamicThreshold.train <- function (ts.agg,
periods=NULL,
train.params = list(
mode = c("expert", "simple")[1],
sensitivity = c('High', 'Medium','Low')[2],
params = list
... |
4a95211c945bb74567e997f7de9230619c12a512 | 04a7e4899d9aac6d1dbb0c37a4c45e5edb4f1612 | /man/latex_color.Rd | 8dc0db0f054d9f60373d7fd6f4d9b3d6630f0a0a | [
"MIT"
] | permissive | pbs-assess/csasdown | 796ac3b6d30396a10ba482dfd67ec157d7deadba | 85cc4dda03d6513c11350f7f607cce1cacb6bf6a | refs/heads/main | 2023-08-16T17:22:18.050497 | 2023-08-16T00:35:31 | 2023-08-16T00:35:31 | 136,674,837 | 47 | 18 | NOASSERTION | 2023-06-20T01:45:07 | 2018-06-08T23:31:16 | R | UTF-8 | R | false | true | 445 | rd | latex_color.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kable-extra-non-exports.R
\name{latex_color}
\alias{latex_color}
\title{latex_color is a \link{kableExtra} non-exported function}
\usage{
latex_color(colors, escape = TRUE)
}
\arguments{
\item{colors}{colors}
\item{escape}{escape}
}
\descrip... |
d560444f9aa9da9a743189b3da2fa9c3c39f33b3 | 24679e1521fc631120ad1dfb00371896002ab066 | /preparingData.R | b22855da690221332d3f8d683f803f5a37e5748a | [] | no_license | harrig12/lil-bioinf | 61b412a47f3d1b648317f3eaac7f9ce6e526ab76 | 8115a92a1ded4fe4c1b3b4733c53bb776d00dfe5 | refs/heads/master | 2020-09-03T22:52:36.330962 | 2020-01-22T01:08:14 | 2020-01-22T01:08:14 | 219,593,964 | 0 | 0 | null | 2020-01-19T17:32:50 | 2019-11-04T20:49:33 | R | UTF-8 | R | false | false | 6,994 | r | preparingData.R | # preparingData.R
# Author: Gabriela Morgenshtern
# Date: Jan 2020
# Version 1.0
#
# This script works through downloading, processing, and integrating information from the
# STRING and GOSlim databases on Saccharomyces cerevisiae, in preparation for visualizing
# a network of high-confidence yeast genes with the "mito... |
87d511ee4065c8cc2ee62b4a94ff3e8abc7c7d17 | fa9b0a7d8e31396f970c18448c88d8240ec6dd37 | /model_code/similarity.r | 1bfeb004749590baa2abd1c651ac9310b7a7b637 | [] | no_license | michael-franke/fuzzy_action | 4c4dacf0eaf1147375127f582d5d848a4f24a35e | 56b9ea899e6c29cecc7190fac31b3d725655df3b | refs/heads/master | 2021-01-10T08:08:29.266706 | 2016-04-12T09:49:27 | 2016-04-12T09:49:27 | 55,240,893 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,806 | r | similarity.r | ## main function: get_similarity
##
#### creates a similarity matrix between states
###### $ns$ is the number of states
##
## example call:
##
#### get_similarity(10)
##
## visualize results:
##
#### plot_similarity(get_similarity(10))
require('ggplot2')
require('reshape2')
get_similarity = function(ns, weber_fract... |
d553c196c9d2ef7067db2a325a1af04e2c671fcc | 9b2114f3bf672fd7d4825c1f045b58f2b4709df2 | /man/predict.mfbvar.Rd | fa5923d2b8912354275bf5b5f2ab9437ce6d56b2 | [] | no_license | ayotoasset/mfbvar | 18b9da360e4e41ab0fa3c8115222ddde69ac339b | 518f77b7e2226256e1a68fe3a5f1b4deda87af7b | refs/heads/master | 2020-06-21T15:16:46.438319 | 2019-05-09T07:16:06 | 2019-05-09T07:16:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 945 | rd | predict.mfbvar.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interface.R
\name{predict.mfbvar}
\alias{predict.mfbvar}
\title{Predict method for class \code{mfbvar}}
\usage{
\method{predict}{mfbvar}(object, pred_quantiles = c(0.1, 0.5, 0.9),
tidy = FALSE, ...)
}
\arguments{
\item{object}{object of cla... |
d7c14cde055ff516206c27b3072f38527c24a0b9 | 19105c698572fb475facff1a0db4278cdc1a0c0e | /R/intracranial_eeg_data.R | 8c1ce3d3769810dfe32d95fd46f620fa8563537d | [] | no_license | AndrewFerris/BayesSpec | 5dfe65f946da2726d0aa65ecadc2b448d7d97e49 | a51f2c174916028ad81b74d63875d3a11cd0016b | refs/heads/master | 2021-01-20T02:38:26.893041 | 2017-04-26T03:56:44 | 2017-04-26T03:56:44 | 89,435,621 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 463 | r | intracranial_eeg_data.R | #' @name intracranial_eeg
#' @docType data
#' @aliases intracranial_eeg
#' @title Intracranial Electroencephalograph (IEEG) Dataset
#' @description A sample of IEEG data from a subject in an interictal state.
#' @usage data(intracranial_eeg)
#' @format A vector time series of 6,000 observations of intracranial electroe... |
b61bdd336741c090311f808722f812995aec6e00 | 9bb764a46886ed9b8d1ff21055163d52258ee138 | /man/plot_coexpression.Rd | 6188f0b98b32cbdc184f90ee37fb0992626c96a3 | [
"MIT"
] | permissive | MarioniLab/geneBasisR | 422309db71b5da116bdf965b01f7af5e9f00d38c | 1e81fa70ab4457466706314e13fcd3223770495e | refs/heads/main | 2023-06-21T21:52:11.899681 | 2023-06-12T11:22:21 | 2023-06-12T11:22:21 | 327,073,039 | 13 | 3 | null | null | null | null | UTF-8 | R | false | true | 621 | rd | plot_coexpression.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualization_functions.R
\name{plot_coexpression}
\alias{plot_coexpression}
\title{plot_coexpression}
\usage{
plot_coexpression(sce, genes, title = NULL, ...)
}
\arguments{
\item{sce}{SingleCellExperiment object containing gene counts matrix... |
53ab906c85ce7887ec1491b0fb79e2227d1e39d5 | ecad2f65ae1b55e9497198ede38e6312d77ace4d | /tests/testthat/test-template-funs.R | 410c8a6aecd75def365518895c455fde173ac95d | [
"MIT"
] | permissive | fmichonneau/sandpaper | 3cfaff895eda905a8f1155cf5d7efc1163542d3b | 17f02d56be89ca4aef1a6b3d7e0c32bff3aca391 | refs/heads/main | 2023-08-03T15:06:27.207574 | 2021-05-27T00:06:13 | 2021-05-27T00:06:13 | 380,282,279 | 0 | 0 | NOASSERTION | 2021-06-25T15:35:35 | 2021-06-25T15:35:34 | null | UTF-8 | R | false | false | 353 | r | test-template-funs.R | test_that("template files point to the right places", {
expect_equal(fs::path_file(template_gitignore()), "gitignore-template.txt")
expect_equal(fs::path_file(template_episode()), "episode-template.txt")
expect_equal(fs::path_file(template_config()), "config-template.txt")
expect_equal(fs::path_file(template_li... |
f6e50bf2ad74ae7f2d1768339f4797472d34940d | fccda946aeab155ab523e683537e0f8cb5ecac8e | /man/getLineageTime.Rd | 048825d9379f8989fef066b8c1916cba60be53da | [] | no_license | lingxuez/SOUPR | d2931a89f46b310e5dc8f0bf2d817d0085b6dd1e | 68358c79a40b82174605fdb249e286bd7fc5eee3 | refs/heads/master | 2021-03-22T05:04:26.405694 | 2018-10-17T02:35:32 | 2018-10-17T02:35:32 | 122,891,238 | 8 | 7 | null | null | null | null | UTF-8 | R | false | true | 742 | rd | getLineageTime.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SOUPlineage.R
\name{getLineageTime}
\alias{getLineageTime}
\title{Decide cell pseudotime}
\usage{
getLineageTime(lineages, membership)
}
\arguments{
\item{lineages}{A list of vectors, one per lineage,
each containing the ordered cluster labe... |
d11729d95823a6c53d2c338aeca5a927a1e1f9ad | fe53412ce862b91645f9ac590f6e51121bef64f2 | /Powers.R | ee2301476cdd417e5c48648d6dba8aaa390ff1c5 | [] | no_license | Dwopplee/032-Proj | 36ef7cdfaabc21a9f4c906edd36c3d8dd065b7ac | d49cf19d996935addb00e270ada1e4c9622937cd | refs/heads/master | 2020-08-21T07:53:04.302799 | 2019-12-09T00:45:25 | 2019-12-09T18:46:27 | 216,113,972 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,443 | r | Powers.R | rm(list = ls(all = TRUE))
# Sourcing this file takes my machine slightly less than 1 minute to run.
# This is the first iteration of the model.
# We find the "optimal" polynomial relationship for each predictor with our
# dependent variable by repeatedly splitting our data set into training and test
# sets, then ite... |
e68275e737da7680142c5f22f0bb29704446163e | ee0689132c92cf0ea3e82c65b20f85a2d6127bb8 | /trg/iimkpv-d4.R | cda7db27ac224e9828359b82977acf35cd815e35 | [] | no_license | DUanalytics/rAnalytics | f98d34d324e1611c8c0924fbd499a5fdac0e0911 | 07242250a702631c0d6a31d3ad8568daf9256099 | refs/heads/master | 2023-08-08T14:48:13.210501 | 2023-07-30T12:27:26 | 2023-07-30T12:27:26 | 201,704,509 | 203 | 29 | null | null | null | null | UTF-8 | R | false | false | 609 | r | iimkpv-d4.R | #Day 4 - IIM Revision
(gender = sample(c('M','F'), size=3, replace=T))
(gender = sample(c('M','F'), size=30, replace=T, prob=c(.7,.3)))
t1= table(gender)
prop.table(t1)
(course = sample(c('BBA','MBA'), size=30, replace=T, prob=c(.5,.5)))
summary(course)
courseF = factor(course)
summary(course)
summary(courseF)
(g... |
949bb47f11729c56fb3cc19869160a77564f383f | 9e8fcdf0d7f018f540dde7a65d9b3f2d65c9cbc6 | /man/median_impute.Rd | beb0192addb3720f66867f4eb5dae8e7a0f3c402 | [
"MIT"
] | permissive | yiheng-aug30/metaboprep | 6c02797bd3949c593d8ed70db6e7dcf67cea2eeb | 500b051ad8174a54f11b52caa41b9c57f14dcdc4 | refs/heads/master | 2023-08-29T08:14:57.380002 | 2021-11-15T13:27:40 | 2021-11-15T13:27:40 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 918 | rd | median_impute.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/median_impute.R
\name{median_impute}
\alias{median_impute}
\title{median impute missing data}
\usage{
median_impute(wdata)
}
\arguments{
\item{wdata}{the metabolite data matrix. samples in row, metabolites in columns}
}
\value{
the matrix pas... |
b304e0e2edb48990afd1ddad3d83594608c83c76 | 3ae8b98cf7e343aa355bf4886d857d4cf6731807 | /Data_Summarization/index.R | 5c68d6f336ade4f3518dbc329e3b135ba482f25b | [
"MIT",
"CC-BY-NC-SA-4.0"
] | permissive | muschellij2/intro_to_r | 2e9bf76c94dd6aea66add18a6af0fa968a4e7c96 | d7edbda03dd75eaa454999a041dc9f4a811d0b36 | refs/heads/gh-pages | 2022-01-14T22:37:14.262179 | 2021-05-18T21:55:04 | 2021-05-18T21:55:04 | 94,378,579 | 6 | 16 | MIT | 2022-01-06T14:25:41 | 2017-06-14T22:39:55 | HTML | UTF-8 | R | false | false | 6,787 | r | index.R | ## ---- echo = FALSE, message=FALSE, error = FALSE------------------------------
library(knitr)
opts_chunk$set(comment = "", message = FALSE)
suppressWarnings({library(dplyr)})
library(readr)
library(tidyverse)
library(jhur)
## -----------------------------------------------------------------------------
library(jhur... |
6d132e998b590b7a8044483100ef634c27e27d32 | 8df46ac90b787ab113e1d665ee6f5aa2091f9a5a | /Analyses/Experiment_sup_Prob/4a_modelling.R | 31f99b14f66c99db27172b7be92077fab3d916ad | [] | no_license | warren-james/Breaking_symmetry | ce8973954a6c9a1c916b84d36f403addbb8856a6 | aa33701d90d00e1d07aec41a9674f07debc1bfc4 | refs/heads/master | 2022-09-19T23:31:15.955310 | 2022-09-08T08:41:31 | 2022-09-08T08:41:31 | 140,823,729 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,906 | r | 4a_modelling.R | #### Modelling probability matching study ####
# Models to make:
# - fix to "most likely" side without the LFA
# - Same as above but for accuracy
#### Library ####
library(tidyverse)
library(tidybayes)
library(brms)
library(rstan)
# NB: Not sure which to use just yet... we'll try both though
#### Load data #... |
33471c98d35db9fd346b10cd31d60674f88e3150 | 3a8e307fc6c3f68df79cd4e2c1efaed05437f4d2 | /ArealKernel/malawi_pop.r | 1226299379e9674ea1a459252021d80cc2294ebd | [] | no_license | edenx/PBCanalysis | c2e9e770701b85ecf3ca7eb5d25f2f45799226c8 | b7ce63db30a64e3f8d36034b79b82d3a3dc5e34e | refs/heads/master | 2021-07-07T11:26:51.442347 | 2020-10-22T17:41:35 | 2020-10-22T17:41:35 | 199,621,343 | 1 | 2 | null | 2019-09-09T16:25:06 | 2019-07-30T09:35:44 | R | UTF-8 | R | false | false | 2,315 | r | malawi_pop.r | library(sf)
library(raster)
library(tidyverse)
library(tictoc)
library(ggplot2)
library(dplyr)
library(reshape2)
source("WrapperFunc.r")
# Data preprocessing ------------------------------------------------------------------------------
## Get population density data from FB HRSL
# geotiff_file <- "https://data.humd... |
8865cd39c84495106345b8913fe24b7082b25131 | 9a49c0e424edfa60ab81fc07693f9c05f3cf984e | /man/append.AbstractCBS.Rd | 37183e96e60f977cd1412b4bfea3edf06ac58c17 | [] | no_license | HenrikBengtsson/PSCBS | c6967835662c27512e668f1a63e5cf3fccb10b3c | 4f6ccedc90d8cf58344b8dd436b5b9c82dab07ed | refs/heads/master | 2023-01-10T01:03:29.915343 | 2021-10-23T08:00:28 | 2021-10-23T08:00:28 | 20,844,732 | 9 | 6 | null | 2018-04-11T02:17:13 | 2014-06-15T00:15:30 | R | UTF-8 | R | false | false | 1,082 | rd | append.AbstractCBS.Rd | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% AbstractCBS.RESTRUCT.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{append.Abstr... |
11f1f7441408a57c285c63cb7fbc8d2bac3a0424 | c391a620ce73c9ed23c530a8f33db0bfca4db7c7 | /server.R | fff9449424e24d6e16edf824bbe2b0632cf7e2ab | [] | no_license | Chrisss93/CANSIM-Shiny-App | 92ab2c1b237e5fabe602d251b9c26ada6cc7982b | ab3c17f1b07ca5c08b1760f50d416b283d8b5915 | refs/heads/master | 2016-09-06T17:21:41.038595 | 2014-09-26T15:53:58 | 2014-09-26T15:53:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,919 | r | server.R | ### [BEGIN] Conditional package installation and sourcing
required_packages <- c("shiny", "ggplot2", "scales", "plyr", "reshape2", "devtools", "shinyIncubator")
uninstalled_packages <- required_packages[!(required_packages %in% installed.packages()[,"Package"])]
if(length(uninstalled_packages) > 0) {
install.packages... |
f50f192ad9b1445e9b6896314766854f90dae8c1 | 2487dfa8bb23d3e1a9000dba265c416cccb69939 | /demo/UserGuide07.R | f00698c83893e4e546e18b03ce8cdc40db8871cd | [] | no_license | cran/R2MLwiN | f2c5694b60e3a392ad516ab63689c642f3fc72bb | 593d94db244d3fc07538aedf83fc183859b9f5fd | refs/heads/master | 2023-03-21T15:14:11.554599 | 2023-03-14T04:40:02 | 2023-03-14T04:40:02 | 17,681,793 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,937 | r | UserGuide07.R | ############################################################################
# MLwiN User Manual
#
# 7 Modelling the Variance as a Function of Explanatory Variables . . . 89
#
# Rasbash, J., Steele, F., Browne, W. J. and Goldstein, H. (2012).
# A User's Guide to MLwiN, v2.26. Centre for Multilevel M... |
7e64d47f58b97b2fd23f9ee3916df62df570d568 | 45b86ab61f57e639501425eb137e7cbcfd906d4a | /prelab7.r | 7cd8f59ceac3b09a7c0fee4436772a398d9de633 | [] | no_license | ZacharyThompson/math338 | b2abf61c451285502915d9321d6863a50a497395 | 1d8507cf5d7eed124852dbd8f19b5578b1ee91bb | refs/heads/main | 2023-04-28T07:37:55.690218 | 2021-05-22T21:10:56 | 2021-05-22T21:10:56 | 358,526,495 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 501 | r | prelab7.r | # Ch5 2-propZtest vs Chi-Square test
# Practice pg 23 assuming that is not equal
x1=50
n1=1655
x2=31
n2=1652
phat1=x1/n1
phat2=x2/n2
phat=(x1+x2)/(n1+n2)
#Test stats
z=(phat1-phat2)/(sqrt(phat*(1-phat))*sqrt((1/n1)+1/n2))
z
#Pvalue
pval=2*(1-pnorm(z))
pval
#Chi-square
Drug=c('Clarinex', 'Placebo')
Treatments=c('tak... |
0dce3d349dbed31ff38ce933a36e82efa3b80bf5 | f11595ebddcd18bc0dfba671cf362fa030df9219 | /6_R_analyses/figures/fig6_Neb.R | eee45faddf69ef561ae92ac5428b457d696d9004 | [] | no_license | beausoleilmo/Genomic-diversity-in-Darwins-finches | 63ab4175b2a8844d5773ca7b972da48d4a10c320 | c95e58b31175489239a60b7df7ffa81fdbd60ba2 | refs/heads/master | 2020-08-24T18:03:09.821544 | 2019-10-22T12:50:59 | 2019-10-22T12:51:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,351 | r | fig6_Neb.R | library(tidyverse)
library(ggpubr)
library(gridExtra)
df <- read_csv('../data/df.csv') %>%
mutate(Red_list = ifelse(Red_list_two=='treatened',
'Threatened','Non-threatened'),
Red_list = factor(Red_list,levels=c("Threatened","Non-threatened")))
test <- t.test(logNeb~Red_l... |
cf7a3c6872f1efb62614b699f1014251389b8d24 | 8c374f8b433c33bd2989a5cd66c6dff601208efa | /R/format_mr_results2.R | dff0f46dbbe93d0ee047110eee6a992087b5e834 | [
"MIT"
] | permissive | MRCIEU/TwoSampleMR | 2514d01692c95db1e9fbe23f8696e99a12c6ab34 | 592ebe05538558b330c39ddeda0d11b1313ad819 | refs/heads/master | 2023-08-29T22:47:33.163801 | 2023-05-29T20:46:39 | 2023-05-29T20:46:39 | 49,515,156 | 277 | 160 | NOASSERTION | 2023-06-13T00:24:11 | 2016-01-12T16:57:46 | R | UTF-8 | R | false | false | 16,736 | r | format_mr_results2.R | #' Split outcome column
#'
#' This function takes the outcome column from the results generated by [mr()] and splits it into separate columns for 'outcome name' and 'id'.
#'
#' @param mr_res Results from [mr()].
#'
#' @export
#' @return data frame
split_outcome <- function(mr_res)
{
Pos<-grep("\\|\\|",mr_res$outcome... |
bcb2ce4d8e3ae818cd30e120e91be85b376dfaca | 7959c075b8d8fd90c423863d6cc51cb29ea517c5 | /lab_03.R | f27aafe73fc2f899e7bb65ed722f642c252e9632 | [] | no_license | salientsoph/Rexam | d8373e7bbfc85fc38cc203add6572574b88c7926 | 0d0b9cb7fc378654c886ca70ba56498770e8b4a8 | refs/heads/master | 2022-12-24T06:02:13.720153 | 2020-09-25T14:18:31 | 2020-09-25T14:18:31 | 293,553,326 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,828 | r | lab_03.R | # 문제1
# iris 라는 데이터셋이 몇 개의 관측치를 가지고 있는지
# 어떠한 변수들을 가지고 있는지
str(iris)
View(iris)
# 문제2
df1 <- data.frame(
x=c(1:5),
y=c(2,4,6,8,10))
# y = seq(2,10,2)
# 문제3
df2 <- data.frame(
col1=c(1:5),
col2=c('a','b','c','d','e'),
col3=c(6:10))
#col2=letters[1:5]
# 문제4
제품명 = c('사과', '딸기', '수박')
가격 = c(1800, 150... |
ab612f7b904e544855fd0df6d15e3f1c1b451548 | 92493903bd694b01c0bffb1795de1eabeae61339 | /bayes/bayes_decision_boundary_2.R | d5164a18fab6d0574379a72ea4a7a6db3412cecb | [] | no_license | sreepunith/R | d217be08a73f5b87adf7bffab473997e47abfe49 | 9e0f77f906273894ee1ea265a0b29d5800d8310f | refs/heads/master | 2021-01-21T11:46:26.877635 | 2017-05-17T05:04:46 | 2017-05-17T05:04:46 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,224 | r | bayes_decision_boundary_2.R | # This experiment aims at demonstrating how we can plot the Bayes decision boundary
# for a two-category two-dimensional data. The data is sampled from two bivariate
# Gaussian distributions with different means and identical covariance matrix.
#
# To plot the decision boundary, we need to calculate the probability P(... |
ca360aa824a33c9bc8e92da0460a4b1dc9f469d6 | f0d35b6ea0ebe9517537ecdf921bb442f1fd7550 | /ColonelHouNote/src/main/java/com/hn/opensource/eclipse/选中变量高亮显示.RD | 11ef13dd5f0755a2aec5c3ca092dd20fd006d635 | [] | no_license | jiangsy163/ColonelHouNote | 01191a63d51542b09ef23e9662896e8407211119 | 6173c265c82b7b0197846cf621ecebab44073ef6 | refs/heads/master | 2021-01-14T12:47:41.091704 | 2015-11-19T08:40:09 | 2015-11-26T08:41:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 245 | rd | 选中变量高亮显示.RD | Mark Occurences全选
github for eclipse : http://eclipse.org/egit/download/
http://mirror.cc.columbia.edu/pub/software/eclipse/egit/updates/org.eclipse.egit.repository-3.5.1.201410131835-r.zip
色调:85。饱和度:120。亮度:208 |
cd27b5723c35ca8cb12f76dc67007957f9b8c5c1 | 098841409c03478ddae35c4cdf6367cfd65fa3bf | /plot/code/09_imp_eval.R | cb1a99136e3d378284707fa4059509acfcd2f9b0 | [] | no_license | wangdi2016/imputationBenchmark | 0281746b482788c347faf9d96e8288639ba388a6 | 0881121444975cd0a3ee2ce69aaec46c3acd7791 | refs/heads/master | 2023-07-29T10:16:14.004610 | 2021-09-09T20:00:43 | 2021-09-09T20:00:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,595 | r | 09_imp_eval.R | allmtd = list.files('/home-4/whou10@jhu.edu/scratch/Wenpin/rna_imputation/result/procimpute/GSE81861/')
allmtd = setdiff(allmtd, c('viper','screcover'))
mtd = 'saver'
res = readRDS(file=paste0('/home-4/whou10@jhu.edu/scratch/Wenpin/rna_imputation/result/perf/hm_cellline_cor/',mtd,'.rds'))
v = unlist(res)
sexpr = rea... |
01e5bef0c04fff3188ab18409590afa38d028f3a | 6780fb693096344776936b48a2721223182ea19c | /test_with_substitue_and_etc.R | 7eb8e4157ef0359855a6f56c84892e1fc47f7753 | [] | no_license | xueyan2015/R_Library_On_Mac | 5d07d2190a6817422e2e19e90ae1cf5439bd2b08 | 062d3d95a2ba12d28bc1930a3f9871c5bf28a082 | refs/heads/master | 2021-01-20T16:58:52.211233 | 2017-09-10T07:44:03 | 2017-09-10T07:44:03 | 82,813,617 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,749 | r | test_with_substitue_and_etc.R |
library(dplyr)
library(pryr)
library(lattice)
library(pryr)
#this example works
xyplot(mpg ~ disp, data = mtcars)
x <- quote(mpg)
y <- quote(disp)
xyplot(x ~ y, data = mtcars)
subs(xyplot(x ~ y, data = mtcars))
xyplot2 <- function(x, y, data = data) {
eval(substitute(xyplot(x ~ y, data = data)))
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.