Hi,every one .I have searched the solutions in the forum for replacing my
date value which is in a data frame ,01/01/2000 to 01-01-2000 using replace
function but got the following warning message
x-2000/01/01
xd-as.data.frame(x)
xd$x-replace(xd$x,xd$x==/,-)
Warning message:
In
Thanks Mr.Winsemius for the proposed solution ,it worked fine.But when came
to the entire data frame containing 40 rows ,i used the following code
as proposed by you
a$date1-gsub(/,-,a$date)
got the following error:
Error in `$-.data.frame`(`*tmp*`, date1, value = character(0)) :
This is my sample data
2000/01/01
2000/01/01
2000/02/01
2000/10/01
2000/19/01
2000/20/01
2000/21/01
2000/22/01
2000/23/01
2000/25/01
2000/26/01
2000/27/01
2000/28/01
2000/29/01
Tried using levels function but got the following error .
Error in levels(a$date) - gsub(/, -, levels(a$date)) :
x - c(2000/01/01,
2001/02/01,2000/03/01,2000/04/01,2000/05/01,2000/06/01,2000/07/01,2000/08/01,2000/09/01,2000/10/01)
xd - as.data.frame(x)
levels(xd$x) - gsub(/, -, levels(xd$x))
fix(xd)
This works fine .but with one more variable say xsd in the data frame i'm
getting the following
I heard form my friend there is a way to run R in system hard disk space not
in the RAM .By that we may not run out of memory and have problem attached
with the same.Someone could help me in this.Thanks.
--
View this message in context:
Yes i think this is explanation of the problem faced .Could you please
help me to solve this .
--
View this message in context:
http://n4.nabble.com/R-Memory-Problem-tp1289221p1311291.html
Sent from the R help mailing list archive at Nabble.com.
6 matches
Mail list logo