Displaying 5 results from an estimated 5 matches for "dataread".
Did you mean:
data_read
2007 Nov 21
1
Help Required in using cast (reshape package) function
Hello everyone,
I am new to R. I have data in the form of excel pivot table format and I
want to cast it into a format which can make it compatible with
computation.
Since I already have the package in pivot format; I avoid melt function
and use the cast directly.
I inspect the
dataread <- read.csv(".....", header=TRUE)
Data in the format
Id Region Country Industry
Period variable value
"Aaa11 xx" "Latin America" "Mexico" "food & beverages"
"2002:FY" "account payable" 10000
"Aaa11 x...
2013 Mar 01
7
Conditional Weighted Average (ddply or any other function)
.../ SUM(MKT, where Country = C1, Sector = S1, Fiscalyear FY-3)
4) Weighted ROE based on Country, Industry and Fiscal Year.
For firm N1 of Country C1, Industry I1 and Fiscalyear FY-3
weight is MKT1 / SUM(MKT, where Country = C1, Industry = I1, Fiscalyear FY-3)
I tried using ddply function:
ddply (dataread , .(Sector, FISCALYEAR), summarise, WROE=wavg(ROE, MKTCAP)))
where wavg <- function(x, wt) x %*% wt/sum(wt)
but this doesn't give me the right answer.
I could try subseting the data into different sectors and compute the
weighted average which doesn't look like an elegant solution and...
2005 Dec 06
3
reading in data with variable length
I have very large csv files (up to 1GB each of ASCII text). I'd like to be able to read them directly in to R. The problem I am having is with the variable length of the data in each record.
Here's a (simplified) example:
$ cat foo.csv
Name,Start Month,Data
Foo,10,-0.5615,2.3065,0.1589,-0.3649,1.5955
2007 Nov 23
0
R users in Cyprus
...S-ASCII"
Hello everyone,
I am new to R. I have data in the form of excel pivot table format and I
want to cast it into a format which can make it compatible with
computation.
Since I already have the package in pivot format; I avoid melt function
and use the cast directly.
I inspect the
dataread <- read.csv(".....", header=TRUE)
Data in the format
Id Region Country Industry
Period variable value
"Aaa11 xx" "Latin America" "Mexico" "food & beverages"
"2002:FY" "account payable&...
2004 May 14
0
SuSE & Zaptel Compilation errors
...efore "urb_t"
wcusb.h:96: warning: no semicolon at end of struct or union
wcusb.h:97: warning: type defaults to `int' in declaration of `isoframe'
wcusb.h:97: warning: data definition has no type or storage class
wcusb.h:99: parse error before '}' token
wcusb.h:108: field `dataread' has incomplete type
wcusb.h:109: field `datawrite' has incomplete type
wcusb.h:114: parse error before "urb_t"
wcusb.h:114: warning: no semicolon at end of struct or union
wcusb.h:115: warning: type defaults to `int' in declaration of `dr'
wcusb.h:115: warning: data defin...