由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - an R question
相关主题
###### 问个SAS存贮,显示数据的问题包子求sas 问题解决办法
question about SAS BASE 123 No.64?SAS问题请教:Numeric Variable Length的设定
a question about length assignment问道SAS ADV真题
[合集] SAS一问,急~!问大家一道SAS认证题
几个简单的用R的问题。sas question
问个sas 的问题请教一个统计的题目
sas question。请教一个R 的编程问题
问题请教sas问题,大过节的不知道有没有人看到
相关话题的讨论汇总
话题: mmscore话题: length话题: question话题: dataset话题: variables
进入Statistics版参与讨论
1 (共1页)
z**********i
发帖数: 88
1
I wonder why n[1:4] doesn't return the length of the 4 variables in dataset
MMSCORE. My code is below:
n[1:4]<-length(MMSCORE[,c(4:7)]).
All I wanted to get are the length of the 4th,5th,6th, and 7th variables in
dataset MMSCORE. The lengths should be the same. 740. But it returns to 4,4,
4,4.
With this code, it does returns the correct length.n<-length(MMSCORE[,7])
Thanks!
l*********s
发帖数: 5409
2
apply(MMSCORE[,c(4:7)], 2, length)
z**********i
发帖数: 88
3
thank you very much!
Thanks!
1 (共1页)
进入Statistics版参与讨论
相关主题
sas问题,大过节的不知道有没有人看到几个简单的用R的问题。
another sas question问个sas 的问题
SAS 问题:关于比较variable 包子答谢sas question。
[help]10个包子求KDD cup 2009 的orange公司dataset问题请教
###### 问个SAS存贮,显示数据的问题包子求sas 问题解决办法
question about SAS BASE 123 No.64?SAS问题请教:Numeric Variable Length的设定
a question about length assignment问道SAS ADV真题
[合集] SAS一问,急~!问大家一道SAS认证题
相关话题的讨论汇总
话题: mmscore话题: length话题: question话题: dataset话题: variables