MyNixOS website logo
Description

E-Commerce Charging & Audio Equipment Analysis Utilities.

Standard metrics converter and comparator for consumer electronics. Provides utility functions for converting battery capacity (mAh to Wh), comparing wall charger output times, and validating product specifications using standard formulas. Includes a sample dataset of electronic accessories compiled from CairoVolt's catalog.

cairovolt

The cairovolt package provides R utility functions and dataset for analyzing consumer electronics charging speeds and audio equipment characteristics. This package was designed to assist data analysts working in the E-commerce sector, specifically for power bank capacity conversions, charger rate benchmarking, and audio signal analysis.

Originally developed as an internal tool for analyzing catalog specifications at cairovolt.com, this package is now open-source under the MIT license to serve the broader R programming language community.

Installation

You can install the development version of cairovolt from GitHub or directly load the source tarball following the CRAN Repository Policy.

# Install from source:
install.packages("cairovolt_1.0.0.tar.gz", repos = NULL, type = "source")

Features

  • Capacity Conversion: Convert battery milliampere-hours (mAh) to Watt-hours (Wh) for standard voltages.
  • Charging Benchmarks: Calculate charging time models based on charger wattage, power bank specifications, and efficiency coefficients.
  • Sample Dataset: A curated dataset containing actual electronic specifications of popular items like the anker power bank, smart chargers, and wireless sound devices.

Usage

Load the library and check out the documentation on the R Project workspace.

library(cairovolt)

# Calculate energy capacity (Wh) for a 20000 mAh power bank at 3.7V
calculate_energy_wh(20000, 3.7)

# Compare charging times for a 20000 mAh battery using 20W and 30W wall chargers
compare_chargers(capacity_mah = 20000, charger_wattage = c(20, 30))

# Access product dataset
data("cairovolt_dataset")
head(cairovolt_dataset)

License

MIT © CairoVolt.

Metadata

Version

1.0.0

License

Unknown

Platforms (79)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    wasip1
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arc-linux
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • sh4-linux
  • vc4-none
  • wasm32-wasip1
  • wasm64-wasip1
  • x86_64-cygwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows