similar to: Partitioning a large data frame and writing output CSVs

Displaying 20 results from an estimated 1000 matches similar to: "Partitioning a large data frame and writing output CSVs"

2012 Nov 02
1
mergeing a large number of large .csvs
Dear R help; I'm currently trying to combine a large number (about 30 x 30) of large .csvs together (each at least 10000 records). They are organized by plots, hence 30 X 30, with each group of csvs in a folder which corresponds to the plot. The unmerged csvs all have the same number of columns (5). The fifth column has a different name for each csv. The number of rows is different. The
2008 Jul 22
2
Decoding subscripts/superscripts from CSVs
Hi, I have a CSV file with various biological reactions. Subscripts, superscripts, and italics are encoded in carats, and I was wondering if R can actually recognize those and print actual superscripts, etc. Here's an example: <i>S</i>-adenosyl-L-methionine + rRNA = <i>S</i>-adenosyl-L-homocysteine + rRNA containing
2011 Feb 10
2
for loop to merge .csvs
So I needed to merge 17 .csv files, and did so by brute force, but I might need to do so again. Anyone have suggestions for a for loop that might do the below for me (where a:r are separate .csv files) ab<-merge(a,b,all=TRUE) cd<-merge(c,d,all=TRUE) ef<-merge(e,f,all=TRUE) gh<-merge(g,h,all=TRUE) ij<-merge(i,j,all=TRUE) kl<-merge(k,l,all=TRUE) no<-merge(m,n,all=TRUE)
2005 Oct 20
3
[PATCH]Cannot send special keys, such as Ctrl+Alt+Del
Here is the patch useful to send special keys that your graphical user interface intercepts at low level, such as ctrl-alt-del in X Window. This patch adds a command "sendkey" to deal with it in the monitor, you can send keys to the vm. Use - to press several keys simultaneously. Example: sendkey ctrl-alt-f1 Signed-off-by: Dan Xu <dan.d.xu@intel.com> Signed-off-by:
2011 Oct 05
2
kriging shapefiles
Hi! Im new to R and I need to interpolate a shapefile using kriging. I've been able to plot/read the shapefile using the package maptools or rgdal. I've searched the internet for sample codes but most of the kriging codes that I've found done in R is done using txtfiles or CSVs.  An example could be of great help. Thanks. [[alternative HTML version deleted]]
2007 Mar 19
5
[LLVMdev] Google SOC - Idea
Getting the front end for Fortran finished is definitely something I would be interested in working on. I will draft up a little proposal and send it out to this list. -Scott On 3/19/07, Kenneth Hoste <kenneth.hoste at ugent.be> wrote: > Hi Scott, > > On 18 Mar 2007, at 04:22, Scott Fortmann-Roe wrote: > > > Hi, > > > > I noticed that LLVM had signed up as a
2007 Mar 20
0
[LLVMdev] Google SOC - Idea
Hi, Here is a rough draft of the application -- a FORTRAN front-end to LLVM. In accordance with the summer of code specifications it is split into two portions: the abstract which describes the project, and the details description which describes me and how I plan to complete the project. It's a little long, (but about half the max length the application directions specify). Would someone be
2017 Jul 13
2
Leer archivos con read.csv
Hola. Una manera puede ser tomar una lista de todos los archivos de un directorio y trabajar con ellos, puesto que ciertamente existen. ¿Cómo? Supongamos que tienes una carpeta llena de archivos csv. Entonces, puedes guardar el nombre de tus archivos en un objeto con lista_archivos<-dir() > y esto te dará todos los csv de esa carpeta (si tienes otros archivos también estarán allí, pero
2011 Oct 04
1
shapefile kriging
I'm new to R and I'm working on point shapefiles. Is there a way that you could interpolate a shapefile via kriging in R using an attribute? All examples on the internet are using txt files and CSVs. Thanks a lot. [[alternative HTML version deleted]]
2006 Feb 09
6
asterisk logger - urgent!!!
Hi, Since yesterday my Asterisk 1.2.3 is displaying the following message every few seconds >Asterisk Event Logger restarted >Rotated Logs Per SIGXFSZ (Exceeded file size limit) This causes my log files (verbose, queue_log) to become huge with lots of logger rotate messages, but I don't know which files is exceeding size limit, since even if I delete all log files I still get this
2003 Apr 07
4
subsetting a dataframe
How does one remove a column from a data frame when the name of the column to remove is stored in a variable? For Example: colname <- "LOT" newdf <- subset(olddf,select = - colname) The above statement will give an error, but thats what I'm trying to accomplish. If I had used: newdf <- subset(olddf,select = - LOT) then it would have worked, but as I said the column
2004 Jul 16
3
still problems with predict!
Hi all, I still have problems with the predict function by setting up the values on which I want to predict ie: original df: p1 (193 obs) variates y x1 x2 rm(list=ls()) x1<-rnorm(193) x2<-runif(193,-5,5) y<-rnorm(193)+x1+x2 p1<-as.data.frame(cbind(y,x1,x2)) p1 y x1 x2 1 -0.6056448 -0.1113607 -0.5859728 2 -4.2841793 -1.0432688 -3.3116807 ...... 192
2011 Nov 11
2
One step way to create data frame with variable "variable names"?
Suppose plotx <- "someName" modx <- "otherName" plotxRange <- c(10,20) modxVals <- c(1,2,3) It often happens I want to create a dataframe or object with plotx or modx as the variable names. But can't understand syntax to do that. I can get this done in 2 steps, creating the data frame and then assigning names, as in newdf <- data.frame( c(1, 2, 3, 4),
2003 Sep 05
2
eliminating a large subset of data from a frame
I have a data frame with 155,000 rows. One of the columns represents the user id (of which about 10,000 are unique). I am able to isolate 1000 of these user ids (stored in a list) that I want to eliminate from the data set, but I don't know of an efficient way to do this. Certainly this would be slow: newdf<-df for(i in listofbadusers) { newdf<-subset(tmp,uid!=i) } is there a better
2012 May 14
2
Error in names(x) <- value: 'names' attribute must be the same length as the vector
Dear R-helpers, I am stuck on an error in R: When I run my code (below), I get this error back: Error in names(x) <- value : 'names' attribute must be the same length as the vector Then when I use traceback(), R gives me back this in return: `colnames<-`(`*tmp*`, value = c(""Item", "Color" ,"Number", "Size")) I'm not exactly
2017 May 01
3
Any progress on write.csv fileEncoding for UTF-16 and UTF-32 ?
On 30/04/2017 12:23 PM, Duncan Murdoch wrote: > No, I don't think anyone is working on this. > > There's a fairly simple workaround for the UTF-16 and UTF-32 iconv > issues: don't attempt to produce character vectors, produce raw vectors > instead. (The "toRaw" argument to iconv() asks for this.) Raw vectors > can contain embedded nulls. Character vectors
2017 Apr 29
2
Any progress on write.csv fileEncoding for UTF-16 and UTF-32 ?
"R version 3.4.0 (2017-04-21)" on "x86_64-w64-mingw32" platform I am using CSVs and other text tables, and text in general (including regular expressions), on Windows 10. For me, that means dealing with Windows-1252 and UTF-8 encoding, with UTF-16 and UTF-32 as helpful curiosities. Something as simple as iconv ("\n", to = "UTF-16") causes an error, due to
2018 Apr 27
5
predict.glm returns different results for the same model
Hi all, Very surprising (to me!) and mystifying result from predict.glm(): the predictions vary depending on whether or not I use ns() or splines::ns(). Reprex follows: library(splines) set.seed(12345) dat <- data.frame(claim = rbinom(1000, 1, 0.5)) mns <- c(3.4, 3.6) sds <- c(0.24, 0.35) dat$wind <- exp(rnorm(nrow(dat), mean = mns[dat$claim + 1], sd = sds[dat$claim + 1])) dat <-
2007 Mar 22
2
[LLVMdev] Google SOC - Fortran Front-End Application
Hi All, Thank you for all the excellent pieces of advice I got in response to the draft application I sent out. I have incorporated all (I think) of the suggestions into the application and it's much improved. Here is the updated version. Please don't force yourself to read through it again if you don't want to. I'll submit this version with any suggestions I receive on the 23rd.
2005 Dec 17
1
Adding model attribute without db field
I need to add an attribute to a model but there is no need to add a corresponding database field. The model is a child of ActiveRecord and it corresponds to a table in my DB but when I add it in the usual Ruby way, I get a ''number of redirects exceeded'' error. Here is my code; The model; class Category < ActiveRecord::Base attr :status end The controlller;