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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1d0628d76c892325b1379d7261a5fba4f4bb2092 | 93c344d2d9f5e835eb62f4b4a89af372004015bc | /man/factor.switching-package.Rd | 15e85f877a57b188415104763f63a799f304a8e1 | [] | no_license | cran/factor.switching | d0311c0fb94843af0e4975be86c1e68b4679f992 | 1fcb32e132f6587518ac65dd98e94a5fcf3513c0 | refs/heads/master | 2022-04-30T12:47:27.722212 | 2022-03-16T10:20:02 | 2022-03-16T10:20:02 | 246,801,367 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,773 | rd | factor.switching-package.Rd | \name{factor.switching-package}
\alias{factor.switching-package}
\alias{factor.switching}
\docType{package}
\title{
\packageTitle{factor.switching}
}
\description{
\packageDescription{factor.switching}
There are three alternative schemes for minimizing the objective function.
\enumerate{
\item{Exact \code{\link{rs... |
bfa489a1210557872fb75b5cf91d6ee79c27edb9 | e8c5c67d2012d344dec21b20bb6ed29e1db85c79 | /man/theme_statthinking.Rd | dc2d8f271e84b0002a637deeebbb97c6907a1e4c | [] | no_license | lebebr01/statthink | 59244bd7421e2f5f6b28c9d71292a059985b0aa7 | a2a54c063aebccfd7c30c4a76b925ba69f33be1a | refs/heads/main | 2021-09-11T14:53:23.119904 | 2021-08-30T17:27:19 | 2021-08-30T17:27:19 | 203,598,240 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 691 | rd | theme_statthinking.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/book_theme.r
\name{theme_statthinking}
\alias{theme_statthinking}
\title{Theme for the Statistical Thinking Text}
\usage{
theme_statthinking(base_size = 12, base_family = "sans")
}
\arguments{
\item{base_size}{The base size of the text passed... |
d18a4f4ec9ce6db916346c8ec4f7a166d798f1a6 | f21895199dc2ad4982299677ace1185cec7c730e | /R_Data&Scripts/16S_Sequence_Processing_DADA2.R | cfaa2e95767715006b93a0a11e400371c35038fc | [] | no_license | jordan129/Rat_Antibiotics_FMT_mSystems_2020 | e907aea5a4aa91b509b020a2c3b5eb09463ec220 | 3761b1d81148a9f57d77c66d9828e4e75da5fc01 | refs/heads/main | 2023-01-13T12:01:58.808697 | 2020-11-09T18:14:16 | 2020-11-09T18:14:16 | 310,916,779 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,768 | r | 16S_Sequence_Processing_DADA2.R | # References:
# https://benjjneb.github.io/dada2/tutorial.html
# https://www.bioconductor.org/packages/devel/bioc/vignettes/dada2/inst/doc/dada2-intro.html
### Load all packages
install.packages("pacman")
library("pacman")
pacman::p_load(ggplot2, dada2, phyloseq, gridExtra, dplyr, DECIPHER, phangorn, knitr)
# dada2 f... |
5f6fe9c3ca467b19368f41353243687d339dad45 | 316336f52dfa708beaf1577c062b88185a68d157 | /Kernel_and_Neural_R/man/kernpredictor.Rd | c5ef412ea054fe9c22b01be1e7fcef9d631aa257 | [] | no_license | fetacore/NonparametricNeuralNets | b401f7bc5d0fe1897d296c659277d4f2e1692aa3 | bba5e27329ce49a7bbbae16dfef72e4522b8359a | refs/heads/master | 2021-05-09T04:14:27.522022 | 2018-01-28T15:03:12 | 2018-01-28T15:03:12 | 119,266,862 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 770 | rd | kernpredictor.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kernpredictor.R
\name{kernpredictor}
\alias{kernpredictor}
\title{Non parametric predictor}
\usage{
kernpredictor(my_x, y, x, h = 0.5, p = 0, distance = "Eucledean",
kernel = "Gaussian")
}
\arguments{
\item{my_x}{The row vector of values (o... |
3757016555b060c1451b0f724e170c7f2a78f11a | b85cb92935407d40d03405ea09a7f96d005c1954 | /Functions/data_format.R | e7bd6ce0dcdac4e863feaf5828bf732e925fe53a | [] | no_license | enerhiya/Spatio-Temporal-Cross-Covariance-Functions-under-the-Lagrangian-Framework | 0cccffd7a98d13e4f4c7353d9c42e923ae34dbdd | 5084f24d9b89c9bff2794b0575a44d7ea0ccaf54 | refs/heads/master | 2021-06-18T19:50:38.829233 | 2021-02-17T17:09:46 | 2021-02-17T17:09:46 | 177,747,457 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,096 | r | data_format.R | data_format_into_matrix <- function(data1, data2 = NULL, temporal_replicates, aggs_max = 1, simulated = T){
# data1, data2: data matrix with temporal replicates as columns and each row represents the locations
# aggs_max: the number of consecutive timesteps you want to average. Here we take the data as is and do... |
eaff8c1c3d026fb8bdb9a2ed67f3a0c9d542fe46 | b62236109f1e8d01739e6cc8ec3d62fd046a1784 | /STAT_541_Statistical_Methods_2/Week_2/Exercise 11-6 R Code.R | 93487a9983af120a526fb8efd816077e02d151b9 | [] | no_license | shahidnawazkhan/Machine-Learning-Book | 049670a3b9d74b11e619428ee11468f08ffee595 | f152f36a8b7dbabe30d2c1b6de10788cbd1fa5e8 | refs/heads/master | 2023-08-22T02:48:33.039710 | 2021-10-19T14:59:49 | 2021-10-19T14:59:49 | 395,435,421 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 979 | r | Exercise 11-6 R Code.R | #
# Chapter 11 Exercise 11.6
#
# In RStudio, use File, Import Dataset, From Excel...
# to get Excel data file
# Note the name for the imported Excel file
str(ex11_6)
# To have most of our R code reuseable for future
# analyses, we will use a data object called dataobj
dataobj <- as.data.frame(ex11_6)
str(dataobj... |
5513a18e2f864db203a61208c7844a195098bc15 | 30b4c042ad99283d184823e3ba98110efed674db | /man/next_test.Rd | 92723f2e7e71b733bfe9fa35e1a6e1c08b894098 | [
"MIT"
] | permissive | almartin82/parccvizieR | d095e6a9c79387ace6372db06f0fb508351b7d25 | da09e8ea5c2253ec9729cc10974764a6a96e43e4 | refs/heads/master | 2023-06-14T04:10:44.961051 | 2023-05-25T13:30:58 | 2023-05-25T13:30:58 | 46,429,452 | 3 | 2 | MIT | 2018-06-11T21:01:18 | 2015-11-18T15:54:04 | R | UTF-8 | R | false | true | 366 | rd | next_test.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/growth.R
\name{next_test}
\alias{next_test}
\title{Returns sequential test code (next or prior)}
\usage{
next_test(x)
}
\arguments{
\item{x}{a test code}
}
\value{
the next or prior test code using standard PARCC progression
}
\description{
R... |
7723d2ba0e2243082afaa2bad9ed62e0c2c11710 | ca85aca58c75b824f5f7668673a4e9958e3be049 | /man/dx.Rd | 6258ba0bd6ab4091c436758590dbefb865d96109 | [] | no_license | jmjablons/icager | 1a2fd0586f73682b7f4dd3578e5c2a50af46638e | 7dddccef96b892ccf3750a8af348f2f547d46937 | refs/heads/master | 2022-12-03T14:54:28.876604 | 2020-08-17T13:13:52 | 2020-08-17T13:13:52 | 228,870,393 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,526 | rd | dx.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/managedata.R
\docType{data}
\name{dx}
\alias{dx}
\title{Sample experimental data}
\format{A tibble with 330 rows and 16 variables:
\describe{
\item{id}{unique visit id, not really handy; <chr>}
\item{deviceid}{house cage; <chr>}
\item{s... |
7c7c838eebbcf65493a9ce0d7f36d681ae6a72fe | 4c961b6c657e9a8e91a483ab48e1318094b40130 | /man/bacteria.Rd | 6acfee2a7676b1623a42104d49a6db0058fefed7 | [] | no_license | cran/mdhglm | 5c220f06acb28428bd035dfb9097fb9b243ca504 | 689c0b38742cb75370cd0686d1b3717dd25c87c8 | refs/heads/master | 2020-04-06T21:26:22.271570 | 2018-10-25T07:00:19 | 2018-10-25T07:00:19 | 54,140,240 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,039 | rd | bacteria.Rd | \name{bacteria}
\alias{bacteria}
\docType{data}
\title{Bacteria Data}
\description{
Tests of the presence of the bacteria H. influenzae in children with otitis media in the Northern
Territory of Australia (Ripley, et al., 2016).
}
\usage{data("bacteria")}
\format{
A data frame with 220 observations on the f... |
4929a03263611edafee386bc93f317693e92a26e | 839222f83d7868ca613fa2bf7bda85123ec867f5 | /cibersort_luad_experiment/.PowerFolder/archive/cibersort_merge_stanford_data_K_59.R | fbf9b9738b8cd57471456aa4b05221607ac5b0df | [] | no_license | QifengOu/legendary-disco | 72d8e90adc3e9cea9207d75784e801419aff46fb | 1f368181f95cc67de4a3a8e71569e3117d27bea4 | refs/heads/master | 2021-01-02T06:28:18.566439 | 2019-09-26T13:05:07 | 2019-09-26T13:05:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,173 | r | cibersort_merge_stanford_data_K_59.R | #### ----------------------------------------------------------------------------------- ####
########################### MCP-Counter Abundance Analysis ##################################
#### ----------------------------------------------------------------------------------- ####
mypackages <- c("GSVA", "GSEABase", "... |
5705ce8f8ff069c8e9362b63e6c367114cc546a5 | 2195aa79fbd3cf2f048ad5a9ee3a1ef948ff6601 | /docs/Files.rd | 0648a39b0447a07ed86c1c2045253eccb30bec02 | [
"MIT"
] | permissive | snakamura/q3 | d3601503df4ebb08f051332a9669cd71dc5256b2 | 6ab405b61deec8bb3fc0f35057dd880efd96b87f | refs/heads/master | 2016-09-02T00:33:43.224628 | 2014-07-22T23:38:22 | 2014-07-22T23:38:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,467 | rd | Files.rd | =begin
=設定ファイル
QMAIL3では設定はXMLファイルで行います。設定は基本的には((<オプションの設定|URL:Options.html>))や((<アカウントのプロパティ|URL:AccountProperty.html>))でUIから行うことができますが、一部の設定はファイルを直接編集する必要があります。ここではこれらのファイルの形式を説明します。
また、一部の設定ファイル以外の自動的に作られるファイルについても説明します。
==プロファイル
*((<addressbook.xml|URL:AddressBookXml.html>))
*((<autopilot.xml|URL:AutoPi... |
cc17c2af396109b6b616020d6f4e273ec0e9a69c | ebad5c92788ce2f1ae5307a11412d540f7fe9f7c | /exploratory.R | c9cb55654376a250afc5a1ef1e9e486d00ab349c | [] | no_license | techtronics/stocks-sentiment-analysis | c8c8b3b2d15d5e0bb630a91e51c81860f0d66ff3 | c976be9603646a27cbdbc34191cd41cb619a905a | refs/heads/master | 2017-12-14T12:16:46.666417 | 2015-12-12T19:41:04 | 2015-12-12T19:41:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,934 | r | exploratory.R | library(ggplot2)
library(vars)
library(forecast)
data_twitter = read.csv2("./csv/csv-google-2-copy.csv", header=TRUE, sep=",", dec=".")
data_stock = read.csv2("./stocks/google-stock-26-10.csv", header=TRUE, sep=",", dec=".")
data_twitter$NormPos <- data_twitter$Pos / data_twitter$Num
data_twitter$NormNeg <- data_twi... |
629c6d5a6f1b47159c4f1a5392e0e4bb99545423 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/crunch/examples/makeMarginMap.Rd.R | 92decb06df529ecac786cc2e33a63d9c9fff7d50 | [] | 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 | 428 | r | makeMarginMap.Rd.R | library(crunch)
### Name: makeMarginMap
### Title: Make a map of margins
### Aliases: makeMarginMap
### Keywords: internal
### ** Examples
## Not run:
##D makeMarginMap(getDimTypes(cat_by_cat_cube))
##D # 1 2
##D
##D makeMarginMap(getDimTypes(MR_by_cat_cube))
##D # 1 1 2
##D
##D makeMarginMap(getDimTypes(cat_by... |
4e8b544873e3b9dcb0b93a2457b3d79d8dd66d50 | 9ece3c458fb1c4e7132bffa0d6dadbe549c741c7 | /plot2.R | 16321a80f2ca787c61e72761bdfe66b5a32d7e6e | [] | no_license | ZzezZ/ExData_Plotting1 | e0df73e1c533752f6c79ca42a8eceb5e758a0395 | f1c019bf4443dbb5f56191c127ddcf4ca06a6f72 | refs/heads/master | 2021-01-18T07:26:07.138676 | 2014-06-08T19:54:23 | 2014-06-08T19:54:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 807 | r | plot2.R | source("loaddata.R")
plot2 <- function(file="household_power_consumption.txt",destinyfile=getwd()) {
#Load data from the file into the variable
#Due to the data file is large,so when call function,it'll take about 1-3 minutes
data <- loaddata(file)
if(is.null(data)){
print(" Unable to create the... |
23bd015fc83cc4227d046f4c32b0876c1e153101 | 020c2ff9ba9e7b0e53826e10275b9ed161433561 | /R/update_y_mixed_add.R | 61be6f088811b6d77fa34815cc4536690490bb3d | [] | no_license | aimeertaylor/FreqEstimationModel | 9d2e27eeba9adf8ecb719cfcccc72498a1ee864f | a0b48873752bd656d5ea838d45370e54a2782f76 | refs/heads/master | 2021-12-23T03:18:57.597770 | 2016-11-18T18:33:42 | 2016-11-18T18:33:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,102 | r | update_y_mixed_add.R | #'@title Update mixed data samaple clone addition
#'@name update_y_mixed_add
#'@description Function for addition of clone to a mixed data sample
#'@export
update_y_mixed_add <- function(to_update,
genotype_counts_mixed_add,
frequency_truncated)
{
gen... |
3a7cc2e87f68b9c5be139a6a52c53721193bda4d | b314a1209310aad4b0d16060f2b052044bd413d4 | /CentralPointsAugmentation.R | 75a1431cb1c4b1ff65b4c6f8fd3ff4e6493712f0 | [] | no_license | pbosetti/DCPP-rstudio | 15f267661400743b7603737695cac0c8ab6f3ece | cfdb6dbec3a5aa40083647e642838f10f97bb3cd | refs/heads/master | 2020-12-24T09:52:49.465959 | 2017-01-25T08:08:16 | 2017-01-25T08:08:16 | 73,264,855 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 322 | r | CentralPointsAugmentation.R | # Augmentation with central points
# 2^2 FP, A=reaction time, B=Temperature, Y=reaction rate
lvl <- c(-1, +1)
df <- expand.grid(A=lvl, B=lvl)
df[5:9,]=0
df$Y <- c(
39.3, 40.9, 40, 41.5,
40.3, 40.5, 40.7, 40.2, 40.6
)
anova(lm(Y~A*B+poly(B,2), data=df))
anova(lm(Y~A*B+poly(A,2), data=df))
anova(lm(Y~A+B, data=df)... |
7091d5a1e1fd8541b329fc7b73ef243b6805ad23 | 7f72ac13d08fa64bfd8ac00f44784fef6060fec3 | /RGtk2/man/gtkColorSelectionNew.Rd | eb73cb7799d12d7eb20f42f70baffa043633e213 | [] | no_license | lawremi/RGtk2 | d2412ccedf2d2bc12888618b42486f7e9cceee43 | eb315232f75c3bed73bae9584510018293ba6b83 | refs/heads/master | 2023-03-05T01:13:14.484107 | 2023-02-25T15:19:06 | 2023-02-25T15:20:41 | 2,554,865 | 14 | 9 | null | 2023-02-06T21:28:56 | 2011-10-11T11:50:22 | R | UTF-8 | R | false | false | 318 | rd | gtkColorSelectionNew.Rd | \alias{gtkColorSelectionNew}
\name{gtkColorSelectionNew}
\title{gtkColorSelectionNew}
\description{Creates a new GtkColorSelection.}
\usage{gtkColorSelectionNew(show = TRUE)}
\value{[\code{\link{GtkWidget}}] a new \code{\link{GtkColorSelection}}}
\author{Derived by RGtkGen from GTK+ documentation}
\keyword{internal}
|
99b5437fcfaea8f6eaef80111e4847c25918515e | 1f9b92954e1397f4aec19fa3db099adb088634c5 | /uttrekk.R | 995be0be0aea775254dbbc0603213c4558c22715 | [] | no_license | umhvorvisstovan/usbotn_uttrekk_alioki | b6be024e2fba7b88bcb1e014959483c7d53c0ae0 | f7d6c05d6e725be2b120b92fa4ff953f0e97d4cf | refs/heads/master | 2022-12-19T20:58:52.879395 | 2020-10-08T14:34:50 | 2020-10-08T14:34:50 | 268,803,517 | 0 | 0 | null | 2020-08-26T15:53:43 | 2020-06-02T13:07:43 | R | UTF-8 | R | false | false | 2,392 | r | uttrekk.R |
#her skrivar tú hvat fyri aliøki tú skal hyggja at
alioki <- "A11"
#her skrivar tú hvussu nógvar útsetur tú skal hyggja at
utsetur <- 3
#her skrivar tú frá hvørjum ári tú ynskir kemiskarkanningar vístar frá í síðstu plottinum
kemi <- 2014
#her skrivar tú frá hvørjum ári tú ynskir djóralívskanningar vístar á plott... |
801dd6c8014ff4e44fa516c1c3ca8be9c787b596 | 484e0ac5abfa5e566ca34b401c120fbbad6ffd6d | /multiLibrary.R | 49d0c7a5e0fea7c8f768d8c580a00b74c1dcf187 | [] | no_license | rpietro/Toolbox | 89e385e6056b936f7d39ff46c9a9db6d9320ed90 | 71e15ec89e013f3c34b4bbfeb986d5d9588a2f68 | refs/heads/master | 2016-09-07T19:07:57.693464 | 2012-06-15T14:38:48 | 2012-06-15T14:38:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,985 | r | multiLibrary.R | #######################################################################################
#multiLibrary is licensed under a Creative Commons Attribution - Non commercial 3.0 Unported License. see full license at the end of this file.
#######################################################################################
... |
8370a4b3bbb2ed1c13a334424de489b53e9d4765 | 465228f11e8ca089c6ff11876ee88f54475525f6 | /plots.R | 6e7cb35aee34c84e3f56c7f70c66133161156c9a | [] | no_license | zimolzak/realty | 6634f7c7c282db6d5cbcf70674852f5e554436f9 | a8f45d575b17a354c3e08087c3dcb0b887cc4bf0 | refs/heads/master | 2021-05-04T14:17:17.405424 | 2018-02-04T15:48:43 | 2018-02-04T15:48:43 | 120,197,315 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 100 | r | plots.R | library(ggplot2)
X = read.csv("~/Desktop/realty/realty.csv")
qplot(price, sqft, data=X, color=type)
|
29914a21d29ae6ca0c85d93f1066a392a88e2107 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/brr/examples/plot.brr.Rd.R | 4006bc5b3e1b16c1700617dbdc58c96ff21e1669 | [] | 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 | 512 | r | plot.brr.Rd.R | library(brr)
### Name: plot.brr
### Title: plot brr
### Aliases: plot.brr
### ** Examples
model <- Brr(a=2, b=3)
plot(model)
plot(model, dprior(mu))
plot(model, dprior(mu), xlim=c(0,4), lwd=3, col="blue")
plot(model, pprior(mu))
plot(model, qprior(mu))
model <- model(c=4, d=6, S=10, T=10)
plot(model)
plot(model, dp... |
80b44062ed429a389acf9af85010133a8cf14874 | d78db58b9c334159d85104234609556cc91e13c1 | /R/estimatebeta_SA.R | 99415857a5967406b2b74e29182d3242eb6f4d3d | [
"MIT"
] | permissive | meleangelo/grdpg | 234339ca3e289450a096b2049876b7622c4db839 | a4fda351addcfc0950e58fccb4f5d702758c678b | refs/heads/master | 2021-06-10T01:44:12.582473 | 2021-05-01T14:34:06 | 2021-05-01T14:34:06 | 170,724,378 | 3 | 3 | null | null | null | null | UTF-8 | R | false | false | 8,008 | r | estimatebeta_SA.R | #' Estimate beta
#'
#' Estimate beta (the effect of covariates) using simple procedure.
#'
#' @import mclust
#'
#' @param Xhat Estimated latent positions, should be an `n` by `d` matrix where `n` is the number nodes and `d` is the embeded dimension.
#' @param muhats The center of the latent position for each block. Sho... |
8355a246d8e00f4b4902551e41787be437d93aa7 | be17754a5cdbab01b012bf27028aeb6e8d28d129 | /funs.R | 718610a1cfbdb1b60b83c6f048b36e82a49e525a | [] | no_license | a4a/JRC-tecrep-simTest | 55066a1d13cb811d15c9cf52056f5e5b269084da | 1727dca3fe4dfb0578ac3e38a05fce9ad3411a51 | refs/heads/master | 2016-09-05T14:38:29.849908 | 2013-11-15T14:40:18 | 2013-11-15T14:40:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 21,006 | r | funs.R | # models for fit
mod0 <- function() ~ 1
amod <- function() ~ age
famod <- function() ~ factor(age)
fymod <- function() ~ factor(year)
faymod <- function() ~ factor(age) + factor(year)
bamod <- function(na) as.formula(paste("~bs(age,",na, ")"))
bymod <- function(ny) as.formula(paste("~bs(year,",ny, ")"))
baymod <- func... |
e3ed7ea3c9a2bc2ed4a89f769fb78b3382727d04 | 3ea16585f2726641cc80d2b7df871444d1eff50f | /neural_network.R | 3a71f31ac6a6ef097e39d7f4aa891c3e156ccd6c | [] | no_license | billzichos/Deal-Probability-Predictor | 352409e3c2bddc2bc7f6f6b4bec249b42c5729ac | ed1f7a5dd6e859c013d893935bc94947fd655734 | refs/heads/master | 2021-07-15T12:41:52.605193 | 2016-10-30T14:05:42 | 2016-10-30T14:05:42 | 35,170,982 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,139 | r | neural_network.R | #install.packages("neuralnet")
library("neuralnet")
privateDir <- "C:\\Users\\Bill\\Documents\\Private-Github-Files"
setwd(privateDir)
Deals <- "Deal.csv"
col.Deals <- c("Deal.Number", "Snapshot.Date", "Agreement", "Deal.Type", "Primary.Leasing.Agent", "Building", "Deal.SF", "Lease.Term.Months", "No.Days.Since.Cre... |
738c912163877e72024ce87ee6525969c410154e | a9bcba10609f9dd18e9a29a26b1e5485b6d4803f | /plot1.R | bb1316d53b46c9ac3a140fe57ac69a01c597d7d1 | [] | no_license | JordiOvereem/ExData_Plotting1 | c859a02a7d96c4438c412c17f20ec600803970f7 | f77b3ad0d3933aaf4fe86af952f523ad6f6c1386 | refs/heads/master | 2021-01-18T10:49:44.340125 | 2016-09-13T10:49:55 | 2016-09-13T10:49:55 | 68,080,047 | 0 | 0 | null | 2016-09-13T06:13:44 | 2016-09-13T06:13:44 | null | UTF-8 | R | false | false | 804 | r | plot1.R | ## Course Project 1 - Exploratory Data Analysis by Jordi Overeem
## This code produces plot1.png.
# Load data
data <- read.table("household_power_consumption.txt", header = TRUE, sep=";",stringsAsFactors = FALSE, dec=".")
# Convert and subset data
data$Date <- as.Date(data$Date, format = "%d/%m/%Y")
subset_da... |
b4340c7ec9acdc748ec2925e21bb438635712a06 | 968d2abde9432110a4e657d48ed9838aba2956e2 | /plotInfectionAnalysis.R | d5b813fb6017af4f835ade1a194335689e21909b | [] | no_license | levashinalab/Larva-Development | 3f1033e57d5e92534735db4cb49ba06d0d06c5aa | 8f3a4db71b8648232d69217d14b5db1f37f7ee84 | refs/heads/master | 2020-03-22T09:23:38.536941 | 2019-06-03T08:05:49 | 2019-06-03T08:05:49 | 139,834,106 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,949 | r | plotInfectionAnalysis.R | #remove old values to avoid trouble
rm(list=ls())
#load the necessary libraries and files. You might need to install the packages first
require(plyr) #necessary for data processing
require(gdata) #necessary to read xls files
library(ggplot2)
source('~/Documents/Projects/Malaria/modeling/ABM/src/RScripts/ggplotThemes.R'... |
3a757eb77d54e9ccaa3646a2881c459f76796b9a | 9598c94fe076830bfece6e366b87cff83c4c66b6 | /trade spillovers/Trade spillovers ES.R | e45d2a54166ca14134fbf23aff235520ec291376 | [] | no_license | mdg9709/spilloversNL | 1b8d836ad4f5d1145f6cc15345745358d5f15b24 | 04388fe2bfcf764ab4a256b456db3de00ba824f9 | refs/heads/master | 2022-11-18T22:37:24.704113 | 2020-07-17T17:07:07 | 2020-07-17T17:07:07 | 280,177,983 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,073 | r | Trade spillovers ES.R | # --- Spillovers via trade channel
source('~/Studie/MSc ECO/Period 5-6 MSc thesis/MSc thesis RStudio project/Scripts/Destination and origin spillovers ES.R')
source('~/Studie/MSc ECO/Period 5-6 MSc thesis/MSc thesis RStudio project/Scripts/Spillovers IT and ES v4 1.R')
source('~/Studie/MSc ECO/Period 5-6 MSc thesi... |
e835cee30945facbcf2b53c63257d27c5ea9a58d | c2ca52ff213c784ebb7e3e6f45ed9d148fb089cd | /BA/Homework/HW02/3fgl.R | dcf122a99d83f3518042d110e19da016fd243b9c | [
"MIT"
] | permissive | jeklen/notes | 93d3091ea2a14cf244004fe1a3a539018ae671d2 | 700498ce6577f83707c8d497ddef4b673b190e2a | refs/heads/master | 2021-06-12T09:36:41.024345 | 2017-01-22T02:13:22 | 2017-01-22T02:13:22 | 71,848,578 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,452 | r | 3fgl.R | library(class) ## needed for KNN
setwd("D:/BA/Homework/HW02")
fgl <- read.csv("fgl.csv",header = TRUE,sep=",")
summary(fgl)
#Na、Mg、Al、Si、K、Ca、Ba、Fe
fgl[,"Na"] <- factor(fgl[,"Na"])
fgl[,"Mg"] <- factor(fgl[,"Mg"])
fgl[,"Al"] <- factor(fgl[,"Al"])
fgl[,"Si"] <- factor(fgl[,"Si"])
fgl[,"K"] <- factor(fgl[,"K"])
fgl[,"Ca... |
149014f45395774c784dbeb9612cd03494e1b4f4 | 50272cf92b22f6436abd5e18a31a45f4fe9efc01 | /man/bootify.Rd | 22244bcace759e691ff8de1d9ccd2ff6bfca270f | [] | no_license | mattdneal/gaussianProcess | 906154584b3c84184f0d9afd2df8865c286d4718 | 9e740bf0948569a8ea24d0311a1cf0ea83544533 | refs/heads/master | 2021-01-10T07:28:42.254970 | 2019-01-20T00:06:34 | 2019-01-20T00:09:04 | 50,181,064 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 374 | rd | bootify.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{bootify}
\alias{bootify}
\title{Bootify a Statistic}
\usage{
bootify(statistic)
}
\arguments{
\item{statistic}{statistic to bootify}
}
\value{
an R function
}
\description{
Takes a statistic and returns a wrapper of that statist... |
c8d4de9a6fed8cc6cde4255cc95b518dfebc814f | 41e4aca43cbd980c72209843c53e0293eaff953f | /man/str_replace_all.Rd | cd8662fa27416515aa0abe5b3df65bb138028706 | [] | no_license | kohske/stringr | 4f6bcfa93d9d8169319b1286129ccc1415ebd391 | f64767cee5837ce07f746d952f17b1ddad0f846c | refs/heads/master | 2020-12-24T11:38:04.960071 | 2010-08-24T13:49:22 | 2010-08-24T13:49:22 | 1,215,422 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,302 | rd | str_replace_all.Rd | \name{str_replace_all}
\alias{str_replace_all}
\title{Replace all occurrences of a matched pattern in a string.}
\usage{str_replace_all(string, pattern, replacement)}
\description{
Replace all occurrences of a matched pattern in a string.
}
\details{
Vectorised over \code{string}, \code{pattern} and \code{replace... |
036f57b62fb7cc45a0c2f6ab7fb5463598db7e38 | 364b442fe6d6ee08c1150f1eabbc850a81d3a5e8 | /R/utils.R | bcc5aea739f3b963e0784e53f0cd3cc5672c5600 | [] | no_license | pherephobia/mlr | 5ad480184cb9e27c4f25be547d5a36413624c390 | e335540cd7e0e4533c902a0c721532cf10b5fff8 | refs/heads/master | 2020-07-14T05:50:15.364056 | 2016-10-25T02:26:18 | 2016-10-25T02:26:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,195 | r | utils.R | # get one el from each row of a matrix, given indices or col names (factors for colnames are converted to characters)
getRowEls = function(mat, inds) {
if (is.factor(inds))
inds = as.character(inds)
if (is.character(inds))
inds = match(inds, colnames(mat))
inds = cbind(seq_row(mat), inds)
mat[inds]
}
#... |
98b88ab7e74718daacaa30790b4966331549cae7 | 883a4a0c1eae84485e1d38e1635fcae6ecca1772 | /nCompiler/R/NF_CompilerClass.R | ac2c01af285882dec78723cbd92afa1af3ec0d36 | [
"BSD-3-Clause"
] | permissive | nimble-dev/nCompiler | 6d3a64d55d1ee3df07775e156064bb9b3d2e7df2 | 392aabaf28806827c7aa7b0b47f535456878bd69 | refs/heads/master | 2022-10-28T13:58:45.873095 | 2022-10-05T20:14:58 | 2022-10-05T20:14:58 | 174,240,931 | 56 | 7 | BSD-3-Clause | 2022-05-07T00:25:21 | 2019-03-07T00:15:35 | R | UTF-8 | R | false | false | 14,468 | r | NF_CompilerClass.R | nFunctionIDMaker <- labelFunctionCreator('NFID')
NFvirtual_CompilerClass <- R6::R6Class(
classname = 'NFvirtual_CompilerClass',
portable = FALSE,
public = list(
name = NULL,
origName = NULL,
NFinternals = NULL,
stageCompleted = 'start',
nameSubList = NULL,
origRcode = NULL,
newRcode =... |
f97d37784630a3a727308a807681b41e7c28566e | 29585dff702209dd446c0ab52ceea046c58e384e | /PAC/R/makeList.R | 4bd8c4ea9c414e77598e0cb9879243a276b5d966 | [] | 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 | 430 | r | makeList.R | #' Helper function to obtain a JSON-friendly format of a matrix formatted object
#'
#' @param x A matrix.
#' @return A list for generating JSON format output.
#' @export
makeList<-function(x){
if(ncol(x)>2){
listSplit<-split(x[-1],x[1],drop=T)
lapply(names(listSplit),function(y){list(name=y,children=makeLis... |
d9fc2384292bbacdf1ae5073b6afb0aafb412b9f | 71cbf070f4f13ce64cf2cf9e29590693bf05401e | /C5.0 and Random Forests/DecisionTrees.R | 081403554baa746e14147300e5c39fa8e606a236 | [] | no_license | zulyang/machine-learning-models | 16971e8a6782307c1521ffdc1b533a0477a4f191 | 36cdb4247aee529a82e772c3de59a0173d0d80b3 | refs/heads/master | 2020-05-30T20:15:22.381073 | 2019-06-03T11:18:58 | 2019-06-03T11:18:58 | 189,943,752 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,237 | r | DecisionTrees.R | install.packages("rpart")
install.packages("rpart.plot")
install.packages("caret")
install.packages("e1071")
install.packages("pROC")
install.packages("C50")
library(rpart)
library(rpart.plot)
library(caret)
library(e1071)
library(pROC)
library(C50)
# a) load genie dataset and replace column headers
geniefd.df <- read... |
13be5ef99e6cdba8d6eda64ee45d2d06d32b1b5b | 3c772bf06929bcaaacb0c20779858c3745b1761e | /Week 1 hw script.R | f730e02a967d4fc4b8885241c05bd31a1700639a | [] | no_license | aqvining/Animal-Movement-Modelling-Course | 72757a7e6382ea70ac3ebf0d4963e506ec99b4c6 | 849191c2055a734ea859cd27285785dd13bcebc8 | refs/heads/master | 2021-08-26T06:40:07.384720 | 2017-11-21T22:46:58 | 2017-11-21T22:46:58 | 105,563,697 | 3 | 7 | null | null | null | null | UTF-8 | R | false | false | 617 | r | Week 1 hw script.R | rm(list <- ls())
coordinates <- data.frame(x = runif(4, 0, 10), y = runif(4, 0, 10))
v1 <- c(1, 6, 3, 22)
v2 <- c("A", "F", "B", "V")
v3 <- c(1, 1, 0, 1)
alphaCube <- array(LETTERS, c(3,3,3))
##Problem 4 test variables
P4test1 = "this is a string"
P4test2 = list('this', 'is', 'a', 'list', 'of', 'strings... |
5008290c9c380e3a38f4b0c5e9050927ca9dbde9 | 2e83b3630df102c1581cab01ba15b477d50dacfb | /loadingdata.R | 730ae6aad179de01aa0977aa3d5158328272bf37 | [] | no_license | pacoraggio/MelbourneHousePriceShinyApp | b543f50a5479b717ccb03799771cd22be75c4825 | 533c5cdd84184c217f4fb2c119cecff9129ac65c | refs/heads/master | 2022-04-07T17:36:07.857074 | 2020-02-14T16:35:40 | 2020-02-14T16:35:40 | 238,421,217 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,381 | r | loadingdata.R | library(dplyr)
rm(list = ls())
# df.mel <- read.csv("./Data/melb_data.csv")
df.mel <- read.csv("./Data/Melbourne_housing_FULL.csv")
df.mel <- df.mel[which(!is.na(df.mel$Lattitude) &
!is.na(df.mel$Price) &
!is.na(df.mel$Bathroom)),]
# df1_FULL <- df1_FULL[which(!is.... |
1ac17f86df8258d89143e5c58d713934057d0a69 | 1291f9c4909cb5236dca9b2f8f4f6560c1040b94 | /man/EW_pop_out.Rd | e9b50320df3daf04b99fa3ccdb0b11d4bb652699 | [] | no_license | cran/IBMPopSim | 4718088f6da032fa83fe534cdc82eb49ddf22c55 | 40f6c5ae8b045d98340b9a7b168b9f4df8ff40c5 | refs/heads/master | 2023-01-07T17:18:30.302973 | 2023-01-07T11:50:02 | 2023-01-07T11:50:02 | 305,096,593 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 636 | rd | EW_pop_out.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{EW_pop_out}
\alias{EW_pop_out}
\title{Example of "human population" after 100 years of simulation.}
\format{
Data frame containing a population structured by age and gender,
simulated with an initial population of ... |
ca54c35b3a2dfb5feecdea0710eff2837593a0dc | 9412630b2d1e941addc84c58ffa76d38b8488c47 | /Data_Science/R_Programming/Hospital_Quality/best.R | e5bec4e2e0f686daf2cbe35d4894217a2a1e768f | [] | no_license | armeni/coursera | 5da526063c53b2de9a51d0bc14c237370ad9580f | 4d4b3e78e678bb7b4830646287fcda6dc871c022 | refs/heads/master | 2022-12-23T04:14:21.318758 | 2020-09-06T12:19:43 | 2020-09-06T12:19:43 | 288,823,631 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 848 | r | best.R | best <- function(state, outcome) {
data <- data.table::fread('outcome-of-care-measures.csv')
outcome <- tolower(outcome)
chosen_state <- state
if (!chosen_state %in% unique(data[["State"]])) {
stop('invalid state')
}
if (!outcome %in% c("heart attack", "heart failure", "pneumonia")) {
stop('i... |
ff5360228021394759c320978a7c08bb1961f42e | 78e9f611567ddce58d02f569a4fa1017cc4cab85 | /man/theme_map_dark.Rd | 6311d856a6b68433586adbe6f6832398d072869a | [] | no_license | OwnKng/JLLify | c654a9e622c446bed6e1d8f2abfe1312f3cfae8b | 1f54c5fccb6b40a0095514828666fac730a7c2a4 | refs/heads/master | 2021-06-27T00:28:32.641965 | 2021-03-30T14:26:27 | 2021-03-30T14:26:27 | 222,095,710 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 342 | rd | theme_map_dark.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/theme_jll.R
\name{theme_map_dark}
\alias{theme_map_dark}
\title{Style a map with a minimal look}
\usage{
theme_map_dark(...)
}
\description{
This function applies a clean dark-theme to a map. It removes all grids and axis markings.
}
\example... |
f34d911e0f280b80a8e7aca630ebcd9ea28ad855 | b492d7d024e68f0357292c77dd74f42873e596c2 | /Titanic.R | cd1354686f759f0e8ebde80dbd9517c97cfbd4bb | [] | no_license | linpyl/Titanic | 591a73d31698afcf51c5d202e1ce1762d58bac46 | 9ac873082aa066ba8c83a15576981cde5a1f65c4 | refs/heads/master | 2020-12-31T00:29:26.080079 | 2016-09-11T06:10:09 | 2016-09-11T06:10:09 | 67,913,255 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,113 | r | Titanic.R | rm(list=ls(all=TRUE))
# define functions
f.usePackage = function(p) {
if (!is.element(p, installed.packages()[,1])) {
install.packages(p, dep = TRUE);
}
require(p, character.only = TRUE);
}
f.getTitle = function(data) {
title.start = regexpr("\\,[A-Z ]{1,20}\\.", data, TRUE)
... |
57d8b45f759c7d4abe2ecac4b923c8e2478e4578 | 9ed7cc1726a9c8631a422a07fbdaf4cad0924709 | /figures/network_structure/network_structure.R | 644f195a980cb87c6f57046e302ed18555ff4e98 | [] | no_license | whit1951/EEBCovid | e364f4c7cbfb63f5b7bc7e4e538f8e366d51845f | bcefacd1deb4703c51c7a2e937ecf7d9e99953df | refs/heads/master | 2022-12-12T13:21:19.397445 | 2020-09-11T13:32:15 | 2020-09-11T13:32:15 | 257,691,046 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,844 | r | network_structure.R | library(patchwork)
library(magrittr)
library(tidygraph)
library(ggraph)
library(tidyverse)
library(parallel)
source("../../code/generate_EEB_networks.R")
mycols <- c("#2e4052", "#d95d39", "#754042")
theme_set(theme_bw())
time_max <- 200
measure_network_structure <- function(network) {
as_tbl_graph(network) %>%
... |
dbc32f4c63b2aa7b09174c70f37b2bc2371c5ba2 | 28de7940089fc91c6832f7cce42e72c1380303c6 | /tests/testthat/test-test_praise_bien.R | bacdfb3ed60c041997bb500f95a90362eb4e350c | [] | no_license | ComunidadBioInfo/praiseMX | b6bc4547fe677fd3f426b120f7329c249e87e30e | 9d2639974a1382fc36b84dfdc2ebc0592cb12bc5 | refs/heads/master | 2020-06-28T00:27:57.678012 | 2019-08-02T17:53:20 | 2019-08-02T17:53:20 | 200,092,936 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 157 | r | test-test_praise_bien.R | context("praise_bien.R")
test_that("Evalúa que praise_bien genera una frase de éxito que es un caracter", {
expect_is(praise_bien(), "character")
})
|
acceed306703a88c8c6bf60776fcc92fcb6d4aa7 | b69ea4c85c60f4a3c59d302eea64c620270cfaae | /data-processing-code-salvage/27_richness_ss_scale_2017-07-28.R | 29240a3d7a2d47c20380e4cfecf06730db17c8ce | [] | no_license | rvanmazijk/Hons-thesis-code-salvage | 52c1dbef9c136afabe385550d0258262c59d2773 | b3492c5f5c212d75631557c8f280c898f91718a7 | refs/heads/master | 2020-03-20T01:30:39.817374 | 2018-08-30T14:30:26 | 2018-08-30T14:30:26 | 137,078,280 | 0 | 0 | null | 2018-08-30T14:30:27 | 2018-06-12T13:47:58 | HTML | UTF-8 | R | false | false | 7,285 | r | 27_richness_ss_scale_2017-07-28.R | # ...
# Hons thesis
# Ruan van Mazijk
# created: 2017-07-28
# last edited: 2017-07-28
# Preamble ---------------------------------------------------------------------
# ...
# Set up -----------------------------------------------------------------------
rm(list = ls())
# The order in which these source() ... |
19f448d09d09be00b464deabe91433457158c58f | 10c9e8e29c27811d92f2d72ca43bdc1ea1e83209 | /public/class07/logr_model.r | f420809b2a9a0154f0c8cce971f4d47dbff511dd | [] | no_license | danbikle/ml4us | f7b741e457d5a4550e97f4df0787c43ced6ab68a | 859f32bbf4d8228582b7cf706da9f7fa6d7d1792 | refs/heads/master | 2020-04-16T10:53:32.356441 | 2019-02-16T09:20:04 | 2019-02-16T09:20:04 | 65,154,613 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 2,893 | r | logr_model.r | # logr_model.r
# This script should create a logistic regression model.
# Ref:
# http://www.ml4.us/cclasses/class07#hr
# Demo:
# R -f logr_model.r
train_test_logr = function(feat_df,yr_i,size_i){
# This function should train and then test using Logistic Regression and data in feat_df.
# I should use yr_i to ... |
e79a244a17708309e3d41a98c2f2377533a6333d | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/oppr/R/branch_matrix.R | 927c1af38eed20b5944d5e393a72e94b0a2d6453 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,034 | r | branch_matrix.R | #' @include internal.R
NULL
#' Branch matrix
#'
#' Phylogenetic trees depict the evolutionary relationships between different
#' species. Each branch in a phylogenetic tree represents a period of
#' evolutionary history. Species that are connected to the same branch
#' share the same period of evolutionary history rep... |
0e9677601095ba339e4a3421e12be89b0d459548 | da362636b9b9aaedddc7734a02f0cc345036b1ee | /run_analysis.R | 060cb649e1b37f0a9920c593140881c8c8705cc7 | [
"MIT"
] | permissive | connorcl/processed-uci-har-dataset | 582c0c1f12f98dbbd8d221b80e6c10e39105b670 | ee37373943925bab4ddf6c3e029b1b9dcdb7b7e0 | refs/heads/master | 2020-03-18T21:45:05.178006 | 2019-08-14T20:52:14 | 2019-08-14T20:52:14 | 135,300,409 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,840 | r | run_analysis.R |
## Download dataset if it is not present
if(!file.exists("Dataset.zip")) {
url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(url = url, destfile = "Dataset.zip", method = "curl")
}
## Extract the dataset if it is not already extracted
data_dir <- "UC... |
b6ed47e5c1313f106a71e02a618a8c0fc84488f2 | bf848dfe495cdba717790cd07299d2d4429db4b2 | /man/replicates.Rd | 2325ecc66344a6bb5edac33c7fffe11f0f617571 | [
"MIT"
] | permissive | llrs/experDesign | c77955228b57b8e2e1b58375fd6819231fe0109b | a8f9735b5e14d8cf7a03842e941a2524c1337dd6 | refs/heads/master | 2023-05-23T01:15:22.803537 | 2023-04-11T07:50:41 | 2023-04-11T07:50:41 | 142,569,201 | 8 | 1 | NOASSERTION | 2019-11-14T11:23:16 | 2018-07-27T11:31:12 | R | UTF-8 | R | false | true | 1,445 | rd | replicates.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/designer.R
\name{replicates}
\alias{replicates}
\title{Design a batch experiment with experimental controls}
\usage{
replicates(pheno, size_subset, controls, omit = NULL, iterations = 500)
}
\arguments{
\item{pheno}{Data.frame with t... |
a6e86096b246683902065006bd3662fe66213b0e | 570d3c03daad4f21a30cc7df65f5edd8045f2d55 | /MVA_project.R | ba74326ed925fabb0849a0c2ca2f53c372f586a5 | [] | no_license | kaustubhchalke/Data-set-for-Hepatitis-C-Virus-HCV-for-Egyptian-patients | bbf33b40390d2841d0df79d58052d026532d8a61 | d64212e8823be7aa4ff2857be0c1cab7e6abed5a | refs/heads/master | 2020-08-05T20:37:46.695554 | 2019-11-15T04:47:18 | 2019-11-15T04:47:18 | 212,701,588 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,351 | r | MVA_project.R | #Importing the Hepatatis c Dataset
HCV= read.csv("HCV-Egy-Data.csv")
HCV
#Summary
attach(HCV)
summary(HCV)
#Dimensions of the data set
NROW(HCV)
NCOL(HCV)
#Displaying the column names of the dataset
colnames(HCV)
#Another menthod for dimensions
dim(HCV)
#Preprocessing data was done but did'nt fin... |
76cfde8a919efb14a93f37536b2d5edb787a0eb5 | 50187b8b46441a85b7ec8fc42f35a97a306ddb23 | /pp/plot-mec-pops.R | bde3fbd3dbc309b0e419b9eb53fe2e9e20a20fda | [] | no_license | rbehravesh/mec-generator | 3988703117ead6f8234c60e222a3e3b5f9e6868c | 226363c09e892e545d68853b75a531a1ae793fdd | refs/heads/master | 2023-03-06T11:21:48.864449 | 2021-02-15T08:12:16 | 2021-02-15T08:12:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,103 | r | plot-mec-pops.R | source("gen-utils-clean.R")
library(pracma)
library(SDMTools)
library(ggmap)
library(spatstat)
library(graphics)
library(rjson)
library(cluster)
library(latex2exp)
library(metR)
library(stringi)
########### MADRID PARAMS ###########
REGIONS <- "../data/regions.json"
REGION_NAME <- "Madrid-center"
MEC_LOCATIONS_CSV <-... |
2d3e3f50728059bf430df032dce0ef8f8bd6bd82 | 8e6ed677d5ab1fe60c982c35b55a80d19e79a562 | /man/get_artists.Rd | 67a96552c252d33a8ce6149e78691cd787f4929a | [] | no_license | cannin/spotifyr | 0f99879c3ccc2dc62b7f4e1b17d7cf3c8c2d0d0c | c2c227712e8ca66c2fdcffef34202cae91e27f3f | refs/heads/master | 2020-03-23T18:26:52.888912 | 2018-07-18T22:18:12 | 2018-07-18T22:18:12 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 706 | rd | get_artists.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_artists.R
\name{get_artists}
\alias{get_artists}
\title{Get Artists}
\usage{
get_artists(artist_name, return_closest_artist = FALSE,
access_token = get_spotify_access_token())
}
\arguments{
\item{artist_name}{String of artist name}
\it... |
89c173898e3684c9448b70e1a6afaf7665168826 | 7ae9ab7071e3c311b260c1eab47768868b7081ce | /man/geocode.Rd | 03bc34ee6e505cac3573bf8aecb459688faf20f4 | [] | no_license | abresler/realtR | 8332519b75e142fbd4ca4733fc4a3dada8619d8e | cb8f52e780e427c7ff60b11e6dfeba8c6e026a93 | refs/heads/master | 2023-07-27T07:33:45.571242 | 2023-07-19T13:09:23 | 2023-07-19T13:09:23 | 124,319,306 | 68 | 11 | null | null | null | null | UTF-8 | R | false | true | 1,295 | rd | geocode.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aws.R
\name{geocode}
\alias{geocode}
\title{Location geocoder}
\usage{
geocode(
locations = NULL,
search_types = c("neighborhood", "city", "county", "postal_code", "address",
"building", "street", "school"),
use_future = F,
snake_... |
474e430fe1f1903dbad043e968e187272a1f2c48 | c53c9860b272c93556765be09577b3a8b1ad31b0 | /Mass-Spec.r | 4afc8b34b2dd4235549ba926bffcdbca8eb4f5de | [] | no_license | swebb1/pdash | b6c6fd7781194d2f18fc29fa10faf6eda8bfc985 | ec03919be14e6aac7be81d54b193362d984c60dd | refs/heads/master | 2020-12-30T14:44:09.114431 | 2017-05-15T14:44:46 | 2017-05-15T14:44:46 | 91,075,332 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,923 | r | Mass-Spec.r | require(gdata)
require(ggplot2)
require(plotly)
require(plyr)
require(d3heatmap)
require(reshape2)
require(RColorBrewer)
require(heatmaply)
library(scales)
cols<-brewer.pal(11,"Spectral")
t<-read.xls("cmce_volcano.xlsx",header=T)
x
y
colour
scale
logx
logy
labels
nudge_x
nudge_y
g<-ggplot(t,aes(y=Other,x=AVG.Log.Ra... |
db1b67787d613e08e80f962fea65dadae575282a | fda2c6824523211ea7affa998e5cdd9027d55638 | /UFCBouts/model.R | 4c074afbd70c5e405008767789175da98b1cb6f1 | [] | no_license | Raj9677/UFC_Project | 68623b808e603618ed0e23b63eb660c292b9789d | 72280f9d51ada37bd388d39fc107937be34fc257 | refs/heads/main | 2022-12-29T13:16:03.663271 | 2020-10-17T01:42:04 | 2020-10-17T01:42:04 | 304,729,279 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,334 | r | model.R |
# disconnect from db
# dbDisconnect(con)
display_uc = uc[,c("R_wins","R_Weight_lbs","R_Reach_cms","R_Height_cms","R_age","R_odds","R_fighter", "date","weight_class" ,"location", "B_fighter","B_odds","B_age","B_Height_cms","B_Reach_cms","B_Weight_lbs","B_wins")]
getwd()
source("DataQualityReport.R")
columns_not_rel... |
296397d74f07169c4d48395392c688f579213809 | 51a62cf6043094e32b4c75da5fe20ac31f53d711 | /R/questao97.R | 2ed8240902ee4b0362029bb5d5a3d3002e0caad4 | [
"MIT"
] | permissive | AnneLivia/CollegeProjects | 9e32c4da216caaa973ebd4e4fe472f57557a3436 | 96d33d0ed79b5efa8da4a1401acba60b0895e461 | refs/heads/master | 2022-12-23T10:13:03.503797 | 2022-12-12T16:35:29 | 2022-12-12T16:35:29 | 128,656,614 | 2 | 0 | MIT | 2022-12-12T16:36:09 | 2018-04-08T15:44:18 | PHP | ISO-8859-1 | R | false | false | 343 | r | questao97.R | n1<-as.integer(readline("Digite o inicio: "))
n2<-as.integer(readline("Digite o fim: "))
for(cont in n1:n2){
p<-0
for(cont2 in 1:cont){
primos<-cont%%cont2
if(isTRUE(all.equal(primos,0))){
p<-p+1
}
}
if(isTRUE(all.equal(p,2))){
cat("\nNúmero primo: ",cont)
}else{
cat("\nNúmero não pr... |
eee5e9dbbef9dfeb8792e3d9af0209f88dcc9768 | ae2356e4364617ba6b5fe4c395467186c8bc678a | /projectDataMiningDenzel.R | d1dd112cb09c52bf815faf89be907fa57e6d9bd4 | [] | no_license | dmathew1/R | b28dde53a0044255b0fa3ea009b6ea8e38c83b7c | 4427a9890683505c39712b2fc13a29ed6ec7ad1a | refs/heads/master | 2021-08-27T15:38:31.911510 | 2015-11-23T08:19:12 | 2015-11-23T08:19:12 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,551 | r | projectDataMiningDenzel.R | library(RWeka)
library(caret)
library(oblique.tree)
library(e1071)
#Make sure the following packages are installed:
# 1. RWeka
# 2. caret
# 3. oblique.tree
# 4. e1071
# 5. BradleyTerry2
#LifeExpectancy variable
lifeExp <- read.csv("C:\\Users\\Denzel\\Desktop\\life_expectancy.csv")
#### Partitions the dataset into ... |
4ce38d321e040973bd9811f63232c0e01e23e864 | e1a3abc30055c43440773900ec95ebbbea4815a9 | /R/Task6.R | c6626df0d170ed99938ce152f3ffb1113a177119 | [] | no_license | lnonell/IntegromicsPractical | ca7dd2316aa208615c81b00a8f50c809db6d7972 | 81a7eff69541782493a438b41a1e8a6eaddbdeba | refs/heads/master | 2021-05-23T12:04:26.230916 | 2020-06-12T12:11:31 | 2020-06-12T12:11:31 | 253,277,526 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 8,327 | r | Task6.R | #Task 6: Blanca Rodriguez Fernandez
#Purpose: Apply MFA to the mRNA, CN and methylation data comparing stage iv vs stage i.
#input: files of task1, task2, task3, task4 + path for output files
#outputs: dataframe 100 most correlated variables with PC1 and PC2 + MFA plots in png format
task6 <- function(df_samples, df.... |
a40c64f7a7d38c20c19c640fa1260241d2af8a9e | 2632c34e060fe3a625b8b64759c7f1088dca2e28 | /R/convert_bodymap.R | 9b07428832849f301e6fc250db2a1b463e7500ef | [
"MIT"
] | permissive | emcramer/CHOIRBM | 0319103968ac662cbec472585b9b2accfdea96b1 | 178c6833e1235c8d7f4d0fae9f550860eb7f36a3 | refs/heads/master | 2022-11-25T08:12:15.576043 | 2022-10-28T19:57:40 | 2022-10-28T19:57:40 | 329,775,974 | 5 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,161 | r | convert_bodymap.R | #' convert_bodymap
#' Helper function to convert a single bodymap
#' @param segments a character vector containing segment numbers as individual
#' strings in the vector that need to be adjusted/standardized
#' @return a character vector containing standardized segment numbers as
#' individual strings in the vector
#'
... |
47e83ff9199e9cd405592fe0888cf49c8f13cb17 | 14b866ed3002fc26ef02db5b75a2bc23192c0fed | /dev-r-shiny-simulamicrog/classMatrixImage.R | 0994818f239aed31fc00096ef5458c773491fc3e | [] | no_license | sergiocy/scripts-tests | 76333d26721f1bd6e61b473f6ce108f3a5bb2ccb | a55814799deae47954a7ca8320d07258d4b1a8ca | refs/heads/master | 2022-09-16T10:49:41.689459 | 2020-07-19T12:56:46 | 2020-07-19T12:56:46 | 178,724,341 | 0 | 0 | null | 2022-09-01T23:26:30 | 2019-03-31T18:09:41 | R | UTF-8 | R | false | false | 139 | r | classMatrixImage.R |
#########
# S4-CLASS TO PROCESS MATRIX ASSOCIATED TO AN IMAGE
# comenzado: 19/06/2016
#########
##### PLOT 3D ......esto en la clase S4 |
78ef268059e52d7f697804d0347de2cdc53c3a6f | e972a6dda07fcfe3dbb8f898462a6e634300337e | /metDownloadR/man/getData.Rd | 882f0ee738bbbb64ce900b3288fac0a81e58ae28 | [] | no_license | NEONScience/is-thresholds | d146067ad931475076cff6b529ee0ff4a101333b | a858e654f3a23cba720e09ce2d23f37653cfd316 | refs/heads/master | 2022-04-12T21:32:19.209947 | 2020-03-23T20:25:11 | 2020-03-23T20:25:11 | 237,132,782 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,455 | rd | getData.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_data.R
\name{getData}
\alias{getData}
\title{Pull data for a site found with metScanR}
\usage{
getData(site_meta, start_date, end_date, temp_agg)
}
\arguments{
\item{site_meta}{a metScanR list element.}
\item{start_date}{A YYYY-MM-DD hh:... |
f465745a62ce87d2df3a8581033be1c931774a6e | 62970f7f4c033ee9353ac8586ba6f69a4425a5e8 | /R/cvmboost.R | 60a2ec2975d3b4567f31f4154eb65e1089e99cf3 | [] | no_license | cran/bujar | 7d86a5019e433ef5507d834324a5ea1edffc6f20 | 9dbf65067d18bd65681c51d167615b297860383e | refs/heads/master | 2023-07-07T01:03:24.380034 | 2023-06-25T01:40:02 | 2023-06-25T01:40:02 | 19,339,814 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 630 | r | cvmboost.R | cvmboost <- function(obj,ndat,nfold=10,figname=NULL,trace=FALSE){
### inspect coefficient path and AIC-based stopping criterion
### 10-fold cross-validation
n <- ndat
k <- nfold
ntest <- floor(n / k)
cv10f <- matrix(c(rep(c(rep(0, ntest), rep(1, n)), k - 1),
... |
ca3fd45e52c676d9b827bb492c36cdc8a7655204 | 584e40563e6250c23558555fd624200108021f2d | /R/deseq.R | 3889716ce50f7f8f769761e90c4bedb6c1ff3ebc | [] | no_license | opalasca/integrated_miRNA_analysis | 91803937709f79d10f22b012049dec16c5a68763 | 9722f094c297ea530ac42aac1eea2643e034317d | refs/heads/master | 2020-03-18T14:35:42.086846 | 2018-07-06T13:10:27 | 2018-07-06T13:10:27 | 134,856,248 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,052 | r | deseq.R | #install.packages("Vennerable", repos="http://R-Forge.R-project.org")
#source("https://bioconductor.org/biocLite.R")
#biocLite("affy")
#biocLite("DESeq2")
#biocLite("pheatmap")
setwd("~/Desktop/IBD/DESeq2")
require("DESeq2")
cts <- read.csv(file="miRNAs_expressed_all_samples_26_04_2018_t_13_43_32.csv", sep="\t")
#re... |
f602ecd9faf91c82c21f946ab9c32bd16562a38b | 54b4976030ae6a42e10282c8f41609ef266721c9 | /R/ecd-numericMpfr-class.R | ba745e5cc9a30df746a520c303de8618e7aaf971 | [] | no_license | cran/ecd | b1be437b407e20c34d65bcf7dbee467a9556b4c1 | 18f3650d6dff442ee46ed7fed108f35c4a4199b9 | refs/heads/master | 2022-05-18T20:24:56.375378 | 2022-05-09T20:10:02 | 2022-05-09T20:10:02 | 48,670,406 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 929 | r | ecd-numericMpfr-class.R | #' The numericMpfr class
#'
#' The S4 class union of numeric and mpfr, primarily used to define slots in ecd class.
#' The use of MPFR does not necessarily increase precision. Its major strength in ecd
#' is ability to handle very large numbers when studying asymptotic behavior, and
#' very small numbers caused by sm... |
f91941ce50f5a1ea95a91d459d1ad59848f76429 | d857e340220e755013eae13898f2ac0fc41aa38d | /man/createThresholdPlot.Rd | effea02774c697085fede7329a5dac22ffb6fee3 | [] | no_license | PriceLab/FPML | 5ac19c88a6b5a08a74bfef7af59260c92380cd48 | daeaf27fec2bce3e7cfd88df2443552fec1ab77e | refs/heads/master | 2021-08-31T15:09:14.105450 | 2017-12-21T20:51:09 | 2017-12-21T20:51:09 | 110,296,991 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 851 | rd | createThresholdPlot.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/buildModels.R
\name{createThresholdPlot}
\alias{createThresholdPlot}
\title{Create a threshold plot}
\usage{
createThresholdPlot(stats.df, modelName, plotFile)
}
\arguments{
\item{stats.df}{A dataframe of statistics generated by one of the mo... |
1ac39730411d5cc08a43bf7d562d322119f90acb | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/IDetect/examples/ht_ID_cplm.Rd.R | 45a4181828c3d21393478c975ba9b04289063b3d | [] | 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 | 572 | r | ht_ID_cplm.Rd.R | library(IDetect)
### Name: ht_ID_cplm
### Title: Apply the Isolate-Detect methodology for multiple change-point
### detection in a continuous, piecewise-linear vector with non Gaussian
### noise
### Aliases: ht_ID_cplm
### ** Examples
single.cpt <- c(seq(0, 1999, 1), seq(1998, -1, -1))
single.cpt.student <- sin... |
1e080882c30dae022d4cb93321ce3458f0d6bd4d | b5f752f3d65cd0d94015b14814778c9a49ae85bc | /covid_brasil.R | 068397065665062cde6e5056ec6ad5073fbd065b | [] | no_license | GuillaumePressiat/covidbrasil | 178c589f9af9e550fb7a567edb737b7648eabfda | 150907f5d33c7c4443b293e38f54abfccf90ed6b | refs/heads/master | 2022-11-19T18:04:39.707140 | 2020-07-18T15:49:32 | 2020-07-18T15:49:32 | 280,686,124 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,833 | r | covid_brasil.R |
library(shiny)
library(RColorBrewer)
library(dplyr)
# library(rgdal)
library(leaflet)
library(sf)
library(rmapshaper)
# install.packages('rmapshaper')
dataset <- read.csv(file = "dataset_res.csv", stringsAsFactors = FALSE, encoding = 'latin1') %>%
select(Codigo_IBGE, Sigla_Estado, cidade, longitude, latitude, Data... |
c62babf9e7f975704375a6bb725777890225d22c | 59d85155e2dbfeb3a2cb9d6e71632365e9a424be | /Scripts/PhoenixAir_v1.R | 85448b461e56cae372a4be3dfe7c9e32285e2f85 | [] | no_license | rlrandolphIII/WestPhoenixAir | fc27572d5112ca9f10b08b9389e015ac8a6f2f50 | e6b771a34b88782945aa7255c218552cfcc4c0d4 | refs/heads/master | 2022-11-10T15:03:24.966237 | 2020-07-04T17:49:22 | 2020-07-04T17:49:22 | 277,009,425 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,592 | r | PhoenixAir_v1.R | # Michael Randolph, 22-June-2020
#
# This R-Script examines pollution in the Phoenix metropolitan area,
# specifically ozone and particulate matter PM2.5.
# The data was collected from a single monitor (JLG SUPERSITE) in
# Phoenix, AZ.
# The goal is to determine if pollution levels decreased durin the
# Covid-19 lockd... |
5370ddee1e419d8bdf6bf74b92ddf1785dcc196c | 3f298f0f77598808a68793546c56a1827332c05d | /plots/SRCD2017_figures.R | d3de9bf8f0bcbea36c7c1bccad00e1979820f999 | [] | no_license | dmoracze/TRW | b45a4c186f7be7317e4791200c88a5e26702483b | 564117d7347a931148ebbe4503d544abcd4324a7 | refs/heads/master | 2020-04-24T16:34:31.093752 | 2019-11-27T16:10:40 | 2019-11-27T16:10:40 | 172,112,931 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,097 | r | SRCD2017_figures.R | library(ggplot2)
library(lme4)
library(arm)
library(MASS)
library(lmerTest)
library(reshape2)
library(plyr)
library(grid)
dat <- read.table('~/Dropbox/DSCN/Experiments/TRW/data/comp_dat_strict_motion_Mar8.txt',header=T)
###############################
##### participant ageXsex #####
###############################
... |
b5d80f627a84d8abc54bf7a4b255b271246dd114 | c53267587bd8bed6ef219e2f776ad4b63aa711ef | /R/recent_SRC_scripts.R | ede0ac4a259f447e39b5d426b4c3eef023fe974a | [] | no_license | jcchai/SAP_for_SRC | 8d35d3ed3797839c317fcac2c9def71a709cb84b | d6489e0f25cfd1bd12e58fe9249aa9304235357e | refs/heads/master | 2021-01-17T12:54:17.520240 | 2016-05-31T19:50:13 | 2016-05-31T19:50:13 | 58,425,775 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,808 | r | recent_SRC_scripts.R | # recent SRC scripts
library("DESeq2")
setwd("/data/works/hs_BM-MSC/hs_BM-MSC_RNA-seq_BT_Macrogen_Mar2016/star-using-UCSC-hg19-genesgtf2015version-bam-mismatch3-may112016/DESeq2")
sampleFiles=grep("tab",list.files("/data/works/hs_BM-MSC/hs_BM-MSC_RNA-seq_BT_Macrogen_Mar2016/star-using-UCSC-hg19-genesgtf2015version-bam... |
2cdf7fc72e3f0cfc20d42d6c78ad85048373ad01 | 8c1333fb9fbaac299285dfdad34236ffdac6f839 | /financial-analytics/ch2/solution-03c.R | 07e6a80c959db6b2d5cee22f389141f7b377346f | [
"MIT"
] | permissive | cassiopagnoncelli/datacamp-courses | 86b4c2a6d19918fc7c6bbf12c51966ad6aa40b07 | d05b74a1e42b119efbbf74da3dfcf71569c8ec85 | refs/heads/master | 2021-07-15T03:24:50.629181 | 2020-06-07T04:44:58 | 2020-06-07T04:44:58 | 138,947,757 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 477 | r | solution-03c.R | # Define cashflows
cashflow_old <- rep(-500, 11)
cashflow_new <- c(-2200, rep(-300,10))
options <-
data.frame(time = rep(0:10, 2),
option = c(rep("Old",11),rep("New",11)),
cashflow = c(cashflow_old, cashflow_new))
# Calculate total expenditure with and without discoun... |
282c6583520c17a11b480fab14b595c02d65b960 | 1ebc83dccdc6c6d2867c6ef303c91077cb3f3a84 | /src/analysis-traits.R | 37f8bb7061b1ead0ce264cee676477d026f3af32 | [] | no_license | willpearse/track-index | 2d04bbcc6b5595f06cb9c39e00e8385998094fea | 0b68a07e602f51aa4a18ab265d9d699436fae6ce | refs/heads/master | 2023-02-08T21:16:42.048139 | 2023-01-27T14:12:10 | 2023-01-27T14:12:10 | 217,920,212 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,645 | r | analysis-traits.R | # Headers
source("src/headers.R")
stem <- "clnbin-clnspc-100-TRUE"
# Wrapper functions
.univariate <- function(data, explanatory){
tests <- lapply(data, function(x) cor.test(x, explanatory))
cors <- sapply(tests, function(x) x$estimate)
p <- sapply(tests, function(x) x$p.value)
p <- ifelse(p < .2, roun... |
b5abb5d82d4f58ed36d15f67340fd825445558c7 | 324e231b4c744517df60fbd6d85bd17e0c9b6d2d | /man/prCaSelectAndOrderVars.Rd | 1551e650927ccadedfe8414fa35c28ba546a3f17 | [] | no_license | landroni/Greg | 927511b0fd9b34b06a64c539c7e9f16ca15cb775 | 2e9b2afe4e8526d08910b370ed158c261a1b41f5 | refs/heads/master | 2020-12-28T12:12:25.870020 | 2014-08-29T06:35:43 | 2014-08-29T06:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,123 | rd | prCaSelectAndOrderVars.Rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{prCaSelectAndOrderVars}
\alias{prCaSelectAndOrderVars}
\title{Re-order variables}
\usage{
prCaSelectAndOrderVars(names, order, ok2skip = FALSE)
}
\arguments{
\item{names}{The names of the variables}
\item{order}{The order regular expression}
\item{ok2skip}{If... |
3c88ad53c05dcb17635f1a9eff209ceab4352d08 | ba026735b53b12f0b5f6c0ed20d76155d2840117 | /man/read_rfept.Rd | 1dd704f6be39fa659f50b0918f90af4775a1991b | [] | no_license | r-ifpe/sistec | 71895160a7cbf8ed63f98c0185674294685b24e9 | dc238cbad1056e029b2973a960cde690cdfd49e2 | refs/heads/main | 2021-06-18T09:47:01.909950 | 2021-05-18T18:45:48 | 2021-05-18T18:45:48 | 237,207,158 | 10 | 4 | null | 2021-05-18T18:17:50 | 2020-01-30T12:20:35 | R | UTF-8 | R | false | true | 1,411 | rd | read_rfept.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_rfept.R
\name{read_rfept}
\alias{read_rfept}
\title{Identify and read academic registration}
\usage{
read_rfept(path = "", start = NULL)
}
\arguments{
\item{path}{The folder's path to Qacademico, Sigaa, Conecta or Suap files.}
\item{sta... |
60fff5ac6d3b464e599116975920a3cd2af46c17 | 759654dcf73527c94c4a27efac6b9f6dc00dd3d0 | /code/buildRLib.R | b657d8e43f468135f8832abd8f213c07353f1566 | [] | no_license | paradisepilot/buildRLib | 515620e1dc1bf4a2a28f941b9a0cd32c590d5b8d | 33f6fb0d58b46f06b4aca85effd27005a9bd99e5 | refs/heads/master | 2023-03-07T12:25:47.178723 | 2023-03-05T15:19:16 | 2023-03-05T15:19:16 | 231,972,880 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,741 | r | buildRLib.R |
### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ###
command.arguments <- commandArgs(trailingOnly = TRUE);
code.directory <- normalizePath(command.arguments[1]);
output.directory <- normalizePath(command.arguments[2]);
pkgs.desired.FILE <- normalizePath(command.arguments[3]);
setwd(output.directory);
### ~~~~~~~... |
d11ec835c81557a99661cb191c11d8725d823083 | cbadd8a51c648af6a3857fb51501f5231b85bddc | /604/HW/HW2/Hwk2_Luke Henslee.R | 606b3fc389a832013de5e2b4eb87f38eeb83f3ee | [] | no_license | lukehenslee/Coursework | 90b757805c7f6816361fe8dc0566d98ae374f19b | 6e7e8cf42691a06cca5db68e86dd5a8e1e7e99fa | refs/heads/master | 2023-08-14T10:26:15.992183 | 2021-09-24T20:33:32 | 2021-09-24T20:33:32 | 354,631,358 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,887 | r | Hwk2_Luke Henslee.R | ##########################################################
# FISH 604
# Homework 2 script file
# Chatham sablefish growth
# Luke Henslee- Sep 16, 2021
##########################################################
library(tidyverse)
############ Prob. 1: Data import
sable <- read.csv("sablefish.csv", as.is=F)
head(sab... |
8c4a7ae9f611f78e233985439c104088bfcc72c7 | 37d46d358f9289b3099aad8c5066b3e87dc9de6e | /Black Friday Sales/Demographic.R | 263c474f15c93462a0d07ddc256a9779e4292b10 | [
"MIT"
] | permissive | sachinshubhams/Black-Friday-Sales | 297a0cd8398f0f599bb1eceb534484887be9628c | eb8dcf357dd2758e55ed615235090aa7a87f8e0a | refs/heads/main | 2023-03-08T10:40:32.994828 | 2021-02-19T23:56:55 | 2021-02-19T23:56:55 | 340,280,848 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,414 | r | Demographic.R | frow_c <- fluidRow(
box(
title = "Purchase amount by Males and Females"
,status = "primary"
,solidHeader = TRUE,background = 'purple'
,collapsible = TRUE
,plotOutput("pie_1")
),
box(
title = "Purchase amount by Age intervals"
,status = "primary"
,solidHeader = TRUE,bac... |
ada37094285bbc02ad3563479d586ce334c34bd0 | 89c5ac74c2a45f671eb32bf6e8f89ea306488846 | /GraphPaintedHaplotypes/readPaintedHaploFile.r | 5d0fde057a1a9d8e39a8a80d81cf5aa9647da769 | [
"MIT"
] | permissive | RemiMattheyDoret/SimBit | de17b55727445ea171c3a0753e59106d8d5593b1 | ed0e64c0abb97c6c889bc0adeec1277cbc6cbe43 | refs/heads/master | 2021-09-23T23:07:49.373512 | 2021-09-09T15:46:26 | 2021-09-09T15:46:26 | 148,374,611 | 7 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,394 | r | readPaintedHaploFile.r | readFirstPartOfHaplotype = function(str)
{
## Examples: "0-500 P434 I0 H0", "anc-end P434 I0 H0"
generations = strsplit(str[1], '-')[[1]]
paintedGeneration = generations[1]
observedGeneration = generations[2]
stopifnot(substring(str[2], 1, 1) == 'P')
stopifnot(substring(str[3], 1, 1) == "I")
... |
7cc616604faa4d3b3d5c3168b191bde616399b7a | 932eb8adcd8756af899d8b5e5f13b03877fa07f6 | /Final.R | 0287fb5d17f8482591cd9b574607eaeb1e67bd7f | [] | no_license | tobiasdahlnielsen/P9 | 8f4cf34ac1073b125377c73b87eb05fb4a51ef28 | a3bd92ccab29101e01a9d90f75ed4d5ba9d3cff1 | refs/heads/master | 2023-02-24T17:10:20.183992 | 2021-01-24T10:20:13 | 2021-01-24T10:20:13 | 295,356,538 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 64,231 | r | Final.R | ################################################################################
######################### Initial Data setup ###################################
################################################################################
source("Lib.R")
spot_data <- spot_data %>% mutate(dd = hour(StartUTC)... |
fce81ff6b86bf4bdc2d46c7347935e95c60a4927 | 98785360bd2c6420283cc94f0e9738f740a25e58 | /Others/PrimeFactorCount.R | b115f0b74fe91e267237ba0d45a9e30257133619 | [] | no_license | songyuzhou324/LeetCode_RSolution | 26a00635b1ab8d8f4e2a6d7a0e315e2401d8f1f6 | 03e8387022899ff2e9ca4255a1845d84e138a264 | refs/heads/master | 2021-01-20T14:09:02.706208 | 2017-09-26T01:37:49 | 2017-09-26T01:37:49 | 90,567,918 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 894 | r | PrimeFactorCount.R | # function to calculate the count of all prime factors
# n >= 2
get_prime_factor_count <- function(n, dict){
cnt <- 1
for(i in 2:n){
while(n != i){
if(n%%i != 0 ){
break;
}
n <- n/i
if(dict[n] != 0){ # look up the dictionary ... |
015f4116098ef8902a140366575fbbf01d3bfd77 | 391672e0b64620e6fee2b3f0b5f7e3a257dd3871 | /CLANFIELD/3.MONTHLY_UFO_ANALYSIS_REPORTING.R | 755ac856da7a16f4cb9a591327f9537a52c5a9bc | [] | no_license | SteveBosley/Meteor-Data | b714e27f09790639561abdddc2678174f4b6525d | f57442a9b8e884b0fb0e1448b88132d11feb428b | refs/heads/master | 2021-01-19T23:53:57.327380 | 2017-12-18T08:24:29 | 2017-12-18T08:24:29 | 89,051,725 | 0 | 1 | null | 2017-12-18T08:24:30 | 2017-04-22T07:14:37 | R | UTF-8 | R | false | false | 4,286 | r | 3.MONTHLY_UFO_ANALYSIS_REPORTING.R | #=============================================================================
#
#-- Author: Steve Bosley - HAG, UKMON, NEMETODE
#
#
#-- Description:
#
# This script runs a set of R scripts which generate tables and reports
# from the monthly Output files created at the end of a UFO Analysis cycle
#
# ... |
6a584ac6e1aa6f6056ac28ddcc71833fb1927e6f | 5a20d78fd4388bb509e3f4627932e84d3e0e740e | /plot1.R | d305008febac3364b1ec50b3e249ada1eb0e6380 | [] | no_license | Lorderot/ExData_Plotting1 | 1bba9234acf4ac50e5529a950d6f918d3f954f2a | 390a3fbfcaef7ba9a9d49935415999a1a4c2bf3b | refs/heads/master | 2021-01-18T07:34:42.907388 | 2015-01-10T17:39:12 | 2015-01-10T17:39:12 | 29,064,529 | 0 | 0 | null | 2015-01-10T17:18:11 | 2015-01-10T17:18:11 | null | UTF-8 | R | false | false | 561 | r | plot1.R | png(file="plot1.png", bg="transparent")
data<-read.csv("household_power_consumption.txt",sep=";",skip=66636,nrows=2880, col.names=c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3"))
y<-logical(length(data[,3]))
for(i in 1:length... |
062f5533895063f7fd798e8f406158c85137d3b3 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/questionr/examples/cprop.Rd.R | ee2f9a7d8f42d3f15ecc756d5d8318b3aeb62d65 | [] | 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 | 379 | r | cprop.Rd.R | library(questionr)
### Name: cprop
### Title: Column percentages of a two-way frequency table.
### Aliases: cprop cprop.table cprop.data.frame cprop.matrix cprop.tabyl
### ** Examples
## Sample table
data(Titanic)
tab <- apply(Titanic, c(4,1), sum)
## Column percentages
cprop(tab)
## Column percentages with custom ... |
d97820cd35e1e19e02b2a2c01b572b783c0aecf5 | e57feeb76a5cd7faba3f3a0762d6d581fdb665b5 | /northeast_murder.R | 8adb39a2494d7dabd6102d27c31f3024c841661a | [] | no_license | fall2018-wallace/hw_7 | 4bcea5133860e8ab967651b6367548dca6b9b224 | 92bf301016c9ae3bc04671f5be572d1a35ac8001 | refs/heads/master | 2020-04-01T18:26:07.104900 | 2018-10-18T01:48:48 | 2018-10-18T01:48:48 | 153,492,239 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 631 | r | northeast_murder.R |
#Importing the required libraries
library(ggplot2)
library(ggmap)
#Getting the US state data for creating map
US=map_data("state")
#Converting the scale to readable form
options(scipen=999)
#Plotting the map with murder rate
northeast_murder=ggplot(merged, aes(map_id=stateName)) + geom_map(map=US, aes(fill=Murder)... |
d31106923e721562640344c7f7f07186bfbd1987 | 467c89ddbfe26b6e6811cec9623e687156d3411d | /daily_coding_mul/day10.R | b0adf2d10abad7a7f5559d8c56ca8da4433b3494 | [] | no_license | ingu627/R | e454eb312e79a95e0161aba4cddb16f8fd5e3a23 | ddeb460a818dfc95f978fd82d9babd481b43f31c | refs/heads/master | 2023-08-24T11:02:42.296489 | 2021-09-24T14:30:59 | 2021-09-24T14:30:59 | 401,576,730 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,980 | r | day10.R | mydata=read.csv('f:/data/examscore.csv')
plot(mydata$midterm, mydata$final)
c("red","blue")[as.factor(mydata$gender)]
as.factor(mydata$gender)
m<-c(40,45,50,60,80)
y=1*x+5
f<-1*m+5
f
# 단순회귀모델(중간 -> 기말)
lm(final~midterm, mydata)
#기울기 : 0.8967
#절편 : 13.8666
#기말점수 = 0.8967*중간점수 + 13.8866
m=mydata$midterm
f=mydata$fi... |
9898f42ccfc601332fff484edeb03491656a940b | 08f73cc09b37d0bb42f522c4ee876a9d7824391a | /ui.R | fa8832832cbd48c2f44e1d0ccfb2857f1df2ecdf | [] | no_license | ManjushreeHarisha/Pima-Diabetes-prediction | da7db7fe0b48ebf74f016fe138a81492415189d7 | ca5d620dbbd1d4b12325d703bbc949389862105c | refs/heads/master | 2020-04-24T18:53:02.688627 | 2019-02-23T09:14:45 | 2019-02-23T09:14:45 | 172,194,531 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,484 | r | ui.R | library(shiny)
library(shinyjs)
shinyUI(fluidPage(
headerPanel("Diabetes prediction"),
sidebarPanel(
conditionalPanel(condition="input.tabselected==1",h4("diabetes prediction"), tags$img(src="diabetes.jpg",width=380, height=400)),
conditionalPanel(condition="input.tabselected==2",
f... |
d620a9ba524114e3337058738cdfad4b28a611a3 | 186e5fce96f9eaa5bde953381815fd0b38a58234 | /second presentation/make_IS_demo.R | 496dd2cf9922daf10cc2d2b8cc2d450d7c9c0902 | [] | no_license | ekernf01/prelim_tex_files | 6ef89914995c0cbd3a25e4ae173e7ddd6e710032 | cb98a418a7eb99d093feb8c33752b797c7b8a354 | refs/heads/master | 2020-05-02T14:45:47.280258 | 2015-06-12T04:26:14 | 2015-06-12T04:26:14 | 34,136,304 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 347 | r | make_IS_demo.R | png('IS_plot.png')
mygrid <- seq(-6, 10, by=0.1)
plot(mygrid, dnorm(mygrid, mean=-2.5), type='l',
col=4, xlab='x', ylab='density (or function value)')
text(labels='Q', x=-5, y=0.3)
lines(mygrid, dnorm(mygrid, mean=2.5), col=2)
text(labels='P', x=0, y=0.3)
lines(mygrid, dnorm(mygrid, mean=7.5), col=3)
text(labels=... |
238847b8017a29c076a6c3ea80d5fdc8a0c22a60 | 7d20eb3ff42c6a947115670eaff548812b6cb436 | /man/convert_list_to_tibble.Rd | 4a58f0cf3dc9cb2a8a7c15f689a00daccad7a7ca | [
"MIT"
] | permissive | inrae/hubeau | f746b05933750fc66ab38c343138b7e5783d4f68 | fde87c07014b25b08af803f40ce7e92b1854ee59 | refs/heads/master | 2023-08-31T07:11:47.099934 | 2023-05-31T11:01:44 | 2023-05-31T11:01:44 | 393,369,696 | 9 | 7 | NOASSERTION | 2023-08-19T20:21:48 | 2021-08-06T12:25:53 | R | UTF-8 | R | false | true | 1,245 | rd | convert_list_to_tibble.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/doApiQuery.R
\name{convert_list_to_tibble}
\alias{convert_list_to_tibble}
\title{Convert list provided by the APIs into a tibble}
\usage{
convert_list_to_tibble(l)
}
\arguments{
\item{l}{a \link{list} provided by the API (See \link{doApiQuery... |
981335c18d69bd9f164c822add812d930bea6b2b | 21e534bdb847ce3b9f6091316619f80ec280e2ad | /R/dataprep.R | 371ac55900e8434a264c557e1933b749f3918576 | [] | no_license | cran/intccr | a51a8c9ca40c495e2219ae22050bebd7b018809f | 252644c0d347a663ea5d7bef88fa2ab04f114b1e | refs/heads/master | 2022-06-06T17:15:32.892874 | 2022-05-10T07:00:02 | 2022-05-10T07:00:02 | 101,859,824 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,918 | r | dataprep.R | #' Data manipulation
#' @description The function \code{dataprep} reshapes data from a long format to a ready-to-use format to be used directly in the function \code{ciregic}.
#' @author Jun Park, \email{jun.park@alumni.iu.edu}
#' @author Giorgos Bakoyannis, \email{gbakogia@iu.edu}
#' @param data a data frame that ... |
ed96ddfd101219654e154324ae4d5620b57c79ae | abda097fa7fe9a0d4047e2b9c206318e5b49fc0b | /workspace/nldas.R | a1b099967d341e8df1df7f5c08e1c497da0f08c1 | [
"MIT"
] | permissive | NOAA-OWP/geogrids | 702f2e8b124175f87f39e961612ed19f414e4303 | 23a4833ffa339dcd89c3d52c1a958022cdb85cea | refs/heads/master | 2023-07-17T13:19:42.190688 | 2021-08-31T02:33:02 | 2021-08-31T02:33:02 | 395,325,866 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,181 | r | nldas.R | ts = "M"
type = "FORA"
startDate = "2000-01-01"
endDate = "2020-12-31"
var = "APCP"
ext = "tif"
dir = '/Volumes/Transcend/ngen/climate/NLDAS/'
get_nldas = function(
type = "FORA",
ts = "M",
startDate = "2000-01-01",
endDate = "2020-12-31",
var = "APCP",
ext = "tif",
dir = '/Volumes/Transcend/ng... |
0a3d7569520396c3b201d7e19eb86bfa0b561987 | 72f9564aa51cd289446b9f6babcbbb80e1097fde | /clustering.R | 1a920a096019e03416ed6d5b1ab6370cb3f118a8 | [] | no_license | auGGuo/r_data_projects | 11cbeda0287573b80a2df72fd86126224eee7344 | 45ab8c28ab8f8e08a4e1e5fb33cb75955fac249c | refs/heads/main | 2023-01-09T14:59:38.270063 | 2020-11-15T16:03:29 | 2020-11-15T16:03:29 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,575 | r | clustering.R | # Cluster Analysis
setwd('~/Desktop/r_projects/prac_ds_r')
url = 'https://raw.githubusercontent.com/WinVector/zmPDSwR/master/Protein/protein.txt'
protein <- read.table(url, sep='\t', header=T)
summary(protein)
# rescaling the dataset
vars.to.use <- colnames(protein)[-1]
pmatrix <- scale(protein[, vars.to.use])
#... |
b5037f5ac2949dd7ed164fc53187fad900ad5029 | d9fd17e52b48a841a3fb40c14112d1db7f75fb2a | /ui.R | c3d412364370623ea5c1bf90ac0f4dd455f62cd1 | [] | no_license | Cbanzaime23/ddp-Course-Project | 31829d623fdff6709fd58ce45407454eeda454be | 80fb98111693afb071c95f1bac53f11321ecd619 | refs/heads/master | 2020-04-21T21:10:34.340475 | 2019-02-09T13:37:17 | 2019-02-09T13:37:17 | 169,870,351 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,448 | r | ui.R | library(shiny)
#UserGuide <- h3("How to use this app?", align = "center"),<br>,<p>(Hello)</p>
shinyUI(pageWithSidebar(
titlePanel(title = h1("Histogram Simulator", align="center")),
sidebarPanel(
selectInput("n", "Choose how many random numbers",
choic... |
b7de7a481fcf66030cf1b6d2b0334d8b0f47390c | cd545db34cc4e68b1b5ff7f726d0f4039e9792f8 | /man/exp.Rd | 0bfb761aa18f07852c529d3cb6a064bfdb906a8f | [] | no_license | menggf/DEComplexDisease | 3c3598cf7403fda0c0a2fbc4c988196fe229c6cb | c7ad81ba12b3274c4d2d36a77cc22baea16caf60 | refs/heads/master | 2022-07-09T00:53:35.770287 | 2022-06-25T06:13:24 | 2022-06-25T06:13:24 | 95,849,656 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 302 | rd | exp.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{exp}
\alias{exp}
\title{expression matrix of breast cancer (part)}
\format{a matrix}
\value{
A matrix
}
\description{
A matrix of breast cancer patients from TCGA (only part)
}
\keyword{datasets}
|
cadffb2abb37a48062bbbd28ec5ef1554c99c61a | 9c97254dd4cc2c48865fa8d4ae932a721ba4368b | /Genalg_Ex3_Food.R | d9ec2d4d12d1c188154ba610c7b9a734b8ede2f7 | [] | no_license | dalilareis/R-genetic-alg | fbeec89ba37a915610c2bf16b93be76b72ec550d | 266b67c966e59663c11cccf07b1284f8d0b18747 | refs/heads/master | 2020-04-16T00:03:42.390969 | 2019-01-10T20:05:13 | 2019-01-10T20:05:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,077 | r | Genalg_Ex3_Food.R | library(ggplot2)
library(genalg)
item <- c("pocketknife", "beans", "potatoes", "unions", "sleeping bag", "rope", "compass")
survivalpoints <- c(10, 20, 15, 2, 30, 10, 30)
hungerpoints <- c(0, 20, 15, 0, 0, 0, 0)
weight <- c(1, 5, 10, 1, 7, 5, 1)
weightlimit <- 15
dataset <- data.frame(item=item, totalpoints=survivalpo... |
24a47f31f6ee59c55d575fef51390262fdf122ff | 953e70080a0fa00c852e1b439ed85426c550b88f | /man/add_data_field_children_for_start_var.Rd | 1f993da1d92f9c1d69cebcdcfa40e6a60f538771 | [
"MIT"
] | permissive | cran/recodeflow | ec98d6d47b3bff19f00b64f59b634f3d8d1e01ac | 9c82f34cadbe4f3e9148b1ac31bac8aae4d3df8f | refs/heads/master | 2023-05-26T10:09:22.117846 | 2021-06-09T06:00:02 | 2021-06-09T06:00:02 | 375,409,898 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 577 | rd | add_data_field_children_for_start_var.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nodes.R
\name{add_data_field_children_for_start_var}
\alias{add_data_field_children_for_start_var}
\title{Add DataField child nodes for start variable.}
\usage{
add_data_field_children_for_start_var(data_field, var_details_rows)
}
\ar... |
40be7203c255ae06bab76ce4cdf70a9c83f4c12c | 42dedcc81d5dc9a61a79dbcea9bdd7363cad97be | /age+gender/analysis/03_robustness/D-51_color-bar.R | 13b650e649c31172227a7cd0f8ab65111d4b5611 | [] | no_license | vishalmeeni/cwas-paper | 31f4bf36919bba6caf287eca2abd7b57f03d2c99 | 7d8fe59e68bc7c242f9b3cfcd1ebe6fe6918225c | refs/heads/master | 2020-04-05T18:32:46.641314 | 2015-09-02T18:45:10 | 2015-09-02T18:45:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 541 | r | D-51_color-bar.R | # This script will simply visualize and save the color bar
outdir <- "/home2/data/Projects/CWAS/age+gender/03_robustness/viz_cwas"
red_yellow_rgb <- as.matrix(read.table("z_red_yellow.txt")[,])
red_yellow <- apply(red_yellow_rgb/255, 1, function(x) rgb(x[1], x[2], x[3]))
n <- length(red_yellow)
x11(width=12, height=... |
f840fe73631d52bd9436c38d14054b40339f4bfe | 237938d75951fe0ec5d854ce4a2fb025969afee6 | /Quiz3.R | fd76bafbb2f6b76de232f8cd42488881e5881afe | [] | no_license | yash29/Getting-and-Cleaning-Data | 179caecdd51871dffe183d3bf2ba346ba9c8461e | 8fef053bf203e78f9c526f7d1f030edd6f3463a1 | refs/heads/master | 2020-03-25T08:50:02.836708 | 2018-08-05T18:05:07 | 2018-08-05T18:05:07 | 143,633,850 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,171 | r | Quiz3.R | #Q1
library("dplyr")
download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2Fss06hid.csv","Q3q1.csv")
data<- read.csv("Q3q1.csv",stringsAsFactors = FALSE)
agrilogical<-which(data$ACR==3&data$AGS==6)
data<-tbl_df(data)
head(data)
select(data,ACR==3,AGS==6)
str(data)
#Q2
library("jpe... |
718e4a64890e46547ef3228778df36195c8e574a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/cleanr/tests/runit.R | 957e0bc57c3d9e1c88e46743623ca32b51180f0c | [] | 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,947 | r | runit.R | #!/usr/bin/Rscript --vanilla
if (requireNamespace("RUnit", quietly = TRUE)) {
library("cleanr")
cleanr::load_internal_functions(package = "cleanr")
path <- getwd()
# Unit testing
name <- "cleanr_R_code"
package_suite <- RUnit::defineTestSuite(name,
di... |
eae24141f146021d60ae45e423f0f34413d58cbc | 032f396221e412ae04fb013e15fc310a17cc3e68 | /climate/PRCPTOT_85_code.R | eee061238dd6d36a09e08991d75a40bebb56bf21 | [] | no_license | tvpenha/sismoi | 6a2f7fde2106c45f256a44cef158aa790f98a41f | 1e6267b74faf7daf6f0de064c59cf230f945714e | refs/heads/master | 2020-04-20T21:34:15.199323 | 2019-03-20T18:25:27 | 2019-03-20T18:25:27 | 169,112,900 | 0 | 0 | null | 2019-02-04T16:51:30 | 2019-02-04T16:51:29 | null | ISO-8859-1 | R | false | false | 18,867 | r | PRCPTOT_85_code.R | require(ncdf4)
require(ncdf4.helpers)
require(ncdf4.tools)
require(ggplot2)
require(raster)
require(rgdal)
require(spatial.tools)
################################################################################
setwd("C:/Users/inpe-eba/SISMOI/prcptot/rcp85")
# Abrir shapefile
brasil = readOGR("C:/Users/... |
7db8aae892fc5f1f7a870880209d27b9f4b6b7f9 | 45feb2cf67587c8c13e232def92cacaee9749458 | /R/plotting/visualize_state_level_fake_post_likes/user_state_plot_with_user_state_scatter_plot.R | 88801d8e86fde5d515bbe127a2d04934916b902e | [] | no_license | Chunhsiang/NTU-Facebook-Project | 25940c4b4840576426b466520f07d8f1e3806daf | 66e4f0ad238a47092bb31db382932cccebfaeb36 | refs/heads/master | 2022-01-15T18:31:14.998597 | 2019-06-11T15:59:07 | 2019-06-11T15:59:07 | 105,336,546 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,920 | r | user_state_plot_with_user_state_scatter_plot.R | library(data.table)
library(dplyr)
library(plyr)
library(ggplot2)
library(fiftystater)
library(Cairo)
#library(extrafont)
library(maps)
library(ggthemr)
ggthemr(palette="pale", layout="clear", spacing=0.6) # load ggthemr to use
base_theme = theme(
title = element_text(size=13, face="plain"),
axis.title = ... |
0e36d81bdcec49023a281f286d2dcdaf1cbd295d | b9f284784a43cab06b0b06ce34a2e8123b3f04a0 | /2_scripts_sun_shade_sun/nlmeLightResponses.R | fc5fd0ec64b74548686fdfb1396f3d33a935008b | [
"CC0-1.0"
] | permissive | smuel-tylor/Fast-Deactivation-of-Rubisco | 78d02e927d9d5f15c4f8e8d456750ad2665bb0cd | fe73b746fa3950a77d990a2cc795b245685e5e01 | refs/heads/main | 2023-09-03T20:47:29.662493 | 2021-11-10T15:17:05 | 2021-11-10T15:17:05 | 321,707,002 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,585 | r | nlmeLightResponses.R | #Non-linear-mixed-effects models to produce coefficients for the diurnal model
# - light response curves
# - using the same data/factors etc. as summarize.R
#updated 0121 to use R 4.x and here()
#clear workspace
#rm(list = ls())
library(here)
library(lattice)
library(nlme)
load(here("output/summarize.Rdata"))
object... |
26421ca64d63abf4b566dfee9233ae16be3c9a6e | 71c0281b7dc10b47d32923d95d0d4e2b119999fd | /Scripts/modeling.R | 11641e401a91b157a283d9b427749b209e23bed1 | [] | no_license | vdhyani96/education-loan-repayment | 4b1aa69377cc307ed9447e696cc1fcba8ed13bfc | bd322ce5dcf7cd35f3a6a63709a2dd0f846790f9 | refs/heads/master | 2020-08-04T19:52:50.471895 | 2019-10-17T00:28:48 | 2019-10-17T00:28:48 | 212,260,362 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,512 | r | modeling.R | # install.packages("caret")
library(caret)
library(dplyr)
setwd("C:/Users/admin/Desktop/R/Coursera - Predicting Student Loan Repayment/Dataset")
schoolData <- read.csv("ImpT&TCombined.csv")
# backup -- will use in the end
backUp <- schoolData$INSTNM[is.na(schoolData$COMPL_RPY_3YR_RT)]
# Let's remove the INSTNM feat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.