m******t 发帖数: 273 | 1 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. |
D********n 发帖数: 978 | 2 兄弟,R里面就木有dictonary这个东西啊?您.NET出身?
【在 m******t 的大作中提到】 : 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.
|
r***6 发帖数: 401 | 3 Use data frame and tapply.
Python or perl is better for these kinda tasks.
★ 发自iPhone App: ChineseWeb 7.8
【在 D********n 的大作中提到】 : 兄弟,R里面就木有dictonary这个东西啊?您.NET出身?
|
D********n 发帖数: 978 | 4 R里面有environment还有个package叫hash的,和.NET里面的dictionary比较类似。
【在 r***6 的大作中提到】 : Use data frame and tapply. : Python or perl is better for these kinda tasks. : : ★ 发自iPhone App: ChineseWeb 7.8
|