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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c2ab5d187ad363bc7c1ee00b23b36a1ed9b94dc1 | 26a4aaae333e1ada90d7d12f0d74c36045f5f429 | /2-(3) plotting weather.R | 6539923d3953668c26f7c5b96739cf7a45b30564 | [] | no_license | supportchelsea/Crawling_naverAPI | 7425c8d6ba18bcfb647d7564f7db5e6a5b3e5770 | 52094dd27fb11ee1c84e6dc8b1072258be8353c6 | refs/heads/master | 2020-03-26T18:14:05.515947 | 2019-08-07T04:44:17 | 2019-08-07T04:44:17 | 145,202,694 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 313 | r | 2-(3) plotting weather.R | # make the new dataframe to draw a plot
weather = rbind(w2017,w2018)
head(weather)
str(weather)
#plotting
ggplot(weather, aes(x=date, y=degree,group=1)) + geom_line(linetype="solid", color="black", size=0.5)+ ggtitle("Degree",subtitle = 'from 2017-08-01 to 2018-07-24')
write.csv2(weather, file='weather.csv')
|
a18ad26c88c59c8866d290dbb724b966cb1db6b5 | 80e0469caa7900baaa6262b3b652e40db7088160 | /complete_data_analysis/marginal_value_information_plotting_functions.R | dcb975c022d7df91ae4560033c242c616d0545d7 | [] | no_license | diegoleonbarido/flexbox-data-dump-analysis | 8821e7bf897f5debbcaac0074bef46f15e3f5eb7 | d895385a977fb2db3e7798856d92703fced5598f | refs/heads/master | 2020-12-11T21:15:56.567109 | 2017-08-15T22:49:30 | 2017-08-15T22:49:30 | 39,653,179 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 88,278 | r | marginal_value_information_plotting_functions.R | ######### Plotting functions for the Marginal Value of Information
######### 1. Timeseries Plots for Treatment and Control
plot_energy_cost_ft <- function(treatment_time_series_data_table,control_time_series_data_table,data_time_series_data_table,energia_text_var,energy_file){
count.plot.list <- list()
coun... |
24c5a3831573d4b417fda0b5ef6fa8c14dc5bd30 | e9b3174732943e94cd1144d620608e2614e5773b | /sep_26_backend.r | 1253e930a9992110e34a15491f97f83ca6b00472 | [] | no_license | johnchower/top_500_users | a0ce7804f49944ca628b3d11654ca31d05634d56 | 82c01dbdaa38fd1878b70f7e3219d63b3e3c49ad | refs/heads/master | 2020-12-02T12:42:15.808159 | 2016-09-21T20:34:19 | 2016-09-21T20:34:19 | 66,874,400 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,923 | r | sep_26_backend.r | # (Cohort, account_type) breakdown by tier
user_cohort_breakdown_data_list <- user_tier_cutoffs %>%
as.list %>% {
names(.) <- paste("top", ., sep = "_")
return(.) } %>%
llply(.fun = function(cutoff){
y <- char_tidy_user_table %>%
filter(variable %in% "Account_Type") %>%
dcast(user_id ~ variabl... |
a550f946847ea299fad5110f3612f1d1d7f8accf | 4b78f55a6b31e6f285d2d1dee360919ef1f311cb | /profiling_script/utils/exception_handling.R | 90852e9381a4e3aa1e5ffbd7d9644d628099a5ef | [] | no_license | mostafa-zakaria/Python_R_Automation-Tests | 06d1a9366f3389f6cdbe76ef5f50e2e3cf4e2e36 | b9348878a3e9798ce9b21963e0250531e200ae41 | refs/heads/master | 2021-01-23T08:03:49.561841 | 2017-04-06T10:38:02 | 2017-04-06T10:38:02 | 86,473,065 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 603 | r | exception_handling.R | throw_invalid_number <- function (x) {
custom_stop("invalid number", paste('invalid number:',x,"column is not a number. Check the decimal_separator parameter in profiling_sales_item.R file."))
}
custom_stop <- function(subclass, message, call = sys.call(-1), ...) {
c <- condition(c(subclass, "error"), mes... |
efcc5a85cec23b8263905430cc4a112ae2156d6f | 727e96e85a03cf01d46c132225e171218c8dd1e5 | /inst/asmntDashboard/helpers/splitMod.R | fceaf13a44c4bcea1fb946ba328056cebe39c9ca | [
"MIT"
] | permissive | utah-dwq/irTools | 6faf9da88514cf72b2166f48074348c00a6f2137 | da34c77f363a00767563d76112ea87004c3be0d4 | refs/heads/master | 2023-08-31T23:58:52.981989 | 2023-08-25T15:31:22 | 2023-08-25T15:31:22 | 147,577,302 | 2 | 0 | MIT | 2022-08-30T21:54:40 | 2018-09-05T20:44:04 | R | UTF-8 | R | false | false | 1,291 | r | splitMod.R |
# AU split module
splitModUI <-function(id){
ns <- NS(id)
tagList(
shinycssloaders::withSpinner(editModUI(ns("auSplit"), height='800px', width='800px'),size=2, color="#0080b7")
)
}
splitMod <- function(input, output, session, selected_aus, au_asmnt_poly, site_asmnt, na_sites, rejected_sites){
reactive_objects... |
d2afdbf1f9fd4f49ce3e49f74b37a1c61fad0010 | 9ba9709a05ef94046d80dfee2720e1c7baf1c8b4 | /publish_examples.r | 70a71d27af19ad8f20ed1d8a19fed2195bb8e901 | [] | no_license | biips/biips-examples | fa9452dd580b307cd31333f43ef8480fac37d82f | 544289de3e3335f59d6ccaef92e6d5689524704e | refs/heads/master | 2021-01-11T15:52:32.007782 | 2018-05-07T15:16:03 | 2018-05-07T15:16:03 | 79,945,410 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,173 | r | publish_examples.r | library(rmarkdown)
root_dir = getwd()
output_dir = file.path(root_dir, "docs/rbiips")
clear_cache = TRUE
example_scripts = list()
example_scripts$tutorial = c("tutorial1", "tutorial2", "tutorial3")
example_scripts$object_tracking = c("hmm_4d_nonlin")
example_scripts$stoch_kinetic = c("stoch_kinetic", "stoch_kinetic... |
2a6de6cf4fc17672b0a4d43ac176a3906aecbbeb | a40ece4b297a4f4c08d59b65b198f584bf965f59 | /init_png.R | c228e9402de871fd42e394153f67368dda64ff67 | [] | no_license | qqchito/ExData_Plotting1 | 8ed642c0f7db55c59feaeb3ad117f4072f408a5f | e7dbc9a7fa4be8ae5766228a9b32d5dfac09b113 | refs/heads/master | 2022-12-10T04:45:34.244837 | 2020-09-04T00:50:23 | 2020-09-04T00:50:23 | 292,407,934 | 0 | 0 | null | 2020-09-02T22:27:44 | 2020-09-02T22:27:43 | null | UTF-8 | R | false | false | 177 | r | init_png.R | #Code to initialize a PNG file to save the plot
init_png <- function(file, w, h) {
#Call to png function to save the plot to
png(file = file, width = w, height = h)
} |
fbd2d6e21c6b0f2c058819ab935958f513e0cdad | 5e6ecbbb128562a065f576684c66c8c1ed07e50b | /ex7p3regressiontest.R | 19572076463db6a4fed8311136767dd5a0951ba3 | [] | no_license | jodietrich/compstat | 4630630b75048aa66babe90e3359d67399340a91 | 418a1ce9902c44ec35b1b6b68fbfa955d266ff44 | refs/heads/master | 2021-04-15T10:13:12.410523 | 2018-05-15T16:08:24 | 2018-05-15T16:08:24 | 126,856,447 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,917 | r | ex7p3regressiontest.R | # 3a load data and fit polynomial up to degree 3
polynomial.degree <- 3
filename <- "C:\\Users\\aaaa\\Documents\\Code\\compstat\\data_ex3.csv"
# plot distribution of errors
t <- seq(-4,4,.001)
z <- dgamma(t+1,2,2)
plot(t,z)
# plot data and fit
data <- read.csv(filename)
x <- data$x
y <- data$y
poly.x <- poly(x, degre... |
5818d8cb1d36963d321cbb807fcb82f6c18ea493 | bda15a37285411d70ae8432fabdf27096070199b | /man/comm_open.Rd | c8bc6f850f64ec9b3e4923011c2084bd32b478d1 | [] | no_license | cran/JuniperKernel | 27ea3304bb36590096bb6a7289bc89f441884ea1 | b118eab508b11c6016c4b67cbf6bbfbb75a893b8 | refs/heads/master | 2018-11-12T21:30:52.017957 | 2018-07-09T15:20:03 | 2018-07-09T15:20:03 | 114,757,125 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 628 | rd | comm_open.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/comm_open.R
\name{comm_open}
\alias{comm_open}
\title{Comm Open}
\usage{
comm_open(request_msg)
}
\arguments{
\item{request_msg}{A list passed in from \code{doRequest} representing the
deserialized \code{comm_open} message JSON.}
}
\descripti... |
e0f22981521ad216a3f47942fa56ed0f197bea57 | 040978be49651c2ffc63104fa971d6be39821c62 | /testthat/test-inner-product.R | bbdb59da057a7cc4217575619da530e8fea7deb1 | [] | no_license | RcppCore/RcppParallelTests | 28ee9744e7e845b0d0d7bb500e5d1f65b57859f7 | b5701bf7f4b4a949c69ce8def6c8e2690a630ba5 | refs/heads/master | 2021-01-21T11:46:13.222562 | 2014-07-24T22:49:09 | 2014-07-24T22:49:09 | 22,141,842 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 253 | r | test-inner-product.R | context( "inner product" )
test_that( "parallelInnerProduct works with Rcpp", {
sourceCpp( "cpp/innerproduct.cpp" )
x <- runif(1000000)
y <- runif(1000000)
expect_equal(innerProduct(x, y), parallelInnerProduct(x, y))
})
|
ea0050af78ad0efc99d9492f87783340de19f855 | 501b73fe00433ddb89ee25e9317807619427d3b1 | /R/bootci_prop.R | 0e2728029a6843a7abfe9920de8bea963eef4b74 | [] | no_license | Rianka2016/AdaptSlopeCut | 360a6a481974839b329fab5ba0507e3c23923f65 | 4938076fd5cb08ce225804c15114549afd35ad1f | refs/heads/master | 2016-08-12T13:52:28.993862 | 2016-04-22T21:57:58 | 2016-04-22T21:57:58 | 53,029,858 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,105 | r | bootci_prop.R | mulsimci_prop <- function(nsamp,
k,
cfj,
par,
vcovpara,
sc,
scenario, # dataframe representing different effect-size scenarios for diff combination of median and cu... |
f0c5dae966c10ef3fe61c5f993a2603026ab6e7f | 1ebcc51f06fb337cc80940c33f4926e5a5669641 | /tests/testthat/test-precision.R | f49f76042d6af7dbeb1dc41db92dee90281dfffa | [
"MIT"
] | permissive | malcolmbarrett/precisely | 7baf2e80666f5a18de6cd271af115038629b55ea | 8e4c2f2db3bfb9ac8b853a675608f7f02d301021 | refs/heads/master | 2021-10-11T06:12:55.323059 | 2021-10-10T20:29:32 | 2021-10-10T20:29:32 | 152,901,375 | 91 | 4 | NOASSERTION | 2021-10-10T00:27:12 | 2018-10-13T18:18:04 | R | UTF-8 | R | false | false | 1,809 | r | test-precision.R | test_that("precision OR functions work", {
or <- precision_odds_ratio(
n_cases = 500,
exposed_cases = .6,
exposed_controls = .4,
group_ratio = 2
)
expected_names <- c(
"precision", "odds_ratio", "n_cases", "n_controls", "n_total",
"exposed_cases", "exposed_controls", "group_ratio", "ci"
... |
8bee6aa0a9df65320243ce4022a1cd4f79233c46 | 58b6270f3a45133a7e2dc8a08f80165a881bab91 | /miprimerscript.R | 7ee9d3b19a1c73e5b07bca86e7c317a11c260396 | [
"Unlicense"
] | permissive | barbarazambrano/trabajo_en_clases | bc8da62974393c9514fe7457ed2dfad2b21ea88a | fd5e8f75c3bbc644ef4df814bb97052b1241bfb1 | refs/heads/master | 2020-05-30T03:29:01.274168 | 2019-05-31T02:53:35 | 2019-05-31T02:53:35 | 189,516,747 | 0 | 0 | null | null | null | null | MacCentralEurope | R | false | false | 1,604 | r | miprimerscript.R | #instalar paquete ggplot2
#install.packages('ggplot2')
library(ggplot2)
variableUno <- 1
variableDos <- 5
variableUno <- 'a'
#se le asignů un caracter a la variableUno, se cambio el valor 1, por el caracter a
variableDos <- TRUE
variableTres <- "fui a la esquina y volvi"
variableTres <- 1.6
#eliminar variables
rm(... |
cf1ff14fef999dd76ab04647497eebc1dfec5ab6 | 6aa1252972ca74ee76cb78381f05d0cdab7fb2dc | /Plot1.R | eb1911e7eb9a29c7b72622646a6db7be673fca37 | [] | no_license | monazhu/ExData_Plotting1 | 39c9ec0e64a30691294d0770d411f756b32f1398 | ab44c1275c7c34a1f595d4c3b80fb6741c574b01 | refs/heads/master | 2021-01-16T19:21:33.749552 | 2014-11-09T06:42:55 | 2014-11-09T06:42:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 825 | r | Plot1.R | # setting working directory
setwd("C:/Users/Evil Plushie/Dropbox/Coursera/Module 4")
# reading file as data frame
DF<-read.table("C:/Users/Evil Plushie/Dropbox/Coursera/Module 4/household_power_consumption.txt", sep=";", header=T)
# changing Date into date format
DF$Date<-as.Date(DF$Date, "%d/%m/%Y")
# obtaining subs... |
5ed1d7b33def126a936ef5f4cedd59f4ccd6ce1a | d65313edbb18f0920bc157492cdf94f6dfc86605 | /10.Operações matemáticas em vetores.r | 3e2e344b6cc6a58222eb10584cf745db85bdccef | [] | no_license | HenriqueACF/Fundamentos-R | 0cd32c84105ee3b935ae478a7123b130c619be71 | 31a17788e1002a25b5a58cc849e174ace46073fc | refs/heads/master | 2023-01-12T13:41:16.445567 | 2020-11-13T20:15:06 | 2020-11-13T20:15:06 | 309,875,647 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 375 | r | 10.Operações matemáticas em vetores.r | #Vetor a ser calculado
x <- c(1:10)
x
#soma
x + 10
#Mutiplicação
x * 10
#O valor de X continua o mesmo que foi declarado, não sofrendo nenhuma alteração
#Se feita alguma operação matematica em um vetor, e quiser os dados alterados
#se cria um novo vetor
Xsoma <- x + 10
Xsoma
#Já na multiplicação entre vetores o compri... |
d8d779553b19ae04afedeaa26e2c9f68398850b3 | 0f8d1c1435f1417aaf3b01bfdb1fba0a6dce6942 | /man/getImages-Dataset-method.Rd | 20d31961858edff1b9809a44ceb6441cc62bdb61 | [] | no_license | jburel/rOMERO-gateway | 281711608447c74139096b344bba729dacefd88b | c1f0119675f566b4ae7ab0f91ea65783f5dcd159 | refs/heads/master | 2022-09-26T21:06:34.710460 | 2022-09-07T17:11:38 | 2022-09-07T17:11:38 | 45,210,719 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 388 | rd | getImages-Dataset-method.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Dataset.R
\docType{methods}
\name{getImages,Dataset-method}
\alias{getImages,Dataset-method}
\title{Get all images of a dataset}
\usage{
\S4method{getImages}{Dataset}(omero)
}
\arguments{
\item{omero}{The dataset}
}
\value{
The images @seeals... |
6365b89323f10a099d92d4d2ab586a961e3069e2 | 132a9a34f29bc11e9912c8858f14f44c302455b9 | /R/immigrant.R | 3ca08b288adddf42be6982d2810d2b047d66e47a | [] | no_license | tloux/slubst3100 | e28b1fb7df37825c82b3fba7321d0904dd9ca6f2 | abe9a95069974c335d30abbb890d54fb713c7f3e | refs/heads/master | 2021-07-08T20:48:30.437237 | 2020-09-15T16:00:01 | 2020-09-15T16:00:01 | 191,233,443 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 350 | r | immigrant.R | #' Fictional data set on immigrant depression
#'
#' A dataset containing clinical depression diagnosis for 275 U.S. immigrants.
#'
#' @format A data frame with 275 rows and 2 variables:
#' \describe{
#' \item{id}{Study participant identification number}
#' \item{depr}{Indicator variable for diagnosis of clinical ... |
d99afa48f3791d542e336d8d6a5a7124ec68a89a | 4115c98348bf0e7fe944272d91fe351d58d22a96 | /R/ISSR800.R | 1334a449177886a513e05ea9b4123284ede45a5f | [] | no_license | ncss-tech/soilDB | a933bf98a674fd54b5e1073a4497ee38a177bdf2 | 380440fc7b804b495aa711c130ab914c673a54be | refs/heads/master | 2023-09-02T14:19:17.348412 | 2023-09-02T00:56:16 | 2023-09-02T00:56:16 | 54,595,470 | 68 | 20 | null | 2023-09-01T19:00:48 | 2016-03-23T21:51:10 | R | UTF-8 | R | false | false | 7,708 | r | ISSR800.R |
#' @title Get 800m gridded soil properties from SoilWeb ISSR-800 Web Coverage Service (WCS)
#' @author D.E. Beaudette and A.G. Brown
#' @description Intermediate-scale gridded (800m) soil property and interpretation maps from aggregated SSURGO and STATSGO data. These maps were developed by USDA-NRCS-SPSD staff in coll... |
aec10ffe541fec49e5a21d74c6baae7551c3eca4 | a5625f5ebf2ad7d28e21ccbcc4f6e446b8862068 | /avances/fourierR.R | cd12e16e258604b551bede2321acb81dda6d3a11 | [] | no_license | dhasane/numerico | 00c5b6e6baf78f8765dc86b57370dd269dcf0eaa | 96d55873299d18cbe8a6b533a94999013ab90163 | refs/heads/master | 2020-04-20T00:39:43.326472 | 2019-07-03T19:20:24 | 2019-07-03T19:20:24 | 168,526,643 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,061 | r | fourierR.R | intAn<- function(bin , numero , frecuencia )
{
tam = length(bin)
x = 0
pin = pi * numero *2 * frecuencia
dat = 0
for( nbin in bin ){
print( nbin )
if (nbin != '0')
{
A = x
B = x + 1
dat = dat + (cos(pin*A) - cos(pin*B))
}
x = x + 1
}
return (2/(periodo*pin))* da... |
d3e041a862c79d9ffc998cf106f70c77508fbf68 | efb0d95a4774d8c2edaedbf18e98f768b1bc29cf | /R/mrmr.R | c4818d59cfa02c17326c7a0698a32f3011472214 | [] | no_license | Sandy4321/fmrmr | 255293a7aec0b8b5a1303dbe39f9f18c6df27e98 | 71bab6cd4431022719aab7a503032b322e692b0e | refs/heads/master | 2021-01-20T16:44:30.010403 | 2015-02-02T13:21:59 | 2015-02-02T13:21:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,130 | r | mrmr.R | #' @title Minimum Redundancy, maximum relevance
#' @param time [\code{numeric}]\cr
#' Vector of survival times.
#' @param status [\code{logical}]\cr
#' Vector of survival event indicators.
#' @param x [\code{matrix[double]}]\cr
#' Matrix of \code{[observations]x[features]}.
#' @param nselect [\code{integer(1)}]\c... |
797cd0819f616982e236fde9173fc5eb5f517b7b | 5407b1a5daacb59daaf8f4871cd60c9c5b900e8b | /R/R/glmnet.R | 2f0172f30f4f3fbb5bd92a94bf9552414e7d286a | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | Nathaniel-Haines/easyml | c93e82346446d7debade609138512c8fd37af3a1 | 2f888c6e7133270f2a841fdef7de19baa6469006 | refs/heads/master | 2021-01-20T16:58:49.604381 | 2017-05-08T13:41:54 | 2017-05-08T13:41:54 | 82,847,200 | 1 | 0 | null | 2017-02-22T20:04:02 | 2017-02-22T20:04:02 | null | UTF-8 | R | false | false | 10,054 | r | glmnet.R | #' Fit penalized gaussian regression model.
#'
#' @param X input matrix, of dimension nobs x nvars; each row is an observation vector. Can be in sparse matrix format (inherit from class "sparseMatrix" as in package Matrix; not yet available for family="cox")
#' @param y response variable. Quantitative for family="gaus... |
c41c12bef7b803b3e457a16823cf57d1feab675e | 69d1e67b21c443856652b330d7a3d764df757a45 | /R/constructTfIdf.R | a04c27559b18e3fddd0aecef692d18680f33afa3 | [] | no_license | iben-mickrick/minicaret | 55df246cbc621bc285e3069eeac840728db670fe | 2f6bfca37e188e4151cc3606032c6db80d0b8ad1 | refs/heads/master | 2020-05-15T03:48:16.022028 | 2014-05-13T20:36:30 | 2014-05-13T20:36:30 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 266 | r | constructTfIdf.R | constructTfIdf <- function(inputdf) {
colnames <- names(inputdf)
idf <- log(nrow(inputdf)/colSums(inputdf))
tf <- as.matrix(inputdf) / rowSums(inputdf)
tmp <- as.matrix(tf) %*% diag(idf)
ret <- as.data.frame(tmp)
names(ret) <- colnames
return(ret)
} |
95c19cdce73c014b2b97c4a610231dcd31133a66 | 706bbe374869615eca6f2cfe1c576fdd304057a4 | /InSilicoVA/man/plot.insilico.Rd | 55d363d7a646a7b32a3b5b15decfd6b4741ae5e6 | [] | no_license | verbal-autopsy-software/InSilicoVA | 45213f56834cc6d8467763f76a5288db59cd6117 | 9a2eb1750a050ac29ce35ad9825b8cc3ad5a022c | refs/heads/master | 2023-04-26T21:59:30.121905 | 2023-04-19T05:25:57 | 2023-04-19T05:25:57 | 31,554,655 | 4 | 6 | null | 2019-08-21T19:08:21 | 2015-03-02T18:02:43 | R | UTF-8 | R | false | true | 4,265 | rd | plot.insilico.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.r
\name{plot.insilico}
\alias{plot.insilico}
\title{plot CSMF from a "insilico" object}
\usage{
\method{plot}{insilico}(
x,
type = c("errorbar", "bar", "compare")[1],
top = 10,
causelist = NULL,
which.sub = NULL,
xlab = "Caus... |
1e63a5c24ced94718214506d9a2a535695691507 | c78f343872185d5a45d1e1bad9777dc998087c4b | /R/code_package.r | 8681d1fa4671bc08f5dd9dbf4ced83a2e78e4669 | [] | no_license | freakonometrics/TopIncome | bf1f95ebae036420814dadb6540bb2f9df04c9c3 | f9ae8d402f80e34fb19a65ecb5c7f9f343fff9ad | refs/heads/master | 2021-10-13T12:55:37.592908 | 2021-10-12T15:09:31 | 2021-10-12T15:09:31 | 188,045,950 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 42,665 | r | code_package.r | #' import HMisc
#' importFrom("graphics", "abline", "legend", "lines", "par", "plot")
#' importFrom("stats", "integrate", "optim", "optimise", "runif", "var")
#' importFrom("utils", "install.packages")
#' Density of the Pareto 1 distribution
#'
#' @param x a (positive) vector
#' @param mu a number (the lower bound)
#'... |
8361467cc00f44b37a5dcb2692711f8784d174b6 | cf0cecd6a803305d88b306884d00e85f43fee484 | /Exploratory_Data_Analysis/Week4/plot6.R | a35d73736b5fb048a867278c32d9e98fa05d24b6 | [] | no_license | viciliciv/datasciencecoursera | a0f74ec88d696e297f1ba1d43a5e37883691481a | 3223fbb83575d64f548fe04bf41253d7514a8570 | refs/heads/master | 2021-07-25T23:31:08.685330 | 2017-11-09T17:40:10 | 2017-11-09T17:40:10 | 104,652,070 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,985 | r | plot6.R | getwd()
setwd('Exp.Data')
list.files()
summ_pm<-readRDS('summarySCC_PM25.rds')
head(summ_pm)
library(dplyr)
library(ggplot2)
library(gridExtra)
str(summ_pm)
list.files()
source_class<-readRDS('Source_Classification_Code.rds')
head(source_class)
str(source_class)
test<-source_class%>%
select(EI.Sector)%>%
... |
bde313ae02dcd4e70f810f3d9fcf15eaa89bbcc5 | c57695227cb5a4f1385c07eee8f9c374b73b9607 | /app/modules/help/global.R | 92b1b6857530c5312179992820aea35c9db66b1c | [] | no_license | doughnutnz/hist_bus_map | e66f387a1af74cc106d22167220eb2c115a07a56 | 0a1ab09fee03a7d1d649c233d729e72f86afa3bc | refs/heads/master | 2020-04-09T03:48:16.908597 | 2018-12-01T23:46:14 | 2018-12-01T23:46:14 | 159,997,355 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 319 | r | global.R | ###########################################################
# Entry point of the HELP module
#
# Author: Doug Hunt
# Created: 2018-11-18
###########################################################
source("modules/help/server.R")
source("modules/help/ui.R")
source("modules/help/utils.R")
source("modules/help/help.R")
|
a160a85401f04cc6b9154047c3ae9d5e5d9a57ac | 9aafde089eb3d8bba05aec912e61fbd9fb84bd49 | /codeml_files/newick_trees_processed/8410_0/rinput.R | 6455708f43961bfeb3a964aec5610f980f30f37d | [] | no_license | DaniBoo/cyanobacteria_project | 6a816bb0ccf285842b61bfd3612c176f5877a1fb | be08ff723284b0c38f9c758d3e250c664bbfbf3b | refs/heads/master | 2021-01-25T05:28:00.686474 | 2013-03-23T15:09:39 | 2013-03-23T15:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 135 | r | rinput.R | library(ape)
testtree <- read.tree("8410_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="8410_0_unrooted.txt") |
8ceb3a5e2a9f8f1523396629638129c8e4ebe64f | 98daab7e12e9f6e241e964d67f28f36342e52b6f | /R/nuclear.R | 24fc92ef8d75893ac10190d5d723598305936de8 | [] | no_license | cran/LARisk | 4bbbf0b57d58d2159caecde04afcd182728f33d6 | 6794c6c0c16cc4c886ed881c03b3fb16a38e8190 | refs/heads/master | 2022-02-24T01:09:56.318827 | 2022-02-07T00:20:08 | 2022-02-07T00:20:08 | 236,619,163 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 818 | r | nuclear.R | #' Simulated data of organ radiation exposure dose
#'
#' \code{nuclear} is simulated dataset for acute exposure event. The scenario assumes that the people exposure the radiation at 2011.
#'
#' @format A data frame with 100 observation of 11 variables:
#' \describe{
#' \item{\code{ID}}{person ID.}
#' \it... |
d76f57a5f898600c2ba06273298f9a3fed0869e9 | c996caaffba5ba880bbac0a1154a67b1b637c78c | /plot1.R | ec52368e42c9c9cc1ca84a2fca2b6883ab9cdde2 | [] | no_license | krl0s04/ExData_Plotting1 | b4a40dd0aedd74e06723928547b2abe0cf1713f3 | caff4813e072ace5328dad256909917c983c47ab | refs/heads/master | 2020-12-30T21:54:20.229909 | 2016-08-29T06:32:41 | 2016-08-29T06:32:41 | 66,801,858 | 0 | 0 | null | 2016-08-29T01:44:43 | 2016-08-29T01:44:42 | null | UTF-8 | R | false | false | 765 | r | plot1.R | # Code for Plot 1
#Reading the txt file
file <- read.table("household_power_consumption.txt", sep=";", header=T,na.strings = "?", nrows= )
# Subsetting the data from the dates 2007-02-01 and 2007-02-02
top <- which(file$Date == "1/2/2007" & file$Time =="00:00:00")
bottom <- which(file$Date == "2/2/2007" & file$Time ... |
f74ea7704ec14d6955f3159a6b53cc602d73de0f | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/jsmodule/examples/jsPropensityAddin.Rd.R | 03b71d0fc623043ef5e4f8d29064facc2911f331 | [] | 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 | 209 | r | jsPropensityAddin.Rd.R | library(jsmodule)
### Name: jsPropensityAddin
### Title: jsPropensityAddin: Rstudio addin of jsPropensityGadget
### Aliases: jsPropensityAddin
### ** Examples
if(interactive()){
jsPropensityAddin()
}
|
0ce1661af64e947113ff88a291d1463d897dc5d7 | 06073723cadcbe0324c1290a727aa0839e50e1ce | /rscripts/estimateSA1HouseholdsUsingSA2.R | 1a6b9bee10fba614b87aefd336fd2226771febbe | [] | no_license | agentsoz/synthetic-population | 0ea229d4b87875cd6516778becd0f299abe4b40b | 89407d4fd3b37a89c8dc7781d4838e681f107599 | refs/heads/master | 2022-11-22T13:32:50.482313 | 2020-10-12T23:18:19 | 2020-10-12T23:18:19 | 112,975,556 | 10 | 2 | null | 2022-11-16T09:25:18 | 2017-12-04T00:21:40 | Java | UTF-8 | R | false | false | 7,569 | r | estimateSA1HouseholdsUsingSA2.R | library(tools)
library(stringr)
sa1_dist_data <- list()
LoadSA1HouseholdsInSA2 <- function(sa1_files) {
sa1_dist_data <- list()
for (i in 1:length(sa1_files)) {
inFile = sa1_files[i]
csvname = paste(file_path_sans_ext(basename(inFile)), ".csv", sep = "")
inputCsv = unz(inFile, csvname)
#This csv c... |
1530ce3de8631f30f323999b3ed46b628ff18d01 | 9fe17bac4c1247602960cc370f80f04c2c257701 | /plot2.R | fbea7f90f1220aeaa5735a4eb99cf63362de0ca9 | [] | no_license | ltubia/ExData_Plotting1 | 3acd5440828d1ea87b604102626334cc99fd303c | 3ff285207d25bb7d7a60d674b711ca105b00e0b5 | refs/heads/master | 2021-01-17T22:47:00.878210 | 2015-08-08T20:14:47 | 2015-08-08T20:14:47 | 40,413,680 | 0 | 0 | null | 2015-08-08T19:09:46 | 2015-08-08T19:09:45 | null | UTF-8 | R | false | false | 1,439 | r | plot2.R | plot2<-function() {
library(sqldf)
## 1. Download file to temp file at local path
temp<-"exdata_Fdata_Fhousehold_power_consumption.zip" ## Get file from local path
if (!file.exists(temp))
{
fileurl<-"https://d396qusza40orc.cloudfront.net/exdata%2... |
9eb313403e1a19f41820c4273694029b0ccc339c | 868cfb1391ddfdf87242ff0d2fbe6bde326289ae | /Labs/Week of 3-26 Lab.R | 5f1bb3658ab3f6c06ea0d11a989191a6941ee872 | [] | no_license | akatzuka/Intro-to-Data-Science-Practice | a9ee28d77803bc9fd920a79a7c98d62c17f33a3c | c5f430125706e1fc90038eb896d6ee14bfaa94d0 | refs/heads/master | 2020-04-27T09:49:13.532508 | 2019-03-06T22:21:01 | 2019-03-06T22:21:01 | 174,230,047 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,245 | r | Week of 3-26 Lab.R | # read data
user="brun1992"
dat = read.csv("https://raw.githubusercontent.com/grbruns/cst383/master/College.csv")
# make college names into the row
rownames(dat) = dat[,1]
dat = dat[,-1]
# scale all features
dat[,2:18] = scale(dat[,2:18])
# feature data
fdat = dat[,c("Outstate", "F.Undergrad")]
# labe... |
829adbe2495187d50e73ca0ed80b56e71f72b545 | 29e22b9486dad7ed60e49378eedea301f1e2b9fe | /R/topic-analysis.R | 50e02fdc620f3ebb42649cb161c6f3915a2a0aac | [
"MIT"
] | permissive | sdaume/topicsplorrr | c54f8a277d5316695c921474a280cf961cfd69a0 | eb657391b435361617cc2992da33f6bf122dea19 | refs/heads/master | 2023-05-30T06:43:18.111841 | 2021-06-15T13:04:30 | 2021-06-15T13:04:30 | 339,341,529 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 20,312 | r | topic-analysis.R | #' Document counts and mean topic shares of the three primary topics for each
#' document
#'
#' \code{primary_topics} summarizes for each topic the number of documents and
#' the respective mean topic share (gamma) where a topic is one of the three
#' primary topics in a document.
#'
#' @param topicsByDocDate a datafra... |
2534c65bb22489cbd4a16d082cf136d278e81a7c | 6fc32d08e05d2369f92039040f5b2f9c4f1acb44 | /summary_function.R | 1cdd2b4213d4b346a819b8c42daba88375d72c34 | [] | no_license | jpainter/otto | d108060a2008562d9cfa21f27dcf6b8fc535de73 | 35df95e1f68e02154a9d560fdac3f25419a9c5bc | refs/heads/master | 2021-01-23T13:47:42.906554 | 2015-03-20T11:13:58 | 2015-03-20T11:13:58 | 32,534,342 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 160 | r | summary_function.R |
# summaryFunction
LogLoss <- function(actual, predicted, eps=0.00001) {
predicted <- pmin(pmax(predicted, eps), 1-eps)
-sum(actual*log(predicted))
} |
255193ce54f737207b8b94186dedd654057d6f02 | 4a85a2c5cbbbe26b7966cf25c4206e61dca2de39 | /alirezaJahandide-99422053/project3/script.r | d25789b96e170fed432808f9cae931fa10716c00 | [] | no_license | Alirezajahandide27/CS-SBU-DataMining-Msc-projects | 4e65235ebdf9a7bbaf6b9cfe632a18c8e869f886 | 6f9794036d05dfa1c019bc59cff713e8dda7f7e6 | refs/heads/main | 2023-06-18T12:29:19.120625 | 2021-07-17T07:10:36 | 2021-07-17T07:10:36 | 386,585,203 | 0 | 0 | null | 2021-07-16T09:40:02 | 2021-07-16T09:40:01 | null | UTF-8 | R | false | false | 163,858 | r | script.r |
<!DOCTYPE html>
<html lang="en" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark">
<head>
<meta charset="utf-8">
<link rel="dns-prefetch" href="https://github.githubassets.com">
<link rel="dns-prefetch" href="https://avatars.githubusercontent.com">
<link rel="dns-prefetch" href="h... |
302b2d574de7ef93345843a6e4d641ede7333e21 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/Rknots/examples/Knot-class.Rd.R | 279f9864a328cf583f88f14a65ec271554aa9dfb | [] | 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 | 689 | r | Knot-class.Rd.R | library(Rknots)
### Name: Knot-class
### Title: Class "Knot" - a container for knot and link coordinates and
### ends
### Aliases: Knot-class
### Keywords: class
### ** Examples
# create an object of class 'Knot' by using new
link <- makeExampleKnot( k = FALSE )
new('Knot', points3D = link$points3D, ends = link$e... |
e9e9329a51d5790870e00061d5c7a2c822913b91 | fb94c4587fc2f8f64ccb30801a5fc9410c721409 | /R/get_cog.R | c5f040dac878810d2d4a7cdb08e64acb6b44f7a1 | [] | no_license | Yuki-Kanamori/ggvast | a0f637c3d5ea39f85bfc108035307fd4142985b2 | c863b0194f98c2625bc3c8a374ae256d4100b560 | refs/heads/master | 2021-10-28T04:14:39.133330 | 2021-10-20T02:39:05 | 2021-10-20T02:39:05 | 232,312,515 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,880 | r | get_cog.R | #' Calculate the lon/lat of COG
#'
#' get the lon/lat of COG from nominal data
#' @param data Data_Geostat
#'
#' @importFrom dplyr filter
#' @importFrom dplyr select
#' @importFrom plyr ddply
#' @importFrom plyr .
#' @import dplyr
#' @import magrittr
#'
#' @export
#'
get_cog = function(data){
#single-species
if(!... |
4b1154bd50c271d2ac1f68210e28a20719e15882 | 9bdef83f28b070321ba27709d2c7ec028474b5c3 | /R/networkOperations.R | 7182dcc8d99c44743b39c1c43833606fe80dfa13 | [] | no_license | antagomir/scripts | 8e39ce00521792aca1a8169bfda0fc744d78c285 | c0833f15c9ae35b1fd8b215e050d51475862846f | refs/heads/master | 2023-08-10T13:33:30.093782 | 2023-05-29T08:19:56 | 2023-05-29T08:19:56 | 7,307,443 | 10 | 15 | null | 2023-07-19T12:36:45 | 2012-12-24T13:17:03 | HTML | UTF-8 | R | false | false | 935 | r | networkOperations.R | printSIF <- function (mynet, sif.file, sep = " ") {
write("", file=sif.file, append = FALSE)
# Print network in SIF format
# NOTE: print only upper triangle of the matrix
# Reason: since the edges are not directed, we would have two links for each
# pair of linked nodes which makes the figure unclear and... |
cb1e4a11127e28b23ffb5a13250a9f3de756b7a0 | 08176ba2ad3c3365d3e23381a1d2681ffe8d2dea | /R/processTSS.R | 5d52a598c64f4abcf196d9691bd7d0ce212300a0 | [] | no_license | rpolicastro/TSRchitect | 0b3a9d5f4ab6789a01d1d07498c102364a75d5ff | c3eb7e83f32e66bb47365defa8b883156cd84e84 | refs/heads/master | 2020-03-22T06:32:06.072429 | 2018-07-03T19:27:25 | 2018-07-03T19:27:25 | 139,640,992 | 1 | 0 | null | 2018-07-03T21:59:33 | 2018-07-03T21:59:33 | null | UTF-8 | R | false | false | 2,904 | r | processTSS.R | #' @title \strong{processTSS}
#' @description \code{processTSS} calulates the number of observed reads
#' at a given TSS coordinate across an entire dataset.
#'
#' @param experimentName an S4 object of class \emph{tssObject} containing
#' information in slot \emph{@tssTagData}
#' @param n.cores the number of cores to b... |
215c225e32fe0bb05e22fd2006b6bcf4ba67d78a | 94feabc4866e141c085380211abedb5d03905de4 | /man/get_last_played.Rd | 0134422ae62857698f22cd2851af37a2367482a6 | [
"MIT"
] | permissive | SamMorrissette/sc2api | 35eba252c73b325ea4c5fd4a667149ccf98bef5a | 9d67a4000fa95d5b63a177a6ca7c4f598e31b60a | refs/heads/master | 2022-12-24T06:01:15.663238 | 2020-09-25T15:12:14 | 2020-09-25T15:12:14 | 295,058,245 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,887 | rd | get_last_played.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extensions.R
\name{get_last_played}
\alias{get_last_played}
\title{Last Played Match}
\usage{
get_last_played(region_id, realm_id, profile_id, host_region = "us")
}
\arguments{
\item{region_id}{A numeric argument indicating the region of the ... |
0ddc9d45be95df9c84dead67f4bb7f04cf47e82f | 22d41ca3bcf1e15c33c67105a5cb5891bf5237e5 | /server.R | f8aa76619f796f40c83521d99eb12304ce7953b7 | [] | no_license | Debs20/data-proj-syn | f0a467273d2f9ba0244554e8cc43ef9d04738f23 | 2d6dfd14f0fcc17bcda27cb6eda3bb4ca7c43989 | refs/heads/master | 2022-12-02T23:14:18.133974 | 2020-08-24T13:50:26 | 2020-08-24T13:50:26 | 290,160,907 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,964 | r | server.R | server <- function(input, output) {
output$referrers <- renderPlot({
# filtered_data <- eventReactive(input$action,{
referrers %>%
mutate(fullReferrer = recode(fullReferrer, "m.facebook.com/" = "social media", "linkedin.com/" = "social media",
"linkedin.c... |
cc7878f7b5ca3ab5c926112753c670d24db4cf4c | bc8a6124ad09a4a5a8604fb3cb3fa3418fbdafba | /Food web idea/R files/Current scripts/SEM_misc_code.R | 9f6e806dc53aad7bc4a8e907da18de3171a0a16d | [] | no_license | nembrown/100-islands | 9397175169a2f900fb04aaad7f2e10e36b137c71 | 4f7ef53a63be9ab77fa0bacaa42e3e7650495c24 | refs/heads/master | 2021-07-09T16:15:50.089839 | 2020-09-30T21:53:26 | 2020-09-30T21:53:26 | 194,326,381 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,618 | r | SEM_misc_code.R |
# Hierarchical model ------------------------------------------------------
#demo model
model <- '
level: 1
fw =~ y1 + y2 + y3
fw ~ x1 + x2 + x3
level: 2
fb =~ y1 + y2 + y3
fb ~ w1 + w2'
fit <- sem(model = model, data = Demo.twolevel, cluster = "cluster")... |
35eeace36118cdd9250f64030e5b441dada348cb | 1bc432bfe35cf98ca3e073afee76dc2b0cd4b77f | /tests/testthat/test-mathematics.R | 3859928fdaa6f9a9557bc2e8700f0c55a9f0f346 | [
"MIT"
] | permissive | jessesadler/debkeepr | 36dfcb533d0d25eed78077145627b6dd0acc22cc | 64688727177298f80bb7ab3824ac01e1e74635db | refs/heads/main | 2023-04-07T19:32:49.529952 | 2023-03-27T15:35:55 | 2023-03-27T15:35:55 | 135,849,064 | 7 | 1 | NOASSERTION | 2022-05-23T21:26:07 | 2018-06-02T20:13:08 | R | UTF-8 | R | false | false | 8,034 | r | test-mathematics.R | ## Test mathematical functions ##
# vec_math ----------------------------------------------------------------
test_that("vec_math has error message for unimplemented functions", {
expect_snapshot_error(prod(deb_lsd(1, 16, 9), deb_lsd(1, 16, 9)))
expect_snapshot_error(sin(deb_lsd(1, 16, 9)))
expect_snapshot_error... |
82fff63ea12986c4dce076caf25ec3cb09cfe518 | e82499ae1306bb762d27b03145aa187bae183e92 | /HW12_5.R | 28621d1509b9ecbbad047ec117b612a5ece516b7 | [] | no_license | immmjack/R-Programming | 0db720c53d78a05ca83ca94dec488acaba79a938 | 0682ee02082406cdf5247c27b442cd57f8b30e3f | refs/heads/master | 2021-05-21T16:49:14.852113 | 2020-08-26T08:02:23 | 2020-08-26T08:02:23 | 252,723,569 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 355 | r | HW12_5.R | # Set Up
n = 7
sample = 10000
svar = numeric(sample)
pvar = numeric(sample)
statistic = numeric(sample)
#Generate Random Samples
for (i in 1 : 10000) {
result = rnorm(7, 4, sqrt(6))
svar[i] = var(result)
statistic[i] = (n - 1) * svar[i] / 6
}
d = density(statistic)
plot(d)
curve(dchisq(x, df = 6), from = ... |
1f4a9cb1c4b084d37c901f0d8565e22507a1efc1 | be14bddbcca022e640f67b2225e4cfabb785cac5 | /Practical 4.R | e99a4984b8af609030f4af06fb5f306b7acb10af | [] | no_license | SamuelKWLi/Practical_4 | fe559636d29222c380368abd94071cdc66916b65 | 8807248b819ed845cf081a62badf39b534a63f36 | refs/heads/master | 2020-08-26T14:18:59.461980 | 2019-10-23T19:59:33 | 2019-10-23T19:59:33 | 217,038,400 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,194 | r | Practical 4.R | ### Using RStudio with Git ###
# There are three methods of using Git with RStudio.
# 1. Set up the GitHub repository, clone it to your Git then load it in RStudio — using Git GUI
# 2. Create a new RStudio project and link it to GitHub — new version control
# 3. If you have an existing RProject then you can link them ... |
6720e84c6684e19310a3f86bb2056db8c09ca707 | 47d916b22c5880a6f02cdefc8eb62ce63390564d | /myCBD/myFunctions/make_rank_CAUSE_chart.R | f8b2169e4ee9a4a6491f035f385bbd2bb7121b4f | [] | no_license | sharygin/CACommunityBurden | 44d0626d49bb43714813d4325c6faefe63bcc7e0 | b94870c60decd83733b959339131c63f00439e16 | refs/heads/master | 2021-06-24T11:07:03.066910 | 2020-02-28T01:10:01 | 2020-02-28T01:10:01 | 123,367,400 | 0 | 0 | null | 2018-03-01T01:55:08 | 2018-03-01T01:55:08 | null | UTF-8 | R | false | false | 3,733 | r | make_rank_CAUSE_chart.R | rankCause <- function(myLHJ="Amador",myMeasure = "aRate",myYear=2017,mySex="Total",myLev="lev1",myN=10) {
myCex <- 1.6
myCol <- "blue" #mycol <- rep("blue",nrow(filtered.df))
bLwd <- 2
filtered.df <- filter(datCounty,county==myLHJ,year==myYear,sex==mySex,Level %in% myLev,CAUSE !=0)
filtered.df <- f... |
c69be25be42ab6af3f1a8df009937e28fe59b715 | b7b24fcfb5fdad84898a4cbadf22e96199d837b3 | /man/BitwiseValue.Rd | 72ce16d96032324b143e1a93982b35b1c7b791eb | [] | no_license | omegahat/RAutoGenRunTime | 4de1f4095cebf80489e2836f613c0e6fa9c1496c | efda3017fe1945f9420c094471a902b9a64e55db | refs/heads/master | 2023-01-06T14:34:11.880956 | 2023-01-01T02:03:32 | 2023-01-01T02:03:32 | 4,004,743 | 2 | 2 | null | 2017-07-04T19:48:57 | 2012-04-12T13:07:57 | R | UTF-8 | R | false | false | 2,349 | rd | BitwiseValue.Rd | \name{BitwiseValue}
%\alias{SymbolicConstant-class}
%\alias{show,SymbolicConstant-method}
\alias{BitwiseValue}
%\alias{EnumerationValue}
%\alias{asEnumValue}
\alias{asBitwiseValue}
\alias{BitwiseValue-class}
%\alias{EnumerationValue-class}
%\alias{EnumValue-class}
%\alias{EnumDef-class}
%\alias{show,EnumDef-method}
\a... |
9dd9807f17dcaef0bbb902c17572b1424fecd40f | 29585dff702209dd446c0ab52ceea046c58e384e | /samplingVarEst/R/VE_EB_HT_Mean_Hajek.r | 36c523f1729451098f2b86184ab644253870784d | [] | 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 | 206 | r | VE_EB_HT_Mean_Hajek.r | VE.EB.HT.Mean.Hajek <- function(VecY.s, VecPk.s, MatPkl.s, VecAlpha.s = rep(1, times= length(VecPk.s)))
{
VE.EB.HT.Ratio(VecY.s, as.double(rep(1, times= length(VecY.s))), VecPk.s, MatPkl.s, VecAlpha.s)
}
|
da383772f4602c3f1e1bd666d6d20b54166e03bd | 52e69e98f60491914cb0d09f49474c3849472ea5 | /R/numbers.R | ae02e9bd954a1b04e3a152354cef30a45857fb36 | [
"MIT"
] | permissive | mhatrep/doseminer | ee3029a14f8f7f7f8763cd1902c987b75636ccdc | 9ae88dd291128d089e10dd370679625489ddc320 | refs/heads/master | 2023-06-17T15:58:08.391125 | 2021-07-19T10:28:44 | 2021-07-19T10:28:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,487 | r | numbers.R | #' Regular expression to match numbers in English
#'
#' A regex pattern to identify natural language English number phrases, such as
#' "one hundred and fifty" or "thirty-seven". Used internally by
#' \code{\link{replace_numbers}} to identify substrings to replace with their
#' decimal representation.
#'
#' This is a P... |
5119423776130962687256fda715dcfdd2c2bee3 | 65abe9a7747cf2470d2607b52cd28a306dfd541a | /man/NCmisc-internal.Rd | be86ac3ec1268375a7293976d0b2fff7aa2fa9d1 | [] | no_license | cran/NCmisc | 22c73010bf15ef8b08a231f875aee74f018c6506 | cf149ef8aaf77e6b7e3013372b90e6d23fc2980b | refs/heads/master | 2022-11-04T13:34:38.299963 | 2022-10-17T08:15:22 | 2022-10-17T08:15:22 | 17,681,069 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 614 | rd | NCmisc-internal.Rd | \name{NCmisc-internal}
\alias{get.ext}
\alias{suck.bytes}
\alias{suck.mem}
\alias{suck.cpu}
\alias{suck.num.from.txt}
\alias{divide.top.txt}
\alias{make.top.tab}
\alias{make.divisor}
\alias{display.var}
\alias{cat.path}
\alias{dir.force.slash}
\alias{file.split.windows}
\alias{is.ch}
\alias{rmv.ext}
\alias{head2}
\ali... |
b5a854e0dd9c73f436e123aef6b7aa26eba61a34 | 035229c811d57d91a11e3d43bc4b71dc58222f3b | /myfunctions/plot_enrich_manual.R | aa0a486f103ea3ba664a7943639ab647838f260a | [] | no_license | Limour-dev/scRNA | d40580541e7ceef1a4ff875628a1a619e2912db7 | 834ec5c0c4323b521c96ca86db973b170831f2da | refs/heads/master | 2023-06-15T13:40:41.843619 | 2021-07-17T14:44:22 | 2021-07-17T14:44:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,093 | r | plot_enrich_manual.R | plot_enrich <- function(myego, name, width = 9, height = 10, xrot = 0,
spot.size.function = function(x) {abs(x)/2}, mybg = rownames(pros13@scale.data), nterms = 15, key.sizes = c(1, 5, 10)){
grep_data <- function(myego){
my.bg <- data.frame(matrix(NA, nrow = 0, ncol = length(myego)));
colnames(my.bg) <... |
65771fa1388fbd8889b04863fca2085a52dc30e8 | 74a2562f0688a232ac01c86df5cccb98175cac48 | /scripts/demo_shiny_app/data/consolidate_app_data.R | 4e31d6094fe2591233af2da930e382bab1b8eb03 | [] | no_license | briancaffey/the-rat-hack | e5ba881af5ccc5e23ee0602ceb1d37f1cbce235a | 2264e5e61cdbc970b2f30fb1662e5922e0cf2a7d | refs/heads/master | 2021-08-23T12:27:26.448700 | 2017-12-04T22:33:23 | 2017-12-04T22:33:23 | 112,543,090 | 1 | 0 | null | 2017-11-30T00:19:25 | 2017-11-30T00:19:25 | null | UTF-8 | R | false | false | 2,119 | r | consolidate_app_data.R | library(tidyverse)
setwd(getSrcDirectory(function(x){}))
# Loads the three ANC, Ward, and Census Tract datasets and consolidates them for use in the app
#####
# ANC
load("demo_shiny_app_data_anc.RData")
summarized_data = summarized_data %>%
mutate(spatial_aggregation_unit = "anc") %>%
rename(spatial_aggregatio... |
aba2d74eba78df15cdb6f8c3615cba1ce88e5203 | 80badebbbe4bd0398cd19b7c36492f5ab0e5facf | /man/as.SpatialPolygons.PolygonsList.Rd | 3dfef061e05d5fd1f5466c932ca99c777c3f6120 | [] | no_license | edzer/sp | 12012caba5cc6cf5778dfabfc846f7bf85311f05 | 0e8312edc0a2164380592c61577fe6bc825d9cd9 | refs/heads/main | 2023-06-21T09:36:24.101762 | 2023-06-20T19:27:01 | 2023-06-20T19:27:01 | 48,277,606 | 139 | 44 | null | 2023-08-19T09:19:39 | 2015-12-19T10:23:36 | R | UTF-8 | R | false | false | 3,292 | rd | as.SpatialPolygons.PolygonsList.Rd | \name{as.SpatialPolygons.PolygonsList}
\alias{as.SpatialPolygons.PolygonsList}
%\alias{as.SpatialPolygons.Shapes}
%\alias{as.SpatialPolygons.map}
%\alias{as.SpatialPolygons.pal}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Making SpatialPolygons objects}
\description{
This function is used in... |
2f4805f3c5fb2b5f74d3566dbee3c0e59ebc1ab2 | f19ff97cd0882e267c3ce05f4cf9fcfaf6536acf | /BigBoost/R/testR.R | d0afad7049c8e111bee37c1f72728885c8b9f062 | [] | no_license | droyuki/lab-devops | 0cc63191b5db553da96f696f3f0d8f19f8f832e7 | 357e50e8b5e0e1eb13e787d5d5217c0bc4174d9f | refs/heads/master | 2016-09-06T11:06:00.561261 | 2016-01-19T08:56:31 | 2016-01-19T08:56:31 | 41,469,671 | 4 | 2 | null | null | null | null | UTF-8 | R | false | false | 89 | r | testR.R | cmdargs <- commandArgs()
write.table(cmdargs,file= "rLog.txt", sep = ",", col.names = NA) |
b5434b4f43e78d3a9c99cd72d2c61fde4b91c30a | fa18ee2bcec08ba7dd950843cd3547e05eafcb16 | /test_3.R | c51a2154431ecd261326dca3fc97b325f8968f52 | [] | no_license | luigidolcetti/barbieHistologist | 6da4174defd6228e67ab22c2e226d5bee96cb018 | 4f4bbcd939257d05bac8ec785a99e30d2ca1db93 | refs/heads/master | 2023-07-19T01:09:14.843315 | 2021-06-14T16:50:08 | 2021-06-14T16:50:08 | 347,299,283 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,822 | r | test_3.R | library(barbieHistologist)
CD45<-bh_defineMarker(markerName = 'cd45',
channelName = 'ch1',
patternFunction = '.pattern.random',
patternModifier = list(mean = 5, sd=5),
compartment = 'cytoplasm')
CD4<-bh_defineMarker(markerName = 'c... |
7d28f48906e6866d294c65aed5d5a256a93b6092 | 49b8ff57b4184c137dde8ed358b3372f3020d9b0 | /RStudioProjects/mbDiscoveryR/scripts/scripts_speed test.R | 6804c2d6dfc912bd692e143ff3be2f753a3933c0 | [] | no_license | kelvinyangli/PhDProjects | c70bad5df7e4fd2b1803ceb80547dc9750162af8 | db617e0dbb87e7d5ab7c5bfba2aec54ffa43208f | refs/heads/master | 2022-06-30T23:36:29.251628 | 2019-09-08T07:14:42 | 2019-09-08T07:14:42 | 59,722,411 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,253 | r | scripts_speed test.R | # speed test
setwd("realWorldModelWithTrueParameters")
model = "alarm"
cpts = read.dsc(paste0(model, "/cpts/", model, ".dsc"))
allNodes = names(cpts)
n = 500
# mmlcpt
datasets = list.files(paste0(model, "/data rds/"), pattern = paste0("_", n, "_"))
ii = 17
data = readRDS(paste0(model, "/data rds/", datasets[ii]))
... |
cee076c19752689524bcc0c1d0e3cdfb5539af2e | e5b50b052d111753a7beb335911b6a98aca845d7 | /inst/shiny-examples/gravitas_app/ui.R | 426c207452c5cef3748de90ee3d2810cc2519d31 | [] | no_license | Sayani07/gravitas | a0d33639aa3329570ba02a67faa7f015a0b0b7e3 | c1430843c5cd9bc547dc0f768cd38b979f4b5f6a | refs/heads/master | 2022-06-28T06:36:04.146695 | 2022-06-14T01:25:28 | 2022-06-14T01:25:28 | 177,514,371 | 15 | 6 | null | 2021-12-03T03:14:16 | 2019-03-25T04:30:24 | R | UTF-8 | R | false | false | 9,703 | r | ui.R | source("global_shiny.R", local = TRUE)
# Input Data Tab
tabInput <- tabPanel(
"Data summary", fluidPage(
sidebarPanel(
# Input rda file
checkboxInput("default",
"Explore package with Victorian electricity demand
(Default)",
value = TRUE
... |
0a313a7b021b287116b5410f3c48a36ee56f4189 | 4a2dbba17ea7101c78c26f4f68a7aed5cb346ade | /inst/rstudio/templates/project/ressources/m2/enonces/exo6.R | fa143f5249c6a327ada0fa4cebfef8ba72ba829e | [] | no_license | MTES-MCT/savoirfR | c90298524cf5aec68ccaf9fcee62942204a62e9f | 75ec0630803d7fb63e9fec51f3dcaa2c5e46459e | refs/heads/master | 2023-06-25T02:33:09.036157 | 2023-06-10T23:19:13 | 2023-06-10T23:19:13 | 230,885,420 | 10 | 3 | null | 2023-03-23T19:02:08 | 2019-12-30T09:17:27 | R | UTF-8 | R | false | false | 1,730 | r | exo6.R | # ---
# title: "Exercice 6 - module 2"
# ---
# Calculer à partir des tables fournies dans le fichier `majic.RData` issues des fichiers fonciers (cf. http://piece-jointe-carto.developpement-durable.gouv.fr/NAT004/DTerNP/html3/_ff_descriptif_tables_image.html#pnb10) un indicateur d'étalement urbain entre 2009 et 2014 ... |
10e9fa5edf397c73ffba428ddc0d55275478486e | d4601bcbdbc66c31ce1d39b76f0abb36aa48c67b | /shared_code/gviz_common.r | d1031c477e3557f26cbd74ac70b5a71c3d5f854f | [] | no_license | zeitlingerlab/he_johnston_nbt_2014 | 93e37a04e77ad8a0792fe21b9f10fd7efd89bbae | d2b8480ec3e096cc6c22479e32d4d0828cc21542 | refs/heads/master | 2020-05-28T14:17:17.921275 | 2015-03-09T15:33:31 | 2015-03-09T15:33:31 | 25,653,941 | 9 | 4 | null | null | null | null | UTF-8 | R | false | false | 8,591 | r | gviz_common.r |
gviz_plot_with_exo <- function(genome="dm3", region.gr,
sample.regular, sample.nexus, sample.exo,
title, motifs=GRanges(),
normalization_method="none",
zoom_to_nexus_scale=FALSE) {
r_chr <- ... |
2c27acb8d76942cd9ea72e1938a0e3f45ce696e8 | c161c257900e34832678360a3df3d2319aad99b0 | /man/subset.questionList.Rd | 7d770131399e04fe462a2f31db2a501f7fa81cf1 | [] | no_license | louwerse/dutchparl | be7e87c42e4c7056baab01016905a96376d2676c | 855bb72ca75408af1adc3969e99dd51a86c0b182 | refs/heads/master | 2021-09-19T15:43:34.099963 | 2021-08-10T15:19:10 | 2021-08-10T15:19:10 | 69,758,321 | 3 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,035 | rd | subset.questionList.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrangling.R
\name{subset.questionList}
\alias{subset.questionList}
\title{Subset questionList object}
\usage{
\method{subset}{questionList}(x, df, subset, select, drop = FALSE, drop.levels = TRUE, ...)
}
\arguments{
\item{x}{A questionList ob... |
b6cdde45c1a9879efc531e2403d0dd41a705127c | c273f036c986533afe78b92555ee709206d3c7d2 | /man/get_tz_offset.Rd | 60045e39acfb7e1a2bb8f0ccc0b16f90263c9455 | [] | no_license | pssguy/stationaRy | 2ee3cde95361d20f0291396279991f7d275acf97 | 541286656a85de5fef7c8cd32aca5c65d748a67b | refs/heads/master | 2021-01-24T22:36:03.906978 | 2015-06-22T00:09:50 | 2015-06-22T00:09:50 | 37,831,150 | 0 | 0 | null | 2015-06-22T00:06:36 | 2015-06-22T00:06:36 | null | UTF-8 | R | false | false | 725 | rd | get_tz_offset.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/get_tz_offset.R
\name{get_tz_offset}
\alias{get_tz_offset}
\title{Get time zone offset from GMT}
\usage{
get_tz_offset(x, y, proj4str = "")
}
\arguments{
\item{x}{coordinate in the x direction.}
\item{y}{coordinate in the y direction... |
2ef2f3eea59f8e70399bddb3efbf2f89c3596b54 | 4f53cd5d9c037ecc307dc763941f51aa70c17f88 | /RFE.R | d33211003d59b84f486847c0d27b72c748187f8b | [
"MIT"
] | permissive | chenyuqing/feature_selection_on_gene_mutation | ad37f67a4f3ae9b3a3af02488381dc8c4755505e | c1cc957016c1f792e8a6bebb28e7692bb9318ea0 | refs/heads/master | 2021-01-21T11:15:01.629802 | 2017-03-01T12:51:16 | 2017-03-01T12:51:16 | 83,537,044 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 780 | r | RFE.R | ## 1. set the path
setwd("D:/git-ware/feature_selection_on_gene_mutation")
getwd()
## 2. get the data
source("getdata.R")
all_data = getdata()
## 3. get the gene mutation data
nci60GeneMut = all_data[,-1]
## 4. Feature selection: rfe: recursive feature elimination
library(caret)
require(glmnet)
set.seed(2016)
# func... |
06c65ae5a1ef3b20853d1ec9896ad659a791543f | eb75d3d5fcaa8fd73c4e19938aa5209021a57f1e | /tests/testthat/test-function-read_relevant_years_radolan.R | 7034307723a6d51f3940c84739fe527c619100cc | [
"MIT"
] | permissive | KWB-R/kwb.dwd | 104fca00203addd0ad342091e96548dd4ce1fadf | 22af4297f424c62c886eaeb02dd5104da6a6087e | refs/heads/master | 2023-06-12T05:24:44.603834 | 2022-09-20T12:58:52 | 2022-09-20T12:58:52 | 172,280,879 | 1 | 0 | MIT | 2023-05-29T03:48:14 | 2019-02-24T00:53:15 | R | UTF-8 | R | false | false | 451 | r | test-function-read_relevant_years_radolan.R | test_that("read_relevant_years_radolan() works", {
f <- kwb.dwd:::read_relevant_years_radolan
expect_error(f())
expect_error(f(years = 1999L))
expect_error(f("/no/such/path", years = 2000L))
expect_message(result <- f(tempdir(), years = 2000L))
expect_null(result)
writeLines("this is a test", file.pat... |
c486d3ee5113794fe135e8c834a95fb2d7debf78 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/multinomRob/examples/multinomRob.Rd.R | 1e4cbf3bd5da90c290490d1d6253ca21c979bdf4 | [] | 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 | 2,138 | r | multinomRob.Rd.R | library(multinomRob)
### Name: Robust Multinomial Regression
### Title: Multinomial Robust Estimation
### Aliases: multinomRob
### Keywords: robust models regression
### ** Examples
# make some multinomial data
x1 <- rnorm(50);
x2 <- rnorm(50);
p1 <- exp(x1)/(1+exp(x1)+exp(x2));
p2 <- exp(x2)/(1+exp(x1)+exp(x2));
p... |
f895acc72e087001556c2d2c53a2666fdd6a6fb5 | 38fd819dc184332ed8d86121cfa34edb4ea615ba | /inst/appdir/app.R | 94a0f16f0b78eadbc8d58121da9dd29189c61c47 | [] | no_license | mstroehle/tdmsviewer | aa3015705a2063c3a6dfc2bd01fc2570e4049605 | c8e1bd21824592e574086b99da320a59d0f621a8 | refs/heads/master | 2020-06-04T10:24:24.262845 | 2018-03-23T15:41:08 | 2018-03-23T15:41:08 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,431 | r | app.R | source('global.R')
ui = function() {
source('page/home.R', local = T)
source('page/saved.R', local = T)
source('page/help.R', local = T)
source('page/landmark_page.R', local = T)
fluidPage(
includeCSS('styles.css'),
headerPanel('tdmsviewer'),
wellPanel(style = 'background-co... |
fdced5f3c81d308060f7cd9f095d0420589563cd | 21bd7a9d6341b53d6f622f8e6e9de6ce5f638de0 | /Module 2/Set 2.R | 6c863711a2e7c5870de2df7d9db30c563fedf233 | [] | no_license | meganschmidt23/DataAnalyticSummer2020 | fb00dc5dceb4a4810148b306de21944373cf3827 | 6299255136a1d6d6a9a362242769a55ae3550bf7 | refs/heads/master | 2023-03-02T02:37:43.717382 | 2021-02-11T03:25:17 | 2021-02-11T03:25:17 | 268,985,625 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,282 | r | Set 2.R | #1. Download the data file "Wholesale_customers_data.csv". The attributes of the data are explained in comments at the top.
wh=read.csv("Wholesale_customers_data.csv", comment.char="#")
wh$Region=factor(wh$Region)
wh$Channel=factor(wh$Channel)
#(a) Check if there are NA values and eliminate those rows
wh <- na... |
f704b5198fdeea2c7059f824723c11c7c13396fd | d42ac737b65a962a12edf07c16bd0cc42f69801a | /GRIP Monushree.R | 2435ce4cd7ba214274ff26f14eabadf0b57f8cdd | [] | no_license | MonushreeGanguly/GRIP-Task-1 | f9159858f411b500a38524f4c428ab5f81ab50e3 | d5ae505e864979b1b7e747ea01c095eac8e2101c | refs/heads/main | 2023-03-21T15:56:07.190004 | 2021-03-17T17:10:28 | 2021-03-17T17:10:28 | 348,750,058 | 0 | 0 | null | 2021-03-17T15:16:54 | 2021-03-17T14:59:28 | null | UTF-8 | R | false | false | 1,681 | r | GRIP Monushree.R | # GRIP: The Sparks Foundation
# Monushree Ganguly, Data Science & Business Analysis Intern
## Task 1: Prediction using Supervised ML
#IMPORTING DATA
info<-read.csv("C:/Users/debashishganguly/Downloads/student_scores.csv")
head(info,25)
# 1.scatterplot
plot(info$Hours,info$Scores)
#2.correlation
co... |
ff425b67468ea32f2aaf9b7a9479b9dc48a57db7 | 73fd86dfc13baed81bfd7405b855ace05365c607 | /man/build.lut.Rd | 9ed847272cd8673bcc74a5c6e18ed588a8ac9114 | [] | no_license | cran/ShapePattern | 976fba2c343705d178e42cc73206f92104c1e83a | 75fdec13af558c80d38d865ac3154ca3de6fb253 | refs/heads/master | 2023-09-04T02:55:22.055477 | 2023-08-22T07:20:09 | 2023-08-22T09:30:35 | 57,234,343 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,431 | rd | build.lut.Rd | \name{build.lut}
\alias{build.lut}
\title{
Bias correction lookup table (LUT) builder based on simulations.
}
\description{
This function needs to be run only once, at the beginning of analysis, to produce a lookup table of spatial autocorrelation (rho) bias correction factors. Since this process takes a long ti... |
5cc2b37b597c1526c6460697e257df5a9c4f1067 | de173be8ea860b6c536bdfbe8276afcef597889c | /trade2.r | c2a39ee9a3cbf110da4500952855312b96f0020b | [] | no_license | liuhui2015/my-r-code | 949be44b0901b545bdcda8b00f063da3f4339f80 | 0c0f1eee9973ca5249c0f1d2e284c4fb2e7e9ded | refs/heads/master | 2020-12-31T03:26:19.956108 | 2013-06-07T14:22:38 | 2013-06-07T14:22:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,594 | r | trade2.r | #以T检验为基础的交易系统
#首先载入两个所需程序包
library(quantmod)
library(PerformanceAnalytics)
#从YAHOO得到上海综指数据
getSymbols('^SSEC',src='yahoo')
#取出收盘价
close=as.numeric(Cl(SSEC))
#计算差分
d=c(NA,diff(close))
#计算总时长
n=length(close)
#预先赋空值 mean.c为收盘价均值,mean.d为波动均值,sd为波动标准差,
#test为判断趋势的函数,即T 统计量,sig为仓位,up/down为上下界
mean.c=mean.d=sd=test=sig=up=dow... |
b01cc31ff54ade6e46cc38690373c8d2d6d2b0e2 | 8e4a213138c40d7670315bb00c8df224ff68b616 | /man/math_gender_iat.Rd | 2e3bd1d77500c385b993a02cac03d3c7b9f6cd5e | [] | no_license | gitrman/itns | 432f0ad6448667e38a5f389c8261eb5d1f1bd0be | 6d5f9b3818d7b73dc1d643c220f3f9e89f4646a5 | refs/heads/master | 2020-12-23T22:25:11.501834 | 2017-03-09T06:57:01 | 2017-03-09T06:57:01 | 58,635,851 | 4 | 7 | null | null | null | null | UTF-8 | R | false | true | 2,326 | rd | math_gender_iat.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/math_gender_iat.R
\docType{data}
\name{math_gender_iat}
\alias{math_gender_iat}
\title{Two Independent Groups - Math Gender IAT}
\format{A data frame with 243 rows and 4 variables:
\describe{
\item{sessionid}{Respondent identifier}
\item{lo... |
236459fd00e8b2021a97213a7016d41623209abc | e7ff273130f86ce97c548ad9d6f037cd022be695 | /plog2.r | 3811b24a7e53f951bdc3125f6eb370e27baf6c10 | [] | no_license | lexili/ExData-Assign-1 | 49db24a74164812702df81536d822cd3424cd503 | f9d02bf1210a886c70d3e35c539b1b3c69faa596 | refs/heads/master | 2021-01-18T20:20:14.717696 | 2014-10-18T22:11:37 | 2014-10-18T22:11:37 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 442 | r | plog2.r | # read data
data<-read.table("~/household_power_consumption.txt", header=TRUE,sep=";", colClasses= "character")
# subset the data
testdata <- subset(data,Date=="1/2/2007" | Date=="2/2/2007")
png("plot2.png", width=480, height=480)
plot(as.numeric(testdata$Global_active_power),xaxt = "n",type='l',xlab="",ylab="Global ... |
423d0bb41d7aa91b77cb31e950d5ee12297d9014 | a77ad6a7d32478a3921a67ed339ee1d120853f37 | /pystan_examples/stan_toy.R | a647654307ddd00c5d06095b08332fa24179c79c | [] | no_license | yiulau/all_code | 5cf7804c5a77d197f6a979d6fafa036f95d16659 | 4630ea6efc630616e6f767807ebbd64c82852726 | refs/heads/master | 2020-03-18T05:19:50.586402 | 2018-08-03T09:14:59 | 2018-08-03T09:14:59 | 134,337,109 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,188 | r | stan_toy.R | library(rstan)
num_obs = 100
num_non_zeros = 20
y = rep(0,num_obs)
true_beta = rnorm(num_non_zeros) * 5
y[1:num_non_zeros] = true_beta
y = y + rnorm(num_obs)
print(true_beta)
address = "/home/yiulau/PycharmProjects/all_code/stan_code/horseshoe_toy.stan"
model_hs = stan_model(file=address)
address = "/home/yiulau/Pyc... |
39fce5a0ff50e0397e177d7a5a62bd8f9367d03d | 63d50cbf64469abd6d4729ba0266496ced3433cf | /vedha/string_function.r | 3efc088e0797cd466971c99ef1c17b5b957d16b3 | [] | no_license | tactlabs/r-samples | a391a9a07022ecd66f29e04d15b3d7abeca7ea7c | a5d7985fe815a87b31e4eeee739bc2b7c600c9dc | refs/heads/master | 2023-07-08T09:00:59.805757 | 2021-07-25T15:16:20 | 2021-07-25T15:16:20 | 381,659,818 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 238 | r | string_function.r | # Created on
# Course work:
# @author: Kevin
# Source:
# https://techvidvan.com/tutorials/r-string-manipulation/
# nchar: Size of string
string <- "TactLabs"
nchar(string)
strvec <- c(string,"HI", "hey", "haHa")
nchar(strvec) |
50069c7c2bf94d1823fa3300c0fbdc1ed609bcea | b2548f033cfe74ca0cb0c755c034cba1e1f6b509 | /Fanduel Baseball Full Roster.R | b6c648a1948f2ebf215cefeace447658489cf35e | [] | no_license | mbecker0813/fanduel_baseball | f2dd34e82bffc5e500adba86e19c3abafa518647 | 6aa3eb0c6b20d6be9b1cf77bd716587aca2bd10e | refs/heads/main | 2022-12-30T08:31:57.788530 | 2020-10-20T18:42:23 | 2020-10-20T18:42:23 | 305,800,484 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,696 | r | Fanduel Baseball Full Roster.R | print(paste('Start Time:',Sys.time()))
library(tidyverse)
library(baseballr)
library(tictoc)
tic('Run time')
# Dates for stats
start_date_p <- as.character(Sys.Date() - 30)
end_date <- as.character(Sys.Date() - 1)
start_date_b <- as.character(Sys.Date() - 15)
# Import FanDuel player list
players <- read.csv('baseball... |
e80e4a2a1493e7cd8701190782fda2a4cfda8eea | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/pinnacle.API/examples/GetSpecialFixtures.Rd.R | 753b13911767a7598e63fc6703bd30a20e3a707a | [] | 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 | 265 | r | GetSpecialFixtures.Rd.R | library(pinnacle.API)
### Name: GetSpecialFixtures
### Title: Get Special Fixtures
### Aliases: GetSpecialFixtures
### ** Examples
## No test:
SetCredentials("TESTAPI", "APITEST")
AcceptTermsAndConditions(accepted=TRUE)
GetSpecialFixtures()
## End(No test)
|
e3ebff3c10f29f19e7c9857b872b2b92d66d82ba | 10cec89dd13ba113fbec9d74f7d27bf0f969c9a4 | /run_analysis.R | 045c9d550866c64d87c5414c19e996839e75c1d7 | [] | no_license | luvkhandelwal/Getting-and-Cleaning-Data-Course-Project | e8aac68521b7520f3934718212be70e9d435e123 | f37b443021aedfb241ca0bffbbac68d3eee51477 | refs/heads/master | 2022-11-12T18:21:04.692255 | 2020-07-09T20:41:15 | 2020-07-09T20:41:15 | 278,038,268 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,548 | r | run_analysis.R | ##Initialization
rm(list = ls())
getwd()
library(dplyr)
library(tidyr)
library(data.table)
setwd("C:\\Users\\luv\\Desktop\\Online Courses\\DATA SCIENCE\\Data Cleaning\\getdata_projectfiles_UCI HAR Dataset\\UCI HAR Dataset")
##Reading Test data files :X , y and subject
test_data<-read.table("C:\\Users\\luv\\Desktop\\O... |
a7adc0664679195c989552f8ed572c75fc83f955 | c0f10d1576b08e98d70f773bd870332e3f68af05 | /man/addbuff.Rd | deba6f5c2e40bd4ca4cdfde255cf67bcfd756859 | [
"MIT"
] | permissive | ropensci/terrainr | fcc0413d88ade11e8004b5f078df022b19f99a02 | 492011c13e15884093887c768d90b666367c98a7 | refs/heads/main | 2023-08-29T01:40:32.008322 | 2023-02-16T18:53:52 | 2023-02-16T18:53:52 | 293,846,648 | 46 | 4 | NOASSERTION | 2023-02-16T15:24:01 | 2020-09-08T15:10:39 | R | UTF-8 | R | false | true | 3,246 | rd | addbuff.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_bbox_buffer.R
\name{addbuff}
\alias{addbuff}
\alias{add_bbox_buffer}
\alias{add_bbox_buffer.sf}
\alias{add_bbox_buffer.Raster}
\alias{add_bbox_buffer.SpatRaster}
\alias{set_bbox_side_length}
\alias{set_bbox_side_length.sf}
\alias{set_bbox... |
d6a9672db99ab6e71ca2b4850c3b303de01722a7 | 5d9b83fbf87ecda43f5ad897f3022b1e22f5e452 | /src/import_moh_weekly.R | 1518096c9fa942fa38c0ac0347f147e040bbfc6f | [] | no_license | roscoelai/dasr2020capstone | 44fc93e7b0308c506f730beb5ce046c8ce892b38 | 10f3ee102f3d4f1a929329f57f02c894ba3cc7b4 | refs/heads/master | 2022-11-23T01:07:29.559385 | 2020-08-02T14:04:50 | 2020-08-02T14:04:50 | 276,071,316 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,276 | r | import_moh_weekly.R | # import_moh_weekly.R
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
library(magrittr)
import_moh_weekly <- function(url_or_path = NULL) {
#' Weekly Infectious Diseases Bulletin
#'
#' @description
#' \href{https://www.moh.gov.sg/resources-statistics/infectious-disease-
#' statistics/2020/week... |
1624ccab0e41c47a5622da7c2c130e648b6d1e68 | 2c19009a27ea3819a6b3da7744f67a2021e358c7 | /tests/testthat/helper-run-insert-tests.R | 11dbe981e4f9c92d3bd076c84506b3a0839262dd | [] | no_license | GreedBlink/dbx | c4a7986e6e678b6cf18fe5ebf0b25fa419b883bd | b83311f509611eff1b60c68fb30e24f49ed618d9 | refs/heads/master | 2020-04-02T23:34:26.284604 | 2018-10-16T02:01:16 | 2018-10-16T02:01:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,352 | r | helper-run-insert-tests.R | runInsertTests <- function(db, redshift=FALSE) {
test_that("insert works", {
events <- data.frame(id=c(1, 2), city=c("San Francisco", "Boston"), stringsAsFactors=FALSE)
dbxInsert(db, "events", events)
res <- dbxSelect(db, "SELECT id, city FROM events ORDER BY id")
expect_equal(res, events)
})
te... |
4e43d5321b56511c6f62cb0fe27d3fb9c30f677c | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/rbugs/examples/genDataFile.Rd.R | 8021f2eb9d72449f83c4bff11238557c14eb434c | [] | 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 | 284 | r | genDataFile.Rd.R | library(rbugs)
### Name: genDataFile
### Title: Generating the Data File for BUGS
### Aliases: genDataFile
### Keywords: utilities
### ** Examples
dat <- list(a = runif(1), b=rnorm(2), c=matrix(rexp(4), 2, 2))
genDataFile(dat, "foo.txt")
file.show("foo.txt")
unlink("foo.txt")
|
0725f34eb53ac7bab8ec05188d70b5c2829d4099 | e986e68ce4abb1b60af3aaa1869ffda8ee5cb882 | /cachematrix.R | cb7a5f53358dda932205c43d6d6518c28e7f9ea6 | [] | no_license | limpica/ProgrammingAssignment2 | 7b8e9d3b8ab35e4ba2e3d42a7a22f27292b4c2d3 | 3f1ec566306cb9753ccb653f060d4a63290401fc | refs/heads/master | 2021-01-15T12:54:01.146011 | 2016-07-20T04:09:45 | 2016-07-20T04:09:45 | 63,606,992 | 0 | 0 | null | 2016-07-18T13:51:04 | 2016-07-18T13:51:03 | null | UTF-8 | R | false | false | 1,371 | r | cachematrix.R | ## The functions will solve the inverse of the input matrix. If the
## solution was calculated before, the same calculation will not be
## proceeded. Result from previous calculation will be returned.
## makeCacheMatrix() funcion gets the input matrix and stores the
## inverse matrix calculated by cacheSolve() ... |
01bc2e99753ac9ba00445ab402d4f0c25e4e444b | 7aefb43bd178f805d1e2c34d110c0c7663883a06 | /Package/R/bct_eval_RW.R | 46dbe9f634fd6694179108e0c09ee88a0e1ae588 | [] | no_license | ntorbica/bct | 82bcd91d53d64980853c0abb8cb8f80f74842d53 | a0e52bb6483f629b3c7068b8ae46980567257b3a | refs/heads/master | 2021-09-07T01:11:41.307548 | 2018-02-14T18:47:02 | 2018-02-14T18:47:02 | 112,538,898 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,473 | r | bct_eval_RW.R | #' @export
#'
#' @title Basic evaluation of batch effect correction
#' @param peaks Peak data to evaluate. Samples have to be in rows (as produced
#' by outputted by the BCT call)
#' @param info Information table on peaks, containing information on sample grouping,
#' injection sequence and batch labels
#' @param a... |
8e15f5bf95c57e6d289e1560811be0c2841180f0 | 3cedc6ffc9bfc2abb1e282d14cd866f5d8d68b02 | /code-hw3.R | c1c88a186d09078b829c6587d5aa2939e50933a9 | [] | no_license | pvarsh/math490 | 95844da63de12f1dd2a5f592f4ccd883d9d4b7d7 | f26623dd75e138de2635accbf93dcf607ce10f7b | refs/heads/master | 2021-01-15T11:43:51.646786 | 2014-05-25T22:55:49 | 2014-05-25T22:55:49 | 17,259,232 | 1 | 0 | null | 2014-03-06T19:19:41 | 2014-02-27T18:23:22 | R | UTF-8 | R | false | false | 10,967 | r | code-hw3.R | ### Homework 3 Chapter 2-2
### Mirai Furukawa, Scott Thomas, Peter Varshavsky
### 2014/03/06
### Questions: 2.18, 2.21, 2.22, 2.30, 2.33, 2.38
#############################################################
#### Functions
G2.test=function(x)
{
total=sum(x)
rowsum=apply(x,1,sum)
colsum=apply(x,2,sum)
expected=(m... |
d6dd9f91b9b9d7e83cab9325a9014d33c1686c1b | 955eabc2b9f485f084d703b4f20a2a0d991f11f8 | /man/squat_binom_overdisp_rand.Rd | 80f511e7a058a499f3d7cb8631ac7aaefffd14f2 | [
"Apache-2.0"
] | permissive | Yichen-Si/squat | 7e91b926560c4072b8e5bf8c72db5cfa8ba4470c | 3da0ca4965e5be4e76d9401b193a4e1dfba71b0b | refs/heads/master | 2022-11-29T21:17:06.309473 | 2020-07-20T00:13:58 | 2020-07-20T00:13:58 | 281,822,235 | 0 | 0 | NOASSERTION | 2020-07-23T01:40:55 | 2020-07-23T01:40:54 | null | UTF-8 | R | false | true | 922 | rd | squat_binom_overdisp_rand.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/squat.R
\name{squat_binom_overdisp_rand}
\alias{squat_binom_overdisp_rand}
\title{squat_binom_overdisp_rand : randomized binomial overdispersion test}
\usage{
squat_binom_overdisp_rand(xs, sizes, ps, ws, nrep = 1, pos.only = TRUE)
}
\argument... |
bbd8973c582db8331bf8ba4b5dd23ce8e73c0931 | 1a4c6cdabc81e7f06353cfeec61160e5e4a8b5dd | /Project 1/piechart.R | 774d547197c61a2a1a06fa371e6e5ce02a4fe99b | [] | no_license | dhananjaymuddappa/rainman_assignments | d8a62ffe93f145939591b395547d319136e4b4c6 | 53c8d5d54b1230530099dbbc3c3515a21981ede4 | refs/heads/master | 2021-01-10T12:01:54.831940 | 2016-03-22T20:21:34 | 2016-03-22T20:21:34 | 54,506,113 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 530 | r | piechart.R | piechart <- function(fileName, param)
{
data <- read.csv(fileName, header=T)
column_data <- count(data, param) #use count function to count the frequency of a given name
names <- column_data[1] #store names
frequency <- column_data[2] #store frequency of the names
frequency <- as.numeric (unlist(frequ... |
3f5efb9686221bf707fbcddd2486f35063c26f9f | 28c3f73a6d70c2fed4b2d2011bd1d9416a293b0e | /R/bagging.wrapper.v2.R | b39f2d08fa05d232864528d08d0680204835b678 | [] | no_license | cdeterman/OmicsMarkeR | a8cbe69bc26f98db69b89c02949a3a4d0ab2d8a1 | f9a0f3dfd067c0a0beb9ad421982ad86e63914cf | refs/heads/master | 2021-01-10T20:58:11.111636 | 2017-01-10T15:14:14 | 2017-01-10T15:14:14 | 13,659,839 | 2 | 2 | null | null | null | null | UTF-8 | R | false | false | 13,541 | r | bagging.wrapper.v2.R |
#' @title Bagging Wrapper for Ensemble Features Selection
#' @description Compiles results of ensemble feature selection
#' @param X A matrix containing numeric values of each feature
#' @param Y A factor vector containing group membership of samples
#' @param method A vector listing models to be fit
#' @param b... |
a7c0b59b1ac69f06abbe09a82bf42016300ade07 | 1acd4c0ef1d925c4ef0a2c87aa93199b18ac1b4b | /phenmodels/wangengel_fakedata.R | 308624ae251207b020aec34e38b5c72be5c5e0b4 | [] | no_license | sandyie/cloned-bcvin | 3bccd695e7e6e15486d13cb85409714872d64153 | 90ef1700d8953f4298a8a7bfa1957fe4235fcc3d | refs/heads/master | 2023-03-28T13:36:36.321884 | 2021-03-30T16:34:22 | 2021-03-30T16:34:22 | 303,593,418 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,136 | r | wangengel_fakedata.R | ## Trying to make fake data for Wang & Engel model ##
## Started 30 Oct 2018 ##
## By Lizzie ##
## housekeeping
rm(list=ls())
options(stringsAsFactors = FALSE)
nphendat <- 100
daysperyr <- 300
climdat <- matrix(data=rnorm(nphendat*daysperyr, 25, 10), daysperyr, nphendat)
Tmin <- 0
Tmax <- 40
Topt <- 30
# bbdate <-... |
5c3428f9fbe316bb20f0899baa4bcd5d03c48d50 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/symmetry/man/symmetry_test.Rd | cf5744a4165fa7adf29b321ab4b30d9ab229c709 | [] | 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 | 4,713 | rd | symmetry_test.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/symmetry_test.R
\name{symmetry_test}
\alias{symmetry_test}
\alias{symmetry_test.default}
\alias{symmetry_test.lm}
\alias{symmetry_test.fGARCH}
\title{Perform symmetry tests}
\usage{
symmetry_test(x, ...)
\method{symmetry_test}{default}(x, st... |
7abaa2480914504ff4c080b361f4f9e26fe69329 | 6272a453abab73843befb00e5f1429ea7296affa | /7ma clase.R | ee5cf2c8626f1ee248ece53357ef663361caab7a | [] | no_license | lorenzora/cursoR_Untdf | aa4690fdc198be97c90ee8e10b7940c430c29cfd | 6d50614fd6d9b9522c71451402fa56fa095a1fee | refs/heads/master | 2021-01-13T09:06:52.986602 | 2016-09-26T15:48:59 | 2016-09-26T15:48:59 | 69,254,277 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,538 | r | 7ma clase.R | #Septima Clase#
#funciones#
dir.create("functions")
# seguimos con estructura de datos#
#Los gráficos creados con ggplot2 pueden guardarse con ggsave#
#ggsave("Mi_grafico_mas_reciente.pdf")#guarda el ultimo archivo en el formato pdf#
#También podemos especificar que gráfico guardar con el argumento plot Hay otras opci... |
406e43199128377fbdf21340f9701869a07e500c | 52e460860c17991736b30e6319be40d632c6b537 | /man/bam2counts.Rd | 880269b661c1d979d406ba7b8fcd687d5817cfbc | [] | no_license | yingstat/intePareto | bc973a197cfb55a50bc81fad81fe5f8f8c3910db | 8a07886f0b6687cf195b6973604e7d6dbddb8bf8 | refs/heads/master | 2021-05-19T10:26:21.332880 | 2021-02-03T16:30:19 | 2021-02-03T16:30:19 | 251,651,442 | 7 | 2 | null | null | null | null | UTF-8 | R | false | true | 979 | rd | bam2counts.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bam2counts.R
\name{bam2counts}
\alias{bam2counts}
\title{Compute the number of reads fall into specific genomic region}
\usage{
bam2counts(bamFile, region, fragLength = 180)
}
\arguments{
\item{bamFile}{Aligned bam file as input.}
\item{regi... |
b5343eba56330fa674ed98beeb885bb67a5d4a36 | 12db0ea069010c87f033b1444787ef82499b345d | /man/pagecount.func.Rd | fd966d8d58c774e7d8265b67fe274a08158ba6d3 | [] | no_license | git05/saraminR | c0bba59226dcb7d1a938180fb6926fa7e9bfbd09 | 315342fc1b93ff84823508a0c967c70be2720c00 | refs/heads/master | 2021-09-04T18:46:20.741563 | 2018-01-21T07:51:12 | 2018-01-21T07:51:12 | 118,219,526 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 231 | rd | pagecount.func.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getPage.R
\name{pagecount.func}
\alias{pagecount.func}
\title{get Keywords Pages}
\usage{
pagecount.func(url.frame)
}
\description{
get Keywords Pages
}
|
9d41100935c73213e84a5d896c766043e7abb253 | f78cd948863b0d44fb817d10e28c52a885d425e5 | /VientoyEnergiaPorHoras.R | fcc0d470ea0875c2885ffd9c7b7e4f11aab8a671 | [] | no_license | GuilleHM/TFM_GuillermoHuerta_MasterBigData_2019_UNIR | 6044fdc94c32f01559b9ce1b64dac86c79b6172a | 6126784ba90740eded8711bb22517463bc2eeb28 | refs/heads/master | 2020-07-10T17:02:08.893045 | 2019-09-15T11:08:40 | 2019-09-15T11:08:40 | 204,317,561 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 15,331 | r | VientoyEnergiaPorHoras.R | ## Este "script" sirve para calcular y crear un gráfico con la variación de la velocidad del
## viento según la hora para cada mes del año.
## Para ello se emplearán los archivos .csv provinientes de la conversión de los archivos .grib
## descargados desde la BBDD ERA-Iterim de la ECMWF para el periodo 1979 - 2018.... |
211946a9e2ae9f68c01306264991808d54e453ab | 5b7e76d3f81983038ae567203cbbe57994a4d56c | /analysis/eQTL.pQTL.Mediation.ExampleScript.R | f699213615858ec067007a4dbdf3c894ecd97692 | [
"MIT"
] | permissive | fboehm/chick2016 | 12f15699babc3eaa2663c762b4d57495c0035504 | 9979224cb9bee2e11d9e87b6ad0e5036e3b2fe81 | refs/heads/master | 2020-05-19T10:27:41.253418 | 2019-05-05T03:40:02 | 2019-05-05T03:40:02 | 184,972,264 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,375 | r | eQTL.pQTL.Mediation.ExampleScript.R | ###################################################
# #
# eQTL/pQTL & Mediation Examples #
# Updated June 15, 2016 #
# Steve Munger #
# steven.munger@jax.org #
# ... |
4812d580372708ff815deb5763c25e431aff8b4a | d9212ebe9e3c2f615f4ab00c5312140e42b8f9fe | /R/globals.R | aec503c61c179fee1861fdb5b772d3c0ae859a03 | [] | no_license | cran/metaplus | b89e51b742682fd21529ba4aec63d5576ad02805 | a849c33a3dd4795872949e6b250d511ade845b7a | refs/heads/master | 2022-06-14T10:57:04.322727 | 2022-05-13T04:40:02 | 2022-05-13T04:40:02 | 23,156,103 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 151 | r | globals.R | utils::globalVariables(c("newstart.meta","profilemix.fit0","p","profilenorm.start","profilenorm.fit0","profilet.fit0","isreg","grad","mymle.options"))
|
8d64206ea21df59ba7a4cf8c3949adb00051c69a | 11fc7e9df7d1c468a9289001b0cc3bf1783ccd19 | /Exercises/Chapter 3/q12.R | 2eb7c71f715933adbfe99b8a526dab641d9bfa1d | [] | no_license | IrfanZM/ISL | b30b91466732817989ff291da3d630d692a61183 | 4c57ba3d1ffb11fea878e326642d5d0f8bcb484c | refs/heads/master | 2020-06-19T04:07:04.072730 | 2019-07-12T10:07:16 | 2019-07-12T10:07:16 | 196,556,609 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 62 | r | q12.R | set.seed(1)
x <- rnorm(100)
y <- -sample(x,100)
plot(x,y) |
2b74701146798b6985628eaf189a6de78b94861c | c109762169e1aa82f53ef9d6eb60e74994d041e9 | /scripts/plot_ndw.R | 298c1e6a7fc52449b4fb2f977c41ac2f33e2f1fb | [] | no_license | hgfernan/r4prog | 79bd22acdd7228711352a13971ca2d6b1fd1b4d5 | 84ec69b3c8323d43e3ac3923696943aa7a052729 | refs/heads/master | 2022-12-24T23:31:29.842564 | 2020-09-28T23:50:30 | 2020-09-28T23:50:30 | 299,457,294 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 747 | r | plot_ndw.R | nweek <- 1
ndw <- 0
for (i in 1:length(work$new_deaths)) {
ndw[nweek] <- ndw[nweek] + work$new_deaths[i]
if ((i %% 7) == 0) {
ndw[nweek] <- ndw[nweek] / 7
nweek <- nweek + 1
ndw[nweek] <- 0
}
}
remainder <-length(work$new_deaths) %% 7
if (remainder != 0){
ndw[nweek] <- ndw[nweek] / remainder
}
wee... |
c335a185671a0ff1a6c5a515bde2b609591623da | e129d729d4cb60e9311b658629c426a654e4beb1 | /WavyFunction.R | 6246e2271cd5a1f6c053498960c32c34a7aa73ab | [] | no_license | chapinux/TestFunction_GA | 536ffdee9772bd826e7a091d6c0b731682a5b4f3 | e7199d5d0c82c3e833336e5409fe04f607db7924 | refs/heads/master | 2021-05-15T17:00:37.978336 | 2017-11-30T13:05:34 | 2017-11-30T13:05:34 | 107,564,151 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 905 | r | WavyFunction.R | # Wavy function
#
#n is dimension of input space
# f(x) 1 - 1/ n sum for i ) 1 to n cos (k*x[i]) exp(-x[i]^2 / 2 )
# Where, in this exercise, k = 10. The number of local minima is kn and (k + 1)n for odd and even k respectively.
#
# Here, n represents the number of dimensions and x_i \in [-\pi, \pi] for i=1,2
li... |
853a3c91bb7172353de16811fa7cbf656df9e3aa | 0766087bc0a2a407400a680039c9b55e4a3d5fa7 | /man/sims_data.Rd | 48132f3be411b1808dfa3c76aa2c9606e85fa0ab | [
"MIT"
] | permissive | poissonconsulting/sims | e1b7f52b8ce836901f5b344744a9e3d3b6c4a90b | f58fd93f39dbed375a92de179163b748dda0fe9d | refs/heads/main | 2022-06-28T16:48:32.481948 | 2022-06-17T22:14:34 | 2022-06-17T22:14:34 | 191,258,625 | 1 | 2 | NOASSERTION | 2022-06-17T21:51:24 | 2019-06-10T23:18:19 | R | UTF-8 | R | false | true | 681 | rd | sims_data.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\name{sims_data}
\alias{sims_data}
\title{Simulated Datasets}
\usage{
sims_data(path = ".")
}
\arguments{
\item{path}{A string of the path to the directory with the simulated data.}
}
\value{
An \code{\link[nlist:nlists]{nlist::nlists_... |
80fb9902a279ab4a91e4b0faf89a3710a23ebc61 | 0d43c45303c6b9b3ac79113c1b7fdc71a3a7e697 | /tests/C_tests.R | 6f419ff5f60f74cdd3604166f6a3395c107a7ca4 | [] | no_license | HappyLiPei/tea | b3f590bac389beb919809cda417250d66e351d0f | 26d59f69592a0e31644f29707baa4f3c6dde7424 | refs/heads/master | 2021-04-03T05:09:17.597599 | 2015-05-23T14:48:23 | 2015-05-23T14:48:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 31 | r | C_tests.R | library(tea)
.C("tea_c_tests")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.