Publications by Johnatan Pulido
Project 5
R Markdown This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com. When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within...
616 sym Python (3378 sym/18 pcs)
Proj4
# Load necessary libraries (if not already loaded) # install.packages("dplyr") # Uncomment if dplyr is not installed library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal...
583 sym R (10805 sym/43 pcs) 2 img
Document
x <- sample(x=1:100, size=100, replace=TRUE) head(x) ## [1] 17 37 77 38 61 25 length(x) ## [1] 100 mean(x) ## [1] 50.71 x[1:25] ## [1] 17 37 77 38 61 25 4 82 91 60 12 19 19 69 24 40 79 26 2 27 84 29 24 41 43 knitr::opts_chunk$set(echo = TRUE) x <- sample(x=1:100, size=100, replace=TRUE) head(x) ## [1] 9 5 96 55 96 27 length(x) ## [1] 100 mea...
37 sym
Document
R Markdown This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com. When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within...
650 sym R (7923 sym/52 pcs) 3 img
Project 4 Blood Pressure
library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union R Markdown This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, an...
611 sym R (2345 sym/15 pcs) 1 img
Exercise 2
#create a vector with fruit fruit <- c("apple", "orange", "banana", "pear", "cherry", "plum", "grape") # look for a fruit in the vector "pear"%in% fruit ## [1] TRUE #this will result in true #check to see which position this is in fruit=="pear" ## [1] FALSE FALSE FALSE TRUE FALSE FALSE FALSE #this results in boolean vector of true and false -...
651 sym Python (7302 sym/63 pcs)
Project 2 In R
set.seed(123) # Set seed for reproducibility pets <- factor(sample(c("dog", "cat", "hamster", "goldfish"), 1000, replace = TRUE)) print(head(pets)) ## [1] hamster hamster hamster cat hamster cat ## Levels: cat dog goldfish hamster summary(pets) ## cat dog goldfish hamster ## 248 249 246 257 R Markdown Th...
606 sym
Exercise 1
R Markdown This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com. When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within...
874 sym Python (17791 sym/212 pcs)