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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e95cd72d51222c783495af2872a36574e6408755 | c2e4f288cdd6ac789bb61aa1fd99eaf83944b139 | /app.R | 08b39f346299b4932df66260384500e083eca9b6 | [] | no_license | Josh-Myers/WAI-Norms | 0d749ef51a5f2af3ab33c2500e5746d0a0dafceb | e7cfca68dd01918b496c233fea3c3b945d4fbb2b | refs/heads/master | 2020-04-06T17:21:08.627796 | 2018-11-15T05:39:39 | 2018-11-15T05:39:39 | 157,655,603 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,520 | r | app.R | library(shiny)
library(dplyr)
library(ggplot2)
library(DT)
# load data frames
# median by age for each wai measure
wai.24 = readRDS("wai.24.median.rds")
wai.12 = readRDS("wai.12.median.rds")
wai.6 = readRDS("wai.6.median.rds")
wai.3 = readRDS("wai.3.median.rds")
wai.2 = readRDS("wai.2.median.rds")
wai.list = list(wai... |
981f2102412610d4943cddfc7acee4f794995e46 | b64fdb45e11c5d8717727b89d1361cbfd3943f1e | /man/condense.Rd | 7ab5e523cd765317de448a1f6709448dc979be25 | [] | no_license | garrettgman/ggplyr | 4c11194432d96557a02cab69bb579f791e4105d5 | 34a2861f875a9d30949a6fed737b40b742d1fba8 | refs/heads/master | 2016-09-06T02:47:39.162635 | 2012-06-21T16:33:04 | 2012-06-21T16:33:04 | 4,385,779 | 21 | 5 | null | 2012-06-21T16:39:19 | 2012-05-20T16:24:04 | R | UTF-8 | R | false | false | 332 | rd | condense.Rd | \name{condense}
\alias{condense}
\title{reduce a single valued vector to a single element}
\usage{
condense(var)
}
\arguments{
\item{var}{a vector}
}
\value{
a vector of length one if var only contains one unique
value, var otherwise
}
\description{
reduce a single valued vector to a single element
}
\keyword... |
8d7c5cd4473144dffd43c32f95095185149fa5ac | 3ed24cf1d44b746f91b04e79547975a8d52ceeae | /R/class-feature.R | b393a93cfdd418e7eac1233f80e7618c84b8b176 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | 52North/sensorweb4R | 2a420c6a86554da44ef0917543dac862475b968b | b4f9d19df2421284ce83f975232b1b0c133ec924 | refs/heads/master | 2021-07-20T12:54:07.561001 | 2020-03-24T18:48:36 | 2020-03-24T18:48:36 | 24,712,323 | 8 | 7 | Apache-2.0 | 2021-02-02T16:13:50 | 2014-10-02T08:43:07 | R | UTF-8 | R | false | false | 1,002 | r | class-feature.R | #' @include virtual-class-domain-resource.R
NULL
#' Feature
#'
#' Represents a feature.
#'
#' @family API Resources
#' @author Christian Autermann \email{c.autermann@@52north.org}
#' @rdname Feature-class
#' @name Feature-class
#' @export
setClass("Feature",
contains = "DomainResource")
#' @export
#' @descr... |
da92d37868c9ab33d94d1acd6a298df21a28ae11 | 448dcc7700ae0fef08d60272c607d51cbb7eec80 | /src/model/NumberOfOscars2016.R | 5a39df85fbc56a3be7c9f4eda7d377fcfaab6d2f | [] | no_license | LeslieTanner/OscarPredictor | 1fc18d494cc1099375f4d03606f4050bafebcb0b | 4f5968385fd64ff6e72c9d5906fb990c3038062d | refs/heads/master | 2020-04-06T06:34:51.531510 | 2016-06-10T16:28:19 | 2016-06-10T16:28:19 | 47,720,106 | 0 | 0 | null | 2015-12-09T21:30:00 | 2015-12-09T21:30:00 | null | UTF-8 | R | false | false | 18,365 | r | NumberOfOscars2016.R | library(leaps)
library(stringr)
library(lubridate)
#library(ROCR)
##############
dataDir <- "../../data/"
load(paste0(dataDir,"movieDFClean.RData"))
load(paste0(dataDir,"movieDFClean2016.RData"))
#TODO
F1Score <- function(train.data,test.data, regressors, response, threshold=0.5){
model.formula <- as.formula(paste... |
607e2814c210653201cb6480cb4023fdd1a62904 | 6293deff6ed3b70fcbfb23bf14dd39e947816a66 | /complete.R | 9f73ec405830514cf2e02ca84b5eff1ffb2dba15 | [] | no_license | lspinheiro/datasciencecoursera | 9f18ec3e14449e3881de6a490fad2ca1231acdbe | 60f6ac0a4510d08b73fa61c68acd817eba4615d3 | refs/heads/master | 2021-01-19T05:44:15.410547 | 2014-05-14T18:27:07 | 2014-05-14T18:27:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 420 | r | complete.R | complete <- function(directory, id = 1:332) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
complete <- data.frame()
for (i in id){
file <- paste("~/", directory, "/",sprintf("%03d", i), ".csv", sep = "")
x <- read.csv(file)
complete <- rbind.data.frame... |
cee8a4abb43ed0cb2fc0a8f1d60afc12f7e94376 | 23eee42f80b97d092ab181b3f407bb910ac1217a | /man/ColumnMap.Rd | ebc64dcc9d7f52027dbe505db66f7968ab87cff5 | [
"MIT"
] | permissive | Marchen/moni1000 | fe2761fee81fecf563e693edb82679e78cfcfff0 | 596fafba4fa829e7ac287554f3c3b724f2c079dc | refs/heads/master | 2022-11-30T21:26:57.899235 | 2020-08-16T04:47:38 | 2020-08-16T04:47:38 | 287,552,034 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,177 | rd | ColumnMap.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/column.map.r
\name{ColumnMap}
\alias{ColumnMap}
\title{Create column map}
\usage{
ColumnMap(
mesh_xcord = "mesh_xcord",
mesh_ycord = "mesh_ycord",
tag_no = "tag_no",
indv_no = "indv_no",
stem_xcord = "stem_xcord",
stem_ycord = "st... |
26120352aa64ee33fe03ddb04efb473c1351ed43 | 9724647fa32760a171fd7cba463f027c5fac4a3a | /cachematrix.R | d98148ebbdcc77dfd35b9e4092089f071dc53a03 | [] | no_license | pilic/ProgrammingAssignment2 | 1420391060f8b97d46a190d02549327f055b056b | d72821a754d3c2c8610ad8659441312c9feeb980 | refs/heads/master | 2021-01-14T08:55:53.793567 | 2016-08-09T13:26:35 | 2016-08-09T13:26:35 | 65,293,855 | 0 | 0 | null | 2016-08-09T12:39:58 | 2016-08-09T12:39:57 | null | UTF-8 | R | false | false | 637 | r | cachematrix.R | ## makeCacheMatrix: creates a special matrix object
makeCacheMatrix <- function(x = matrix()) {
in_x <- NULL
set <- function(y) {
x <<- y
in_x <<- NULL
}
get <- function() x
setinverse<- function(inverse) in_x <<-inverse
getinverse <- function() in_x
list(set = set, get = get... |
de9294b8683c25f1d4fc35b870535e26f7bc4315 | 99be362c89a70717b228641b5ccc6d18f4fe2e95 | /man/txClassifier.Rd | e85343c6491b5944fe8656bf0cb54303e6ee4b11 | [] | no_license | lppcom/genericClassifier | 291a233f6115c65c2f37571cd1d83f8a79527b15 | 15af4041e13a5e2eb732d1383f3e751eaaac01ce | refs/heads/master | 2021-05-31T20:25:17.496851 | 2016-05-06T22:04:13 | 2016-05-06T22:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,423 | rd | txClassifier.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/txClassifierObject.R
\name{txClassifier}
\alias{txClassifier}
\title{txClassifier Constructor Function}
\usage{
txClassifier(classes, data_set, svm_cost = 1, svm_gamma = "def",
type = "PAX")
}
\arguments{
\item{classes}{ch... |
5b4cebd6345a4a3f4aa31348967bdfc9bb03ff06 | 8c1333fb9fbaac299285dfdad34236ffdac6f839 | /equity-valuation/ch2/solution-02b.R | 864e866f2d7293e9f605a7ec0b9e19e983533ee4 | [
"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 | 89 | r | solution-02b.R | # Calculate expected growth rate
exp_growth_rate <- retention_ratio * ke
exp_growth_rate
|
72d2d529e6b0b8a3a157a0a31ffec53de3190869 | 05ba1ac8a4ad8695d7d9cf72cbf1e068ae46dd7a | /scripts/R/correlateList.R | bc6c7cd9089e8eecc22a9fe922bd2acb6af4938d | [
"Apache-2.0",
"Artistic-2.0"
] | permissive | sergpolly/cworld-dekker | 2985788a5e14df9d8be26e2b58ecf4944cd77a95 | 7557bbe873e623e9059482722922faca4e784ad0 | refs/heads/master | 2020-04-21T13:39:34.622698 | 2019-06-07T16:37:37 | 2019-06-07T16:37:37 | 169,606,468 | 0 | 0 | Apache-2.0 | 2019-02-07T16:50:59 | 2019-02-07T16:50:58 | null | UTF-8 | R | false | false | 377 | r | correlateList.R | options(bitmapType='cairo')
args <- commandArgs(TRUE)
inputFile<-args[1]
correlationMode<-args[2]
if(!exists(correlationMode)) {
correlationMode<-"pearson"
}
if((file.info(inputFile)[[1]][1]) > 0) {
tmpData<-read.table(inputFile,header=TRUE,sep="\t")
r<-cor(tmpData$score_1,tmpData$score_2,method... |
da8406e81769d036a4ccdb4d5a443eea916466e8 | 50272cf92b22f6436abd5e18a31a45f4fe9efc01 | /man/get_covariance_matrix.ModelTree.Rd | 4a833ab6c07457ee0750c8f452b3839d5ca976a5 | [] | 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 | 823 | rd | get_covariance_matrix.ModelTree.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/covMatUtils.R
\name{get_covariance_matrix.ModelTree}
\alias{get_covariance_matrix.ModelTree}
\title{Get the Covariance Matrix for a Kernel ModelTree}
\usage{
\method{get_covariance_matrix}{ModelTree}(kernel, x, sigma.n, hyper.params,
additi... |
b36dec7874df9e6e989716bab6785bee22a68aa2 | 998160ded8ff6f2efadc35655a7b7382ec960aac | /Graph with 3T3 and BCC Split-Cobi.R | d435b53b61b147784b896b4b5346bdf8d2246a75 | [] | no_license | phalas25/ph-future-phd | 4953f9a708cd1a08e0b46e619a9936862ea3d282 | f1953cb8c8d05ee3d0a81fd20b8d36d44534a231 | refs/heads/master | 2020-09-05T16:26:11.316173 | 2020-04-03T17:34:00 | 2020-04-03T17:34:00 | 220,156,010 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,787 | r | Graph with 3T3 and BCC Split-Cobi.R | #clear current environment
rm(list = ls(all.names = TRUE))
#install packages as needed--unmarkdown if you do not have these on the console
#install.packages("RColorBrewer")
#install.packages("ggplot2")
#install.packages("dplyr")
#load packages that have been installed (always run these commands)
library(RColorBrewer)... |
eccc3f06fb5f2e7b9cc1466bdeb981131071e522 | 44cd9609cc0181fb22b4933d4b86f4ff718478a1 | /Modeling Kit(code)/Functional_Framework/modeltools.R | adad1e12300a3311c1c3646b37befb7b3e63343b | [] | no_license | chipbuster/ParkinsonsProject | 19657daf1f245f628cc7d4b9802af3b8ef2f0abe | d3f88b315125b180050b4bcbd16c27892240f64f | refs/heads/master | 2021-01-10T19:57:57.999790 | 2014-01-14T22:26:07 | 2014-01-14T22:26:07 | 15,917,582 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,340 | r | modeltools.R | ##Useful functions for datanalysis. Creates and tests models using tools from
##UsefulTools.R.
##YOU NEED TO MAINTAIN THE FIRST TWO FUNCTIONS!!!
##Edit them where there are comments to ensure that things don't break.
#load or source statement here
#Make a model from a given dataset
#Call function with dataframe to b... |
3d048395a11a4cc0f55d8c9f163b6e86223d8acb | 2724f6e874c9500b0df726c2d6903fe486b8cc84 | /man/get_bioplex_list.Rd | d0d94a1c88f1d5b3be17b2fd5795bec3f8b2a7c5 | [
"MIT"
] | permissive | lagelab/Genoppi | 62006e9f123a1857580e5ebd88885c945483f6e3 | f78e7b3e523650e7ae211fc93b79dff3e28dd03f | refs/heads/master | 2023-08-31T09:51:59.007937 | 2022-10-12T14:17:17 | 2022-10-12T14:17:17 | 83,465,982 | 23 | 10 | null | null | null | null | UTF-8 | R | false | true | 816 | rd | get_bioplex_list.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_bioplex_list.R
\name{get_bioplex_list}
\alias{get_bioplex_list}
\title{Retrieve Bioplex 3.0 interactors for a given bait}
\usage{
get_bioplex_list(bait, p = 0.9)
}
\arguments{
\item{bait}{string. name of bait protein}
\item{p}{numeric. P... |
bffb509d98239939430f9351456223b9a2aa36b8 | 4624a2d7848bc7624088b13e06fd20bd905a0e84 | /man/plot_climate.Rd | 59b64580f3fbcb30f74629d813d0bedac9c6dce7 | [
"MIT"
] | permissive | special-uor/smpds | 8ad44b09653c77239a8b637ea754d453ef0e8945 | 90396cec8f1f5b01d30192b91b39c4b74a50915f | refs/heads/main | 2023-04-18T07:31:41.945588 | 2022-08-07T10:25:12 | 2022-08-07T10:25:12 | 391,122,978 | 2 | 1 | null | null | null | null | UTF-8 | R | false | true | 12,095 | rd | plot_climate.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-plot.R
\name{plot_climate}
\alias{plot_climate}
\alias{plot_climate_countour}
\alias{plot_climate_tiles}
\alias{plot_gdd}
\alias{plot_mat}
\alias{plot_mi}
\alias{plot_mtco}
\alias{plot_mtwa}
\title{Plot climate variable}
\usage{
plot_cl... |
b50c3278b7bf8b050bd34adfd288801f59e5ae86 | 908af1ed68362beadb13640c2951ddf8561280aa | /bin/graphDiagram.R | ba62dac24a5c6915b3b3ce220eb10d692fdb347d | [] | no_license | DuhaimeLab/Hannigan_ConjunctisViribus_mSystems_2017 | 8045ffac2121d986c727150426a9c27c85bd8a06 | af354bd53084a70861ab96dab244e9945e48c424 | refs/heads/master | 2021-01-13T05:36:57.651491 | 2017-06-01T11:58:22 | 2017-06-01T11:58:22 | 95,045,759 | 1 | 0 | null | 2017-06-21T20:59:42 | 2017-06-21T20:59:42 | null | UTF-8 | R | false | false | 1,229 | r | graphDiagram.R | library(DiagrammeR)
# Create a simple NDF
nodevector <- c(
"Study",
"Disease",
"Subject ID",
"Phage Sample ID",
"Bacterial Sample ID",
"Time Point",
"Phage OGU",
"Bacteria OGU")
nodes <-
create_node_df(
n = length(nodevector),
label = nodevector,
fixedsize = FALSE,
fillcolor = "white... |
525fa995d318647e8b5a6899970b1fd09706bebc | 5c28ce9305f2e0bf0b71bde1c6e7c6fdcb1ad495 | /R/zzz.R | 9036e8f4cd4d14758b1c0ea7c64f90f2b25e4c30 | [] | no_license | GenomicsNX/HeatmapR | 032a63f886a23cdbf806eee7c133a1874b2ec42d | e852dcc7f28cf2487aeb271aba577b3c3b35dfe9 | refs/heads/master | 2022-11-19T10:46:16.506688 | 2020-07-17T00:51:36 | 2020-07-17T00:51:36 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 478 | r | zzz.R | ## UPDATE GLOBAL OPTIONS ON LOAD -----------------------------------------------
.onLoad <- function(libname, pkgname) {
# HEAT_MAP_SAVE
options("heat_map_save" = NULL)
# HEAT_MAP_CUSTOM
options("heat_map_custom" = FALSE)
# HEAT_MAP_MARGINS
options("heat_map_margins" = NULL)
# HEAT_MAP_COPY
... |
e4473911c5b2d4cced4caa12382943c961f0cd76 | 2de11afae0cc001256eab563565a86978634a458 | /man/e_step.Rd | f9d239ea01a0a9196326a7cc9313391f28e951ed | [
"Apache-2.0"
] | permissive | JohnCoene/echarts4r | 169726af7e118b2388af7a1453a3240e9b810026 | 2ee457a4541240a7996d332823c0cc5be60b21c1 | refs/heads/master | 2023-09-03T16:48:34.900692 | 2023-08-22T15:01:24 | 2023-08-22T15:01:24 | 124,915,957 | 564 | 99 | NOASSERTION | 2023-08-28T07:43:12 | 2018-03-12T16:08:27 | JavaScript | UTF-8 | R | false | true | 1,731 | rd | e_step.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add.R, R/add_.R
\name{e_step}
\alias{e_step}
\alias{e_step_}
\title{Step}
\usage{
e_step(
e,
serie,
bind,
step = c("start", "middle", "end"),
fill = FALSE,
name = NULL,
legend = TRUE,
y_index = 0,
x_index = 0,
coord_system... |
de519cf2b2f25db915fb7171f0d4c13743d9f3b3 | 5b2f016f1298c790224d83c1e17a425640fc777d | /array/ld/MethBlockByChrosome.R | b30054cf6068d884c366057e8c396537563d778d | [] | no_license | Shicheng-Guo/methylation2020 | b77017a1fc3629fe126bf4adbb8f21f3cc9738a0 | 90273b1120316864477dfcf71d0a5a273f279ef9 | refs/heads/master | 2023-01-15T20:07:53.853771 | 2020-02-28T03:48:13 | 2020-02-28T03:48:13 | 243,668,721 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 153 | r | MethBlockByChrosome.R | #!/usr/bin/R
setwd("/home/gsc/Dropbox/Project/methylation/array/ld")
data<-read.table("Chr24_450kMerge.txt.trans",head=T,row.names=1,sep="\t",as.is=F)
|
60f36f53c86e237f613a8bddcbba4dc3c3c25593 | e69d3476863aa2f73cdf3787b6f078618f133bbb | /week_2/week_2/RCrawler_example/CaseStudies/Case1YahooKimoStockMajor/tryWriteIntoDB.R | 3321974cb7c33f57e6c9c2e263bacffbdafff792 | [] | no_license | pumpkinlinlin/CSX_RProject_Spring_2018 | 08d714d8ed9318c2c4aafefeba5ce5a5416a92f5 | ef3d5abe1ba3351c0a9daef7a71fb3ceb1c725b5 | refs/heads/master | 2020-04-24T07:21:47.641885 | 2018-10-01T09:45:53 | 2018-10-01T09:45:53 | 171,796,950 | 1 | 0 | null | 2019-02-21T03:57:13 | 2019-02-21T03:57:13 | null | UTF-8 | R | false | false | 471 | r | tryWriteIntoDB.R | rm(list=ls(all.names = TRUE))
source("packIntoFunction.R")
Data_Table = getStockMajorData(2330)
View(Data_Table)
library("RSQLite")
drv <- dbDriver("SQLite")
conn <- dbConnect(drv,"yahooStockMajor.sqlite")
dbListTables(conn)
dbWriteTable(conn, "StockMajor", Data_Table,row.names=FALSE,append=TRUE)
dbDisconnect(conn)
... |
91ac85566a9803fd90925dfec98db758d4c8ee7c | ca5000dd3e18e4e3bc43d5d90e77194031503204 | /Validacion/man/ValPruebaF.Rd | 3c0f4e1fb27d66c717757533d78e9f805d9300f5 | [] | no_license | mablan/Validacion | 2d5bd0e7c664708d542749752234bff96f74082f | cbbf64062219ca82ceecb1ffb1aeccac7086530b | refs/heads/master | 2021-01-23T08:33:55.109739 | 2019-11-29T23:22:51 | 2019-11-29T23:22:51 | 102,534,412 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,519 | rd | ValPruebaF.Rd | \name{ValPruebaF}
\alias{ValPruebaF}
\title{
Prueba F de Fisher
}
\description{
Es una prueba compara valores de los datos contra los modelos de prediccion.
Esta funcion calcula una prueba F que tiene como hipotesis nula que el intercepto es 0 y la pendiente es 1.
}
\usage{
ValPruebaF(x, y)
}
\arguments{
\item{x}{
... |
d1c2296b08e113a893752be4184272cbc939c017 | 148b70d53e28be4bdd4f272dbcfce3f56127f755 | /6Run_PAML/4Calc_LRT.r | 6c7c3168e4565bc5d4a27f692fe9698651ccd4fc | [
"BSD-2-Clause"
] | permissive | Bioinfo2015/Transcriptome_pipeline | c6239db770c4c1c041affec251d5e3914053c8b8 | 9c223cdc0c604e63440382a01fa29a0392b9e128 | refs/heads/master | 2021-01-14T08:51:14.025679 | 2015-10-21T21:59:23 | 2015-10-21T21:59:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,365 | r | 4Calc_LRT.r | # calculate LRT from codeml results, grab gene ontology categories, NMDS
# null = Model A1 (NSsites = 2, model = 2, fix_omega = 1)
# test = Model A (NSsites = 2, model = 2, fix_omega = 0)
# Marisa Lim (c)2015
# load libraries
library(biomaRt)
library("GO.db")
library(vegan)
library(dplyr)
library(tidyr)
# set workin... |
970fc17f26f8ff4468eb9fa36d54042f7c4c50c0 | 779632d7e64f27db6fcc2e6e0bd880684385869f | /p70.R | db84c685ea0d944e6eb23067f2328121b1007e94 | [] | no_license | benjamin22-314/Project-Euler-in-R | 347c82a5b571f93c84bf8b890d3d9189ed60eafc | 071e5f50d6c8fbb2c9d156a7d83d70f0e147462a | refs/heads/master | 2022-04-29T23:49:04.630837 | 2019-01-13T05:11:48 | 2019-01-13T05:11:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,132 | r | p70.R | # [1] "minRatio = 1.00070905112481 n = 8319823"
# user system elapsed
# 1.001 0.000 0.998
main <- function(){
pmt <- proc.time()
library(numbers)
num <- 1e7
upper <- ceiling(sqrt(1e7))+1000
lower <- upper-2000
x <- Primes(lower, upper)
nSave <- 0
minRatio <- 10
for(i in ... |
33baeb927a7c3f77bc8f8b2132a8117eb91e1716 | c24399a671dce7a80777e35d4107f6095f32f6be | /REnv_test4.R | cf7fb06afae14fd83a259cb5e0d91953bbf2c69c | [] | no_license | jiangweiyao/renv_test4 | 278b2a7443316669926858018ee03a19066ccf10 | d3678e7efa13dbec94f88628abeed9325b9833c2 | refs/heads/main | 2023-03-25T10:33:47.408479 | 2021-01-26T21:41:47 | 2021-01-26T21:41:47 | 333,224,772 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 161 | r | REnv_test4.R | #install.packages("renv")
#install.packages("tidyverse")
#install.packages("BiocManager")
#BiocManager::install("DESeq2")
library("tidyverse")
library("DESeq2") |
a1a2ff619fad1c8fed860b472f9bc96a919bebc9 | 11727cee6c7faba955f50eba0b86d828b98d3dc4 | /man/cc_read_file.Rd | 1d9a19c2b5cade60f3ccb31cb695430b38978470 | [] | no_license | sriramab/cchaid | 25a68915ad9cf1223ba59ce7c04a31cf789ef4fe | edd0348ae1fe1cc4645f478eefe1a27414d77325 | refs/heads/master | 2020-06-13T19:17:04.539489 | 2017-10-22T06:16:38 | 2017-10-22T06:16:38 | 75,615,748 | 0 | 1 | null | 2017-02-14T09:57:21 | 2016-12-05T10:50:11 | R | UTF-8 | R | false | true | 402 | rd | cc_read_file.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cchaid.R
\name{cc_read_file}
\alias{cc_read_file}
\title{This function reads user file}
\usage{
cc_read_file(x)
}
\arguments{
\item{x}{A file name}
}
\value{
A dataframe with user selected fields in a tab-delimited text file.
}
\description{
... |
0591c8ec1dbedc44243c7112f7f63c281db426cd | 082bbd3b3e173d802cdc8f4ee090aad0fb821760 | /HW1/hw1-2-7.R | 5445fb1c36cd7efced354b48e7cc81ebe90efd02 | [] | no_license | JohnnyBarber/Investment | 2357b9004e1efdd771aabd931eda6b810369e106 | 67043859e6d61ed6d07570d9fff394977aa964f2 | refs/heads/master | 2020-04-27T19:25:22.307239 | 2019-03-08T22:09:49 | 2019-03-08T22:09:49 | 174,617,142 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,948 | r | hw1-2-7.R | # Problem Set 1 Solution Template
# mysoln is a list to store your answers
# the first element of the list is a vector of names for the students in your group
# make sure these match the names shown on the pdf document provided by the MFE office
# using group 1 as an example:
mysoln <- list(student = c("Huanyu Liu", "... |
4ad61f830a8cfee4beb6d8d563b58d0beb1d0a6a | 7c2e136a2ce427597843354ef1bab5797f8ebbc2 | /check_germline_artefact_functions.R | ee164e5259c70a618f73591de24435a9771d9c54 | [] | no_license | shulp2211/InfiniteSites | 4d6515562f70b20c474976b4e39a7eee2d171ddb | 17514d03786ad3237260b823c31cef37f9493b7a | refs/heads/master | 2023-06-24T00:12:20.609385 | 2021-07-22T09:21:14 | 2021-07-22T09:21:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,563 | r | check_germline_artefact_functions.R | #### additional checks to exclude contamination by germline calls
#
#### function to annotate PCAWG vcf with the additional QC metrics (carry this along to the end)
## get allele counts in matched normal
annot_normal_read_counts <- function(normalbam, snvs_vcf, minbq = 20, minmq = 35, ncores = NCORES) {
if (!f... |
846ed2c35cd071e80424d952a19479ccf17610f8 | 73e10a36d8b651fc9365b270f530c4f4be56aa4f | /plot4.R | 086697df09c57bcc0dc17edda240d0b48ef32ce9 | [] | no_license | sveston/ExData_Plotting1 | 5b7854efd2a104127a802a1242a98d60b508e496 | 96432c7598d16027ed514290a882f3fd15a742bd | refs/heads/master | 2021-01-09T06:46:44.042209 | 2014-05-11T16:37:15 | 2014-05-11T16:37:15 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,779 | r | plot4.R | ##Read the entire table from folder
hpc <- read.table("E:/R/exdata-data-household_power_consumption/hpc.txt", sep=";", quote="\"",header=TRUE)
##Convert the Dates to Date Class
hpc[,"Date"]<-as.Date(hpc[,"Date"],format='%d/%m/%Y')
##Subset Dates falling on 2007-02-01 and 2007-02-02
data<-subset(hpc,hpc$Date=="2007-02-0... |
ddc2c6f2c4a883da69143268b888700d542c6cd9 | 7180123ce9d90a5642d8595eff3bce61f3bdb3e5 | /common/Logging.R | f281178302edf6d5ea896fbce3d6ad05ac8e892f | [] | no_license | isantabarbara/bcldndc | 33f00b4893b9eed4c8406fe10b404ee23b076811 | 1a1b0e7aee54f7d70a46d846f33d9926bf99bee6 | refs/heads/master | 2020-07-16T02:00:52.005235 | 2019-11-24T13:15:41 | 2019-11-24T13:15:41 | 205,696,419 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 968 | r | Logging.R | #Responsability:
#Logging initialization
library(logging)
Logging <- setRefClass(
"logging"
, fields = list(
logPath="character",
logFile="character",
logLevel="character"
)
, methods = list(
#
# Constructor
#
initialize = function(..., logPath="",
... |
c59f70bf844a946440de15a528b0fb82b78573ec | fccac07ce25a237f9deeede62323444a0475cd4f | /man/scale_y_numeric.Rd | 5d71123c3d56089bb492433ccb510207cab03d81 | [] | no_license | mark-me/graydon.package | fa47c4b3cf620a67cc66e5809466b041e884a593 | 36630083ea01dc3a8bee54a0d78e5b60144197b7 | refs/heads/master | 2022-08-03T20:59:20.573179 | 2022-07-21T07:09:38 | 2022-07-21T07:09:38 | 192,348,397 | 0 | 3 | null | 2022-07-21T07:09:40 | 2019-06-17T13:03:45 | R | UTF-8 | R | false | true | 412 | rd | scale_y_numeric.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggplot_tools.R
\name{scale_y_numeric}
\alias{scale_y_numeric}
\title{A function to create a continuous y-axis for formatted numbers}
\usage{
scale_y_numeric(number_decimals = 0, format_EN = FALSE,
scale = c("normal", "k", "M"), ...)
}
\desc... |
cafdc141a0842dd7bcda3f1584c32aec719ef275 | 3e53500da3f91211ecfbcec0de87c84ef1183f91 | /FREELANCER FILES/TWITTER AN ANALYSIS/vehicle_twiter analysis.R | f0d79d75e615f96fa65d4b3faecec5bc0d88804c | [] | no_license | watex95/R-FOR-DATA-SCIENCE | b773d9d2f365a0792d78f5c19e3d7c2ebf6dc0e3 | 3635b5a25f059ab9f1a6900c85042144a5c7a4b5 | refs/heads/master | 2023-03-12T07:40:16.791781 | 2023-02-09T19:39:25 | 2023-02-09T19:39:25 | 187,982,806 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,830 | r | vehicle_twiter analysis.R | install.packages("twitteR")
#loading libraries
library(dplyr)
library(tidytext)
library(tidyverse)
library(twitteR)
library(tm)
#to get your consumerKey and consumerSecret see the twitteR documentation for instructions
consumer_key<-'2nSlqvVYhQGUxUMY8ATwOSE6v'
consumer_secret<-'RM9xtXqMZXrNyBjMDx1X1ScUvx1AEhmIO0m9FXA... |
e82f3ceb09322e207593c25d4d682d870b9a581f | 49ff29e6edfa8a56e67c7be6dff6cbece1022391 | /ui.R | a65a12cd323aaed7a55b39f56797d65ce1219fc2 | [] | no_license | yxie27/Project3 | 8aedac8090603db303fafd90e8ac0b4f867c08af | 15020699abe9a16293b402fb83a5cf7a83ae09bb | refs/heads/master | 2022-11-24T21:47:44.964230 | 2020-07-28T00:30:48 | 2020-07-28T00:30:48 | 281,841,042 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,766 | r | ui.R | library(shiny)
library(shinydashboard)
library(dplyr)
library(ggplot2)
library(readr)
library(tree)
#library(randomForest)
library(caret)
library(httr)
library(plotly)
library(RCurl)
#Read in data from my Github url address
url1<-'https://raw.githubusercontent.com/yxie27/Project3/master/World%20Happiness%20Report.cs... |
6215582d72c6f46c1abd5593b194544b429376fa | f9cc312bb527138f4c2d6607d9bd98374ae9cf0a | /man/summary.hmclearn.Rd | c2e5f1a3b229a434b15c79c9a005fd24d0a73617 | [] | no_license | be-green/hmclearn | ad1526f0d982af11a3315333cd0d7e760a045198 | 6a83877ab03cc7a76da8c113084fa7f084f9b784 | refs/heads/master | 2021-05-20T09:31:34.646091 | 2020-04-01T15:55:11 | 2020-04-01T15:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,042 | rd | summary.hmclearn.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/methods.R
\name{summary.hmclearn}
\alias{summary.hmclearn}
\title{Summarizing HMC Model Fits}
\usage{
\method{summary}{hmclearn}(object, burnin = NULL, probs = c(0.05, 0.25, 0.5, 0.75, 0.95), ...)
}
\arguments{
\item{object}{an object of clas... |
cc43623f2ac0ecd0054d3c6502d48410d58317e8 | 62a864c706cb41c5ec0a86e456c9b6d674e4fa03 | /Code.R | 8a63d878210fa5126f782afbcb190334bd8c9aa9 | [] | no_license | rakeshsarma/LoanDefault-Indessa | 9c6ff604332526872f114d1fa82f0325e7eea6ff | 52128335f690d9a0b341e7f45983adbe2435670b | refs/heads/master | 2021-01-23T01:07:54.068448 | 2017-04-04T18:17:24 | 2017-04-04T18:17:24 | 85,876,623 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,769 | r | Code.R | rm(list = ls(all.names = T))
#import data
train_file = "/Users/raki/Data Science/Haker Earth/Loan Default/Data/train_indessa.csv"
test_file = "/Users/raki/Data Science/Haker Earth/Loan Default/Data/test_indessa.csv"
train_dataset <- read.csv(train_file, header = T)
test_dataset <- read.csv(test_file, header = T, nrow... |
ec058b23cf13906b6d874b5fa358e672146571f9 | 31da9633913672a623a1635b9691a09e8dee52da | /R/github.R | 49d5ada4505f9dfbf7bb5ee813fac41073a5311a | [] | no_license | ms609/MorphoBank | eecdeaf3de338a8e62c369cdbfbb7948a843c88e | 6dd019a5be3d93b1e3301a5837f4f93966642db6 | refs/heads/master | 2023-04-28T10:01:49.483968 | 2023-04-17T10:01:03 | 2023-04-17T10:01:03 | 141,433,172 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,166 | r | github.R | #' GitHub Link
#'
#' Generates a link to a file on a specified GitHub repository.
#'
#' @param path Character string specifying path to file in specified GitHub repository
#' @param alt Character string specifying link text to display if
#' knitr output is in HTML format.
#' @param raw Logical specifying whe... |
3fdd30902d4f9b59824dd05463335d6c2b3d8fb4 | 1eb6f2998035f9884a86b54c61641157b8fa6d2f | /3-2_hashChain/mod.R | 0ad6f9e2844576f011f3f333a4631f111f0fa501 | [] | no_license | markculp0/dataStruct | 90de9f0ab70bf9f8d93253dd5ffa0ce9e093bef7 | 5c82fc8c70e3f10b384206f1eb9b420385ea1bef | refs/heads/master | 2020-05-28T08:26:25.606863 | 2019-07-05T15:20:49 | 2019-07-05T15:20:49 | 188,937,959 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 398 | r | mod.R | # =====================
# Hash computation in R
# =====================
# "Hell0", m=5 => 4
# "world", m=5 => 4
# "GooD", m=5 => 2
# "luck", m=5 => 2
options(scipen = 999)
m <- 5
word <- "GooD"
word <- sapply(strsplit(word, NULL)[[1L]], utf8ToInt)
i <- 0
for (d in word ) {
word[i + 1] <- word[i + 1] * 263^i
i ... |
dd26c8ecd98f0392138c0c7ba0a2219379394510 | 00cfbc3c4a6f234116eaafa97c8efb3906ae28cd | /R/lhc_plotting.R | 614d938ded13ad7112cc651eb85663aa371f4d8a | [] | no_license | cran/spartan | ff805de8b6c09f0adf38191ee8d80c260ac576ae | 048ba049c3876bcda91b5ab3cb4777abb0a89b36 | refs/heads/master | 2020-04-15T02:06:48.834239 | 2018-11-19T17:20:03 | 2018-11-19T17:20:03 | 17,699,861 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 26,933 | r | lhc_plotting.R | #' Generates parameter/measure plot for each pairing in the analysis
#'
#' Produces a graph for each parameter, and each output measure, showing
#' the simulation output achieved when that parameter was assigned that value.
#' Eases identification of any non-linear effects.
#'
#' @inheritParams lhc_generateLHCSummary
#... |
924bdce9dac1543a77b4cfccc6f08f4a3346f551 | e1af74e6ad7ac2fde5ad3b2c44aac29c54b0120d | /knn_structbreak_toe2.R | 4ed2d1284229a537854ae8e566969bd9f5d7d200 | [] | no_license | ulabialonczyk/WTUM | e18604819af81f1823c873693c8d5f1eae8897ca | ce419a6ac4e958ddc82527bde3b28b4bc6b73362 | refs/heads/main | 2023-04-13T23:38:31.680799 | 2021-04-28T23:25:24 | 2021-04-28T23:25:24 | 360,322,343 | 0 | 0 | null | null | null | null | WINDOWS-1250 | R | false | false | 1,992 | r | knn_structbreak_toe2.R | source('/Users/Ula/Desktop/wtum/funkcje_pomocnicze2.R')
#----------------------------------- wczytanie danych: gunpoint -----------------------------------------------#
coffee_train <- read.table('/Users/Ula/Desktop/wtum/ToeSegmentation2_TRAIN.txt')
coffee_test <- read.table('/Users/Ula/Desktop/wtum/ToeSegmentat... |
f5912f38ef15aa1c3d1dc583133b837b469ba342 | 436ace74a695893aad73229b723fac6be6814129 | /R/weightTSA.R | 089ef2f117d78492a4afbcedfeb408ef974ffa82 | [] | no_license | cran/sensitivity | 18657169c915857dcde8af872e0048fef77107f4 | 2b2cbcb7f1bebecfd05e589e459fdf4334df3af1 | refs/heads/master | 2023-04-06T05:36:54.290801 | 2023-03-19T18:10:02 | 2023-03-19T18:10:02 | 17,699,584 | 17 | 17 | null | 2021-04-07T00:57:30 | 2014-03-13T06:16:44 | R | UTF-8 | R | false | false | 1,243 | r | weightTSA.R | # Author : Bertrand Iooss (2020)
weightTSA <- function(Y, c, upper = TRUE, type="indicTh", param=1) {
# Y = the output vector
# c = the threshold
# upper = TRUE for upper threshold and FALSE for lower threshold
# type = the weight function type ("indicTh", "zeroTh", logistic", "exp1side")
# indicTh: i... |
7384808aacf8eb937b69577b996e0d8ec53ace08 | 476aacd596bbf0fcc847521f0b8b25e11aa46d09 | /auth_creds.R | 1fd0729d9932a18cd68360700c4abcfa7d723ae6 | [] | no_license | laurakwiley/AMIA_Twitter | df7f759061b3a5ae09585d0213fe178963682e53 | f1d79773807aaa557c4744d7dab1ab00751e9f7c | refs/heads/master | 2021-01-10T19:38:48.829612 | 2015-02-27T19:18:26 | 2015-02-27T19:18:28 | 18,364,872 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 237 | r | auth_creds.R | api_key<-"z05yaDCux8wiaGFltYLHOoHLI"
api_secret<-"wD0SXaVAmMb3zprXs5HEcwdKt4dYIT8dGwBw3tKsJtSItAVIQb"
access_token<-"388595556-6cesMCw3nsnge9LfIoRLHeEJx5cNN2SdiYABMjpy"
access_token_secret<-"TjNjvSQuVRU9xTVtocj7dzNwyuTXQr1AWiL3tqNLN2F1l" |
678b8b21a788878963deacb91384c0b5ba884878 | d0108c3f8d99cf84d0227c57b10dbd8236585192 | /Fig.S3A.S3B.diffbind.best.reps.R | a4e474dc07b61a7f245ba68004cf45d16ce70415 | [] | no_license | Webb-Laboratory/Maybury-Lewis_et_al_2021 | f2ef2f9e4571427571bfbf83f5242cc88254b51a | 77f353d6c5ae91fa0cb260abe0d674fbed946bc4 | refs/heads/main | 2023-06-05T10:24:03.584835 | 2021-06-30T19:55:13 | 2021-06-30T19:55:13 | 346,836,008 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,859 | r | Fig.S3A.S3B.diffbind.best.reps.R | # ==========================================================
# Postnatal ATAC-seq analysis
# Adding only reactivated samples SML2 and SML3
# Based on highest FRiP scores (diffbind.react.reps.R)
# Repeating analysis after downsampling Q, A, R libraries
# ~ 40,000,000 reads and peaks called
# DiffBind
# September 2019
# ... |
4c3b0dde5feab8357ae6c86a3567d52927bf781a | c118908b1c8bad0914e38e43f1148b58364accc2 | /man/Bchronology.Rd | e52bc9664e6f5d7afee691feaae0da1ad3d21ea3 | [] | no_license | andrewcparnell/Bchron | baf98d6642a328ba3c83e8fcf2e04b6c0af86974 | faa14f54444e7ec417e0e389596014a1c7645349 | refs/heads/master | 2023-06-27T02:01:46.417288 | 2023-06-08T11:17:34 | 2023-06-08T11:17:34 | 40,361,984 | 30 | 12 | null | 2022-04-05T20:46:28 | 2015-08-07T13:33:16 | R | UTF-8 | R | false | true | 8,104 | rd | Bchronology.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Bchronology.R
\name{Bchronology}
\alias{Bchronology}
\title{Runs the Compound Poisson-Gamma chronology model of Haslett and Parnell (2008)}
\usage{
Bchronology(
ages,
ageSds,
positions,
positionThicknesses = rep(0, length(ages)),
ca... |
70785d17a8339d8b7ce83d06960f103bcbc40d2e | 1cd1e1ff5714feb29ccb325fedf5cfdeab6011fe | /final car price prediction model.R | a4f62f7b2c3d5c83afbe8d2add165cdaf369e8ab | [] | no_license | nishthajalan/car-price-prediction-model | 8f3e723b772a1844939e90a7b186f15874a78527 | 58d3f9d87e24dd89fafeba315633d09828dcd9d8 | refs/heads/master | 2022-12-10T15:37:21.061490 | 2020-08-25T11:02:44 | 2020-08-25T11:02:44 | 290,187,378 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,982 | r | final car price prediction model.R |
library(readxl)
data=read_excel("C:/Users/lokesh/Desktop/iaqs/iaqs R/carpriceprediction.xlsx")
head(data)
summary(data)
str(data)
help("separate")
#data cleaning and preparation
#fixing invalid vaues in carName
data$CarName=as.character(data$CarName)
#splittng Carname
library(dplyr)
library(tidyr)
head(... |
9dfa9de478243a1fc01b3a2acdcf5b286522f973 | 76371ca11e03f754f0613c953a539612c56aabcb | /model/RandomForest_ベースライン_CVあり.R | 330115d509b40a31c9abace17976b0c77590519a | [] | no_license | you1025/probspace_salary | cc26b152d152b098cd764f7cdbf5c8e4eb83b824 | e78b62397cce1585d81bcb039a9237145a1f94dd | refs/heads/master | 2022-04-01T00:44:33.099781 | 2019-12-20T04:15:58 | 2019-12-20T04:15:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,986 | r | RandomForest_ベースライン_CVあり.R | # Test MAE: 47.72200, 37.69149, 33.37720, 29.13506, 26.98884
library(tidyverse)
library(tidymodels)
library(furrr)
set.seed(1025)
source("functions.R", encoding = "utf-8")
# Data Load ---------------------------------------------------------------
df.train_data <- load_train_data("data/input/train_data.csv")
df.... |
13696b8e8a4206e4c6579e40d62369a63328ff16 | 99db93c104dabf35fb38be7a3150e0b95f7ba517 | /ECMPride_parallel.R | 3cdf3b57ef3fd73383d824bcf8495ef34da163f9 | [] | no_license | ms5302kpum/ECMPride | a493390ad3ca75a59a2eb592bf0722f2ed0232a0 | 9eeb238d7913c7760ced51f10cf3deb13054f111 | refs/heads/master | 2023-03-17T14:41:52.158838 | 2020-02-12T12:40:46 | 2020-02-12T12:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,508 | r | ECMPride_parallel.R | ####################################################################################
# author: Binghui Liu
# creation date: 2020-02-12
# file description: Predict whether a specified human protein is ECM protein,
# and calculate the corresponding probability.
# Run from the com... |
b69b7075c5a3ff085de81b12f4ea9b62b1aecb5b | e9f8dfe7ba3a684260610934e08d2570ca578744 | /source/7_R/04_R프로그래밍.R | a6f39ca4ad7cfa54017e378c490673018b216e7b | [] | no_license | cherryuki/bigdata | 87864d6058ae23d854c3b146d11dc7fc2bc3f8eb | 928a1a302977017c47724edb5b5a722484cdcfb4 | refs/heads/main | 2023-04-16T20:32:14.017057 | 2021-04-30T12:37:57 | 2021-04-30T12:37:57 | 317,099,037 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,999 | r | 04_R프로그래밍.R | # 2021-02-03 R_R프로그래밍 ⓒcherryuki(ji) #
# # # 4장. R 프로그래밍; 제어문, function # # #
# 1. 제어문
# 1.1 조건문
# (1) if문
num <- 9
if(num%%2==0) {
print(paste(num, "은 짝수"))
} else {
cat(num, "은 홀수")
}
# (2) ifelse() 함수
# "num%%2==0" "짝수":"홀수"
ifelse(num%%2==0, "짝수", "홀수")
(nums <-c(10, 9, 17, 5, 20))
result <- ifelse(nums%... |
fbc755c87b3acf280d95eb073701f5e9b56a9ca9 | 92f1abd9a4a7383ddf41b089f5aea6b8caf43b03 | /man/proportionality.Rd | 3b4e35adba864b70adeb5a7415506548fe649575 | [] | no_license | samleenz/propr | 29cdf5cd5b9da62416206b3d6605d392e1df695e | 922b8a01bc009aa1f469138e9c72d79033ddb443 | refs/heads/master | 2021-08-23T13:35:29.566988 | 2017-11-29T08:06:01 | 2017-11-29T08:06:01 | 111,872,374 | 0 | 0 | null | 2017-11-24T03:34:21 | 2017-11-24T03:34:21 | null | UTF-8 | R | false | true | 3,658 | rd | proportionality.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/propr.R
\docType{methods}
\name{proportionality}
\alias{proportionality}
\alias{initialize,propr-method}
\alias{phit}
\alias{perb}
\alias{phis}
\alias{corr}
\title{Calculate Proportionality}
\usage{
\S4method{initialize}{propr}(.Object, count... |
54f4a4307893b0e1eeb8e1f15783dba2b8ae12f9 | b0231a0c8c675dcac07fc9b18d6bb84e66944f61 | /man/listMean.Rd | 70a1253d700b4bb17486a880d459e737188e72ec | [] | no_license | Adamoso/L4 | 569ca20243a627b707fbdd0d448d33596debf2ab | 80668d9884817dff5c09dfd83b1be7c21c747544 | refs/heads/master | 2020-08-27T07:06:16.177331 | 2019-10-24T11:32:59 | 2019-10-24T11:32:59 | 217,278,751 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 190 | rd | listMean.Rd | \name{listMean}
\alias{listMean}
\title{Mean of list}
\usage{
listMean(x)
}
\description{
Counts the mean value of every element in a list.
}
\examples{
x<-list(c(5,6),c(3,2))
listMean(x)
}
|
c0796dbadd4b13e64b69a9532990c0d5cb48acd2 | 3270487664d61509b5235184f2130c47d00d11ed | /man/radiation.Rd | 6431b16b525ba37d80b0937c217f3a84c6383a7c | [] | no_license | cran/meteor | 97903459a6020dccc017a855a77348b44b094ce3 | 3b1fa5d21cd393674ec7d254e06ec97b9185c670 | refs/heads/master | 2023-07-22T08:29:54.369133 | 2023-07-16T18:00:02 | 2023-07-16T19:30:41 | 236,625,464 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,212 | rd | radiation.Rd | \name{ExtraTerrestrialRadiation}
\alias{ExtraTerrestrialRadiation}
\title{Extra-terrestrial Radiation}
\description{
Compute incoming radiation (J day-1 m-2 ) at the top of the atmosphere and photoperiod (daylength, sunshine duration).
}
\usage{
ExtraTerrestrialRadiation(doy, latitude, sc=1367.7, FAO=F... |
b97230a2daf89f75bd3a73a68d5939ffa509ece4 | 0ea2d1c3642b5859151f6a237943ceff31122fc1 | /tests/testthat/setup.R | 923fdb031e48a1e70450e17374e7eda25e4ca673 | [
"MIT"
] | permissive | ropensci/rb3 | 1d6e1eee091a3783993d210177e597963534f30a | 41235da13782ffb78899a0f3a2e2cbc7b0f13c6d | refs/heads/main | 2023-05-24T03:31:37.003326 | 2023-04-14T09:09:16 | 2023-04-14T09:09:16 | 28,033,021 | 5 | 3 | NOASSERTION | 2023-09-11T00:00:47 | 2014-12-15T11:04:39 | R | UTF-8 | R | false | false | 237 | r | setup.R | local_cachedir <- file.path(tempdir(), "rb3-cache")
withr::defer(unlink(local_cachedir, recursive = TRUE), teardown_env())
op <- options(
rb3.cachedir = local_cachedir,
rb3.silent = TRUE
)
withr::defer(options(op), teardown_env())
|
944e111116d6da5422fe0a47ae5a88318e03e4a2 | 987b70c629be0536922bf60482ed33a299d32013 | /package_build_nolibraries.R | 784b6d7b28fdd84b20469a6081943787766ebb7a | [] | no_license | vppatil/GEISHA_phytoplankton | 90530dc590110af4f1f9624a37dbd1a11f227e2b | 33b371cf1feb444ce9a02ad5e6c4cc66ce8a7a86 | refs/heads/master | 2023-04-13T15:00:06.243178 | 2020-10-06T07:05:45 | 2020-10-06T07:05:45 | 120,331,556 | 1 | 3 | null | 2018-11-01T22:40:35 | 2018-02-05T16:34:45 | R | UTF-8 | R | false | false | 2,487 | r | package_build_nolibraries.R | ###############################################################################
# package creation & maintenance file
# M.J. Lajeunesse, R course 7/5/16
###############################################################################
# define the package name
thePackage <- "algaeClassify"
# set directory to the packag... |
c1400d0701c791db162caa29c5586fc39a37a3d0 | 897c8c4ba631a410e3b711e5a18108e3e839e03a | /tests/testthat/testConvert.R | 8de407f347f662d35774e1b313240325454fd218 | [] | no_license | llaniewski/rtemplate | 32539cffcccfd233f3af76b768f61c13e507e561 | 0bc32b4050af9bb2c2c8d6d5eb6e804b51c0307e | refs/heads/master | 2023-08-16T21:38:46.068984 | 2023-08-07T03:24:48 | 2023-08-07T03:24:48 | 25,915,678 | 1 | 3 | null | 2023-08-06T14:10:05 | 2014-10-29T10:29:44 | R | UTF-8 | R | false | false | 1,405 | r | testConvert.R | library(rtemplate)
context("RT tests")
RTeval = function(x) {
exp = RTconvert(x)
exp = parse(text=exp)
con = textConnection("str","w")
sink(con)
ret = try(eval(exp),silent=TRUE)
sink()
close(con)
if ("try-error" %in% class(ret)) stop(ret)
str
}
test_that("Sanity 0", {
expect_equal(RTeval("a"),"a"... |
b0fa47023e28f092b995b866999a3dde4444f2ee | a2e5317944ad8050c0820d9380421947da919d08 | /NeuralNet.R | ddde97f5eb4b192f04bbe48d7f215011d0603b88 | [] | no_license | furkangursoy/MIS331-Fall18 | cc9523bf8f77ace760e9417a17497512d04ac33f | 20542d2452ea1322987e698e68b51b9c17cb423d | refs/heads/master | 2021-06-27T01:34:38.882014 | 2020-10-07T09:04:58 | 2020-10-07T09:04:58 | 150,029,914 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,362 | r | NeuralNet.R | #install.packages("neuralnet")
library(neuralnet)
setwd("C:/Users/admin2/Desktop/lab") #set the working directory
# read the dataset and split it into train and test sets #
auto.df <- read.table("autompg1.csv", header=TRUE, sep=",")
auto.df$isUSA <- ifelse(auto.df$origin == 1, 1, 0) #differently from the pre... |
aa43c554709b986581a6a3aabd25df66bce30573 | 6d6b25fbdcb4a0c03150c21fa10714e05b6a857f | /code/utils.R | 69886f174e597e1075b43036075f6e7c0d3b894e | [] | no_license | jtleek/replication_paper | 997109b37aa70c0c7ae7a2f0d7e354a61c4176fd | 02a05e209a62f6174c3a83c19ff7aa1362fe1374 | refs/heads/gh-pages | 2020-03-30T00:13:48.000074 | 2016-02-08T20:44:16 | 2016-02-08T20:44:16 | 41,891,336 | 3 | 7 | null | 2016-02-08T20:44:25 | 2015-09-04T00:59:36 | HTML | UTF-8 | R | false | false | 1,843 | r | utils.R | gg.theme <- function(type=c("clean","noax")[1],useArial = F, afmPATH="~/Dropbox"){
require(ggplot2)
if(useArial){
set.Arial(afmPATH)
bf_font="Arial"
} else {bf_font="Helvetica"}
switch(type,
clean = theme_bw(base_size = 16, base_family=bf_font) +
theme(axis.text.x = element_te... |
53d4fb94476c1a0ef80a9c5b2c40a01a4b4a62dc | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/DLASSO/examples/plot.dlasso.Rd.R | 9a59dbb8fbfedafa04d63d3246d6cff28e7d9988 | [] | 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 | 146 | r | plot.dlasso.Rd.R | library(DLASSO)
### Name: plot.dlasso
### Title: Plot method for dlasso objects
### Aliases: plot.dlasso
### ** Examples
example(dlasso)
|
9dc31399fbe27ed552ff65d5e03fe83a23a2050b | 3b4487365133323379bcd64a98db7a46e36a1a15 | /examples/SigNetA/examplecode/uploadbiofile.R | d5fec41577a07c5cb00bf3549aa85e423b840b81 | [
"Apache-2.0"
] | permissive | Saadman/r-cytoscape.js.2 | e998c0472372a59a4261e443a35182f99e005176 | 5f07f20c48e13b0b85f42333e7cb5843489ef15b | refs/heads/master | 2021-01-17T16:00:27.917867 | 2017-02-23T15:52:52 | 2017-02-23T15:52:52 | 82,944,548 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,307 | r | uploadbiofile.R | output$contents <- renderPrint({
# input$file1 will be NULL initially. After the user selects
# and uploads a file, it will be a data frame with 'name',
# 'size', 'type', and 'datapath' columns. The 'datapath'
# column will contain the local filenames where the data can
# be found.
inFile <- input$file1
... |
2014559011d7734636f595c10ea0f385b8bc4359 | 31a9ec3a9ebfbc6f9667e6233ebef7abeefc5113 | /run_analysis.R | f5d21e9c1b9eb3c85e5060864ebd526e487936a9 | [] | no_license | haurhi/Getting-Cleaning-Data | 2d1691eabe5bf43218528f0ebc97a465077a89f7 | 8836a4a400e603dcb319950843a4e7f3dced9959 | refs/heads/master | 2016-09-10T01:05:44.652146 | 2015-02-12T15:14:20 | 2015-02-12T15:14:20 | 29,330,823 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,968 | r | run_analysis.R | library(dplyr)
## Read filepaths and variable names
test_path <- 'UCI HAR Dataset/test'
train_path <- 'UCI HAR Dataset/train'
test_set <- list.files(test_path)
train_set <- list.files(train_path)
feature <- read.table('UCI HAR Dataset/features.txt', stringsAsFactors = F)
## Test datasets
subject_test <- read.table(pa... |
b419e9e336a67857f92bfe9d5fba0e3c2b87732a | 5d0bc9fa9c48a468d115e9930f5eac66a0764789 | /man/Balsawood.Rd | 5d1ae91a4f9e8a4cdd69e63d133b4bcd03fb77aa | [] | no_license | rpruim/ISIwithR | a48aac902c9a25b857d2fd9c81cb2fc0eb0e848e | 7703172a2d854516348267c87319ace046508eef | refs/heads/master | 2020-04-15T20:36:55.171770 | 2015-05-21T09:20:21 | 2015-05-21T09:20:21 | 21,158,247 | 5 | 2 | null | null | null | null | UTF-8 | R | false | false | 354 | rd | Balsawood.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{Balsawood}
\alias{Balsawood}
\title{Balsawood}
\format{A dataset with 44 observations on the following 2 variables.
\describe{
\item{treatment}{character}
\item{elasticity}{numeric}
}}
\description{... |
f03771a1a9ed6ef9a828483942b796195feca8a9 | bd02199b6c185c241aa07e731340100a9eea24e7 | /LexicalDiversity.R | 0728ac09bba37a11edac44cc6c1da95c7cc1b991 | [] | no_license | WernerDJ/Patents-and-Lexical-diversity | 17f418e106cb66f44c46a1f5d3ea1ec1ce955be2 | 4d62c9571ff5bc6e165e42c1a660614fbde698be | refs/heads/master | 2021-08-29T10:28:07.272522 | 2017-11-20T09:38:33 | 2017-11-20T09:38:33 | 110,742,998 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,593 | r | LexicalDiversity.R | #Text minig the patent abstracts
#
# First load the package quanteda
#
library(quanteda)
#
# load the data from the dierectory where it was saved (remember to change the \ in the path string by / if you copy paste the path)
# Cluster sampling was used to avoid over representation from more prolifict patenting co... |
8b603d555d7430917743f0bb4ac5bc645066e722 | b07124a50c70ec5a396ead4e13d033f79220a63c | /man/ejscreen.download.local.Rd | 8bfca5513bcfe47f60bcf2b6f646b007a9833b7b | [
"MIT"
] | permissive | rtoole13/EJSCREENBatch | ff2e04d5b55b1f4e807fd00d69cdb3c4e480d22a | 0f9adfbf42f69001fc4c6ccf30bb1a31e67319d5 | refs/heads/main | 2023-06-20T09:57:34.517801 | 2021-07-19T04:56:07 | 2021-07-19T04:56:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 595 | rd | ejscreen.download.local.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ejscreen.download.gdb.R
\name{ejscreen.download.local}
\alias{ejscreen.download.local}
\title{EJSCREEN data download}
\usage{
ejscreen.download.local(
folder = "EJSCREEN data",
file,
yr = NULL,
ftpurlbase = "https://gaftp.epa.gov/EJSC... |
8c8293f76a7dc568f6abeac4d1c93236bba441fa | a845065b2b31e2fde530ad5eb192780340c5f481 | /man/ex16.41.Rd | 0d90df32c29ab945d4166bbc76724e030adbb6f9 | [] | no_license | cran/Devore7 | 319c8a7bd4daca50ba1b7f7acdd53e40957a55bb | 9592edf605e0a7927bdce1e0081796b183b1b5ad | refs/heads/master | 2021-01-13T16:10:38.867717 | 2014-03-25T00:00:00 | 2014-03-25T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 748 | rd | ex16.41.Rd | \name{ex16.41}
\alias{ex16.41}
\docType{data}
\title{R Data set: ex16.41}
\description{
The \code{ex16.41} data frame has 22 rows and 3 columns.
}
\usage{data(ex16.41)}
\format{
A data frame with 22 observations on the following 3 variables.
\describe{
\item{\code{C1}}{a numeric vector}
\item{\code{C2}}{a n... |
95a4f6921a6878435d8bd00f1c8b082652dd1908 | 3514107ceb718704aafba74847cc805a8115a9b8 | /man/stage_1_evaluation.Rd | f64d26ec66e95b487cc9a74aa283fef3ec1b5a86 | [] | no_license | cran/GSED | b85061bdef113c3d30e07adbd63c7201ba668b56 | f49ef8817f794872e792e3b3703e70b0739e073c | refs/heads/master | 2021-01-12T17:32:10.560665 | 2019-08-28T10:20:02 | 2019-08-28T10:20:02 | 71,594,112 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,336 | rd | stage_1_evaluation.Rd | \name{stage_1_evaluation}
\alias{stage_1_evaluation}
\title{Stage 1-evaluation step of GSED}
\description{
\code{stage_1_evaluation} is used to evaluate the efficacy of the subgroup selected at the end of the first stage of GSED.
}
\usage{
stage_1_evaluation(keep, Z_1j, f, u)
}
\arguments{
\... |
34584b5efe8cdf5156f8af87c6de4d3f7d9ea501 | d443d4c8b323b61c157fae64ca22610ab836823a | /code/mergeNewStormExporter.R | 65c5d7dadd5674a6c8093cec9b56f7e4d45e88e5 | [] | no_license | zeyuecon/cycloneDave | 4fef296dd35dddffafad3c70cf8eb0acad7b1e3c | 4d3d79cfad69fc00ad6a8a0874749e316f8d757a | refs/heads/master | 2020-04-02T19:55:51.060231 | 2016-07-06T00:16:54 | 2016-07-06T00:16:54 | 61,346,842 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,532 | r | mergeNewStormExporter.R |
setwd("/Volumes/SAMSUNG/DataSharing")
all.country<-read.dta13("Storm_measures_1990_2014_all_countries.dta")
colnames(all.country)[13]<-"iso"
storm.country<-read.dta13("Storm_measures_1990_2014_storm_countries.dta")
export<-read.dta13("export.dta")
export$values<-log(as.numeric(as.character(export$value)))
# gene... |
aef6997cd60a5293220ccaf21b29aea04cf7c4a3 | 3bdfe2471525cd05f04156fa465471a44950c626 | /Training a self-driving car through supervised learning/UnityProject_Continuous/NN_log.R | 110c4b0e94179f49935abf86b48d6212a7405d34 | [] | no_license | xavi2525/autonomouscar.github.io | 386185d748d4d2fbe1d0690601b1d19ed8273a48 | 5c707cbce2a34d631a3e5cdfba1394dfd9c6a041 | refs/heads/master | 2020-06-17T05:47:01.937277 | 2019-07-08T13:32:13 | 2019-07-08T13:32:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 846 | r | NN_log.R | logdata <- read.csv('log.txt', header=F)
colnames(logdata)<- c("sensor0","sensor1","sensor2","sensor3","sensor4","turn")
#split train test
index <- sample(1:nrow(logdata),round(0.75*nrow(logdata)))
train_ <- logdata[index,]
test_ <- logdata[-index,]
#train
library(neuralnet)
n <- names(train_)
f <- as.formula(turn ~ se... |
3df132f5b55af59fcf6a381ed2a73e7a984758c0 | 61e9c7564b6581941afbaf3e4a0296ee22cd34dd | /transform.R | 124ca7d330f5765e5ebfa63fe62b43407c213001 | [] | no_license | mitchthorson/r-data-science | 98954823ae74bd0a7717cf8810509fa7c4996833 | 80d8a0967cd37087289498e34b6fbab881da7e01 | refs/heads/master | 2020-04-05T18:40:23.001475 | 2018-11-12T01:03:21 | 2018-11-12T01:03:21 | 157,108,266 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,268 | r | transform.R | library(nycflights13)
library(tidyverse)
jan_first <- filter(flights, month == 1, day == 1)
#delayed more than two hours
(delayed_two_hrs <- filter(flights, arr_delay >= 120))
#flew to houston
(to_houston <- filter(flights, dest == "HOU" | dest == "IAH"))
#United, Delta or American
(major_airlines <- filter(flights... |
0d57e1aed19de3ce9931bdcb1d02a788c922247e | fc8b4f69821d433a3a5976a6b772dfb38eae31bd | /man/estdiweibull.Rd | aceeefc4d35d0129517b9970396efc81848e60d6 | [] | no_license | cran/DiscreteInverseWeibull | 73ee734dc9b5b4653f68fa7b571bb6d3faa14f96 | d43d2c6765383f73a90e75c762c0be131b8d61ac | refs/heads/master | 2021-01-18T21:46:15.030737 | 2016-05-01T00:44:40 | 2016-05-01T00:44:40 | 17,678,830 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,812 | rd | estdiweibull.Rd | \name{estdiweibull}
\alias{estdiweibull}
\title{
Estimation of parameters
}
\description{
Sample estimation of the parameters of the discrete inverse Weibull distribution
}
\usage{
estdiweibull(x, method="P", control=list())
}
\arguments{
\item{x}{
a vector of sample values
}
\item{method}{
the esti... |
2aa7bbac1e546ea2e6a3324ec86c590557b065c1 | c48de8038decdaaa7375a102ee248b94e699bbd1 | /man/fullFact.Rd | 40ea0f4d9961143ace4ee19d93badf2a1bf28aa4 | [] | no_license | DBoegner/userfriendlyscience | 717f4452fac8d99da59481398267df8dd45aee71 | 0d670e706d40cc9f565260696ab181f65e483378 | refs/heads/master | 2023-09-04T11:03:48.681323 | 2018-09-24T17:30:03 | 2018-09-24T17:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,052 | rd | fullFact.Rd | \name{fullFact}
\alias{fullFact}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
fullFact
}
\description{
This function provides a userfriendly interface to a number of advanced factor
analysis functions in the \code{\link{psych}} package.
}
\usage{
fullFact(dat = NULL, items = NULL, r... |
498a757305c2046e244dc9f95d3ec78cff35175a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/mombf/examples/mombf.Rd.R | fbe3ba17af90159a30a60fbdeb1dd3b810a521ef | [] | 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 | 927 | r | mombf.Rd.R | library(mombf)
### Name: mombf
### Title: Moment and inverse moment Bayes factors for linear models.
### Aliases: mombf mombf.lm imombf imombf.lm zellnerbf zellnerbf.lm
### Keywords: models htest
### ** Examples
##compute Bayes factor for Hald's data
data(hald)
lm1 <- lm(hald[,1] ~ hald[,2] + hald[,3] + hald[,4] + ... |
83c5aad3c4677c46c53485264492d0bc9a0563e3 | 26dd2e27dc53c82ab3d48f6eaf78e2c330dfb1da | /run_analysis.R | bae546d751e54520af9e03143619006817283c3a | [] | no_license | cbeaudrie/Getting-and-Cleaning-Data-course-project | 8dfc8c7c754130acf59c48e9ca9b7f34cc156868 | 7b793b881b27cfe3c74390d76a5aff7d692ae495 | refs/heads/master | 2021-09-08T01:36:02.367977 | 2018-03-05T10:17:28 | 2018-03-05T10:17:28 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,685 | r | run_analysis.R | #run_analysis.r
#upload tada that should be cleaned
url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(url, "courseprojectdata.zip")
# Final project of Getting and Cleaning data course
setwd("~/edu/Getting and Cleaning data/course_project/data")
#in... |
f31af8fff74aae24cb6d9ff9291b6b91fe801b97 | b5821b891a69e18e9d7ed96267ff598463c4e9e7 | /Chapter08/codeCluster.R | 480274e5fdd822a47fb42225a53fa44ff4f0012c | [
"MIT"
] | permissive | PacktPublishing/Mastering-Machine-Learning-with-R-Second-Edition | 2284b6e78f2335b3da0bf41a36a3c139d596d71d | 7e4eda202c920890ecf08bb0bb77a7f08a5a7708 | refs/heads/master | 2023-02-14T16:22:27.925602 | 2023-01-30T09:38:55 | 2023-01-30T09:38:55 | 88,627,022 | 34 | 37 | null | null | null | null | UTF-8 | R | false | false | 2,682 | r | codeCluster.R | library(cluster) #conduct cluster analysis
library(compareGroups) #build descriptive statistic tables
library(HDclassif) #contains the dataset
library(NbClust) #cluster validity measures
library(sparcl) #colored dendrogram
data(wine)
str(wine)
names(wine) <- c("Class", "Alcohol", "MalicAcid", "Ash", "Alk_ash",
... |
931f5f65ec0a53fae546ddf23d45f4a2919c80ff | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/pointdexter/examples/community_areas_spdf.Rd.R | 63e3b53fdea0aebaf615fadf788e9b7736ab4ce3 | [] | 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 | 489 | r | community_areas_spdf.Rd.R | library(pointdexter)
### Name: community_areas_spdf
### Title: A SpatialPolygonsDataFrame of Chicago's 77 community areas
### Aliases: community_areas_spdf
### Keywords: datasets
### ** Examples
# load necessary packages ----
library(sp)
# load necessary data ----
data("community_areas_spdf")
# plot all 77 commun... |
954daa28143fa4c7ed8ae7e87cd472cac15c50cc | 243afbf525ea85bccb3b707dc0e043d954cc8d53 | /src/Site_tree_hierarchical.R | b496069e9133c930ceeced3482ac02193c2bc4c5 | [] | no_license | avahoffman/blue-grama-diversity | e9e26943a77b51bf6a14c062827de4a47a235b7b | 5fb3a76ad3be76545ad758a19969880735633815 | refs/heads/master | 2020-04-20T13:41:10.389578 | 2020-03-17T15:46:15 | 2020-03-17T15:46:15 | 132,947,858 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,686 | r | Site_tree_hierarchical.R | ###########################################################################################
##
## Create phlogenetic trees for genomic data, both total sites and regional
##
###########################################################################################
# Load libraries
library(adegenet) ## deal with genind... |
da1e4b2f331daf95087f59001fee3bcced47d324 | ba3e338caea37535f443dca9bc814ec32b7dcac6 | /Reg_bed_to_bw.R | 1829841ea1139f35e834e3579997f72029958aae | [] | no_license | elsasserlab/G4 | 7b77d186c85212ac4db9ba8eb6c033e1379f50c1 | d355e3284176b8504839a004c4971213919de1f7 | refs/heads/main | 2023-04-15T16:54:12.223390 | 2022-07-23T17:47:23 | 2022-07-23T17:47:23 | 360,643,618 | 1 | 3 | null | null | null | null | UTF-8 | R | false | false | 2,590 | r | Reg_bed_to_bw.R | library(rtracklayer)
library(GenomicRanges)
readPQS <- function(file_path)
{
tmp <- read.table(file_path,
header = F, sep = '\t',
col.names = c('seqnames', 'start', 'end', 'name', 'length', 'strand', 'seq')
)
tmp$seqnames <- gsub('(.*)\\sN.*', '\\1', tmp$seqnames)
tm... |
9b5a14aada930fe8441b6cf628acfe4822b63bae | 9beb6005d6581bb534b6eef49ed82296499518a7 | /15_Faceting_Mas_Graficas_R.R | 9663fc56bb8adcd4ac158c4f24ecfde48ceaf9ee | [] | no_license | BidartMG/R-Mas-Scripts-Practicas | 68ca1c635d235cfcbe932afdba4e3235299cc6e8 | af53bff823d372206cfcc6b51867b1d25a6ef980 | refs/heads/master | 2022-12-25T06:52:48.642663 | 2020-09-29T00:22:18 | 2020-09-29T00:22:18 | 297,231,643 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 1,068 | r | 15_Faceting_Mas_Graficas_R.R | library(tidyverse)
library(ggplot2)
library(dplyr)
# cambio por leyenda a continentes
gapminder %>%
filter(year == 2007) %>%
ggplot(aes(x = gdpPercap,
y = lifeExp,
color = continent)) +
geom_point() +
labs(color = 'LEYENDA')
# faceting muestra en 5 gráficas
gapminder %>%
filter(... |
3668325202b03092d22174abc54cc8a43719e0f9 | d3ded694353a2023d96e980189772e1114ef648c | /R Studio Labs/Test 1.R | ce3a0616306880a3425ba37f1574774fdcf5435f | [] | no_license | speed785/R-Projects | 6374ad8512c33daa0f688983615e60492bab64af | 9a142a513a00c0955ca6c1ef94a1b51990e36ba7 | refs/heads/master | 2020-04-22T14:38:30.119102 | 2019-06-14T03:55:50 | 2019-06-14T03:55:50 | 170,450,777 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,183 | r | Test 1.R | # comments can be made using the #
2 + 2 #must equal 4 if not the universe exploded
#The [1] in brackets means that it's in the first position.
vectorA <- c(1,2,3,4,5,6)
vectorB <- c(7,8,9,10,11,12)
# ( <- ) the arrow is the operator
hist(vectorA)
hist(vectorB)
1:50 # This prints out a vector 1 through 50
d <- ... |
dc502e1fe4cc2d17622b75963e7c9257d6003c04 | 0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb | /cran/paws.security.identity/R/accessanalyzer_interfaces.R | 4912c41a8b40b214bd5042060184c0dd12922d7b | [
"Apache-2.0"
] | permissive | paws-r/paws | 196d42a2b9aca0e551a51ea5e6f34daca739591b | a689da2aee079391e100060524f6b973130f4e40 | refs/heads/main | 2023-08-18T00:33:48.538539 | 2023-08-09T09:31:24 | 2023-08-09T09:31:24 | 154,419,943 | 293 | 45 | NOASSERTION | 2023-09-14T15:31:32 | 2018-10-24T01:28:47 | R | UTF-8 | R | false | false | 45,689 | r | accessanalyzer_interfaces.R | # This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common populate
#' @include accessanalyzer_service.R
NULL
.accessanalyzer$apply_archive_rule_input <- function(...) {
args <- c(as.list(environment()), list(...))
shape <- structure(list(analyzerArn = structure(logical(0), tags = l... |
13f474f000bdcef0ec556aa68d910691612e9969 | 810b768094cff034dae61172abeecc33374a72f5 | /function/submit/train_4.R | 406600b3c95be6584773a147f8c31dd6a228d763 | [] | no_license | yahcong/diabetes | 1c0e7667b9385a0d0062515fa9de8d3056b797db | b5171dafcddd218174a701a964995ccc8aee4843 | refs/heads/master | 2021-05-12T17:18:53.932092 | 2018-01-18T04:09:26 | 2018-01-18T04:09:26 | 117,042,177 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,172 | r | train_4.R | rm(list=ls())
library(data.table)
setwd("F:/DataMining/R/diabetes")
load("data/output/local_data_select.rda")
local_data=local_data_select
library(mice)
md.pattern(local_data)
#划分训练集和测试集
sub <- sample(1:nrow(local_data_select),round(nrow(local_data_select)*0.7))
Training_Inner <- local_data_select[sub,]
Test_Inner <... |
185294bd24dbaf54fb1b44e1917f80d49dcb9e14 | a1c8c3488c4131c445c6f5e4fcb0cfa7fa9ddcc9 | /man/as.geojson.Rd | bc507ae4ec13ee088609a00afa97dfb09c880b38 | [
"MIT"
] | permissive | ropensci/chirps | 998124edbd8e2ed8b3034b6bcf7685dff63a97a5 | 72500a72ee1de48f048d6959d87ea5f7d70289b4 | refs/heads/master | 2023-05-24T01:28:34.605349 | 2023-01-06T11:38:27 | 2023-01-06T11:38:27 | 225,693,680 | 22 | 10 | NOASSERTION | 2021-09-20T08:20:09 | 2019-12-03T18:57:12 | R | UTF-8 | R | false | true | 1,709 | rd | as.geojson.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/as.geojson.R
\name{as.geojson}
\alias{as.geojson}
\alias{as.geojson.default}
\alias{as.geojson.sf}
\title{Methods to coerce geographical coordinates into a geojson polygon}
\usage{
as.geojson(lonlat, dist = 1e-05, nQuadSegs = 2L, ...)
\metho... |
42be3ead41386e7f4e61b38472798581240032fd | 96146580da01780fe539427e4b5c58f12d759e85 | /stat_piechart.r | c3ab948d77e38d5b3059e3a3c682cb5dfe49c9bd | [] | no_license | timothychoi/rcodes | a462e13ac1ed4ce4ffd1c6eb379c087a3b173754 | a6c3771740f8cde91d5ec1d168fe00d17b925b00 | refs/heads/master | 2020-04-17T04:12:45.780724 | 2019-01-17T12:10:45 | 2019-01-17T12:10:45 | 166,219,524 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 533 | r | stat_piechart.r | bloodtypes <- c("O", "O", "A", "A", "O", "B", "O", "B", "A", "O", "AB", "B", "A", "B", "AB", "O", "O", "A", "A", "O", "AB", "O", "A", "B", "A", "O", "A", "A", "O", "A", "O", "A", "O", "AB", "A", "O", "B", "A", "A", "O", "O", "O", "O", "A", "O", "O", "A", "O", "A", "O")
# Frequency
counts <-table(bloodtypes)
lbls <- n... |
54a960ba78ad6f278d8ffecccf0be1b12609ceb4 | d125c7eaeeaf2258637a91cdf344f48409fa927a | /R/data.R | f99820e042c9a405bb945b981e525c4eb7fe433d | [
"MIT"
] | permissive | KuldeepSJadon/climcropr | e9d36b48423a029013bed96362e3b6d916ab82eb | 67680d4568d367e022ad3bd34e88b78f60023b5e | refs/heads/master | 2020-05-25T22:58:19.185195 | 2018-02-12T08:40:37 | 2018-02-12T08:40:37 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 233 | r | data.R |
#'df_mirca
#'
#' \describe{
#' \item{mirca_code}{MIRCA2000 Crop Code}
#' \item{mirca_name}{Mirca Name in English, \emph{e.g.}, "Potatoes"}
#' \item{ecocrop_name}{ecocrop Name in English, \emph{e.g.}, "Potato"}
#' }
"df_mirca"
|
2036bc3c3209d6a8d307a55c82861ce4d1ba44bd | 3c7231d7e902c1a7dea015144cbdb280f16453f0 | /scripts/summarize_paired_vcf.R | 65e222b031d0a7229084d63a61cbc560b03f8143 | [
"MIT"
] | permissive | hhuang2018/WGS_analysis | 9532cf14e4793624ea7af6458127d29e6c24653c | a05d5bd90a4066fff951ebd993811edf3637d324 | refs/heads/master | 2021-03-22T05:00:45.458090 | 2018-09-30T02:00:45 | 2018-09-30T02:00:45 | 62,680,908 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,542 | r | summarize_paired_vcf.R | source('util.R', echo = FALSE)
load("../Data/GRCh38_gene_list.RData")
if (!require("vcfR", quietly=TRUE, warn.conflicts = FALSE)) {
install.packages("vcfR", dependencies = TRUE)
library("vcfR", verbose=F, warn.conflicts =F)
}
vcf_fp <- "../"
vcf_file <- "test_stats_DtoR.vcf"
vcf_info <- read.vcfR(paste0(vcf_fp,... |
bb83eb0959e47ee4c34c47a16eaa9b859e095552 | bbb57e538148adec3cb6e80c4eb7d9fc2fd3b079 | /code/gender.R | 5d1b67639a1412956d6247b6686993aaa5684ab3 | [] | no_license | amanjuna/patent_impact | 1d0690d0c6d91783e89f98af05a19cb7bc8ae11a | eec1278acb50f6e912ae2e1d3d82be4e290658af | refs/heads/master | 2022-12-19T15:27:42.958413 | 2020-10-04T06:28:42 | 2020-10-04T06:28:42 | 296,167,577 | 9 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,112 | r | gender.R | """
File: gender.R
Function utilizes the gender R package to detemine the gender for all first names in a dataframe.
"""
library(gender)
library(tidyverse)
get_gender <- function(df, var) {
"""
Params:
df - dataframe containing as columns var and pmid (pmid for each paper)
var - name of the column in the ... |
05db7bca5b9effd86b2d446b8b967fbaddc85e3f | 16b00705a7464228786d82c9fd1d4379468cd4f7 | /plot2.R | ddc70750e715ce6b3a21fc4cf8b923af83d19d8d | [] | no_license | muditsharma1234/Exploratory-Data-Analysis | 8e401fd5565a4a069b760289471da547aa66003f | 89d6701efa9a123fe953d1cb9f513a1d6260277d | refs/heads/master | 2021-08-30T21:48:17.025275 | 2017-12-19T14:58:36 | 2017-12-19T14:58:36 | 114,639,436 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 484 | r | plot2.R |
##PLOT 2
png(file.path(plot_dir,"plot2.png"),width=600,height=480)
plot(data_hh_required$DateTimeFormat, data_hh_required$Global_active_power,
type="l",
ylab = "Global Active Power (kilowatts)", xlab = "",
xlim=c(min(data_hh_required$DateTimeFormat),max(data_hh_required$DateTimeFormat)))
axi... |
fa14bacc8493efa25a57b0d37f3a988836878d0f | dd4ffdf2ce845d69b1690e689f7d38576289e279 | /test-get-stability-paths.R | f872757f20a486fc093bece83e70cb6e2edc4dce | [] | no_license | fort-w2021/stability-ex-lisa-wm | 3a155f940f3569eb6f04bcc43cd2b5ec0d093347 | 1b042789fa6f0cdf7603385d7121d79239d55884 | refs/heads/main | 2023-02-26T10:00:55.959292 | 2021-01-27T19:05:10 | 2021-01-27T19:05:10 | 317,600,265 | 0 | 0 | null | 2021-02-04T11:11:46 | 2020-12-01T16:23:44 | R | UTF-8 | R | false | false | 539 | r | test-get-stability-paths.R | # ---- test-get-stability-paths ----
library(MASS)
# Dieses package ist nur noch in archivierten Versionen verfügbar, leider:
# remotes::install_version("ElemStatLearn")
data(prostate, package = "ElemStatLearn")
data <- prostate
max_formula <- lpsa ~ (. - train)
model <- leaps::regsubsets(max_formula,
... |
1fc93781ac49f89caf2be7b88ba29829e4bc298a | 1957338935d192aeb0b9a7b2e9c36bc497dfa9d7 | /plot3.R | 95c833b9c9121b4ccef3a291586ef860574b785e | [] | no_license | lindaholderwho/Exploratory-Data-Analysis-course-project-2 | 7bba82bd649ec88c186deeccf45e28278ad8d836 | b8ad97448ff4c59f08697bb120ef01f7328dd151 | refs/heads/master | 2020-03-20T20:23:03.774595 | 2018-06-17T20:28:37 | 2018-06-17T20:28:37 | 137,684,661 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 577 | r | plot3.R | ## Load datas:
NEI <- readRDS("G:\\data science\\course 4\\assignment\\summarySCC_PM25.rds")
SCC <- readRDS("G:\\data science\\course 4\\assignment\\Source_Classification_Code.rds")
Bal<-subset(NEI,fips=="24510")
total_emission_Bal<-aggregate(Emissions~year+type,data=Bal,sum)
g<-ggplot(data=total_emission_Bal,ae... |
eea7d73de6f26fd2c0ac9686c2beecf94a4d23e5 | 84eb18fbde5ce6ca6347f7ab7eb4b017b633feb9 | /lib/Rcolortable.r | acf257fb36d7dc1985736f15dd5153ef4867234c | [] | no_license | stakahama/libPy | 8202a6fd793416c748b71d4707280e79466309f9 | 0e00553d6959c6485e1c1a111c2080d5e22eca7b | refs/heads/master | 2021-05-28T18:59:57.985115 | 2014-07-02T11:58:02 | 2014-07-02T11:58:02 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 117 | r | Rcolortable.r | colortable <- `rownames<-`(cbind(t(col2rgb(colors()))/255,alpha=1),colors())
write.csv(colortable,"Rcolortable.csv")
|
a0c69459a7edef06542144fcc09609938b9370b8 | 47a8dff9177da5f79cc602c6d7842c0ec0854484 | /man/ElbowPlot.Rd | 9af853894b256045d190ca7ce1e7ebedfe73966c | [
"MIT"
] | permissive | satijalab/seurat | 8949973cc7026d3115ebece016fca16b4f67b06c | 763259d05991d40721dee99c9919ec6d4491d15e | refs/heads/master | 2023-09-01T07:58:33.052836 | 2022-12-05T22:49:37 | 2022-12-05T22:49:37 | 35,927,665 | 2,057 | 1,049 | NOASSERTION | 2023-09-01T19:26:02 | 2015-05-20T05:23:02 | R | UTF-8 | R | false | true | 800 | rd | ElbowPlot.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualization.R
\name{ElbowPlot}
\alias{ElbowPlot}
\title{Quickly Pick Relevant Dimensions}
\usage{
ElbowPlot(object, ndims = 20, reduction = "pca")
}
\arguments{
\item{object}{Seurat object}
\item{ndims}{Number of dimensions to plot standar... |
169a6224f3e9d09495ec61e21f026ad6d716a208 | d068156778a636d7f60c0c6950d1d6520b8b01d8 | /Project2-BankCreditCardDefaultPrediction/Bank Credit Card Default Prediction.R | 9cc2e44cdf2a874846bb41354add8294e8dd45a1 | [
"Apache-2.0"
] | permissive | imkushwaha/Data_Science_Project_Portfolio | 9ee970743969248342e4bc3d4fb118950c7e91a8 | 55dbd9ca4dd23a9d1928fdb7d56d98f8c6a6d264 | refs/heads/master | 2023-06-10T09:32:57.672165 | 2021-06-24T07:34:45 | 2021-06-24T07:34:45 | 323,677,622 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,597 | r | Bank Credit Card Default Prediction.R | #
#
# ****Bank Credit Card Default Prediction****
#
#
# Problem Statement
#
# The banks with the invent of credit card were more focused on the number of customers
# using their credit service but the drawback of them not being able to pay back the credit
# in time was... |
c66cada508f733590c14db6a82f7bfe0a8a84a51 | 2b98b47f51bc4c76f5646ee9077c3bd9144d748a | /R/data.R | c66d62a009da3b2731cc78fae84bff83c2fcd524 | [
"MIT"
] | permissive | nickreich/scoringutils | 4429a04d7397ff6b4ae2f8f9993b2afd12d9e61a | e42bf3ecacc82549f8e00d039532519b929d7713 | refs/heads/master | 2023-02-10T04:08:56.072567 | 2021-01-06T17:42:00 | 2021-01-06T17:42:00 | 318,857,163 | 0 | 0 | NOASSERTION | 2020-12-05T18:12:46 | 2020-12-05T18:12:45 | null | UTF-8 | R | false | false | 4,410 | r | data.R | #' Binary Example Data
#'
#' A toy dataset for a probability forecast of a binary outcome variable
#'
#' @format A data.table with 120 rows and 5 variables:
#' \describe{
#' \item{id}{unique identifier for true observed values}
#' \item{true_value}{true observed values}
#' \item{model}{name of the model that gene... |
4d87df739dd37ece5f9e15dacd812a606aba8bcc | 58f991069ca784990717c0efc802a6acf8e62c11 | /man/fisherExact.Rd | ff23375ac4e0cc6dfebe7d2889ea07dfae40e819 | [] | no_license | matthewcarlucci/DiscoRhythm | 5055e5c5085a673da371d57acbb18cfca990bb14 | a0d23a818093278663313e707e86127348e3bf2e | refs/heads/master | 2022-04-28T07:44:42.765988 | 2022-03-07T22:28:37 | 2022-03-07T22:28:37 | 179,596,217 | 10 | 4 | null | 2019-08-09T13:52:32 | 2019-04-05T00:21:05 | R | UTF-8 | R | false | true | 377 | rd | fisherExact.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stats.R
\name{fisherExact}
\alias{fisherExact}
\title{Extract key values from stats::fisher.test results}
\usage{
fisherExact(var1, var2)
}
\value{
modified output of \link[stats]{fisher.test}
}
\description{
Set p-values of 0 to < 2.2e-16 an... |
007c7938d951be3e270e0885ec874dff6b0c4484 | 19e3dad991d3a507dbddd70391ae26fcf5262e2d | /Projects/Colin/Gene_Queries/Methylation_Extract.R | 43157d233c923b3369f669ce46de3838f073acd8 | [] | no_license | AndrewSkelton/Old-Code | be1f967e50d5c3ceaa32886c1b950dc439f56c88 | d518f70a6d615bea5bc903ee0183b24a251d0e36 | refs/heads/master | 2021-01-20T15:53:54.745063 | 2016-06-27T09:54:13 | 2016-06-27T09:54:13 | 62,044,885 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,457 | r | Methylation_Extract.R | #-------------------------------------------------------------------------------------------#
# Author : Andrew J Skelton |
# Language : R |
# Study : MCF2L Data from 450K ... |
16eea0218600fc699e427f36d7f89517f68c3fa4 | b547ef1ced687e9fb7b7ae08c914b199011460f0 | /tests/testthat/test-selectormodule.R | 0961bccce16f7fdaa0435b601cd117bd2bc42bdd | [] | no_license | cselefendi/marineAppTested | 69c29690d7345587398ea97d651e9125bfe381a8 | 3e3cdadbf4c258ca4c4576b74011ceb5d183ac51 | refs/heads/master | 2023-04-29T05:08:23.533465 | 2021-05-21T10:10:30 | 2021-05-21T10:10:30 | 369,482,278 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,357 | r | test-selectormodule.R | context("selector module")
# config tests
type_sample <- c('Tug', 'Tanker', 'Other')
please_select_sample <- "Please select"
testServer(
selectorServer,
args = list(temp_label = 'LABEL',
please_select = please_select_sample,
all_choices = type_sample,
selected_value ... |
8f8040666d618c14e04050cf88541a834f28e7ec | 99397fb5516c425df9a41335849097e78b1a5727 | /RIPPER.R | 49305992e3d5a75afd5ede70aa77a3b1273444c7 | [] | no_license | ChandanVerma/General-R-Scripts | 92fa31afdeb5a8d672b7b5020ea6718bfe69d47f | 0a05baf400a3d54b26fa6f06caa9f3da1047bd79 | refs/heads/master | 2020-06-29T03:38:10.737810 | 2017-07-10T09:07:55 | 2017-07-10T09:07:55 | 74,449,649 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 325 | r | RIPPER.R | rm(list = ls())
mushrooms <- read.csv('mushrooms.csv', stringsAsFactors = T)
str(mushrooms)
mushrooms$veil_type<- NULL
install.packages('RWeka')
library(RWeka)
mushroom_1R <- OneR(type ~., data = mushrooms)
summary(mushroom_1R)
mushrooms_Jrip <- JRip(type~., data = mushrooms)
summary((mushrooms_Jri... |
faf224e0fbe6ab3586a65ddbc255ad5f4cbe4c9b | b652323ddbe8a06f0cbd219477daf11d841fb034 | /man/preference.Rd | 4cedbcf00ac727fd3244358dbe036eeae76580a6 | [] | no_license | laynelv/isenso | 9112047f41591f62c28da21a027f9eb0e0edb306 | 73137eca2707dda60ab991d85210f85177f3dc74 | refs/heads/master | 2020-12-25T11:06:14.396441 | 2016-07-27T05:23:37 | 2016-07-27T05:23:37 | 61,980,879 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,070 | rd | preference.Rd | \name{preference}
\alias{preference}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ consumer preference
%% ~~function to do ... ~~
}
\description{
1. Draw a barplot to show which product is the faverate of consummers.compute the means of consummers liking scores,then do LSD multiple comparatio... |
2d96da7b3dd102a78732b6b235551c3cc5a5394e | c4f065fcdc73605b9944b69bc981b339d8356ef4 | /tests/testthat/test_compare_thresholds.R | ba85d09bbe2091a0c5b1a560c01a21047bf27dae | [] | no_license | saskiaotto/INDperform | a9c566a774bdfd58480e0493eb564761abef8621 | dffa5a2af4f2a10ba53e2622da9e540fd9dbcdde | refs/heads/master | 2021-11-11T11:26:54.013687 | 2021-10-23T19:13:44 | 2021-10-23T19:13:44 | 106,686,773 | 7 | 2 | null | null | null | null | UTF-8 | R | false | false | 740 | r | test_compare_thresholds.R | context("test thresh_gam")
press2 <- ind_init_ex$press_train[[1]]
nthd <- length(press2)
lower <- stats::quantile(press2, prob = 0.2, na.rm = TRUE)
upper <- stats::quantile(press2, prob = 0.8, na.rm = TRUE)
t_val <- seq(from = lower, to = upper, by = (upper -
lower)/nthd) #steps 'even'
test <- compare_thresholds(t_... |
6db5caa8c216637a1453f2605951470f5057c45a | 3faf413c32f2ebd71d35ccb00e7212e636ea1d16 | /code/calculate_mutation_profiles.R | 1caf6e4e79da355d6dd528884cc45beff3610713 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | daniel-wells/somatic-selection | bdbd1a19bebbb04923cf31a04420748bdb74f82d | 98bcfed738feeed4a81635ba4105b5f450663d7a | refs/heads/master | 2021-03-24T10:32:04.716439 | 2019-10-16T10:26:45 | 2019-10-16T10:26:45 | 50,685,074 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,640 | r | calculate_mutation_profiles.R | # Start writing to an output file
logfile <- file(paste("logs/calculate_mutation_profiles.R.log",format(Sys.time(), "%Y-%m-%d.%H-%M-%S"), "txt", sep = "."))
sink(logfile)
sink(logfile, type="message")
source("code/functions.R")
# source("http://bioconductor.org/biocLite.R")
# biocLite("SomaticSignatures")
# biocLite(... |
0d49547eace8d1c0b9a0ef65fee6427ed6911aea | 4f7175f4610cdaddeb499b3b2a1428cf806af64a | /R/tables-phase1-cost-estimate.R | ecec9bccabe32190efb25a08a78870a765587a9a | [
"Apache-2.0"
] | permissive | NewGraphEnvironment/fish_passage_elk_2020_reporting_cwf | adcfcda949a928363dac0180eda217caab01e767 | 6c07e4941e6ba596cadc52f9c87a97a518f61b24 | refs/heads/master | 2023-07-14T15:02:36.414050 | 2021-08-26T19:12:14 | 2021-08-26T19:12:14 | 321,383,083 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,934 | r | tables-phase1-cost-estimate.R | source('R/packages.R')
source('R/functions.R')
source('R/tables.R')
source('R/tables-phase2.R')
## we need to screen out the crossings that are not matched well
# make_tab_cost_est_phase1 <- function(dat = pscis){
bcfishpass_rd <- bcfishpass_phase2 %>%
select(pscis_crossing_id, my_crossing_reference, crossing_id, d... |
8996782b09c68657fd53bb21f2f26ee80acc0513 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/varbvs/examples/summary.varbvs.Rd.R | b1a879e1839b9302b648a2cd26ec7dfb0821a58b | [] | 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 | 225 | r | summary.varbvs.Rd.R | library(varbvs)
### Name: summary.varbvs,print.summary.varbvs
### Title: Summarize a fitted variable selection model.
### Aliases: summary.varbvs print.summary.varbvs
### ** Examples
# See help(varbvs) for examples.
|
d3a1faae71ddb5dbab3188be1d6cb6ce5446fb6b | 76954f2237d0511feca066ab13d6706cde4b3475 | /pathways/Phase_II.R | 77fc5700c4096a3bc0332a5ee027f88a12cfe6c1 | [] | no_license | scheng87/evidence-based | f118196b002f44f5e803d0502cbf2aefbe965e75 | 7d05332838a9bb4fdec8ef73d906b675dea4bad3 | refs/heads/master | 2021-01-10T04:08:02.081643 | 2017-06-23T20:56:17 | 2017-06-23T20:56:17 | 49,231,535 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 13,862 | r | Phase_II.R | ##Phase II Analyses
library(dplyr)
library(tidyr)
setwd("~/Documents/github/evidence-based/pathways/")
load("evidence_based_2_11_16.RData")
##Conceptual models - exploring trends and informing pathways
models <- filter(data.pathways,Concept_mod == 1)
models <- models %>% select(aid,Concept_mod,Concept_mod_name) %>% d... |
27f604538dc4c5be57fe0a68534c2a81f2e6fa40 | cf8622557c2d10b6424b17e694da9fa2b13b47ec | /sim_axis/simulate_axis_results_36.R | af4a19d8c4545653c051d4749377d2b0e8d7f88d | [
"MIT"
] | permissive | silastittes/lasthenia_curves | 0c0c7cb645abe27a2b58aa8e7aa01405e630dc58 | d7bed64203f23a028e1ce737b395cecbc228b50d | refs/heads/master | 2021-09-26T22:31:51.831345 | 2018-11-03T20:50:49 | 2018-11-03T20:50:49 | 140,039,078 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 39,224 | r | simulate_axis_results_36.R | run_x <-
structure(list(lm_df = structure(list(term = c("maxima_sc", "stretch_sc",
"x_max_sc", "x_min_sc"), coef = c(0.0228075058404137, 0.0570561389841266,
-0.0231594713585525, -0.0150030470914907), p_value = c(0.137892669622365,
0.00438356544664703, 0.15043404655076, 0.131479279280423), rand_var = c(1.415863535574... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.