similar to: How to split a dataframe into smaller constituent dataframes

Displaying 20 results from an estimated 5000 matches similar to: "How to split a dataframe into smaller constituent dataframes"

2002 Jul 23
2
Converting dates?
Dear R-users I have some doubts about with converting dates... e.g. dates data 23/12/1975 0.8678 03/01/1976 0.8736 28/01/1976 0.765 13/03/1976 0,9654 ... I think that converting these dates can easily my plots... is there a R function to convert these dates to a julian dates and so plot that variables?? The help files as.POSIXlt, POSIXt and others don't aswer my doubts...
2012 Feb 08
2
Split dataframe into new dataframes
Hi, I want to split a dataframe based on a grouping variable (in one column). The resulting new dataframes should be stored in a new variable. I tried to split the dataframe using split() and to store it using a FOR loop, but thats not working so far: df <- data.frame(A=c("A1","A1","A2","A2"),B=seq(1:4)) Fsplit <- function(x,y){ ls <-
2012 Apr 25
1
fill a dataframe with zeros where the rows are a smaller subset of a larger dataframe (species by site)
row <- c("a","b","c","d","e","f","g") #rows from larger data frame row.1 <- c("a","b","c","g") #rows of smaller data frame because d, e, and f don't contain any of the species, but the zeros are important x <- data.frame(sp1=rnorm(4), sp2=rnorm(4), sp3=rnorm(4),
2007 May 14
2
creating a "list of 3 dataframes" from a "list of 2 dataframes" and a dataframe?
#I wish to create a "list of three dataframes" ("results2") from a "list of two dataframes" (temp) and a dataframe ("c")? #Please advise. a <- data.frame(x=c(1,2,3),y=c(5,7,9)) b <- data.frame(x=c(2,4,7,9),y=c(2,3,5,4)) c <- data.frame(x=c(22,34,7,9),y=c(52,63,5,4)) results1 <- list(a,b,c) #what I want #but this is how I need to get there
2010 Sep 14
1
dataframe of dataframes?
Hi, I create several dataframes in a nested loop and would like to maintain them in a matrix form with each dataframe represented by the row and the column. How can I do this? [[alternative HTML version deleted]]
2007 Oct 22
3
median value dataframe coming from multiple dataframes
Hi all, I am not a skillful R programmer and has I am handling with large dataframes (about 30000 x 300) I am in need of an efficient function. I have 4 dataframes with the same dimension. I need to generate other dataframe with the some dimension than the others where in each position it has the median value of the 4 values in the same position coming from the 4 dataframes. Grateful by your
2011 Jun 30
1
Match strings across two differently sized dataframes and copy corresponding row to dataframe
Hello- Sorry, this is a bit of a noob question, but I can't seem to progress it any further. I have two dataframes which contain a series of strings which exactly match. The problem is one has more rows than the other (more cases have been added) and they have been sorted so that they are not in the same order. The smaller dataframe, though, contains in another column which has codes
2017 Feb 15
3
convertir múltiples listas de múltiples dataframes en un único dataframe
Dispongo de 10 listas, cada una de ellas es, a su vez, una lista de 3 data.frame. Trato de convertirlo todo en un único data.frame. Señalo que los data.frame son de diferente número de observaciones y variables. He probado todo, y ¡zas! nada. Ruego amablemente alguna ayuda. Manuel J. [[alternative HTML version deleted]]
2006 Jul 08
1
Combining a list of similar dataframes into a single dataframe
I would be very grateful to anyone who could point to the error of my ways in the following. I have a dataframe called net1, as such: > str(net1) `data.frame': 114192 obs. of 9 variables: $ server : Factor w/ 122 levels "AB93-99","AMP93-1",..: 1 1 1 1 1 1 1 1 1 1 ... $ ts :'POSIXct', format: chr "2006-06-30 12:31:44"
2017 Feb 15
2
convertir múltiples listas de múltiples dataframes en un único dataframe
Carlos: Agradecido por tu interés. Adjunto la lista que me solicitas. Saludos, Manuel --- _______________________________________________________ El 15/02/2017 17:45, Carlos Ortega escribió: > Hola, > > ¿Puedes pasar parte de estas listas para no picar un ejemplo desde cero... ? > Puedes pasarlo en un fichero ".RData" Y si te da problemas el adjuntarlo a toda la
2006 Mar 24
3
Date in dataframe manipulation
Hi, I have a dataframe with many columns, including date and I want to keep only a few of the columns including date column. I used the following command: with(FireDataAppling, cbind(STARTDATE, County, TOTAL, CAUSE) It works, but the date becomes days from Jan 1, 2001. FireDataAppling$STARTDATE[1] gives [1] 2001-01-04 00:00:00 1703 Levels: ......... After the cbind command, the entry
2006 Jun 17
4
Simple tutorial weirdness
Sorry - working on a simple tutorial but something is throwing me here. I''m supposed to get a Time.now() print to the page but it''s not working and I can''t figure out why. No errors are thrown my the page shows: Howdy, world! My name is Stuart Felenstein. This was verified at . So no time stamp showing. I went into IRB , did a Time.now() and it''s working
2003 Nov 04
3
R function help arranged in categorical order ?
Hi, I'm new to R and I'm finding it quite a chore trawling through the R documentation to find a function to carry out simple atomic tasks. Is any one aware of R help documentation that is aranged in functional categories for e.g.: String manipulation File I/O Dataframe, List manipulation etc, etc ... Thanks _________________________________________________________________ Get
2013 Jan 11
3
split & rbind (cast) dataframe
Hi, I would like to split dataframe based on one colum and want to connect the two dataframes by rows (like rbind). Here a small example: # The orgininal dataframe df1 <- data.frame(col1 = c("A","A","B","B"),col2 = c(1:4), col3 = c(1:4)) # The datafame how it could look like df2 <- data.frame(A.col2 = c(1,2), A.col3 = c(1,2), B.col2 = c(3,4), B.col3
2011 Jun 23
1
split dataframe by sample()
Hi, I seemingly have a simple problem, but I've spend hours reading guides & posts on this forum and I can't seem to piece together what I need. I have a dataframe where I want to divide it into two subsets: a sample, and the remainder of the dataframe in a new frame. I've tried this: split(df, sample(nrow(df), size=100, replace=FALSE)) another way would be to make a new
2003 May 12
1
Zeitreihen problem
Hallo! I lese gro?e Zeitreihen in R ein z.B. mit: > disc<-read.table("F:/R/DATA/discount_rate_usa.txt") disc hat dann folgende Struktur: > disc[1:5] V1 V2 1 01/03/1955 1.5 2 01/04/1955 1.5 3 01/05/1955 1.5 4 01/06/1955 1.5 5 01/07/1955 1.5 ich will das disc als Zeitreihe erkannt wird und will z.B 01/03/1955 in ein Datum verwandeln, aber es wird als
2014 Feb 14
2
[LLVMdev] Proposal: split tools/opt/opt.cpp to OptTool and a smaller main()
On Thu, Feb 13, 2014 at 3:51 PM, Sean Silva <silvas at purdue.edu> wrote: > I thought that opt was supposed to basically be a way to run a PassManager > over some IR? Seems like the new PM should standardize the appropriate > things and have them be a natural part of its API. FWIW, it will. I don't want to try to sequence these things though. -------------- next part
2005 Jun 13
2
Preparing timestamped data for fourier analysis
Greetings all, I'm working on a project trying to apply fourier analysis to timestamped router logs, using R to perform the analysis. The idea is to determine if any type of traffic (say, outgoing ICMP requests) has strong periodic features because it may indicate a compromise somewhere on the network. The FFT requires all data points to be evenly spaced, but the recorded events do not
2014 Sep 16
2
missing sam.ldb file
Hi, We have suddenly noticed a difference between our dc's. The file called /var/lib/samba/private/sam.ldb.d/sam.ldb is only present on 1 of our three dc's. The AD seems to be in healthy state, but...isn't this a bit strange? root at dc3:/var/lib/samba/private/sam.ldb.d# ls -l sam.ldb -rw-r--r-- 1 root root 53248 Sep 2 17:31 sam.ldb root at dc3:/var/lib/samba/private/sam.ldb.d#
2004 Oct 20
2
does R provides a wait or pause function?
Hello, I'd like to insert a "wait" function in my code. The reason is that I output timestamped files and I want to ensure that at least 1 second separes 2 files to avoid overwriting the previous file. Thanks, Marc Mamin