Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://doi.org/10.5281/zenodo.14318846
17 December 2024, 12:45:03 UTC
  • Code
  • Branches (0)
  • Releases (1)
  • Visits
    • Branches
    • Releases
      • 1
      • 1
    • c8b2287
    • /
    • combining-hmm-and-ssf-code
    • /
    • scripts
    • /
    • standardising values_usingnoHMMdf.R
    Raw File Download

    To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
    Select below a type of object currently browsed in order to display its associated SWHID and permalink.

    • content
    • directory
    • snapshot
    • release
    origin badgecontent badge
    swh:1:cnt:9dadfaf9f22cb5e9cec1831d1f8cd0f257137373
    origin badgedirectory badge
    swh:1:dir:30ac199afd3b1d7a0d0bdca02408cfa6e4b4363a
    origin badgesnapshot badge
    swh:1:snp:05a2af42b588522ca08f036c1f785d8457dcf25e
    origin badgerelease badge
    swh:1:rel:aa35d9e39d94cbf3f73362c2c2b5cd04c355e955

    This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
    Select below a type of object currently browsed in order to generate citations for them.

    • content
    • directory
    • snapshot
    • release
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    standardising values_usingnoHMMdf.R
    ####set up####
    
    rm(list=ls())
    
    ##packages
    library(crawl)
    library(dplyr)
    library(sf)
    library(ggplot2)
    library(rgdal)
    library(raster)
    library(mapview)
    library(tidyr)
    
    
    ####read in data and make large datasheet####
    
    #want a large datasheet so can do global means across true and null steps for all
    
    #list files
    
    files <- list.files("data/find ladder/final SSF dataframes")
    
    
    for (i in 1:length(files)){
      data1 <- read.csv(paste0("data/find ladder/final SSF dataframes/",files[[i]]))
      if(i==1){
        data_big <- data1
      }
      if(i>1){
        data_big <- rbind(data_big,data1)
      }
    }
    
    ####check df####
    
    str(data_big)
    summary(data_big)
    
    
    ####summarise for means and sd####
    
    params <- names(data_big)
    names_to_standardise <- params[c(17,18,22:49)]
    
    
    summaries <- vtable::sumtable(data_big[,c(17,18,22:49)],out="csv")
    
    
    write.csv(summaries,"summary_stats_for_standardising.csv")
    
    
    
    
    
    

    back to top

    Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
    The source code of Software Heritage itself is available on our development forge.
    The source code files archived by Software Heritage are available under their own copyright and licenses.
    Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API