由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - load data to a dictionary in R (转载)
相关主题
这算java没学好吗?how to return two values in a C function?
报两个湾区 Data Scientist Offer (Non-CS), 求意见请问什么是Values Team Discussion?
今天的interview再来一道题
再来题目hashmap跟hash table有啥区别?
请问C#中如何update hashtable中的value? (转载)找工作太难了
职业杯另外一道Google电面
MS电面amazon的一道题
凌晨的飞机,第一个travel的onsitehow about this offer
相关话题的讨论汇总
话题: data话题: region话题: dictionary话题: country话题: load
进入JobHunting版参与讨论
1 (共1页)
m******t
发帖数: 273
1
【 以下文字转载自 Quant 讨论区 】
发信人: myregmit (myregmit), 信区: Quant
标 题: load data to a dictionary in R
发信站: BBS 未名空间站 (Sun Mar 16 20:45:51 2014, 美东)
I need to load data from a .csv file and then save it in a dictionary in R.
The data format:
country,region,value
Each row may have different country and region.
I need to save the value with the same country and region together.
Any help would be appreciated.
x****B
发帖数: 103
2
很愿意帮助。看起来好像很简单
能不能贴几行数据。
m******t
发帖数: 273
3
The data format:
country,region,value
1 , north , 101
1 , north , 219
2 , south , 308
2 , south , 862
... , ... , ...
This may have the thousands of lines that need to be read from .csv file.
My expected results that can be save in a data structure of R :
country , region, list of values
1 north 101 , 219
2 south 308 , 862
So that I can get the values that are associated with the same country and
region.
Thanks !

【在 x****B 的大作中提到】
: 很愿意帮助。看起来好像很简单
: 能不能贴几行数据。

1 (共1页)
进入JobHunting版参与讨论
相关主题
how about this offer请问C#中如何update hashtable中的value? (转载)
贡献一道 C++ 题目职业杯另外一道
贴一道老算法题MS电面
请教 Intel Offer凌晨的飞机,第一个travel的onsite
这算java没学好吗?how to return two values in a C function?
报两个湾区 Data Scientist Offer (Non-CS), 求意见请问什么是Values Team Discussion?
今天的interview再来一道题
再来题目hashmap跟hash table有啥区别?
相关话题的讨论汇总
话题: data话题: region话题: dictionary话题: country话题: load