Coder Social home page Coder Social logo

devops-tools's Introduction

  • πŸ‘‹ Hi, I’m LIN (@magixsource)
  • πŸ‘€ I’m interested in Cycling and E-sport
  • 🌱 I’m currently learning Dapr、DevOps and OpenFunction
  • πŸ‘€ I spent over 6 years focus on Enterprise Digital-transformation by Mid-Platform architecture in China
  • πŸ’žοΈ I’m looking to collaborate on DevOps and CNCF :)
  • πŸ“« You can send message to my email: [email protected]

devops-tools's People

Contributors

magixsource avatar

Watchers

 avatar

devops-tools's Issues

test

#scan
library(readr)
path <- "~/摌青/r-sandbox/csv/"

loadCsvData <- function(path){
setwd(path)
csvDatas <- list()
files <- list.files(path = path,pattern = "*.csv")
for(i in 1:length(files)){
csvDatas[[i]] <- read_csv(files[i])
}
return(csvDatas)
}

datas <- loadCsvData(path)

getTitles <- function(datas){
titles <- list()
for(i in 2:(nrow(datas[[1]]))) titles[[i-1]] <- datas[[1]][[1]][[i]]
return(titles)
}
getUrls <- function(datas){
urls <-list()
for(i in 2:(nrow(datas[[1]]))) urls[[i-1]] <- datas[[1]][[10]][[i]]
return(urls)
}

getRts <- function(datas){
rts <- list()
for(i in 2:(nrow(datas[[1]]))){
rs <- list()
for(j in 1:length(datas)){
rs[[j]] <- list(rt <- datas[[j]][[9]][[i]],ts <- substr(datas[[j]][[2]][[i]],1,10))
}
rts[[i-1]] <- rs

}
return(rts)
}

displayDatas <- function(datas){
titles <- getTitles(datas)
urls <- getUrls(datas)
rts <- getRts(datas)

rows <- nrow(datas[[1]])

display

for(i in 1:length(rts)){
#for(i in 1){

x <- c()
y <- c()
for(j in 1:length(rts[[i]])){
  x[[j]] <- as.Date(rts[[i]][[j]][[2]],"%Y-%m-%d") 
  y[[j]] <- as.numeric(rts[[i]][[j]][[1]]) 
}


# invoke plot
plot(x,y,main = titles[[i]],type = "l",xlab = "εŽ‹ζ΅‹ζ—₯期",ylab = "响应既间(ms)",xaxt="n")
#axis.Date(1,at=x,origin="1970-01-01")
#axis.POSIXct(1,at=x,format="%Y-%m-%d")

}
return(rts)
}

displayDatas(datas)

#display result

#plot(dateSets,rtSets,main = pTitle)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.