Re: [R] Creating a year-month indicator and groupby with category

2022-10-03 Thread Tariq Khasiri
4. └─self$map(df[[j]]) 15. └─ggplot2 (local) f(..., self = self) 16. └─self$palette(n) 17. └─ggplot2 (local) f(...) 18. └─rlang::abort(glue("Insufficient values in manu

[R] Creating a year-month indicator and groupby with category

2022-10-02 Thread Tariq Khasiri
Hello, I have the following data. I want to show in a line plot how each different company is earning over the timeline of my data sample. I'm not sure how I can create the *year-month indicator* to plot it nicely in my horizontal axis out of my dataset. After creating the *year-month* indicator

Re: [R] Help with steam graph

2022-10-02 Thread Tariq Khasiri
, 2 Oct 2022 at 09:12, David Winsemius wrote: > I don’t see a column with the name ‘com_num’, so the error message makes > complete sense. > > — > David > > Sent from my iPhone > > > On Oct 2, 2022, at 5:06 AM, Tariq Khasiri > wrote: > > > > Hi, i&#x

[R] Help with steam graph

2022-10-02 Thread Tariq Khasiri
Hi, i'm trying to create a steamgraph with the following data by creating a unit indicator by combing the year and month. But, I'm getting error as : Error in `group_by()`: ! Must group by variables found in `.data`. ✖ Column `com_num` is not found. Run `rlang::last_error()` to see where the error

Re: [R] Unable to install gsynth without life package

2022-05-30 Thread Tariq Khasiri
Gsynth until they > both install and work together. > > It is not as though the members of this list have a magic wand that can > fix the problems of many thousands of _contributed_ packages. > > On May 30, 2022 9:08:04 PM PDT, Tariq Khasiri > wrote: > >Hello R Community,

Re: [R] error as in unused argument of a new package

2022-02-26 Thread Tariq Khasiri
I took care of the issue by simply updating an already installed package. Really appreciate for the valuable feedback from R community. Glad to have such kind guidelines. On Sat, Feb 26, 2022 at 1:57 AM Ivan Krylov wrote: > On Fri, 25 Feb 2022 16:14:05 -0600 > Tariq Khasiri

[R] Error in var(if (is.vector(x) || is.factor(x)) x else as.double(x), na.rm = na.rm)

2021-06-25 Thread Tariq Khasiri
Just trying to replicate the Callaway and Sant'Anna average treatment group effect for my research where I would like to see how a particular law implementation is affecting all the treated states' wages compared to the never treated states' ( control group ) wage : ## Cleaning treated and never

[R] How to make an orderly matrix from geostatistical data?

2011-10-05 Thread Tariq
Hi everybody, I used the krige.conv command (geoR package) to create a new data set. The input was a matrix with three spatial coordinates (x, y, z) in the first three columns and the value of a variable in the last column. The output is... a weird sequence of numbers. How can I make this output i

[R] How to "smoothen" a geodata set in R

2011-07-12 Thread Tariq
Hello, I'm new to this list. Sorry if my question or parts of it already came up before. For my research in geostatistics, I am working with large sets of data in R (basically large matrices containing discrete x and y coordinates and a value for a certain parameter). These sets are obtained by kr

[R] Error message with scan() function

2010-10-04 Thread Tariq Perwez
scan() function as explained in the manual as below, I get the error message: > inp <- scan("input.dat", list("",0,0)) Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : scan() expected 'a real', got 'X' I have not been able to

[R] R packages and assess to data in packages

2009-12-05 Thread Tariq Perwez
nd. Removing such a package and all the associated files etc would be nice. I would appreciate any help and comments on my questions. Regards, Tariq [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz

[R] Help with unstack() function

2009-11-15 Thread Tariq Perwez
one uses a very simple data frame (only two columns). I would like to know how to handle more complex data frames as in the exercise. BTW, this is not a school assignment; I am learning R using this book on my own. Thanks for any help. Regards, Tariq [[alternative HTML versi

[R] Help with history() in Emacs/ESS

2009-10-25 Thread Tariq Perwez
. I would greatly appreciate if someone could explain what is going on with history() command under Emacs/ESS. Interestingly, history() command seems to work fine in an R session within the terminal. Best regards, Tariq [[alternative HTML version dele

[R] R binaries for linux on G4 Powerpc?

2008-08-26 Thread Tariq Perwez
this particular distro to install R. I was wondering if there is a way to get access to other repositories to install R on my system. I would appreciate any suggestions and guidance. Regards, Tariq [[alternative HTML version deleted]] __ R-help@r

[R] Help Updating and Installing R Packages

2008-07-15 Thread Tariq Perwez
be better. I would appreciate suggestions. What are others doing in this situation? Currently I have the following outcome of .libPaths() command: > .libPaths() [1] "/usr/local/lib/R/site-library" "/usr/lib/R/site-library" [3] "/usr/lib/R/library" Which librar

[R] Controlling the length of line with abline(lm())

2008-06-18 Thread Tariq Perwez
teach statistics using R seem to be drawing such infinite length-lines. I would appreciate any advice or suggestions. Regards, Tariq [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

[R] Help with axis labels

2008-06-18 Thread Tariq Perwez
have not been able to get rid of the labels like 10^1.69897, 10^2.69897 etc. I would appreciate if someone could modify the following code to solve this problem for me. Regards, Tariq ## Code follows time <- c(0,30,60,90,120,150,180,210,240,270,300,330,360,390,410) sk3222 &

[R] Specifying fonts in R

2008-06-15 Thread Tariq Perwez
others who might have done it. Or perhaps, this cannot be done? I did check that Hershey fonts are available on my system. I am so new to R that I am not yet even clear as to where the R-related stuff is on the computer. I would appreciate any suggestions and advice. Regards, Tariq [[al

[R] Plotting multiple continuous lines with symbols

2008-06-10 Thread Tariq Perwez
lines(exa1.1$Year,exa1.1$IM,type='b', pch=1) lines(exa1.1$Year,exa1.1$BM,type='b', pch=17) mtext(side = 2, text = "Klett units", line = 3.5, cex=1.2) mtext(side = 1, text = expression(Time~at~37*degree*C~(minutes)), line = 2.75,cex=1.2) Regards, Tariq

[R] Superscript/Subscript in main title

2008-06-04 Thread Tariq Perwez
h time") I keep getting errors. I have searched the archives but none of the threads seem to touch upon this. I would appreciate any suggestion. Regards, Tariq [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https:/