{
  "_id": "6a103880acfb0bcc41c9aaf6",
  "Package": "LearnPCA",
  "Type": "Package",
  "Title": "Functions, Data Sets and Vignettes to Aid in Learning Principal\nComponents Analysis (PCA)",
  "Version": "0.3.4",
  "Date": "2024-04-25",
  "Authors@R": "c(\nperson(\"Bryan A.\", \"Hanson\",\nrole = c(\"aut\", \"cre\"),\nemail = \"hanson@depauw.edu\",\ncomment = c(ORCID = \"0000-0003-3536-8246\")),\nperson(\"David T.\", \"Harvey\",\nrole = c(\"aut\"),\nemail = \"harvey@depauw.edu\"))",
  "Description": "Principal component analysis (PCA) is one of the most\nwidely used data analysis techniques.  This package provides a\nseries of vignettes explaining PCA starting from basic\nconcepts. The primary purpose is to serve as a self-study\nresource for anyone wishing to understand PCA better. A few\nconvenience functions are provided as well.",
  "License": "GPL-3",
  "URL": "https://bryanhanson.github.io/LearnPCA/",
  "BugReports": "https://github.com/bryanhanson/LearnPCA/issues",
  "ByteCompile": "TRUE",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "Roxygen": "list(packages = \"roxut\", roclets = c(\"namespace\", \"rd\",\n\"roxut::tests_roclet\"), markdown = TRUE)",
  "RoxygenNote": "7.3.1",
  "Config/pak/sysreqs": "cmake make libuv1-dev zlib1g-dev",
  "Repository": "https://bryanhanson.r-universe.dev",
  "Date/Publication": "2024-05-17 02:32:20 UTC",
  "RemoteUrl": "https://github.com/bryanhanson/learnpca",
  "RemoteRef": "HEAD",
  "RemoteSha": "fc8715733a436d80524cc039ed16e97f2f2cd667",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-12 05:59:49 UTC",
    "User": "root"
  },
  "Author": "Bryan A. Hanson [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-3536-8246>),\nDavid T. Harvey [aut]",
  "Maintainer": "Bryan A. Hanson <hanson@depauw.edu>",
  "MD5sum": "930540d531b7d57d5c8c034576d41891",
  "_user": "bryanhanson",
  "_type": "src",
  "_file": "LearnPCA_0.3.4.tar.gz",
  "_fileid": "1f99c73dbc2105ee1fb92cee3e9ca115af9d4781bae35d20e0527977802d92c1",
  "_filesize": 2074769,
  "_sha256": "1f99c73dbc2105ee1fb92cee3e9ca115af9d4781bae35d20e0527977802d92c1",
  "_created": "2026-05-12T05:59:49.000Z",
  "_published": "2026-05-22T11:05:36.408Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77367096306,
      "time": 172,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6936816307"
    },
    {
      "job": 77367096309,
      "time": 170,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6936815727"
    },
    {
      "job": 77367096428,
      "time": 88,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6936797073"
    },
    {
      "job": 77367095989,
      "time": 101,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6936800389"
    },
    {
      "job": 77367095698,
      "time": 224,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6936778163"
    },
    {
      "job": 77367095207,
      "time": 129,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7158986329"
    },
    {
      "job": 77367095856,
      "time": 89,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6936797404"
    },
    {
      "job": 77367096310,
      "time": 89,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6936797728"
    },
    {
      "job": 77367096186,
      "time": 88,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6936797401"
    }
  ],
  "_buildurl": "https://github.com/r-universe/bryanhanson/actions/runs/25716319519",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/bryanhanson/learnpca",
  "_commit": {
    "id": "fc8715733a436d80524cc039ed16e97f2f2cd667",
    "author": "Bryan Hanson <hanson@depauw.edu>",
    "committer": "Bryan Hanson <hanson@depauw.edu>",
    "message": "add docs folder with a .gitignore in it\n",
    "time": 1715913140
  },
  "_maintainer": {
    "name": "Bryan A. Hanson",
    "email": "hanson@depauw.edu",
    "login": "bryanhanson",
    "uuid": 140350,
    "orcid": "0000-0003-3536-8246"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "rpart",
      "role": "Depends"
    },
    {
      "package": "class",
      "role": "Depends"
    },
    {
      "package": "nnet",
      "role": "Depends"
    },
    {
      "package": "markdown",
      "role": "Imports"
    },
    {
      "package": "shiny",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "ChemoSpec",
      "role": "Suggests"
    },
    {
      "package": "chemometrics",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "tinytest",
      "role": "Suggests"
    },
    {
      "package": "roxut",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "plot3D",
      "role": "Suggests"
    },
    {
      "package": "ade4",
      "role": "Suggests"
    },
    {
      "package": "plotrix",
      "role": "Suggests"
    },
    {
      "package": "latex2exp",
      "role": "Suggests"
    },
    {
      "package": "plotly",
      "role": "Suggests"
    },
    {
      "package": "xtable",
      "role": "Suggests"
    },
    {
      "package": "bookdown",
      "role": "Suggests"
    }
  ],
  "_owner": "bryanhanson",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 14,
  "_contributors": [
    {
      "user": "bryanhanson",
      "count": 320,
      "uuid": 140350
    },
    {
      "user": "dtharvey",
      "count": 16,
      "uuid": 3117944
    },
    {
      "user": "zeehio",
      "count": 2,
      "uuid": 75441
    }
  ],
  "_userbio": {
    "uuid": 140350,
    "type": "user",
    "name": "Bryan Hanson",
    "description": "After 32 years of teaching, I am now Professor Emeritus of Chemistry & Biochemistry at DePauw University.  Busy now with software development projects."
  },
  "_downloads": {
    "count": 703,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/LearnPCA"
  },
  "_devurl": "https://github.com/bryanhanson/learnpca",
  "_pkgdown": "https://bryanhanson.github.io/LearnPCA/",
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/LearnPCA.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/bryanhanson/learnpca",
  "_realowner": "bryanhanson",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2022-02-03"
    },
    {
      "version": "0.1.3",
      "date": "2022-03-12"
    },
    {
      "version": "0.1.4",
      "date": "2022-03-31"
    },
    {
      "version": "0.2.0",
      "date": "2022-05-02"
    },
    {
      "version": "0.3.4",
      "date": "2024-04-26"
    }
  ],
  "_exports": [
    "PCAtoXhat",
    "PCsearch",
    "XtoPCAtoXhat"
  ],
  "_help": [
    {
      "page": "LearnPCA-package",
      "title": "Functions, Data Sets and Vignettes to Aid in Learning Principal Components Analysis (PCA)",
      "topics": [
        "LearnPCA-package",
        "LearnPCA"
      ]
    },
    {
      "page": "PCAtoXhat",
      "title": "Use PCA Results to Reconstruct All or Part of the Original Data Set",
      "topics": [
        "PCAtoXhat"
      ]
    },
    {
      "page": "PCsearch",
      "title": "Demonstrate the Search for New Principal Component Axes",
      "topics": [
        "PCsearch"
      ]
    },
    {
      "page": "XtoPCAtoXhat",
      "title": "Reduce a Matrix X via PCA and Reconstruct All or Part to Give Xhat",
      "topics": [
        "XtoPCAtoXhat"
      ]
    }
  ],
  "_readme": "https://github.com/bryanhanson/learnpca/raw/HEAD/README.md",
  "_rundeps": [
    "base64enc",
    "bslib",
    "cachem",
    "class",
    "cli",
    "commonmark",
    "digest",
    "fastmap",
    "fontawesome",
    "fs",
    "glue",
    "htmltools",
    "httpuv",
    "jquerylib",
    "jsonlite",
    "later",
    "lifecycle",
    "litedown",
    "magrittr",
    "markdown",
    "MASS",
    "memoise",
    "mime",
    "nnet",
    "otel",
    "promises",
    "R6",
    "rappdirs",
    "Rcpp",
    "rlang",
    "rpart",
    "sass",
    "shiny",
    "sourcetools",
    "withr",
    "xfun",
    "xtable"
  ],
  "_vignettes": [
    {
      "source": "Vig_01_Start_Here.Rmd",
      "filename": "Vig_01_Start_Here.html",
      "title": "A Guide to the LearnPCA Package",
      "author": "David T. Harvey^[Professor of Chemistry & Biochemistry, DePauw University, Greencastle IN USA., harvey@depauw.edu], Bryan A. Hanson^[Professor Emeritus of Chemistry & Biochemistry, DePauw University, Greencastle IN USA., hanson@depauw.edu]",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Audience",
        "Why a Package?",
        "About the Authors",
        "Acknowledgements"
      ],
      "created": "2022-02-27 03:17:26",
      "modified": "2024-04-26 17:00:34",
      "commits": 8
    },
    {
      "source": "Vig_02_Conceptual_Intro_PCA.Rmd",
      "filename": "Vig_02_Conceptual_Intro_PCA.html",
      "title": "A Conceptual Introduction to PCA",
      "author": "David T. Harvey^[Professor of Chemistry & Biochemistry, DePauw University, Greencastle IN USA., harvey@depauw.edu], Bryan A. Hanson^[Professor Emeritus of Chemistry & Biochemistry, DePauw University, Greencastle IN USA., hanson@depauw.edu]",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Conceptual Introduction to PCA",
        "PCA Results Illustrated, No Code, No Math",
        "Refinements 1",
        "Refinements 2",
        "A Social Science Data Set",
        "A Spectroscopic Data Set"
      ],
      "created": "2022-02-27 03:17:26",
      "modified": "2024-04-26 17:00:34",
      "commits": 9
    },
    {
      "source": "Vig_03_Step_By_Step_PCA.Rmd",
      "filename": "Vig_03_Step_By_Step_PCA.html",
      "title": "Step-by-Step PCA",
      "author": "David T. Harvey^[Professor of Chemistry & Biochemistry, DePauw University, Greencastle IN USA., harvey@depauw.edu], Bryan A. Hanson^[Professor Emeritus of Chemistry & Biochemistry, DePauw University, Greencastle IN USA., hanson@depauw.edu]",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Step 1. Centering the Data",
        "Step 3. Data Reduction",
        "Using prcomp",
        "Using All the Data",
        "What Else is in the PCA Results?",
        "Scree Plot",
        "Loading Plot",
        "How Does prcomp Actually Work?",
        "Step 4. Undoing the Scaling",
        "Step 5. Undoing the Centering",
        "Proof of Perfect Reconstruction",
        "The More Components Used, the Better the Reconstruction"
      ],
      "created": "2022-02-27 03:17:26",
      "modified": "2024-04-26 17:00:34",
      "commits": 9
    },
    {
      "source": "Vig_04_Scores_Loadings.Rmd",
      "filename": "Vig_04_Scores_Loadings.html",
      "title": "Understanding Scores and Loadings",
      "author": "David T. Harvey^[Professor of Chemistry & Biochemistry, DePauw University, Greencastle IN USA., harvey@depauw.edu], Bryan A. Hanson^[Professor Emeritus of Chemistry & Biochemistry, DePauw University, Greencastle IN USA., hanson@depauw.edu]",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "A Small Data Set",
        "Rotating the Axes",
        "Scores",
        "Loadings"
      ],
      "created": "2022-02-27 03:17:26",
      "modified": "2024-04-26 17:00:34",
      "commits": 10
    },
    {
      "source": "Vig_05_Visualizing_PCA_3D.Rmd",
      "filename": "Vig_05_Visualizing_PCA_3D.html",
      "title": "Visualizing PCA in 3D",
      "author": "David T. Harvey^[Professor of Chemistry & Biochemistry, DePauw University, Greencastle IN USA., harvey@depauw.edu], Bryan A. Hanson^[Professor Emeritus of Chemistry & Biochemistry, DePauw University, Greencastle IN USA., hanson@depauw.edu]",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Visualizing The Original Data Set",
        "The First Principal Component",
        "The Second Principal Component",
        "The Third Principal Component",
        "How PCA Changes the Data Cloud",
        "Final Thoughts"
      ],
      "created": "2022-02-27 03:17:26",
      "modified": "2024-04-26 17:00:34",
      "commits": 20
    },
    {
      "source": "Vig_06_Math_Behind_PCA.Rmd",
      "filename": "Vig_06_Math_Behind_PCA.html",
      "title": "The Math Behind PCA",
      "author": "David T. Harvey^[Professor of Chemistry & Biochemistry, DePauw University, Greencastle IN USA., harvey@depauw.edu], Bryan A. Hanson^[Professor Emeritus of Chemistry & Biochemistry, DePauw University, Greencastle IN USA., hanson@depauw.edu]",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Matrix Decompositions",
        "The SVD Decomposition",
        "A Simple Implementation of SVD",
        "Step 1",
        "Step 2",
        "Step 3",
        "Step 4",
        "Overall",
        "Reporting",
        "Comparison to the Answer from svd",
        "Comparison to the Answer from prcomp",
        "The Eigen Decomposition",
        "A Simple Implementation of the Eigen Decomposition",
        "The Relationship Between SVD and Eigen Decomposition",
        "Singular Values vs Eigenvalues",
        "A Note About the Meaning of \"loadings\"",
        "Algorithmic Reality",
        "The NIPALS Algorithm",
        "A Simple Implementation of NIPALS",
        "Checking Our work",
        "Tying Things Together",
        "References"
      ],
      "created": "2022-02-27 03:17:26",
      "modified": "2024-04-26 17:00:34",
      "commits": 24
    },
    {
      "source": "Vig_07_Functions_PCA.Rmd",
      "filename": "Vig_07_Functions_PCA.html",
      "title": "A Comparison of Functions for PCA",
      "author": "David T. Harvey^[Professor of Chemistry & Biochemistry, DePauw University, Greencastle IN USA., harvey@depauw.edu], Bryan A. Hanson^[Professor Emeritus of Chemistry & Biochemistry, DePauw University, Greencastle IN USA., hanson@depauw.edu]",
      "engine": "knitr::rmarkdown",
      "headings": [
        "prcomp",
        "princomp",
        "Covariance",
        "Correlation",
        "prcomp vs princomp",
        "Compare the Scores",
        "Reconstruct the Original Data",
        "svd",
        "Compare to the Scores from prcomp",
        "Compare to the Loadings from prcomp",
        "eigen",
        "Compare to the Scores from princomp",
        "Compare to the Loadings from princomp",
        "Wrap Up"
      ],
      "created": "2022-02-27 03:17:26",
      "modified": "2024-04-26 17:00:34",
      "commits": 10
    },
    {
      "source": "Vig_08_Notes.Rmd",
      "filename": "Vig_08_Notes.html",
      "title": "Notes/FAQ/Special Cases",
      "author": "David T. Harvey^[Professor of Chemistry & Biochemistry, DePauw University, Greencastle IN USA., harvey@depauw.edu], Bryan A. Hanson^[Professor Emeritus of Chemistry & Biochemistry, DePauw University, Greencastle IN USA., hanson@depauw.edu]",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Warning When Analyzing Time Series and Spatial Data",
        "Working with Nominal or Ordinal Response Data"
      ],
      "created": "2024-04-23 20:18:40",
      "modified": "2024-04-26 17:00:34",
      "commits": 4
    }
  ],
  "_score": 6.049218022670182,
  "_indexed": true,
  "_nocasepkg": "learnpca",
  "_universes": [
    "bryanhanson"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-05-12T06:02:37.000Z",
      "distro": "noble",
      "commit": "fc8715733a436d80524cc039ed16e97f2f2cd667",
      "fileid": "e60a41d037a5d46836b14cdd256676ed7df2c93ebec1003a8031da2dca191ca9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bryanhanson/actions/runs/25716319519"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-05-12T06:02:35.000Z",
      "distro": "noble",
      "commit": "fc8715733a436d80524cc039ed16e97f2f2cd667",
      "fileid": "6a3cc3d19326b5f3d035b657360b675502f5e89934b04994fd957f61f1d32165",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bryanhanson/actions/runs/25716319519"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-05-12T06:01:18.000Z",
      "commit": "fc8715733a436d80524cc039ed16e97f2f2cd667",
      "fileid": "79ebf4fa43e9f950b79f902ce1e0b29d68c11d77b3192e8a713171d56d189763",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bryanhanson/actions/runs/25716319519"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-05-12T06:01:28.000Z",
      "commit": "fc8715733a436d80524cc039ed16e97f2f2cd667",
      "fileid": "26a93e41c2de0aa1bff0e89cceea7404358a26f6a179ba1ebb6aabec3433ee15",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bryanhanson/actions/runs/25716319519"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-05-12T06:01:09.000Z",
      "commit": "fc8715733a436d80524cc039ed16e97f2f2cd667",
      "fileid": "9630c5fdd4cff9214044e46fe4c2a23aa1e8f6179de2ee890f7120d01635be7f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bryanhanson/actions/runs/25716319519"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-05-12T06:01:10.000Z",
      "commit": "fc8715733a436d80524cc039ed16e97f2f2cd667",
      "fileid": "784905ffd26481e04f26a1fa65d3144582f7bc6d4855798abdd78462bc4b7a71",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bryanhanson/actions/runs/25716319519"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-05-12T06:01:09.000Z",
      "commit": "fc8715733a436d80524cc039ed16e97f2f2cd667",
      "fileid": "c1c8ec722d2389f88f58f56e4a01da5d4228ce7cae5fa4d8375621ddb07763be",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bryanhanson/actions/runs/25716319519"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.4",
      "date": "2026-05-22T11:05:14.000Z",
      "commit": "fc8715733a436d80524cc039ed16e97f2f2cd667",
      "fileid": "b469d5fe43f302300f1152711eebd91b486e731396e78fc7788837e5455e2089",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bryanhanson/actions/runs/25716319519"
    }
  ]
}