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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a7705938b332cfc59ff41ae5fdb8ac955df91d8 | 75e6920c6c8d5c44da0c1c44e3dcc5559efc8e47 | /R/sim.occ.R | 314774a33018de5cd0c228160a40f1dddd227da8 | [] | no_license | cran/fossil | 111edf36c4fe19cd59d52011c1e621e395813c21 | f139d41cea588210fc72eb71910a648d4dab6afd | refs/heads/master | 2021-01-10T20:05:22.617612 | 2020-03-23T10:30:05 | 2020-03-23T10:30:05 | 17,696,124 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 798 | r | sim.occ.R | sim.occ <-
function(total.species = 100, endemics = 0.1, regions = 3, locs = 30, avg.abund = 1) {
cosmop <- round(total.species*(1-endemics))
endem <- total.species-cosmop
end.per.reg <- floor(endem/regions)
extras <- endem%%regions
orig.groups <- matrix(0, total.species, regions*locs)
reg<-1
... |
ab6d077d631ca21f23afdb78391fdec364411f3f | f8b38e2c2e74081fa2e2b9471b2ddeb0f2fb6e0c | /simfiles/oldFiles/20200907_testInvLength.R | 3ebe773c5473a87949e793069e448a691bda0c76 | [] | no_license | SaraSchaal/CoreSim_QTL | ef125cd5b5e4d193c33d907b21837a6f18ba2dbc | e1ba94e5f4c09faf1f981de1fa1e7039445f9274 | refs/heads/master | 2022-05-02T10:30:51.445865 | 2022-04-12T18:20:01 | 2022-04-12T18:20:01 | 138,634,067 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,438 | r | 20200907_testInvLength.R | #### Test for inversion size issue ####
#df.params <- as.data.frame(unique(substr(list.files("./results/Inversion/20200907_testForInvLength",
#pattern = "\\d{13}")[1], 1, 13)))
#colnames(df.params) <- "seed"
df.params <- data.frame(seed = 1)
#folder <- "results/In... |
13f00f497db6fcfaf5df50741c0c0443f2dd5171 | 4cb8a786b8f833fb6fb128cfdcce53674d807e82 | /Hydrology/HydroecologyTools/q167_lp3.R | d61d0a68680b4783549e95ae90bdb425c69275fc | [] | no_license | sulochandhungel/Data-Analysis-using-R | c7427ecf83ed5ddb7f2d3856aee113859077288e | 63476e22cc309efe9af92bd648531843a1211c4d | refs/heads/master | 2023-06-09T08:14:53.563015 | 2021-06-28T03:54:31 | 2021-06-28T03:54:31 | 254,683,739 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,242 | r | q167_lp3.R | q167_lp3.R=function(WYmat){
lp3ff=function(cs,T)
{
F=1/T
shp=4/(cs*cs)
if(abs(cs)<0.00001)
{ans=qnorm(F)}
else
{if(cs>0){
ans=qgamma(F,shp)*cs/2-2/cs
}
else
{
ans=qgamma(1-F,shp)*cs/2-2/cs
}
}
return(ans)
}
temp=matrix(NA,nrow=dim(WYmat)[2],ncol=1)
for (i i... |
254e230fb7638d78f9336cd9a178aa8085c3cd33 | 2813ad438d07f856455d815cdf8e03f469c76ed6 | /man/celsiusServer.Rd | cdd2357a9667021aac6bd1bcfcc9c87834a665e8 | [] | no_license | cran/celsius | 38b0b034cfc3334293b5e2e00b8739cd605b882d | 8cf711f41aad02eb1dd041576318be1bd4549ffe | refs/heads/master | 2016-09-06T00:30:37.282072 | 2007-04-25T00:00:00 | 2007-04-25T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,129 | rd | celsiusServer.Rd | \name{celsiusServer} %__CUT__%
\docType{class}
\alias{celsiusServer}
\alias{celsiusServer-class}
\title{ Object to hold values pertaining to a Celsius Server }
\description{ Holds values like the URL needed to reach the server or
the default timings for accessing the features and samples for the
server etc.}%- mayb... |
902f28db355b0abb3d2ab0fb7decd15226b3899b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/rlist/examples/list.extract.Rd.R | 1cfab8ee177a25cf956a5707e30469ac0c25f8ae | [] | 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 | 204 | r | list.extract.Rd.R | library(rlist)
### Name: list.extract
### Title: Extract an element from a list or vector
### Aliases: list.extract
### ** Examples
x <- list(a=1, b=2, c=3)
list.extract(x, 1)
list.extract(x, 'a')
|
2edb46e4ca27b718a9872ce8faede8a04649b1dd | 7015b80b12f01a1c064cadbf7d8f4c1f84e278e8 | /source_file.R | 0b487ab79952e45a44bcf5187c5baef2f16f0e02 | [] | no_license | MatixR/bachelor_thesis | 75f84f06c16f7f80ea25fd5a3a70165315a11b24 | 5b9fd59fb510d697e690211427b641eb35b7be36 | refs/heads/master | 2020-03-23T06:39:45.425232 | 2018-06-27T10:10:10 | 2018-06-27T10:10:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 660 | r | source_file.R | ##----------------------------------------------------------------------------------------------------------##
## Source file.
##----------------------------------------------------------------------------------------------------------##
library(xts)
library(zoo)
library(SpatialExtremes)
library(rugarch)
library(extRem... |
2059f8ba786afde8975f307f79fd7fc1c0ac448c | 45dee4934f377fba8a4fde7030f4741f0b610cb2 | /tests/lmer-conv.R | d4b14b8c0bd503ad64a6839282214dfcb6c90f9e | [] | no_license | jknowles/lme4 | e7649d74ea5c6ed90686ce5cd2ea3376b7592c50 | f8f760a512434199901db78b9269c245cca82e1f | refs/heads/master | 2021-01-16T19:50:54.277800 | 2015-02-01T04:04:03 | 2015-02-01T04:04:03 | 30,161,374 | 1 | 0 | null | 2015-02-01T22:00:09 | 2015-02-01T22:00:08 | null | UTF-8 | R | false | false | 595 | r | lmer-conv.R | ### lmer() convergence testing / monitoring / ...
## ------------------
### The output of tests here are *not* 'diff'ed (<==> no *.Rout.save file)
library(lme4)
## convergence on boundary warnings
load(system.file("external/test3comp.rda", package = "Matrix"))
b3 <- lmer(Y3 ~ (1|Sample) + (1|Operator/Run), test3comp... |
c9ad02417fd448947125ac3c64c52787e5c6140e | 888b76fabb8b490b2f92daa1e53b84940eaf83eb | /analysis/seedling_mortality_analysis/route.R | c9f244f2d407df99d0eaf892f4afc9e1748d85dd | [] | no_license | jmargrove/ForestFloodingSensitivityAnalysis | ba398074537f23c76264bb9ebffaf7390895866c | 43eaa322207aa8d8433ce42d359e72909406d1a5 | refs/heads/master | 2021-11-22T03:22:30.804283 | 2018-10-31T15:28:11 | 2018-10-31T15:28:11 | 120,295,376 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 91 | r | route.R | # route for seedling mortality analysis
route <- './analysis/seedling_mortality_analysis/' |
cb3e389d6b9f2151b33e7ffa5adb0fb917a7ebb4 | ac5cf1135044426715a39d041348afd25c68d585 | /Code/ED_5pextvals_results.R | a259ad68f6a977f0b3deee2ec8d908459734dc19 | [] | no_license | OScott19/ResearchProject | a173773130ed4c3ae151530691a514b96ac692c2 | 7f39f7202ee0643985d9b239309033a3e4f3c41d | refs/heads/master | 2022-11-11T20:09:06.123108 | 2020-06-26T14:52:36 | 2020-06-26T14:52:36 | 234,543,392 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,739 | r | ED_5pextvals_results.R | # this script just created a tree for each scenario, and didn't do an EDGE analysis
# we are going to read in each score, calculate the tree PD, PDLoss and ePD under each scenario
# we are then going to plot it
# Housekeeping
rm(list=ls())
graphics.off()
setwd("~/Documents/ResearchProject/Code/")
# getting ready ... |
ed8d0911ce4e1ef48b6b5325e4fe3cb847ad3333 | 5c0bbe2c09d7450e565966c5928ec81a261b70a5 | /gamR/uniqgenesets.R | 3116e86618e96f8ad5a2fc6311d05fa207ca5831 | [] | no_license | ramadatta/ShinyApps | c73ba31f3a719b96aac7190351d3e14076e86c1b | 24c2576c4e47b8bd60272bd2932ba9600186f03e | refs/heads/master | 2023-04-06T21:01:24.417113 | 2023-03-16T03:28:59 | 2023-03-16T03:28:59 | 230,216,276 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,526 | r | uniqgenesets.R | #' uniqgenesets function
#'
#' This function plots the gene arrow map with directionality, aligns the genes, add labels above the gene arrow,
#' order gene sets based on presence/absence and generate a gene arrow map for distinct gene sets
#' @export
#'
uniqgenesets <- function(colpal, geneName, arrowhead_height, arro... |
8c17ad2b09b5e2e670a2430ca54af979385ab54e | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/ypr/examples/ypr_report.Rd.R | fa94f6d4d0db7f4cd958e8d0480fa45c3f54caa2 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 197 | r | ypr_report.Rd.R | library(ypr)
### Name: ypr_report
### Title: Report
### Aliases: ypr_report
### ** Examples
## Not run:
##D cat(ypr_report(ypr_population(), file = tempfile()), sep = "\n")
## End(Not run)
|
0a44d5d9efdb857bfef19e46c56f2e953060cc92 | 4b5d28e6a031fc0fae5f3da40ffb1b593c18cd48 | /man/pairwise-package.Rd | 12bab850b84489e6f5066b3c0845e7172b542e7d | [] | no_license | cran/pairwise | 446b603f99c237bda8dcc291eeeb916b226eaccc | 1f355868d5fb52777e39d5aced27c934984b527b | refs/heads/master | 2023-04-28T04:42:27.164640 | 2023-04-17T20:10:02 | 2023-04-17T20:10:02 | 17,698,183 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 6,930 | rd | pairwise-package.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pairwise-package.R
\docType{package}
\name{pairwise-package}
\alias{pairwise-package}
\alias{pairwise}
\title{Rasch Model Parameters with pairwise}
\description{
Performs the explicit calculation -- not estimation! -- of the Rasch item parame... |
614e77345999149601a64316d61b83107b113296 | 7b4d8ad2edc8889373d497303fdf0ce95a15fe96 | /analysis/stage5_R_analysis.R | 1c858253df0920d2c41509cf8cd528d1f82b168f | [
"MIT"
] | permissive | apal4/cs638project | 7b845dddca8ce316195e7c4a33288c44fbda4e6a | 99ef308d6c1930297cb57bc95dca4241b3f15293 | refs/heads/master | 2021-04-29T11:03:09.834648 | 2016-12-18T04:06:00 | 2016-12-18T04:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,378 | r | stage5_R_analysis.R | #############################################
########### read in and explore #############
#############################################
d <- read.csv("labeled.csv")
varDescribe(d)
str(d)
# convert popTrend to be a continuous var --> add order to levels so it makes sense
# first convert Unknown field to NA's for cle... |
47c44615a440899cb5a189c0615cd5f6cee2c4ad | 3d89548bdda5824889a5f494640e255bc11da095 | /plot3.R | ae6a615a0f3aa0b8303c2ba06aa3aaceea6a2b15 | [] | no_license | mooly/ExData_Plotting1 | 39832675170e764664379110aab87f17a0d5234a | d9b844fb6759607dfded0763d9aeeaa8e84c0306 | refs/heads/master | 2020-12-25T06:25:36.936234 | 2015-03-08T16:04:46 | 2015-03-08T16:04:46 | 31,740,121 | 0 | 0 | null | 2015-03-05T22:27:23 | 2015-03-05T22:27:21 | null | UTF-8 | R | false | false | 2,312 | r | plot3.R | # This script creates a histogram plot from household power consumption data
# collected by University of California Irvine (UCI).
#
# Original data description, info and download location:
# https://archive.ics.uci.edu/ml/datasets/Individual+household+electric+power+consumption
#
# Note: Data requires approx. 1... |
8a8949e2b56f57e769a50f3a7ff1b8132dd2078a | 8799b6d8763ef537a8dc1a42746af0c96ffff94c | /plot4.R | ebd2c24af39f4d6814292f7645ebb23bc578632b | [] | no_license | ampatha/ExData_Plotting2 | ad7f762e552a5c119e6f6b83939c5c0d386f4549 | 5011f24e6655b6423e308f04bde4ede809f3a17f | refs/heads/master | 2016-09-06T03:05:14.804859 | 2015-07-26T23:12:11 | 2015-07-26T23:12:11 | 39,745,612 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 803 | r | plot4.R | ## Sanem Seren Sever C_EDA - A2
## plot4.R (plot4.png)
###############################
## Attention: WD must contain the source data
## Read data for plotting:
source("LoadData.R")
##Filer Coal
sccCoal <- sccData$SCC[grep("[Cc]oal", sccData$EI.Sector)]
emisCoal <- emisData[emisData$SCC %in% sccCoal,]
##Get Yearly Tot... |
b811b56746d1af46e6a860b223949b1f45391f50 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/linear.tools/examples/check_vec_meaningful.Rd.R | bfc564ebc285efd3bef7431c3c4f87fd5d683b70 | [] | 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 | 543 | r | check_vec_meaningful.Rd.R | library(linear.tools)
### Name: check_vec_meaningful
### Title: check x is a meaningful vector
### Aliases: check_vec_meaningful
### Keywords: internal
### ** Examples
check_vec_meaningful(c(NA,NA)) # NOT PASS
tryCatch(check_vec_meaningful(x=list(NA,NaN)),
error = function(err){
print(err)
... |
b55cda57a47a850035edc4e42d5cb9c5754bc472 | 05c70039a3492543ab1f6f79367cbe99dae21a0a | /poLCA-mixture-of-gaussian.R | 5d0d9bba2ec4f5e71009b85f9c58238edd0ff5ac | [] | no_license | bocaiwen/algorithm-from-scratch | 7586cef291029128a9cd178a373771236134f5fd | 1dbc3983144390606101f6dfb926a2d21f399d20 | refs/heads/master | 2021-04-03T01:29:50.298277 | 2018-03-12T04:42:51 | 2018-03-12T04:42:51 | 124,834,363 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 310 | r | poLCA-mixture-of-gaussian.R | #!/usr/bin/env RScript
library(poLCA)
mof = read.csv('mixture-of-gaussian.csv',header=FALSE)
mof$V1 = as.integer(mof$V1) + 5
mof$V2 = as.integer(mof$V2) + 5
f = cbind(V1, V2) ~ 1
lca2 = poLCA(f, mof, nclass=2, nrep = 5)
lca3 = poLCA(f, mof, nclass=3, nrep = 5)
lca4 = poLCA(f, mof, nclass=4, nrep = 5)
|
9835ebad1fdc2310ce0729ca95d4daac2d2c17db | 1ab9c4951f63b6fcb1e636c2d0124d99fb28c619 | /man/psoptim-methods.Rd | d87a88e05e4ac629d062f594d61e3e2c8ff72495 | [] | no_license | cran/pso | 9b7fa1912c5033b4ec6c9fe6f4e339864cf3d666 | 067841ef07471b1e20848cc90cb1ae949c9e7760 | refs/heads/master | 2022-05-06T05:02:10.062793 | 2022-04-12T15:10:06 | 2022-04-12T15:10:06 | 17,698,774 | 5 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,088 | rd | psoptim-methods.Rd | \name{psoptim-methods}
\docType{methods}
\alias{psoptim-methods}
\alias{psoptim,ANY,ANY,ANY,ANY,ANY-method}
\alias{psoptim,test.problem,missing,missing,missing,missing-method}
\title{Methods for function psoptim (Particle Swarm Optimization)}
\description{
General implementation of particle swarm optimization usable as... |
6ffe561c1d72e6f651b7faa5c146360013352d8c | 5fabfb8ce7863ffe6daa91dac2971ee85f9d2ad7 | /man/getFullPartisAnnotation.Rd | ffd9357cdf01c889223ca7082282745aece513f4 | [] | no_license | Pezhvuk/sumrep | a1ff159aa8b025d15c167e434591788bae8cc4b2 | 275c6981f57b14db51746735f32e1ecf6bf6c486 | refs/heads/master | 2020-04-30T12:14:39.350531 | 2019-01-19T20:44:06 | 2019-01-19T20:44:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 509 | rd | getFullPartisAnnotation.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PartisFunctions.R
\name{getFullPartisAnnotation}
\alias{getFullPartisAnnotation}
\title{Do extended partis processing of annotations}
\usage{
getFullPartisAnnotation(output_path, output_file, partis_path)
}
\arguments{
\item{output_path}{Desi... |
b3e47df241441398c8e919b9a1f2b58a3cdd8dc3 | 1a4c806a0745850e725040bca561fa109c0d5019 | /stat/NeoThy/src/Riaz.R | abab5b9b5df1a92abc9dd8c7fccf87508d96c470 | [
"Apache-2.0"
] | permissive | tipplerow/jam | 9037ae5aefd6f38315855c0f893eb8fa9d842bf3 | 464b78819f064a248425b4703dd96fa4f337ea67 | refs/heads/master | 2021-05-09T05:19:08.698810 | 2021-02-12T17:01:29 | 2021-02-12T17:01:29 | 119,304,231 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,283 | r | Riaz.R |
Riaz.colorMap <- function() {
data.frame(Response = c("CR", "PR", "SD", "PD", "NE"),
col = c("green", "yellow", "red", "black", "cyan"),
pch15 = c(15, 15, 15, 15, 4),
pch16 = c(16, 16, 16, 16, 4))
}
Riaz.load ... |
56be416a71c7134477e0d294b41e332eb332365e | 2549aca74c0be9048a0d0f9dfdcbd3634d1e47ab | /R/plot.permDif.R | 23a40c9e64bc180391f435578628c476fcf75cba | [] | no_license | PeterVerboon/lagnetw | 74107e89406d9e1b2c0e8ce318a347e5d06cb130 | 61071f8502140c78229b7169fda22ff07df89e5c | refs/heads/master | 2021-07-08T17:56:47.478571 | 2020-08-03T15:26:26 | 2020-08-03T15:26:26 | 160,812,465 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,044 | r | plot.permDif.R |
#' Function to plot the results of the permDif function for network connectivity
#' differences between two groups
#'
#' There are five lot types. The type number indicates what figure is plotted,
#' 1 = mean differences total
#' 2 = mean differences auto-regression,
#' 3 = mean di... |
c5a6945d585c8a671a48dba793a886573307eba9 | c6449d068c765254a2d46c51c9efe6ab18a6202e | /man/directionalVariation.Rd | dbc1eb1707872d3d4c159c7a11b31731fb3865a9 | [] | no_license | diogro/ratones | 42fbbe0332b8a8262a4d8b1fe7f7f2a6b6e81d5a | 0f5b02f05bd49698d59db3a64b2dfd1f25d73ebe | refs/heads/master | 2021-01-09T06:47:39.198603 | 2017-07-09T15:03:10 | 2017-07-09T15:03:10 | 35,047,728 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,919 | rd | directionalVariation.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/directional_Variation.R
\name{directionalVariation}
\alias{directionalVariation}
\title{Directional variation}
\usage{
directionalVariation(cov.matrix, line, delta_Z, Wmat = cov.matrix)
}
\arguments{
\item{cov.matrix}{covariance matrix}
\ite... |
c93a9e8111b39dca87b2c72e0bd9f0be20f48582 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/hierfstat/examples/fstat.from.adegenet.Rd.R | 9b3bff904bad6551040832d96910e5a6d33b5667 | [] | 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 | 746 | r | fstat.from.adegenet.Rd.R | library(hierfstat)
### Name: fstat
### Title: Wrapper for fst estimator from hierfstat package (from adegenet)
### Aliases: FST fst fstat pairwise.fst
### Keywords: multivariate
### ** Examples
## Not run:
##D if(require(adegenet)){
##D data(nancycats)
##D
##D ## pairwise Fst
##D mat.fst <- pairwise.fst(nancycats... |
6b8e31d165f500e5d202334c2907294ae3508dbf | fdf839eeaa710470b7a9d881735e893d9f0fdd0c | /man/minDist.Rd | 6118b3bf0e72e5ca1f17e27ea9f6360cab36e58a | [] | no_license | kjrom-sol/plantR | 0da8749c532cda13aa4f6681dc0293412e385632 | e75fe4f1711c971f5be7a4e77bff5663c069bee3 | refs/heads/master | 2023-04-28T03:05:08.054234 | 2021-05-05T01:56:21 | 2021-05-05T01:56:21 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,520 | rd | minDist.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/accessory_geo.R
\name{minDist}
\alias{minDist}
\title{Minimun Distance between Coordinates}
\usage{
minDist(lon, lat, min.dist = 0.001, output = NULL)
}
\arguments{
\item{lon}{numerical. Longitude in decimal degrees}
\item{lat}{numerical. La... |
8b0bbbe2fe071248fb2a51ce4e32dd611baa2be4 | 6a28ba69be875841ddc9e71ca6af5956110efcb2 | /Introduction_To_Probability_And_Statistics_by_William_Mendenhall,_Robert_J_Beaver,_And_Barbara_M_Beaver/CH7/EX7.4/Ex7_4.R | 49dc80ab2f1de56ef439cdc4bd06033b85fa5613 | [] | permissive | FOSSEE/R_TBC_Uploads | 1ea929010b46babb1842b3efe0ed34be0deea3c0 | 8ab94daf80307aee399c246682cb79ccf6e9c282 | refs/heads/master | 2023-04-15T04:36:13.331525 | 2023-03-15T18:39:42 | 2023-03-15T18:39:42 | 212,745,783 | 0 | 3 | MIT | 2019-10-04T06:57:33 | 2019-10-04T05:57:19 | null | UTF-8 | R | false | false | 716 | r | Ex7_4.R | sample_size <- 30;
x_value <- 7;
mean <- 8;
sd <- 4;
prob_less_7 <- round(pnorm(x_value, mean, round((sd / sqrt(sample_size)),2)),6)
cat("The approximate probability duration for average duration is less than 7 years is",prob_less_7)
prob_exceed_7 <- round((1 - prob_less_7),5)
cat("The approximate probability fo... |
632821e07cb7c49a17307446f2ab1a6b0d8c011c | e39195d31e11fc3b8d3d29c206f87adad534e88a | /man/dw_retrieve_chart_metadata.Rd | 6c4b5b1588e3c99489a34ef8758a9a80ac32edd4 | [
"MIT"
] | permissive | munichrocker/DatawRappr | 40640ba9f0954e605e4e56d533a16e417bcbc1bc | 4ed8332494a7e11273dac1a546b7a164f99f9c85 | refs/heads/master | 2022-12-22T18:43:38.945321 | 2022-12-15T15:56:09 | 2022-12-15T15:56:09 | 217,085,284 | 82 | 10 | MIT | 2022-12-15T15:56:10 | 2019-10-23T15:00:55 | R | UTF-8 | R | false | true | 2,146 | rd | dw_retrieve_chart_metadata.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dw_retrieve_chart_metadata.R
\name{dw_retrieve_chart_metadata}
\alias{dw_retrieve_chart_metadata}
\title{Retrieves a Datawrapper chart's metadata}
\usage{
dw_retrieve_chart_metadata(chart_id, api_key = "environment")
}
\arguments{
\item{chart... |
9997b09dc7846190992b364c80654c61eb7d22ad | 6aad63f658e3207c1bad979d83409d730e1e4f75 | /R/passage.R | 7cccb18cafeb64e216c37683b294ecf34fc65b35 | [] | no_license | mespe/YoloBypassSBM | 9448a3ffcb6e9f89b94395f7ddd9285eaa8d12b5 | 686493da1a232e4ed3cdd978bca245643f36600a | refs/heads/master | 2022-07-14T17:55:28.002212 | 2020-05-15T21:19:02 | 2020-05-15T21:19:02 | 263,786,263 | 0 | 0 | null | 2020-05-14T01:38:57 | 2020-05-14T01:38:56 | null | UTF-8 | R | false | false | 1,033 | r | passage.R | #' Passage survival and time from Fremont Weir to Chipps Island
#'
#' Passage survival and time (days) from Fremont Weir to Chipps Island based on fork length, flow, and route
#'
#' @md
#' @param model_day Model day at start of passage
#' @param abundance Abundance of cohort on day route entered
#' @param fork_... |
481e33fbc9ec7f6d5d3cbcaf599db577ccd52e59 | 34907d37aca32ba6333415322b7a1f9399ea41f1 | /lecture3.R | c77eb63a1a75b0d9f4e4ad564fe806a7e624b049 | [] | no_license | Mathies95/ToA | d2dc94cfe702c679bc2ca66baf315356e6ad3ac7 | a3362b8dff0e90c52797907b8556e3575ac60b6a | refs/heads/main | 2023-01-19T13:53:27.845891 | 2020-11-21T10:23:59 | 2020-11-21T10:23:59 | 307,641,926 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 387 | r | lecture3.R | devtools::install_github(remotes::install_github("bss-osca/tfa/tfa-package", upgrade = FALSE))
url <- "https://raw.githubusercontent.com/bss-osca/tfa/master/slides/03-transform/03-transform_examples.Rmd"
download.file(url,
"03-transform_ex.Rmd", # stores file in R working directory
mode=... |
81055b80943c7c91cebced94948158abf153d7e2 | 217080d949fe5550e8d5ab284f72711e8850b8b7 | /desktop_codes/newRJ.R | e1a6f96cbe7cb1fc3ff99e0db7f8a56c2943e30d | [] | no_license | srahman-24/RJClust | 7bddc0f1493016b3d93b03c77d584163b81e7f82 | db43196694022d3e0e8c10847551a12958e69c83 | refs/heads/master | 2022-05-07T00:41:48.394436 | 2022-04-29T20:43:08 | 2022-04-29T20:43:08 | 145,024,703 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,045 | r | newRJ.R |
# toy example
RR = matrix(c(1:16), nrow = 4, ncol = 4, byrow = T)
RR
JJ = NULL
for(ii in 1:4)
{
JJ = rbind(JJ, RR[ii,][-ii])
}
JJ = cbind(JJ, diag(RR))
JJ
# Alizadeh
Alizadeh= read.csv("/Users/srahman/Documents/Clustering/alizadeh-2000-v2_database1.csv", header = T, row.names = 1)
D = t(Alizadeh)
Z1 ... |
e6ceb0de58d2df265c110d186753e5bd90ad6a23 | e379d190e31e2e7a4efbad71748611c3f4d7be6b | /R/character_ids.R | 1f4b43bc3df744ad43d54f3765395c376cf3bf47 | [
"MIT"
] | permissive | Edgar-Zamora/superheroR | f6ea5017797c1226c672e49714b29829cf3d036a | 88e9de4888566b3273c931efbb2efea585ac932f | refs/heads/main | 2023-06-20T06:48:12.252907 | 2021-07-16T22:49:29 | 2021-07-16T22:49:29 | 356,692,662 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 297 | r | character_ids.R | #' Characters associated with each id.
#'
#' A dataset containing the ids associated with each superhero
#'
#' @format A data frame with 731 rows and 2 variables:
#' \describe{
#' \item{id}{unique id for ech character}
#' \item{character}{name of the superhero}
#' ...
#' }
"character_ids"
|
0344e837cdd2ab7cd021389580a7b7624b15d5be | b7ac2968b98c3670397077fe42da03e83d4335e4 | /CF - portatile.R | 69aa67ce58502e6d27664d5c22a38fe960405878 | [] | no_license | ndricca/CF-vegs | 55e32edddc39505afb8fb68fa8946e59b6beb1e8 | b5407bed38d9e72028401f8ffb1bcacf461d706c | refs/heads/master | 2020-12-01T23:52:02.488360 | 2016-09-27T22:27:03 | 2016-09-27T22:27:03 | 67,924,523 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 25,964 | r | CF - portatile.R | ############ START ############
rm(list=ls())
set.seed(123)
par(mfrow=c(1,1))
# Load libraries
library(recommenderlab)
library(ggplot2)
library(devtools)
# install_github("ggbiplot", "vqv")
library(ggbiplot)
library(pls)
############ Data Preparation ############
# Loading data
# Desktop PC
# data <- r... |
5ec69ad9c095f98898eb208cad7a4e1a349dd594 | efc2cda5525312640065de5c8cd53b208342cbf8 | /man/species_range_shps.Rd | 5d366116779001d0124b4f603ee15cc28445c181 | [
"LicenseRef-scancode-public-domain-disclaimer",
"LicenseRef-scancode-warranty-disclaimer",
"CC-BY-4.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MLBartley/nabatr | 68ad577f57d6d37adc2965fd099693df4ba092ee | c805012e54081ba45497e294863d4a5f26aaa7bd | refs/heads/master | 2023-04-20T22:11:14.092346 | 2021-04-07T14:40:48 | 2021-04-07T14:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 394 | rd | species_range_shps.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nabat_gql_queries.R
\docType{data}
\name{species_range_shps}
\alias{species_range_shps}
\title{NABat species range maps}
\format{An object of class \code{SpatialPolygonsDataFrame} with 49 rows and 4 columns.}
\usage{
species_range_shps
}
\des... |
002036d1da339a25035a1145b9d001064e103e7b | f0376af6ad82009494a3ce17dbc31794c60f025f | /conseq.precip.days.R | b13a8467a16387646b342397d42f837d0d6bf330 | [] | no_license | macroecology/BioExtremes | cd3460018db5708a3f5d0bd07238b04b33449a33 | f2180fbd5cd1fc1d238fdedba8eade4eae2b974f | refs/heads/master | 2020-03-19T08:09:51.069919 | 2018-12-07T10:44:05 | 2018-12-07T10:44:05 | 136,180,708 | 0 | 1 | null | 2018-12-06T12:14:08 | 2018-06-05T13:21:28 | R | UTF-8 | R | false | false | 970 | r | conseq.precip.days.R | #' Consecutive days of precipitation
#'
#' Calcultaes the number of consecutive days of rain
#'
#' The function calculates the number of consecutive days
#'
#' @usage consec.precip.days(data)
#'
#' @param data Input vector. This is a vector with the precipitation for each day in one year in one cell
#' @param data ... |
d4121ab73509f0d569bc5816179673618d19040f | 508a96b3623d4a70b5ef29dbd2c90ab6a7fc7035 | /WaspsOBD-Abundance&DetectionMSE(RandomSelection)-DistanceConstraintMultinomial.r | c54a7166be195928e573a6f501fa67c58985c565 | [] | no_license | pablogarciadiaz/Repository-Experimental-Wasps | 0afdd4b68a5fc935d8999799f732d0d990f782d3 | 6e3798ed1dff81b5f6297877c47a9837853219a7 | refs/heads/master | 2023-03-11T14:08:22.452051 | 2021-03-01T09:48:07 | 2021-03-01T09:48:07 | 338,566,047 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,917 | r | WaspsOBD-Abundance&DetectionMSE(RandomSelection)-DistanceConstraintMultinomial.r | #### Bayesian optimal design - Wasps Quadratic Loss - minimise the 1/(msqe)
#### Script 2 - optimal design in 2 visits, how many sites? MH algorithm
#### Trade-offs number of sites vs distance walked & maximum distance walked
##### Effort within function
##### MSE: abundance per cell & detection coefficients
### Multin... |
97111fdf59ee9344f36fe1dbff48eacf6ef2e8bf | 2e4c7f08c116666a1bdaadbe4e9e8c633641b869 | /R/cellCellReport-internal.R | 611dce3a4970eff81f1931591a92d3a600730e96 | [
"Artistic-2.0"
] | permissive | rikenbit/scTensor | 581bfa29773b50b9cba4d6cad50148784ed42be4 | bfe66bccf230d9786dc277bd00d01f57f724bc33 | refs/heads/master | 2023-01-22T02:49:42.443599 | 2023-01-12T09:46:02 | 2023-01-12T09:46:02 | 135,140,761 | 31 | 6 | null | 2020-06-13T10:54:57 | 2018-05-28T09:36:23 | R | UTF-8 | R | false | false | 35,557 | r | cellCellReport-internal.R | .SinglePlot <- function(x){
plot(1, 1, col="white", ann=FALSE, xaxt="n", yaxt="n", axes=FALSE)
par(ps=100)
text(1, 1, x, col="red")
}
.shrink2 <- function(x, thr=7){
block <- strsplit(as.character(x) , " ")[[1]]
l <- length(block)
nc <- vapply(block, nchar, 0L)
if(l >= 2){
out <- bl... |
551ad260114ae0ed026a17b1baa69820cc6b2b6d | a1ed65f1b6689d842b9a476df34151f10ddfa596 | /lavoroinflazione.R | 9257083177f0321c7bfe06d687bba07818c947a5 | [] | no_license | nbadino/gtrend-inflation | 3f67ade76a8539a04ed3e80ef9756b18a243b4b6 | 66a64a20b9fab0b49b3759559c50d77b8a804a87 | refs/heads/main | 2023-05-15T09:15:22.395741 | 2021-06-04T06:59:46 | 2021-06-04T06:59:46 | 372,734,961 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,489 | r | lavoroinflazione.R | library(lubridate)
library(tidyverse)
library(forecast)
# import data
google <- read.csv("https://raw.githubusercontent.com/nbadino/gtrend-inflation/main/google.csv")
istat<-read.csv("https://raw.githubusercontent.com/nbadino/gtrend-inflation/main/istat.csv")
CPI <-read.csv("https://raw.githubusercontent.com/nb... |
8a2b7fd685b12dbb5b25d68e8cbab4c1ba2fa200 | aa7e3ab128b85115cb0c1a26da34517e7bc8c47c | /man/addSampleData.Rd | ca0973c629682f7c45334cd2703b4c2ad621aeac | [] | no_license | derele/MultiAmplicon | dca88d10c9d700f6e307f2146d358083a6cc4644 | 2908a52bf7f3fde82aae32036d41213528a9cbc7 | refs/heads/master | 2023-01-07T07:52:17.550795 | 2022-12-21T12:20:07 | 2022-12-21T12:20:07 | 72,954,812 | 1 | 1 | null | 2022-12-21T12:20:08 | 2016-11-05T21:39:43 | R | UTF-8 | R | false | true | 1,135 | rd | addSampleData.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/toPhyloseq.R
\name{addSampleData}
\alias{addSampleData}
\title{addSampleData}
\usage{
addSampleData(MA, sampleData = NULL)
}
\arguments{
\item{MA}{A \code{\link{MultiAmplicon}} object}
\item{sampleData}{A data frame of providing data for sam... |
85d22f8947a8b217e0f73680c9c88702410a66b1 | 753e3ba2b9c0cf41ed6fc6fb1c6d583af7b017ed | /service/paws.glacier/R/paws.glacier_operations.R | f79d28b2a2864a303bad7bf2ba9b1279525df3a4 | [
"Apache-2.0"
] | permissive | CR-Mercado/paws | 9b3902370f752fe84d818c1cda9f4344d9e06a48 | cabc7c3ab02a7a75fe1ac91f6fa256ce13d14983 | refs/heads/master | 2020-04-24T06:52:44.839393 | 2019-02-17T18:18:20 | 2019-02-17T18:18:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 101,312 | r | paws.glacier_operations.R | # This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common new_operation new_request send_request
NULL
#' This operation aborts a multipart upload identified by the upload ID
#'
#' This operation aborts a multipart upload identified by the upload ID.
#'
#' After the Abort Multipart Up... |
9247a2b4b9d59a41aea2af3ca3ed087261f1b3d1 | b175327395279b596b9a8478c0ce5f6137747b14 | /第六次作业/Adaboost_single_s.R | f47d834b1a6a342bf1c92053a15f68463f8ab834 | [] | no_license | LZKPKU/Statistical-Learning | 21110f1abb2dbc30020885ad167e0c2d3875c5f1 | b941e024eebcd16040fc064f57c592f16d4c9192 | refs/heads/master | 2021-09-05T01:37:07.400863 | 2018-01-23T13:38:38 | 2018-01-23T13:38:38 | 115,834,903 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,073 | r | Adaboost_single_s.R | # Parameter
p = 10;n = 100
# Training Process
X = matrix(nrow=n,ncol=p)
y = vector(length=n)
y_hat = vector(length=n)
err = vector(length=n)
# generating training data
for (i in 1:p)
X[,i] = rnorm(n,0,1)
for (i in 1:n)
y[i] = sum(X[i,]^2)
y[y<=9.34] = -1
y[y>9.34]=1
# save Decision stump parameter
f = vector(leng... |
b8cb4791cc72c2c50ec1d3874bd1ca4066321ec9 | c85d67e38879bb7ee5daeb8bc2ede423afb0b3f4 | /plot3.R | 35bc970868f5d00e744945d3215b12c9785caf1d | [] | no_license | neethupanackal/ExData_Plotting1 | 876e7d9adb257941bc0c680695322358c6267932 | 59c80a8d686af8b73939299caaf979d1c9a90e73 | refs/heads/master | 2021-01-22T19:30:32.512265 | 2015-06-07T15:36:29 | 2015-06-07T15:36:29 | 37,013,816 | 0 | 0 | null | 2015-06-07T11:16:46 | 2015-06-07T11:16:46 | null | UTF-8 | R | false | false | 1,491 | r | plot3.R | #** The source file should be in your working directory **#
# Read the data into data frame. The data we want starts from 66638th row
# to 69517th row. We use skip and nrows to read only the required rows
power_consumption=read.table("household_power_consumption.txt"
,header = TRUE
... |
8893570823351dc6b342e36e96ab58f510682225 | 2d34708b03cdf802018f17d0ba150df6772b6897 | /googlecomputebeta.auto/man/ForwardingRulesScopedList.warning.Rd | 4fd56956e367d292d4f5488e9647014d7bed0665 | [
"MIT"
] | permissive | GVersteeg/autoGoogleAPI | 8b3dda19fae2f012e11b3a18a330a4d0da474921 | f4850822230ef2f5552c9a5f42e397d9ae027a18 | refs/heads/master | 2020-09-28T20:20:58.023495 | 2017-03-05T19:50:39 | 2017-03-05T19:50:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,147 | rd | ForwardingRulesScopedList.warning.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_objects.R
\name{ForwardingRulesScopedList.warning}
\alias{ForwardingRulesScopedList.warning}
\title{ForwardingRulesScopedList.warning Object}
\usage{
ForwardingRulesScopedList.warning(ForwardingRulesScopedList.warning.data = NULL,
... |
1917d395849b620cde4cc33831b955d0e5736ec0 | 377aeaedacdc60ea71bc250d3fb6b15c9a2aa1c8 | /R/geom_gene_arrow.R | 040571595d7b795ab09600e1539bc1d186b35ec3 | [] | no_license | snashraf/gggenes | b016c9c075e970de1bdd00742b2f5b9bd0405760 | a4d1062cbbbd6ebaf883e02934599130d34e5123 | refs/heads/master | 2021-01-19T17:07:02.672128 | 2017-08-22T04:04:46 | 2017-08-22T04:04:46 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,116 | r | geom_gene_arrow.R | #' @title Draw an arrow to represent a gene.
#' @export
#'
#' @description
#' Draws an arrow representing a gene with orientation. Only works for genes
#' arranged horizontally, i.e. with the x-axis as molecule position and the
#' y-axis as molecule.
#'
#' @section Aesthetics:
#'
#' \itemize{
#' \item xmin and xmax ... |
30a5b6c2dfc25070a0abbc5d34c5d55ad588bcfd | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/GeDS/examples/Integrate.Rd.R | 5a62e60584dabbc846ea47839ad1b7fe73d93310 | [] | 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,108 | r | Integrate.Rd.R | library(GeDS)
### Name: Integrate
### Title: Defined integral of GeDS objects
### Aliases: Integrate
### ** Examples
# Generate a data sample for the response variable
# Y and the single covariate X
# see Dimitrova et al. (2017), section 4.1
set.seed(123)
N <- 500
f_1 <- function(x) (10*x/(1+100*x^2))*4+4
X <- sort... |
67978ca3f5e63637fbe49b4e28fc8b55ebc7184b | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/IceCast/man/get_dist.Rd | d33b81e7fed3bf6c2c6c10a3b1a892837a778653 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | true | 490 | rd | get_dist.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{get_dist}
\alias{get_dist}
\title{Find euclidean distance}
\usage{
get_dist(p1, p2)
}
\arguments{
\item{p1}{vector giving the x and y coordinate pair for the first point}
\item{p2}{vector giving the x and y coordinate pair for t... |
d2fa5a72805f8e39b6f51705b2be7817ca42df18 | 6d443800445592a4bcdc3531a850d5152942e2fd | /GUI/gene_query_UI.R | edc1c7cbc6817e87432f0486fd4e74d6f54f6681 | [] | no_license | angy89/InsideNano | 35f2004414bd1065df4db686ceefdb2096b789da | 0b5ee4502106740acc3daec100cac37f015791d3 | refs/heads/master | 2021-01-18T21:11:38.811196 | 2016-01-10T20:23:47 | 2016-01-10T20:23:47 | 45,189,493 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,952 | r | gene_query_UI.R | gene_query_UI_part2 = function(input,output,gene_nano,gene_drug,gene_chem,gene_dis){
output$gene_query_nano_input = renderUI({
selectizeInput('gene_query_nano_input', label = "Nanomaterials", choices = c("ALL",gene_nano), multiple = TRUE,
options = list(create = TRUE))
})
output$gene... |
7471d45b27ffa900d551e41be400982af72388d7 | e44a0f914cd55a7cb5d51c20c1c3a7ec6ef11a3d | /data/code/helpers/load_shp.R | d293031cc46d30892328e9c990d3e1ae70be0969 | [] | no_license | gabrieljkelvin/acre_allcott | 04a20266e0829ed8777d068017305269f8021de4 | 6ca0ff556d41208beeabe816c0821facfdb86c96 | refs/heads/main | 2023-03-11T09:11:42.828086 | 2021-03-02T07:43:26 | 2021-03-02T07:43:26 | 342,379,695 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,563 | r | load_shp.R | #Helper function to load shapefiles, requires "sf", "stringr", "dplyr", and "magrittr" packages to have been loaded
load_shp <- function(zip_folder, zip_file, state, st_fips, planar_crs, repair_geom) {
#Unzip state's zipped shapefiles
stub <- zip_file %>% str_replace("\\.zip$", "") #Remove .zip suffix
... |
f31aa8d5b27cbe002cb94c8197cf8e0b085991fb | 9bf8e9da8f902b9b892ae373713d5302dfa36253 | /plot4.R | 919376e7ef6b8d3c5ac3332caed7d04231eed549 | [] | no_license | lvizzini/Exploratory-Data-Analysis-Course-Project-2 | 126fa9ee3ca8a0ce2a85db4f1fe20d18223029ec | 05b53ea88cb93185eddf70d2432bc1f3d35a012b | refs/heads/master | 2021-01-16T08:47:14.379129 | 2020-02-25T16:45:27 | 2020-02-25T16:45:27 | 243,047,417 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 871 | r | plot4.R | ## read file
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
##create p object with total Emission by year for coal
library(data.table)
library(ggplot2)
##merge information of SCC to NEI
NEI_SCC <- merge(NEI, SCC, by="SCC")
NEI_SCC<-as.data.table(NEI_SCC)
##select coal ... |
1d9f2d2bc553d08b7bb25d34f5564b9ebf82422f | cd7136449c4ea91fec7071948cce80da45d4244d | /man/Sync.test.OLD.Rd | 3983d1ac3ad18e6d117738cdae391821f6148d04 | [] | no_license | bokov/adapr | 20428bb4c871b6ae02f3df3461d837513174d622 | 5af9860921a3e945a8ea4993d69e545c1cc5681e | refs/heads/master | 2021-01-19T10:05:40.674036 | 2017-05-23T14:15:05 | 2017-05-23T14:15:05 | 87,824,109 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 511 | rd | Sync.test.OLD.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sync_test.R
\name{Sync.test.OLD}
\alias{Sync.test.OLD}
\title{check the synchrony of source files and their created objects}
\usage{
Sync.test.OLD(dagger, tree, plotl = TRUE)
}
\arguments{
\item{dagger}{a directed acyclic igraph representing ... |
9383ea432b83c237e6d469217c3a71fa82d9e156 | 372c012ff389da88f1d385d8b087f2105ea1f059 | /WifiPositioning_v2.R | f185579022589fa55b18898f4b93695e45b9e44b | [] | no_license | Ubiqum-Data-Bcn-110/task3-2-wifi-caroldorofei | f5aedb4b7faa26a14485a56d8dff231a6dc89070 | 65d08e28aab15230755d380c69581daf9e00d2d2 | refs/heads/master | 2020-04-09T07:43:17.248527 | 2019-01-16T21:57:06 | 2019-01-16T21:57:06 | 160,167,900 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 34,704 | r | WifiPositioning_v2.R | #Wifi Positioning
#Start Date: December 3, 2018
#Deadline: Dec 21, 2018
#Cleaning environment and uploading data ----
rm(list =ls())
setwd("C:/Users/carol/Desktop/Ubiqum/R/Wifi Positioning/task3-2-wifi-caroldorofei")
trainset <- read.csv("trainingData.csv")
validation <- read.csv("validationData.csv")
#Libraries ---... |
1c775b384ebb6abd3bf744dfd15be6386f4166b6 | 88940774e194e91582afdc6e3308b43cae14ef24 | /HW2_2.R | 674f00e7199794a71791f90da7b0fc7df4f1cee4 | [] | no_license | garnerat/DM1_HW2 | 85c19a17388601475a7f8e480fb1f6309f319b4a | 2fc484bc16d158b342a487523f4539becb0fd36e | refs/heads/master | 2021-01-11T11:26:39.195456 | 2017-01-29T22:48:31 | 2017-01-29T22:48:31 | 80,256,088 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,420 | r | HW2_2.R | # Simulation of Linear Regression varying n and noise (e)
# sample size
n=c(25, 100, 200, 500, 5000)
# noise
sigma= c(0.1, 0.5, 1)
# initialize matrices
MSE.matrix <- matrix(c(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0), nrow = 5)
colnames(MSE.matrix) <- c("sig = .1","sig = .5","sig = 1")
rownames(MSE.matrix) <- c("n = 25", "n ... |
f58d6f9814dfdeb1879499189e777054f0469a4d | 809703480f03db55e3d2fe178efa0f1810ece44f | /initialization.R | eb66894939bbbf6fce66a84014c33401b7e79f1e | [
"MIT"
] | permissive | akulbahl/COVID-19FlightVisualizations | e59b08353d8300340336d2a8ca7026b0f0b1fc35 | ed64f81ce555987824687fc72c84b700806f1f31 | refs/heads/master | 2023-02-24T22:08:38.953200 | 2021-02-02T18:58:45 | 2021-02-02T18:58:45 | 293,997,939 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 540 | r | initialization.R | # app initialization
packages = c("shiny",
"shinythemes",
"shinydashboard",
"dashboardthemes",
"shinyWidgets",
"reshape2",
"tidyverse",
"knitr",
"lubridate",
"heatmaply",
"ggthemes",
... |
a6ae9a8356cde9e66c97f924f532828a047adbf8 | 21c8f47800b0062e6abcb5166a7e38cd8cbbefa1 | /prelim/oe_analysis.R | 1e40d90d54f3d91394b042a4411408e2c6b0bc28 | [] | no_license | experimentalpolitics/immigration | 5bdd1c0ebfdacf4e7ff8bd142fc880aa096c66f0 | 00c22b160ebfccc1dcc21bec7f471e8e76eca70a | refs/heads/master | 2021-10-23T18:18:46.421375 | 2021-10-20T16:41:05 | 2021-10-20T16:41:05 | 181,782,683 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 17,387 | r | oe_analysis.R | # =================================================================== #
# Project: Sources of Misperception
# Author: Nick
# Date: 10/19/2020
# Summary: Explore/analyze OE responses using different methods.
# =================================================================== #
cd("~/Dropbox/github-local/experimentalp... |
ea1ee27ec5345b09c27c05b56a3cb1af16112db9 | 980f570c0e740594473d42757816981de58b5470 | /Rsrc/man/plot_sizetransition.Rd | 728ce64ec6d15e9f4d971aa3fceea3c22a592d46 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | LarryJacobson/gmacs | 334f24fee6cd651f5e580d2225e1fac026d9757b | e5e999d3fdff2f392d6e48c11bdfe290bc672434 | refs/heads/master | 2021-01-14T12:44:45.044908 | 2015-01-16T01:05:01 | 2015-01-16T01:05:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 327 | rd | plot_sizetransition.Rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{plot_sizetransition}
\alias{plot_sizetransition}
\title{Plot size transition}
\usage{
plot_sizetransition(replist)
}
\arguments{
\item{replist}{List object created by read_admb function}
}
\value{
Plot of size transition matrix
}
\description{
Plot size transit... |
fed6c65c5172ff2f8671db56e4a07681222eecd7 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/hansard/examples/mp_vote_record.Rd.R | b45cce94c78c94a3f3da4bf8151c4ac9a3224add | [] | 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 | 382 | r | mp_vote_record.Rd.R | library(hansard)
### Name: mp_vote_record
### Title: Individual MP voting records
### Aliases: mp_vote_record hansard_mp_vote_record
### ** Examples
## Not run:
##D x <- mp_vote_record(172, lobby = "all")
##D
##D x <- mp_vote_record(172, lobby = "aye")
##D
##D x <- mp_vote_record(172, lobby = "no")
##D
##D x <-... |
e211b9337f95cb778b40538e69ca7b1d81af5550 | f28950c0086eee6f8e89ea47565bcfe9341be8f4 | /lib/Tree&rf.R | 2e8c81ccb72c76d1e21eaae9717e9a41db5a4d51 | [] | no_license | TZstatsADS/Spr2017-proj5-grp4 | 4c07b95b2aedf67e1569d2880cf2d235af489e53 | 95aeac3b53b9a8a8f05d385e880de44b57d88046 | refs/heads/master | 2021-01-19T06:24:23.453512 | 2017-04-28T19:13:40 | 2017-04-28T19:13:40 | 87,462,909 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 2,590 | r | Tree&rf.R | library(randomForest)
library(randomForestSRC)
library(caret)
library(rpart)
library(rattle)
library(rpart.plot)
library("Metrics")
setwd("~/Desktop/Proj5")
data<-read.csv("HR_comma_sep.csv",header = T)
#add level to ppl left 1 means ppl left 0 means ppl stay
#data$left[data$left == 1] <- "Left" ;data$left[data$left ... |
4f5607f443859aacb5e5ec2d696b8daa61942a82 | c073ada8ff21dcd20094f93a944a84040b1d0bfc | /src/03_seuratPreProcess.R | cfcf9d2b9325ca795b96c090bb8c3f5a4c16589d | [] | no_license | GenomicsNX/scRNAseq-Gut-IFNB-IFNL | a71f0a6ba1b8ee3c0640430fb8c8d0936e7826d9 | 8fae9983cf212c6d4910a5428fb64f1ead9ecd03 | refs/heads/main | 2023-05-30T07:28:31.381865 | 2021-06-16T14:04:42 | 2021-06-16T14:04:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,501 | r | 03_seuratPreProcess.R | #-------------------------------------------------------------------------------
# Install required libraries and set the root path
#-------------------------------------------------------------------------------
library(DropletUtils)
library(Matrix)
library(tidyverse)
library(Seurat)
library(scDblFinder)
library(scic... |
46b9f4915b3fb6618f173936362cb9b05390c513 | f9a03eca6377913e1b5f5c550f18cae81128551f | /misc/20180622_AlvarkDefence.R | 4c0b3a3f97b6cbae5d59a2604c6fbe38f93a5c6b | [] | no_license | rintaromasuda/bleaguebydata | 03ea24c82bd875f2b296bc170cd4c40e9f80ccaa | 285de734f0c5e8db22588c5b6f9edad9f9c34bcc | refs/heads/master | 2022-07-01T12:42:44.456004 | 2022-06-05T05:38:30 | 2022-06-05T05:38:30 | 112,900,747 | 2 | 0 | null | 2019-02-26T14:37:25 | 2017-12-03T04:47:40 | R | UTF-8 | R | false | false | 792 | r | 20180622_AlvarkDefence.R | setwd('C:/git/bleaguebydata/analysis')
library(knitr)
library(dplyr)
library(ggplot2)
library(stringr)
df <- read.csv("201718_b1_gamebygame.csv")
df$POS <- df$F2GA + df$F3GA + (0.44 * df$FTA) + df$TO - df$OR
df$PPP <- df$PTS / df$POS
df$PPP100 <- df$PPP * 100
gsub(df$VS, "vs", "")
df$VS_STR <- as.character(df$VS)
d... |
0d4fee96e22f57cda04988b45f959ff174f59038 | d05f52ac50bd71f7b08f01bebc0c4488b33f9be1 | /17분석스터디/17스터디 시각화 과제.R | 8742d03f0ff2346dcd39a69ffb2b6eacd1ea83b7 | [] | no_license | gunw00/R_project | 51755c9ed54a47210f6b9551c2396e3c2f525e5a | abad45ee9682ed4260c5e4d496cf5d4fcb1591f0 | refs/heads/master | 2021-07-03T15:15:37.694766 | 2021-06-30T13:21:37 | 2021-06-30T13:21:37 | 235,510,343 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,223 | r | 17스터디 시각화 과제.R | # 장석건
training %>% ggplot(aes(workclass, fill=wage)) + geom_bar()
training %>% ggplot(aes(capital_gain-capital_loss, fill=wage)) +geom_density(alpha =1) + xlim(-5000, 5000)
training %>% ggplot(aes(hours_per_week,fill=wage)) + geom_density(alpha=.5)
# 차현우
training%>%ggplot(aes(hours_per_week,fill=wage))+geom_ba... |
3959154833430020bfffa0898cf5f5c8b35b772d | cc7139789c2e524d61e11c92a033666246d2da32 | /1_RawData/LearningCurve.R | 31cd51d8393becb345b30e7ecc5c3661e7925794 | [] | no_license | dmpe/bachelor | e99dc0de17d8cf54455dfec08c15e32f1916f74c | 7611bb2556cc728e64d7be50a47c32a055b6ce9d | refs/heads/master | 2021-01-10T13:00:51.218870 | 2015-10-02T15:52:25 | 2015-10-02T15:52:25 | 36,564,092 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,066 | r | LearningCurve.R | library(stringr)
library(plyr)
library(xlsx)
learningCurveData <- read.xlsx("1_RawData/DataSources/learningcurve.xlsx", sheetIndex = 1, startRow = 18, endRow = 58)
learningCurveData <- plyr::rename(learningCurveData, c(NA. = "Country", Overall.Index = "LearningCurve_Index"))
# sapply(learningCurveData, class) # facto... |
0c0369cac1a5ac1f1d22ea6cac2b1443c1e1947f | 5c4c58456a2a0f1d80c5eb783d6cbc8f846f8414 | /man/geovctrs-package.Rd | a0cd6e7dca77d35b30a10fb6fd649637c80027a7 | [
"MIT"
] | permissive | paleolimbot/geovctrs | 6b9882efe4a05d2d3614932feae68c0c6b9a37f6 | 12de2c88d29df5c5e770405b0d772906a2e18533 | refs/heads/master | 2021-05-18T01:28:15.343654 | 2020-07-24T18:53:27 | 2020-07-24T18:53:27 | 251,045,555 | 24 | 2 | null | 2020-06-27T02:37:54 | 2020-03-29T13:59:38 | R | UTF-8 | R | false | true | 871 | rd | geovctrs-package.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geovctrs-package.R
\docType{package}
\name{geovctrs-package}
\alias{geovctrs}
\alias{geovctrs-package}
\title{geovctrs: Efficient Data Structures for Geometry Vectors}
\description{
Provides a set of data structures
to efficiently encode si... |
333652745d13a05a995d0339f93a18425b93db89 | 59988b49b03b5a539a64425222310663a3e1bef5 | /code/data_gathering_code/rebuilding_Statcast_db.R | 230d625622dda9dc001c9479ccd7a4c4416c1a1c | [] | no_license | cgettings/Baseball-Data | 17896a8d18b5f1f09d86e9cffd73c265c375a1b8 | bfe5110ba5e03c60bfd43fae0d6637b18433bf71 | refs/heads/master | 2021-04-26T23:58:43.240753 | 2020-02-02T20:13:14 | 2020-02-02T20:13:14 | 123,887,732 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 24,659 | r | rebuilding_Statcast_db.R | ###########################################################################################-
###########################################################################################-
##
## Building Statcast database ----
##
###########################################################################################-
... |
c6407bd5235a78fd8a780e583ae5f26a9dbf0d90 | fc7aa3397397065a8afd74fc9a682bcf515cfce2 | /Ejercicios/derivada.R | da7c6d3f6edd6670c752ab6cfae4b61a6b5cb2ad | [] | no_license | valentinaescobarg/Analisis-Numerico | 21a60fb127c7e4ad8f2415761951d9428a1404a1 | 1531b9c874d1bf09f62a8770d58b7b370d88ee90 | refs/heads/master | 2021-07-10T11:51:56.411842 | 2020-07-12T02:31:55 | 2020-07-12T02:31:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 588 | r | derivada.R | x=c(1.8, 1.9, 2, 2.1, 2.2)
y=c()
b=2
a=2
for (i in 0:5)
y[i]=x[i]*exp(x[i])
cat(x)
cat(y)
f= function(x) x*exp(x)
#derivar con 4.4
h=0.1
cuatro= function(x1,x2,x3,h){
valor=1/(2*h)*(-3*f(x1)+4*f(x2)-f(x3))
cat(valor)
return valor
}
cinco= function(x1,x2,h){
valor=1/(2*h... |
d7688e82541e45d044ea4fcf81d4db40a3a76fb9 | 98ede6f295123fdda5f61d317e9c8a0ccb07f726 | /man/simARIMA.Rd | 1a901da40c4507d956f419b7b0600e874420bc84 | [] | no_license | statmanrobin/ts343 | 51d889e6cdc4f6dff0fd78fc7f653c2aaa5f517b | 1f6fba367a31b70beffd25c138f9a8c83200c204 | refs/heads/master | 2023-05-10T20:43:10.059506 | 2023-05-03T14:31:55 | 2023-05-03T14:31:55 | 169,302,851 | 2 | 1 | null | null | null | null | UTF-8 | R | false | true | 700 | rd | simARIMA.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simARIMA.R
\name{simARIMA}
\alias{simARIMA}
\title{Simulate data from an ARIMA model}
\usage{
simARIMA(n = 100, delta = 0, phi = NULL, d = 0, theta = NULL, sderror = 1)
}
\arguments{
\item{n}{Length of the series to simulate}
\item{delta}{Co... |
6d678284045b3370a11aa424176715ca31934ee8 | 2ea3e7bec58fa389e10f15a7627862dd5b89f5cf | /simple_mondRian.R | 93261d2cd6f8546c28b0324a99d6e95a406b61e2 | [] | no_license | borstell/mondriaRt | b8d2da2e7bde295632a3e857920118a453bc30aa | 2581c1cecbf4783a29fa0b1a7672d1f6e79b424b | refs/heads/master | 2022-12-27T15:01:56.987370 | 2020-10-04T12:02:20 | 2020-10-04T12:02:20 | 259,119,477 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 916 | r | simple_mondRian.R | library(ggplot2)
library(tidyverse)
#library(patchwork)
# Make color palette
clrs <- c(rep("#C52F24",3),
rep("#1513C6",4),
rep("#FDF851",3),
"#7AB3BA",
"#000000",
rep("#FFFFFF",5))
# Create a dataframe with random rectangles
xa <- sample(0:4,15,replace=T)
ya <- sample... |
a24e6472961ec2142ca269faa1abb1d1da87de7e | b055dc416dad13e82736c34f62ee7f0ea96dbfbd | /R/check_input.R | 864a21975abb0c03e17479e57fe084c32f5def64 | [] | no_license | krashkov/pcSteiner | c8cc3aff2cc35159f124300638285c7c8a189157 | b62b9901f5ac26a4c8c3f33a288a0685f971559d | refs/heads/master | 2021-07-19T18:20:54.257493 | 2020-08-21T18:59:34 | 2020-08-26T12:35:33 | 209,090,640 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,307 | r | check_input.R | check_input <- function (graph, terminals, lambda, root, depth, eps, max_iter) {
# Check graph
if (! is.igraph(graph))
stop("Error: Graph is not an igraph graph")
if (length(V(graph)) == 0 )
stop("Error: Graph does not contain vertices")
if (! is.connec... |
bf63bfae2be31ebaaa56c246fdcad557bbd04e80 | 7917fc0a7108a994bf39359385fb5728d189c182 | /cran/paws.storage/man/efs_tag_resource.Rd | 5514e4e176ad70ae0e7f0bbb7708c51e428d4d06 | [
"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 | 810 | rd | efs_tag_resource.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/efs_operations.R
\name{efs_tag_resource}
\alias{efs_tag_resource}
\title{Creates a tag for an EFS resource}
\usage{
efs_tag_resource(ResourceId, Tags)
}
\arguments{
\item{ResourceId}{[required] The ID specifying the EFS resource that you want... |
f91b0ffb7937643a0e12a8b2273f302b116323cc | 93ba97f1adf1432aa86a11413ce6506439b2b6e9 | /man/simulate.PlackettLuce.Rd | 06738d2c952031ca2e7077e646136616efe73314 | [] | no_license | Felix660/PlackettLuce | 2fc53b68b7c8da23ef3dca94bbb2d1a6c59a7d26 | a162cfe8d19278a8aa35f4e546a4693d029a8f8e | refs/heads/master | 2023-07-14T01:38:16.819262 | 2021-08-24T11:10:22 | 2021-08-24T11:10:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,682 | rd | simulate.PlackettLuce.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulate.R
\name{simulate.PlackettLuce}
\alias{simulate.PlackettLuce}
\title{Simulate from \code{PlackettLuce} fitted objects}
\usage{
\method{simulate}{PlackettLuce}(
object,
nsim = 1L,
seed = NULL,
multinomial = FALSE,
max_combina... |
103fd29a377079bc796aa5a5447ee86abb56ed36 | 29585dff702209dd446c0ab52ceea046c58e384e | /plmm/R/cal_df_gamma1.R | 9caf7a2935097e14561940a5e09450902d870a1a | [] | 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,756 | r | cal_df_gamma1.R | cal_df_gamma1 <-
function(yXb, poly.index, h, nbins, plmm){
bing<-binning(y=yXb, x=as.vector(plmm$T_mat), nbins=nbins)
x_til<-bing$x
M<-length(x_til)
C<-matrix(rep(bing$x.freq, M), ncol=M, byrow=T)
## = rep(1, M)%x%t(bing$x.freq)
X_til<-matrix(rep(x_til, rep(M, M)), byrow=T, ncol=M) - matrix(rep(x_til... |
5afdafb22db9f5664633e13c5f7f72eec8db944c | 4cb402022fab6607fd908b3169298562538e411e | /IDcandles.R | f618b0a03300e25109d9c4f6af768006b6126b6a | [] | no_license | DrewArnold1/Candlestick-forex-analysis | 57171467b1ed3ab37e35f39fafb6bdf1db9157e2 | 694842ba64c84e26f16c0ff6bcb73a42a0ff2dba | refs/heads/master | 2021-01-10T17:06:50.583779 | 2016-01-20T19:16:47 | 2016-01-20T19:16:47 | 50,052,263 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 31 | r | IDcandles.R | IDcandles = function(fx) {
} |
4fe8c23222d4c7d457ade14f121262c9a967f998 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/gaston/examples/lmm.diago.likelihood.Rd.R | 6483ef42fc2ad86806bb1a746b6401a2c58daac6 | [] | 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 | 912 | r | lmm.diago.likelihood.Rd.R | library(gaston)
### Name: lmm.diago.likelihood
### Title: Likelihood of a linear mixed model
### Aliases: lmm.diago.likelihood lmm.diago.profile.likelihood
### Keywords: Eigen decomposition Likelihood
### ** Examples
# Load data
data(AGT)
x <- as.bed.matrix(AGT.gen, AGT.fam, AGT.bim)
# Compute Genetic Relationship... |
6436e4e442c94065520a29d4c42553ce28d051c1 | 3fdac81b76b7352be7894e3c33c86ca32ab75641 | /Analyse01aProvenance.R | fbc7a3c17931b4b90d7447e1d87bf409b7d41be5 | [] | no_license | Stan112732/Airbnb-webscraping-program | e42c9f97f5d7f357db552963d5f1e353ba1df106 | 9eef1551255ea4260c953b906a342cc18ce7430a | refs/heads/main | 2023-07-29T19:12:26.484269 | 2021-09-12T12:48:57 | 2021-09-12T12:48:57 | 405,632,346 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,741 | r | Analyse01aProvenance.R | #ce programme vous permet de choisir une periode que vous souhaitez analyser,
#d'analyser l'existance d'une differenciation de saison
#en choisissant un pays et une annee pour desquelles les visiteurs sont passes a la zone cherche,
#et visualiser le resultat
#vous trouvrez une carte mondiale et une graphique a bar... |
3c556382bd4f108c2632d0a4166812d87914e788 | af222d50d6c1449590d12e3be4dd4d95b6a13220 | /ScrapingPelisPlus2.R | 2cc12c5c4fab2c96e1ef76ed23a2059417d9e1f4 | [] | no_license | CamilaPinto98/scrapping_cuevana3_pelisplus | 424f453de92ae35da86c588241f320ee7e8f82c2 | f633bb9034affc25dc5b9689af63b2558eefa312 | refs/heads/main | 2023-06-27T17:05:06.720736 | 2021-07-30T16:45:52 | 2021-07-30T16:45:52 | 391,122,794 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,851 | r | ScrapingPelisPlus2.R | ---
title: "BIENVENIDO A NUESTRO PROYECTO DE PAGINAS WEB"
output: html_document
---
# Base de datos : A continuacion veremos como se instala la libreria, cargando datos para analizar datos sobre pelisplus
###INSTALAMOS LIBRERIA Y LA CARGAMOS
install.packages("rvest")
install.packages("curl")
i... |
1bfff398d66d7860b67f192b38f4e3a0f0af693c | f289a04c54a0a6c9f024e6b75b9a08ed1ca5f128 | /parser/1xbet.R | af569f0a05ab69f88aadeaab1977afad7cafdf8d | [] | no_license | pabelspy/sumo-odds | f571d589d730be408bc59562072344a975e4b328 | 5f3e319e49eac80faebd798ad2f1649d406ba0a2 | refs/heads/master | 2021-09-14T17:20:08.463625 | 2018-05-16T15:20:45 | 2018-05-16T15:20:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 575 | r | 1xbet.R | library(rvest)
library(tidyverse)
parse_1xbet <- function(raw_html) {
columns <- c(
"gameid",
"coef",
"betname",
"opp1",
"opp2"
)
df <- raw_html %>%
read_html() %>%
html_nodes("a:not(.non).c-bets__bet") %>%
html_attrs() %>%
map_df(bind_rows) %>%
set_names(sub("data-", "", names(.)))
if... |
7c8eef9ba7f6ff3aa30e30a3ad0293f1772644fa | 705b1d948fe80e38030266fc39bd0567c82aeafd | /Dusky_Redo.Fig4.R | 860de411d418c92b6de1a54b5e20f0be9f6a10fd | [] | no_license | JuanMatiasBraccini/Git_shark_acoustic | fc44047b4c04f24e3d3bde9d6f0101f2361c603a | 2b483a060399f78aff606cbb28e3f8d151fc13e0 | refs/heads/master | 2022-09-26T16:56:34.381428 | 2022-09-13T07:55:48 | 2022-09-13T07:55:48 | 191,541,988 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,087 | r | Dusky_Redo.Fig4.R | #Re do Simons
if(!exists('handl_OneDrive')) source('C:/Users/myb/OneDrive - Department of Primary Industries and Regional Development/Matias/Analyses/SOURCE_SCRIPTS/Git_other/handl_OneDrive.R')
setwd(handl_OneDrive("Analyses/Acoustic_tagging/Dusky_migration/Re.do.Fig.4"))
library(RODBC)
channel <- odbcConnectExce... |
521c883445539a9295b50a5ecc9764d47b6b28da | 30346b23ba5dbf95d60c75a43433c865ce9dd6bc | /analises-yasmin-atbc-2021/scripts-modelos-nicho/processamento especie -3.R | f77c64083903e07a3e9062f0af3420feab5d4dec | [] | no_license | rbcer17/pesq-nicho-atbc2021 | 88f8215e34300df009b99d5c761bf79ff951f3a5 | a7a07d6c19f72c499b978f9ea430067037faee61 | refs/heads/master | 2023-06-12T22:34:47.652751 | 2021-07-08T14:16:14 | 2021-07-08T14:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,902 | r | processamento especie -3.R | library(rgdal)
library(raster)
library(dismo)
#delimitar uma projecao espacial para lat/long e para UTM:
longlat_WGS = CRS("+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0")
####################### 2. CARREGAR OS ARQUIVOS NECESSARIOS ########################
# Carregar os pontos de ocorrenci... |
92c9ff475df10c91694e62d8392370bd19009a5a | afdc42af8a468f29b56269626dccbe5859d0e595 | /R_src/kernapply.ts/main/main.R | 984a312d1c408be6704ce9fb816392fc68818e12 | [] | no_license | pengyu/pytools | feb44c3da2922dae5a51d19abe2fbc6c05a5076f | 578af6b6135f1fc999c89ca0ae0ca314cbdbfc76 | refs/heads/master | 2021-03-12T23:49:06.527392 | 2013-04-16T03:15:03 | 2013-04-16T03:15:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 165 | r | main.R | x=ts(c(rep(0, 5), 1, rep(0, 5)))
kernapply(x, kernel(coef='daniell', m=4))
x=ts(c(rep(0, 5), 1, rep(0, 5)), frequency=2)
kernapply(x, kernel(coef='daniell', m=4))
|
5b46b9c9c4a16912156e4a0ed85a1325975fd115 | d3613e73615708c26d6d38e16b446afdda1b131f | /day-1/day-1.R | 9c9ec0975c12d4e2b2be72518b071c2c956a2bf7 | [] | no_license | sxmorgan/advent-of-code-2020 | ea8a3b7b5d185387865fcddcdef1c0fe33843ec8 | 1730262f19861af0ba03563d77cf0a95bbef6b29 | refs/heads/main | 2023-02-06T10:20:42.053319 | 2020-12-26T12:54:22 | 2020-12-26T12:54:22 | 317,576,893 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 604 | r | day-1.R | library(tidyverse)
input <- read.delim('~/Desktop/advent-of-code-20/day-1/input.txt',
header = FALSE, sep = '\n')
# which 2 numbers add up to 2020?
nums <- input %>%
as_tibble() %>%
mutate(diff = 2020-V1) %>%
mutate(presence = (diff %in% V1)) %>%
filter(presence) %>%
magrittr::use_serie... |
092542ae06bdbf40f134fd634059276f3d573bd9 | d65acf70ee2b94ab3f66b6af503ad61b1cab30d3 | /data-raw/sf_conversion.R | 56069ccfe3aad8c04bc6ba15de874579051497f4 | [] | no_license | crumplecup/riparian | 80ebbfa7d7108cf09bfb5511ea00ed23c92bd600 | 755b066fd4d52bc58caf157c061101f813cda86a | refs/heads/master | 2021-06-15T10:13:39.918615 | 2021-04-07T22:15:56 | 2021-04-07T22:15:56 | 176,836,375 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 974 | r | sf_conversion.R | # convert sp spatial objects to sf
sp_to_sf <- function(sp) {
crs_ref <- sf::st_crs(sp)
sf_list <- list()
polys <- methods::slot(sp, 'polygons')
for (i in seq_along(polys)) {
p <- methods::slot(polys[[i]], 'Polygons')
sf_polys <- list()
for (j in seq_along(p)) {
sf_polys[[j]] <- sf::st_pol... |
f4854f8088812fe0ce79fe6b58a13a2e67d9507c | 29585dff702209dd446c0ab52ceea046c58e384e | /repfdr/R/ztobins.R | 9dfd48f3ea134d22d49190ac542c1ed3c0e314e1 | [] | 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 | 4,511 | r | ztobins.R | ztobins <- function(zmat, n.association.status = 3, n.bins = 120, type = 0, df = 7, central.prop = 0.5)
{
if (type != 0 & type != 1)
stop("type must equal 0 or 1")
if (central.prop < 0 | central.prop > 1)
stop("central.prop must take value between 0 and 1")
M <- dim(zmat)[1]
if(M < 120^2 & miss... |
fcf9c247bd827695d2f3e3880fa0728aaf079eb3 | bc29afd23556108467937f46bff2afa06389e4d0 | /Fit-DLM-Region-ARMA.R | 982467251d1182dec565e567972040f596d18ac3 | [
"MIT"
] | permissive | OcnAtmCouplingAndClimateForcing/Salmon-PDO-NPGO | 062df5342eb45aca7c48caf359f1c72655c8a137 | c0fe414ac3f9ec8a234c495e48903c6f6b8a3ae2 | refs/heads/master | 2020-04-11T10:15:59.037612 | 2020-04-05T19:11:53 | 2020-04-05T19:11:53 | 161,708,919 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,175 | r | Fit-DLM-Region-ARMA.R | #==================================================================================================
#Project Name: COAST-WIDE SALMON RECRUITMENT ANALYSIS - Fit DLM-Ricker with Time-varying Components Shared Among Regions
#Creator: Curry James Cunningham, NOAA/NMFS, ABL
#Date: 8.20.18
#
#Purpose: To fit a dynamic linear... |
951767120bdfd197ed5b8f977749cbf04e0c9cd6 | 304dd2903689719fc3500832692c4a84901a9872 | /captstone_lvm_p2.R | 4305dcf438b9479ddfbd20f650ad2e0dc9368c97 | [] | no_license | VijayMudivedu/capstone_project | 7fa83c36487b8c373d4679719c272a8f93f1a020 | f90bfb9a1b43649be5a26c27ecc0925cdcce6f8e | refs/heads/master | 2020-03-27T11:21:04.015963 | 2018-10-28T13:18:11 | 2018-10-28T13:18:11 | 146,480,931 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 78,145 | r | captstone_lvm_p2.R | # ---
# title: "Hospital Ratings CMS"
# author: "Vijay Mudivedu"
# date: '2018-10-28'
#install.packages("mice")
#install.packages("psych")
#install.packages("doParallel")
#install.packages("cowplot")
#install.packages("tidyverse")
#install.packages("randomForest")
#install.packages("caret")
library(tidyverse)
library... |
29e355a45110d0b7919f13389975cb80af5de1d2 | a4e18c89c6c0a151c7ba753bc78379e393fa8527 | /bap/bin/R/10b_knee_execute.R | c97aed55b466ccf829b186c95748f5e0bddd03d1 | [
"MIT"
] | permissive | caleblareau/bap | 48afa890f63283701a5901c264c7d748acf6655b | 44061cdcc16d60d6a757d518d55b4dfe66afb436 | refs/heads/master | 2021-11-25T20:39:18.077898 | 2021-11-13T08:10:36 | 2021-11-13T08:10:36 | 126,544,643 | 27 | 12 | MIT | 2020-03-23T20:02:51 | 2018-03-23T22:26:00 | Python | UTF-8 | R | false | false | 1,122 | r | 10b_knee_execute.R | options(warn=-1)
suppressMessages(suppressWarnings(library(tools)))
suppressMessages(suppressWarnings(library(data.table)))
suppressMessages(suppressWarnings(library(dplyr)))
# I/O
args <- commandArgs(trailingOnly = FALSE)
# Parse parameters working backwards since I am keeping all of them
# to be able to source the... |
21a9d1e7ab995e1cdaf4a703b6e75ad07b3fa837 | f7b5423257a4e65cae9578edb9539811de6600b1 | /man/tdew.Rd | a5845417ad11e1758bacc42bd02376ae71db5116 | [] | no_license | cran/lue | a19c0361da6389cfbb3adba6cf372fc770de371e | 40f4e907b2af0823bff2b6c4e237e932ba525a0a | refs/heads/master | 2020-03-16T01:57:22.749475 | 2018-06-14T11:39:16 | 2018-06-14T11:39:16 | 132,453,214 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 282 | rd | tdew.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tdew.r
\docType{data}
\name{tdew}
\alias{tdew}
\title{Dewpoint Temperature}
\format{A rasterbrick (.nc)}
\usage{
tdew
}
\description{
Input dewpoint temperature dataset
}
\keyword{datasets}
|
131567dc3cd31607cb661d3c04a84f5893a334ed | 8bfb07d4492bf8901070e678846991f497794199 | /man/add_mdi.Rd | 1884c2ef0df49241c9521b598bf3048ec6c7c32d | [] | no_license | DanielSprockett/reltools | 5b38577e1a3257af40d47c19c39778a32214107d | f693109c03ebd6944fdb42b7bff29d18cb49341b | refs/heads/master | 2021-08-23T23:04:48.558234 | 2017-12-07T00:49:13 | 2017-12-07T00:49:13 | 113,137,957 | 3 | 0 | null | null | null | null | UTF-8 | R | false | true | 721 | rd | add_mdi.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/microbiome_tools.R
\name{add_mdi}
\alias{add_mdi}
\title{Adds Microbial Dysbiosis Index to a phyloseq object}
\usage{
add_mdi(ps)
}
\arguments{
\item{ps}{A \code{phyloseq} object that contains \code{\link[phyloseq]{sample_data}}}
}
\value{
Th... |
34507009dddb20edd5c30f011d8fdc46a1b7fdd1 | 1754bdcc779ddea0d3ce59565d5df0ef51b6233f | /man/new_difftime.Rd | 3143aa92f9a62fd2ebd2ba798bb721bcf2e2edaf | [] | no_license | Vald/lubridate | 357b6ff5fdde6f9be7275f262d4cbb43036f1306 | 52f127ebcf8aa7f6ef6535f80468223ec32a70ec | refs/heads/master | 2021-01-18T07:42:55.389632 | 2012-01-08T01:43:12 | 2012-01-08T01:43:12 | 2,876,319 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,773 | rd | new_difftime.Rd | \name{new_difftime}
\alias{new_difftime}
\title{Create a difftime object.}
\usage{
new_difftime(...)
}
\arguments{
\item{...}{a list of time units to be included in the
difftime and their amounts. Seconds, minutes, hours,
days, and weeks are supported.}
}
\value{
a difftime object
}
\description{
new_diffti... |
e1c99695e5ee9b46c0f1ae20a5dee74fb7138164 | 442b054ceb7a3c5c2cc4e04e11be41002109e294 | /man/diffproportion.CI.Rd | 91b852a18ae4f85f2880d95578b91aa5645b240b | [] | no_license | cran/LearningStats | 966b2a0d973443d186af8cdbe3c695fe3bce1c82 | df5f6a1dfe0bd8922b2f5501054c963cf88e05b4 | refs/heads/master | 2023-04-09T11:15:51.318191 | 2021-04-21T06:10:05 | 2021-04-21T06:10:05 | 360,260,614 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,992 | rd | diffproportion.CI.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diffproportion.CI.R
\name{diffproportion.CI}
\alias{diffproportion.CI}
\title{Large Sample Confidence Interval for the Difference between Two Population Proportions}
\usage{
diffproportion.CI(x1, x2, n1, n2, conf.level)
}
\arguments{
\item{x1... |
3f827e9b58360a9e7dd531c22a6f737e69024e39 | 79b935ef556d5b9748b69690275d929503a90cf6 | /man/intensity.dppm.Rd | 3d5fee432fd54d900fb698767f871fb78b95659f | [] | no_license | spatstat/spatstat.core | d0b94ed4f86a10fb0c9893b2d6d497183ece5708 | 6c80ceb9572d03f9046bc95c02d0ad53b6ff7f70 | refs/heads/master | 2022-06-26T21:58:46.194519 | 2022-05-24T05:37:16 | 2022-05-24T05:37:16 | 77,811,657 | 6 | 10 | null | 2022-03-09T02:53:21 | 2017-01-02T04:54:22 | R | UTF-8 | R | false | false | 730 | rd | intensity.dppm.Rd | \name{intensity.dppm}
\alias{intensity.dppm}
\alias{intensity.detpointprocfamily}
\title{Intensity of Determinantal Point Process Model}
\description{Extracts the intensity of a determinantal point process model.}
\usage{
\method{intensity}{detpointprocfamily}(X, \dots)
\method{intensity}{dppm}(X, \dots)
}
\argume... |
3df460b90f3bb029308af9e01bdc53dd2788d869 | 8ae4321d27dc0a0edd9d1017dd411a659e0afcf4 | /DSO_545_Assignment4.R | 59c2b395db83ddb42671a057c00ed398b84837bb | [] | no_license | alok-abhishek/data_Visualization_works | e621aef8375e679ec20eb3906db9bb222a1012d5 | 189aded0e787a8d3cba94e1b9c77fbd851eedb70 | refs/heads/master | 2020-03-17T22:17:17.236181 | 2018-07-01T03:11:33 | 2018-07-01T03:11:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,763 | r | DSO_545_Assignment4.R | ## Assignment 4...
library(stringr)
library(ggmap)
library(ggplot2)
library(dplyr)
library(lubridate)
library(maps)
library(mapproj)
# set the working directory
setwd("C:/Users/alok_/OneDrive/MBA Academics/Second Semester/DSO-545 Statistical Computing and Data Visualization/Assignment/Assignment_4")
# Cas... |
51ab6dd8a54930c2355fc4835a0f5a43f7add30e | d3e457b28d58a36084cb85b47aae44cdcd447be2 | /Fuller_2015_scripts/Sim_thresh.R | 0736df9c03eebd7f19c152bae72067470f91fb51 | [] | no_license | afredston/dispersal-model-old | f2701e7651d0e473db9301ed558166695a97cf7d | 16573c62af67b28e449def387449460561211566 | refs/heads/master | 2021-06-10T07:50:50.588920 | 2017-01-31T17:16:38 | 2017-01-31T17:16:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,410 | r | Sim_thresh.R | # Sim_thresh.R
# runs simulations in which there is threshold management, MPAs are not possible
# initializing the population with no pressure (no harvesting, no climate)
init<-rep(0,w) # rows are world, columns are time
init[which(patch==0.55)]=50
MPA.start = rep(c(mpa.yes,mpa.no),length.out=length(world))
outp... |
f57151074fbc9776caf20c5a0b4a5c374a579a83 | ea492f927e78f9eef5e805bb1b884830c1a76f68 | /ncTemplates/man/ctd_nc.Rd | 8f1276453ce2e37097908e3d3e470b992eb0974f | [] | no_license | EOGrady21/netCDF | b1f2d7041fb3e556919953b9b54963ac812e00d3 | 742615c0b8422ca4c260065d7118fc216fe40c46 | refs/heads/master | 2022-04-27T16:23:19.705034 | 2019-04-17T16:46:40 | 2019-04-17T16:46:40 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 962 | rd | ctd_nc.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ctd_nc.R
\name{ctd_nc}
\alias{ctd_nc}
\title{CTD netCDF template}
\usage{
ctd_nc(obj, upcast = NULL, metadata, filename = NULL)
}
\arguments{
\item{obj}{an odf object from oce which contains mctd data}
\item{metadata}{a csv file following th... |
565d4c38b13b7e45a2c72b65075302bdc2b2935c | fb3f24a4af741e73144fc473c3dc317a0eb87cf0 | /code/analysis/fit_posteriors_preamble.R | 5806e8521c0e929168cd97d56d5c649cf8e4ba17 | [] | no_license | littlecanargie/CtTrajectories | 26893d318dccba3e32190aa01c0933850e939f75 | 7c359a8a175022544124a504d7e899cbf28e67f0 | refs/heads/main | 2023-02-07T19:38:54.423836 | 2020-12-31T10:10:47 | 2020-12-31T10:10:47 | 325,772,241 | 0 | 0 | null | 2020-12-31T10:10:30 | 2020-12-31T10:10:30 | null | UTF-8 | R | false | false | 2,275 | r | fit_posteriors_preamble.R | library(tidyverse)
library(lazyeval)
library(rstan)
library(shinystan)
library(purrr)
library(data.table)
options(mc.cores=parallel::detectCores())
source('code/utilities/utils_analysis.R')
# Store the number of people we've kept:
n_indiv <- length(unique(ct_dat_refined$Person.ID))
# Store the ids of the people we... |
15b8661264aa98a62d36ef97c65401da52109cf0 | a3294d2cf003c2ebebbd177cc94aa621747df650 | /NetworkEvolution.R | f1174d52a12c59523e69a3fa3baca3b9b417e64d | [] | no_license | derek-corcoran-barrios/Rscraper | 77d36800899125f391337a78149f767fd36c084a | a3068a82fdb3eaa4907c55aa49bf248ee7117f5b | refs/heads/master | 2020-03-23T08:33:05.498662 | 2018-07-17T19:32:54 | 2018-07-17T19:32:54 | 141,333,417 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 315 | r | NetworkEvolution.R | if (!require("pacman")) install.packages("pacman")
pacman::p_load(tidyverse, sqldf, igraph)
NetworkCran <- read_rds("2018_06_23NetworkCran.rds")
pageDate <- read_rds("pageDateComplete.rds")
NetworkDate <- NetworkCran %>% left_join(pageDate) %>% dplyr::select(Package, Depends, First_date) %>% arrange(First_date)
|
7b540a649558f212d814f8e57cd7903cc395c379 | 196d6a47ef55f1c68584ef443dcc611d1e21835d | /tests/testthat/test_amPie.R | 27725d846ae6eaf51e280f1826f6119214a22d28 | [] | no_license | datastorm-open/rAmCharts | 452083b44658b99423ae790f176c856eae24f4c5 | 5f61ad704aa77fbe2af7fc6b90d96e7873615d69 | refs/heads/master | 2022-10-06T04:54:36.784313 | 2022-09-29T07:47:42 | 2022-09-29T07:47:42 | 38,245,790 | 42 | 18 | null | 2020-11-19T11:11:13 | 2015-06-29T12:10:46 | JavaScript | UTF-8 | R | false | false | 666 | r | test_amPie.R | testthat::context("amPie")
# Load data
data("data_pie")
testthat::test_that("Reference example", {
testthat::expect_silent({
amPie(data = data_pie)
})
})
testthat::test_that("Hide values", {
testthat::expect_silent({
amPie(data = data_pie, show_values = FALSE)
})
})
testthat::test_that("3D pie", {
... |
b106a1536afc5454e7ec0cd0d45dc3afcecbb50c | 3bee634c1dd4863f3f3af53bed237f9320a8f9e9 | /run_analysis.R | aaadd37dbd6bd8cab2fcc8d34f51654a8bf03522 | [] | no_license | todrews/CleanSmartphoneData | 7ba675c5e0de3958cf79bcbe362a5d5bb703f05a | 8f3f7e3943ee6fc9fda29912d68ed07e52bca584 | refs/heads/master | 2021-01-01T06:44:51.031619 | 2015-06-21T17:31:15 | 2015-06-21T17:31:15 | 37,817,850 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,674 | r | run_analysis.R | ## read in the test data
test_data <- read.table("./UCI HAR Dataset/test/X_test.txt")
test_data <- data.matrix(test_data)
test_activity <- read.table("./UCI HAR Dataset/test/Y_test.txt")
test_subject <- read.table("./UCI HAR Dataset/test/subject_test.txt")
## create the test data set by adding the activity and the sub... |
a78b5facfcb38b8be2b02d158a09f909c2da28da | 5857a9a943eb95eccc6bf11273ccd6468e8c9e63 | /photometric_redshift_teddy/process_data.R | c6c7f22eb285f662aafe41c3a6bf05047475343b | [
"MIT"
] | permissive | Mr8ND/cdetools_applications | 068f79ee159012eb9a4398b31f3489675b3cf0a9 | a5ffa033bc304f74b485b783f74a047f726ec468 | refs/heads/master | 2020-06-11T13:03:54.303821 | 2020-03-29T16:01:06 | 2020-03-29T16:01:06 | 193,974,191 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 965 | r | process_data.R | library(rhdf5)
datadir <- "Teddy/" # Name of the folder where Teddy data are
#### Defining functions for selecting covariates and response
#### and dividing training and testing
process_data <- function(fname) {
dat <- read.table(fname, skip = 7, header = FALSE)
x <- as.matrix(dat[, 8:12])
y <- as.vector(dat[, ... |
527c901d6a3b71cc5b2d579a76135817e4e51e3e | decd025fc88fa50fb3b22f431310641b184c8f9d | /CST383/hw5/hw5_knn.R | 2bfbae128ed110f09acf51a6b972b627a722e536 | [] | no_license | mlisec/cst383 | 6697edba4fc082920ac99eb933e656c63cc8e58f | 9655b73c941ef89f53b1e3c2c8d046a706dc4678 | refs/heads/master | 2020-06-28T03:55:27.864007 | 2019-08-12T16:52:27 | 2019-08-12T16:52:27 | 200,136,723 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,138 | r | hw5_knn.R | #
# k nearest neighbor with applications to college data
#
# Instructions: replace the 'YOUR CODE HERE' with your own code.
# There are five place where you need to do this.
# DO NOT modify the code in any other way!
#
# a simple kNN classifier
#
# return a knn classifier
# dat - training data; a d... |
66bae3e8382dd4e2796dc613914f18685ef1e8b4 | f4c82fdbeed7de135dbfbf5a5da1ea8790dfdcd1 | /2021.07.15-gas_prices/scripts/gas_wrangle.R | 1b29a733655f6c3197eca66ea45ea8c7c7f6ab77 | [
"MIT"
] | permissive | markjrieke/thedatadiary | 917e2728729c2240ad76250e9179f63026fe7ac1 | 355425a07652bb9c19a655b657437af5157fb485 | refs/heads/main | 2023-08-26T09:57:32.529806 | 2021-11-01T18:54:22 | 2021-11-01T18:54:22 | 329,080,502 | 0 | 0 | MIT | 2021-10-04T14:25:03 | 2021-01-12T18:45:02 | R | UTF-8 | R | false | false | 4,001 | r | gas_wrangle.R | # libraries ----
library(tidyverse)
library(lubridate)
# theme ----
source("dd_theme_elements/dd_theme_elements.R")
# cpi
f_cpi <-
read_csv("https://fred.stlouisfed.org/graph/fredgraph.csv?bgcolor=%23e1e9f0&chart_type=line&drp=0&fo=open%20sans&graph_bgcolor=%23ffffff&height=450&mode=fred&recession_bars=on&txtcolor... |
d0a968890c79318e0d12afab1dcd4a9cc258347c | c24d1fd18c1cd08287ec718158c47f12a9b801b3 | /Scripts/10.LOLA/Scripts/0.LOLA_Learning.R | 37d265f728dc559f385843057ca58d02c43014b7 | [] | no_license | Christensen-Lab-Dartmouth/PCNS_5hmC_06112020 | 68b516905bd12827fe476fd7f1b4c134f3bf0b48 | f89e8fbbae365369aa90e6a16827d1da96515abc | refs/heads/master | 2022-11-07T19:01:36.180358 | 2020-06-11T13:35:14 | 2020-06-11T13:35:14 | 271,554,640 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,361 | r | 0.LOLA_Learning.R | #LOLA
#subset to appropriate cell lines
#universe is top5%
#collection of interest -> filter
#Load LOLA
#Can figure out which databases may be most useful to you using this
#http://lolaweb.databio.org/
#Go to website, laod universe and region list. Go to tables and it will give you most relevant databases with info on ... |
89ee602b0818fb6cf3a635059f5a0331f8ea2953 | b4d3e44e7da647defaf290cc219a0011e9bab5f9 | /man/read_apsim.Rd | e2f4b91650ed14225614948f28d54c0a4e47b8ab | [] | no_license | femiguez/apsimx | 81313570fbbbb915ba1519ad0cd95ac0d38dc4df | 7df3b0a34d273e8035dbe22d457ed3911d07d7bc | refs/heads/master | 2023-08-10T13:49:57.777487 | 2023-05-22T14:53:51 | 2023-05-22T14:53:51 | 194,395,452 | 34 | 21 | null | 2023-07-28T15:27:39 | 2019-06-29T10:54:27 | R | UTF-8 | R | false | true | 1,130 | rd | read_apsim.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apsim_classic.R
\name{read_apsim}
\alias{read_apsim}
\title{Read APSIM generated .out files}
\usage{
read_apsim(
file = "",
src.dir = ".",
value = c("report", "all"),
date.format = "\%d/\%m/\%Y",
silent = FALSE
)
}
\arguments{
\item... |
a8ecc280a49857fae96f4f0c4e09cc5a55a5ec38 | cdf80ced11c2453eeeccaca52718ea0f9591a178 | /cachematrix.R | 8d40891d262f78968799586a33adc52684028153 | [] | no_license | puruparu/ProgrammingAssignment2 | 9c8b2711c7fcdadfddaba5efceba89243f13c63b | 32e9744825307eb88141d451e2f70f81abb216e4 | refs/heads/master | 2022-11-24T12:31:44.989513 | 2020-07-28T08:45:48 | 2020-07-28T08:45:48 | 282,711,922 | 0 | 0 | null | 2020-07-26T18:43:45 | 2020-07-26T18:43:44 | null | UTF-8 | R | false | false | 978 | r | cachematrix.R |
## makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse.
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
inv<-NULL
set<-function(y){
x<<-y
inv<<-NULL
}
get<-function()x
setinverse<-function(inverse) inv<<-inverse
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.