R Snippet for Sampling from a Dataframe
Year: 2009
Type: other
Abstract: It took me a while to figure this out, so I thought I'd share. I have a dataframe with millions of observations in it, and I want to estimate a density distribution, which is a memory intensive process. Running my kde2d function on the full dataframe throws and error -- R tries to allocate a vector that is gigabytes in size. A reasonable alternative is to run the function on a smaller subset of the data.
DOI: 10.59350/jwe7m-7tx91
Author: Stephen Turner
Institution: Vanderbilt University
Language: English
Topic: Data Analysis with R
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: gold
OpenAlex ID: W4417086377
