search for: wlth

Displaying 9 results from an estimated 9 matches for "wlth".

Did you mean: with
2017 Sep 15
7
require help
...e series. kindly help me. also using zoo and xts packages. but they take only monthly observations. 'data.frame': 30 obs. of 4 variables: $ year: int 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 ... $ cnsm: num 174 175 175 172 173 ... $ incm: num 53.4 53.7 53.5 53.2 53.3 ... $ wlth: num 60.3 60.5 60.2 60.1 60.7 ... -- Yadawananda Neog Research Scholar Department of Economics Banaras Hindu University Mob. 9838545073 [[alternative HTML version deleted]]
2017 Sep 16
2
require help
...<- read.csv(file="data2.csv",header=TRUE) dates <- as.Date(paste(df$year,"-01-01",sep="")) myXts <- xts(df,order.by=dates) head(myXts) #The last command "head(myXts)" shows you the first few rows of the xts object year cnsm incm wlth 1980-01-01 1980 173.6527 53.3635 60.3013 1981-01-01 1981 175.4613 53.6929 60.4980 1982-01-01 1982 174.5724 53.4890 60.2358 1983-01-01 1983 171.5070 53.2223 60.1047 1984-01-01 1984 173.3462 53.2851 60.6946 1985-01-01 1985 171.7075 53.1596 60.7598 On Sat, Sep 16, 2017 at 9:55 AM, Berend Hasselman &...
2017 Sep 16
0
require help
...also using zoo and xts packages. but they take only monthly observations. > > 'data.frame': 30 obs. of 4 variables: > $ year: int 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 ... > $ cnsm: num 174 175 175 172 173 ... > $ incm: num 53.4 53.7 53.5 53.2 53.3 ... > $ wlth: num 60.3 60.5 60.2 60.1 60.7 ... > -- Second try to do what you would like (I hope and think) Using Eric's sample data <code> zdf <- data.frame(year=2001:2010, cnsm=sample(170:180,10,replace=TRUE), incm=rnorm(10,53,1), wlth=rnorm(10,60,1)) zdf # R ts zts <-...
2017 Sep 16
0
require help
...v",header=TRUE) > dates <- as.Date(paste(df$year,"-01-01",sep="")) > myXts <- xts(df,order.by=dates) > head(myXts) > > #The last command "head(myXts)" shows you the first few rows of the xts > object > year cnsm incm wlth > 1980-01-01 1980 173.6527 53.3635 60.3013 > 1981-01-01 1981 175.4613 53.6929 60.4980 > 1982-01-01 1982 174.5724 53.4890 60.2358 > 1983-01-01 1983 171.5070 53.2223 60.1047 > 1984-01-01 1984 173.3462 53.2851 60.6946 > 1985-01-01 1985 171.7075 53.1596 60.7598 > > > On Sat,...
2017 Sep 15
0
require help
...t kind of an analysis but perhaps you don?t have to. > kindly help me. > also using zoo and xts packages. but they take only monthly observations. If you really have to convert to xts/zoo, why don?t yo set each year to first day of January and use it as is? For instance, index, cnsm, incm, wlth 1980-01-01, 174, 53.4, 60.3 1981-01-01, 175, 53.7, 60.5 1982-01-01, 175, 53.5, 60.2 ?.. > > 'data.frame': 30 obs. of 4 variables: > $ year: int 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 ... > $ cnsm: num 174 175 175 172 173 ... > $ incm: num 53.4 53.7 53.5 53.2...
2017 Sep 22
2
require help
...; dates <- as.Date(paste(df$year,"-01-01",sep="")) >> myXts <- xts(df,order.by=dates) >> head(myXts) >> >> #The last command "head(myXts)" shows you the first few rows of the xts >> object >> year cnsm incm wlth >> 1980-01-01 1980 173.6527 53.3635 60.3013 >> 1981-01-01 1981 175.4613 53.6929 60.4980 >> 1982-01-01 1982 174.5724 53.4890 60.2358 >> 1983-01-01 1983 171.5070 53.2223 60.1047 >> 1984-01-01 1984 173.3462 53.2851 60.6946 >> 1985-01-01 1985 171.7075 53.1596 60.7598...
2017 Sep 22
0
require help
...$year,"-01-01",sep="")) > >> myXts <- xts(df,order.by=dates) > >> head(myXts) > >> > >> #The last command "head(myXts)" shows you the first few rows of the xts > >> object > >> year cnsm incm wlth > >> 1980-01-01 1980 173.6527 53.3635 60.3013 > >> 1981-01-01 1981 175.4613 53.6929 60.4980 > >> 1982-01-01 1982 174.5724 53.4890 60.2358 > >> 1983-01-01 1983 171.5070 53.2223 60.1047 > >> 1984-01-01 1984 173.3462 53.2851 60.6946 > >> 1985-01-01...
2010 May 26
3
error "variable names are limited to 256 bytes" when sourcing code
I've written a function that takes some input data output from a simulation model and creates some graphs. It's not very complicated code, and it works perfectly fine if I just run the code as is. But I have converted it into a function so we call it externally, and when I try to source the code to test the function, I get the error message "variable names are limited to 256
2017 Sep 15
0
require help
...88 1989 ... > $ cnsm: num 174 175 175 172 173 ... > $ incm: num 53.4 53.7 53.5 53.2 53.3 ... It shouldn't be difficult. Example: tsdata <- data.frame(year=c(2000,2002,2003), x=c(1,2,3),y=c(10,11,12)) xy.ts <- as.ts(tsdata) library(zoo) as.zoo(xy.ts) Berend Hasselman > $ wlth: num 60.3 60.5 60.2 60.1 60.7 ... > -- > Yadawananda Neog > Research Scholar > Department of Economics > Banaras Hindu University > Mob. 9838545073 > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project...