Displaying 2 results from an estimated 2 matches for "subz".
Did you mean:
sub
2013 Mar 22
3
Double condition
Hi,
I would appreciate if somebody could help me with this small issue...
I have a dataframe like this (originaly has more than 100 000 rows):
> subz
jul time dtime fix ddawn ddusk day
101608 15006 2011-02-01 19:14:49 19.24694 noon 7.916667 19.88333 1
101609 15006 2011-02-01 19:24:49 19.41361 midnight 7.916667 19.56667 1
101610 15006 2011-02-01 19:24:49 19.41361 noon 7.916667 19.88333 1
101611...
2008 Mar 03
2
handling big data set in R
...ion on the submatrix.
I used the function "split":
datamatrix<-read.csv("datas.csv", header=F, sep=",")
dim(datamatrix)
# [1] 2980523 3
names(datamatrix)<-c("X","Y","Z")
attach(datamatrix)
subX<-split(X, X)
subY<-split(Y,X)
subZ<-split(Z,X)
n<-length(subdata) ### number of groups
s1<-s2<-rep(NA, n) ### vector to store the regression slope
for (i in 1:n){
a<-table(Y[[i]])
table.x<-as.numeric(names(a))
table.y<-as.numeric(a)
fit1<-lm(table.y~table.x) ##### find the slope of the histo...