Skip to content

putting data.frame values in new dataframes

2 messages · condor, arun

#
Hi,

Do you want to read it from a saved file?
res<-split(dat1,dat1$day)
?res[[1]]
names(res)<-paste("data",1:5,sep="")
?write.table(res[[1]],file="data1.txt")

?read.table("data1.txt",sep="",header=TRUE)
#? number day month hours
#1????? 1? 14??? 10???? 2
#2????? 2? 14??? 10??? 12
#3????? 3? 14??? 10??? 18
A.K.



----- Original Message -----
From: condor <radonnikodym at hotmail.nl>
To: r-help at r-project.org
Cc: 
Sent: Monday, January 14, 2013 9:55 AM
Subject: Re: [R] putting data.frame values in new dataframes

thank you very much, I have a smaller question:
If I give the first dataframe a name, say data1. How can I read it without
pasting the dataframe




--
View this message in context: http://r.789695.n4.nabble.com/putting-data-frame-values-in-new-dataframes-tp4655474p4655482.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.