Displaying 2 results from an estimated 2 matches for "mycolinfo".
2011 Nov 23
1
Losing custom attributes
...c(40,42,30)
### creating my data frame ####
mydata <- data.frame(age,weight)
### creating data frame level attribute ####
attr(mydata,"myattr")<-c("myinfo")
### creating col level attribute for 'age' column ###
attr(mydata$age,"mycolattr")<-c("mycolinfo")
#### Checking attributes ###
attributes(mydata)
attributes(mydata$age)
### creating new row #####
newrow <- data.frame(age=16, weight= 42)
#### Inserting newrow as first row to my data frame ####
mydata<- rbind(newrow, mydata)
#### Checking attributes again ### I lost my custom...
2011 Nov 23
2
SPSS F-test on change in R square between hierarchical models
...frame ####
> mydata <- data.frame(age,weight)
>
> ### creating data frame level attribute ####
> attr(mydata,"myattr")<-c("myinfo")
>
> ### creating col level attribute for 'age' column ###
> attr(mydata$age,"mycolattr")<-c("mycolinfo")
>
> #### Checking attributes ###
> attributes(mydata)
> attributes(mydata$age)
>
> ### creating new row #####
> newrow <- data.frame(age=16, weight= 42)
>
> #### Inserting newrow as first row to my data frame ####
> mydata<- rbind(newrow, mydata)
>
&g...