Displaying 5 results from an estimated 5 matches for "dumpdf".
Did you mean:
dumpdb
2011 Apr 13
2
Dump the "source code" of data frame
...is:
> somedata <- data.frame(age.min = 1, age.max = 1.5, male = TRUE, l = -1.013, m=16.133, s=0.07656)
In order to back up the data and I don't want to use write.table(), I
would like to back up the "source code" of the data frame. When I
apply that function (let's call it dumpdf() ), the function will
reproduce the "source code" that creates the data.frame. For example:
> dumpdf(somedata)
somedata <- data.frame(age.min = 1, age.max = 1.5, male = TRUE, l =
-1.013, m=16.133, s=0.07656)
Is there any function similar to the dumpdf() above?
Thank you so much!...
2012 Jul 23
2
Large data set
...data set that has about 112,000,000
rows and 8 columns and obviously enough it was too big for R to handle. The
columns are mode up of 2 integer columns and 6 logical columns. The text
file is about 4.2 Gb in size. Also I have 4 Gb of RAM and 218 Gb of
available space on the hard drive. I tried the dumpDF function but it was
too big. Also tried bring in the data is 10 sets of about 12,000,000. Are
there are other ways of getting around the size of the data.
Regards,
Lorcan
[[alternative HTML version deleted]]
2012 May 04
2
Can't import this 4GB DATASET
...REAT FALLS GAS CO -6.2500 5200
###/*MY ATTEMPT USING FILEHASH*/###
#First, try and upload the 29 row dataset (the tiny subset of the whole
dataset).
install.packages("filehash");require(filehash)
dumpList(read.table("dataset2.txt",skip=6),dbName="db02") #Note that DumpDF
also works.
env02 <- db2env(db="db02")
with(env02,V1)
#
[1] 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001
10001 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001 10001
10001 10001
[27] 10001 10001
#
with(env02,V2)
#
[1] 01/10/1986 01/13/1986 01/1...
2009 Jan 23
0
Appending objects created using filehash package
...y I know now to append to an object, basically requires rewriting
the entire object.
Sample code: =================================================
# Setting up the database
library(filehash)
A <- data.frame(a=c("abcde", "fghij", "klmno"), stringsAsFactors=FALSE)
dumpDF( A, dbName="myTestDB")
envTest <- db2env(db="myTestDB")
ls(envTest)
with(envTest, a)
# Appending to object a, but basically rewriting it...
envTest$a <- c(envTest$a, "HELLO", "GOODBYE")
with(envTest, a)
If anyone has a suggestion on how to append to...
2009 May 19
0
File too big for filehash?
Dear R users,
I try to use a very large file (~3 Gib) with the filehash package. The
length of the dataset is around 4,000,000 obs. I get this message from R
while trying to "load" the dataset (named "cc084.csv"):
> dumpDF(read.csv("cc084.csv", header=T), dbName="db01")
Erreur : impossible d'allouer un vecteur de taille 15.6 Mo (French)
Error: impossible to allow a vector of size 15.6 Meg (my English
translation)
Is there anything I can do?
My R version is 2.8.1.
-----
Rock Ouimet
Forest Soi...