[R] Help with RDA analysis, function ''varpart'' in vegan

2017-09-16 Thread Sophi Marmen
I'm trying to perform a RDA analysis in the vegan package using the "varpart" function. I have a matrix of community structure data in different sites (rows), which I want to explain using 3 matrices of environmental data. The 3 matrices are: water quality parameters; local land use variables;

Re: [R] R_LIBS_USER not in libPaths

2017-09-16 Thread Martin Morgan
On 09/16/2017 11:29 AM, Rene J Suarez-Soto wrote: I have not intentionally set R_LIBS_USER. I looked for an Renviron.site file but did not see it in R/etc or my home directory. The strange part is that if I print Sud.getenv I see a value for R_LIBS_USER. However, this directory is not showing

Re: [R] R_LIBS_USER not in libPaths

2017-09-16 Thread Jeff Newmiller
These environment variables are _inputs_ to the R startup sequence, and optional ones at that. If you don't set them then R makes default settings. Read the R Installation and Administration manual that comes with R for more information. You also need to understand the scope of environment

Re: [R] R_LIBS_USER not in libPaths

2017-09-16 Thread Michael Dewey
Dear Rene I am not sure I understand your problem so this may be completely uselss but when I am going to run R from the command line I first of all run a little batch file. set R_HOME=C:\Users\Michael\Documents\bin\R\R-3.4.1 set R_PATH=%R_HOME%\bin\x64 set PATH=%R_PATH%;%PATH% Someone

Re: [R] R_LIBS_USER not in libPaths

2017-09-16 Thread Rene J Suarez-Soto
I have not intentionally set R_LIBS_USER. I looked for an Renviron.site file but did not see it in R/etc or my home directory. The strange part is that if I print Sud.getenv I see a value for R_LIBS_USER. However, this directory is not showing under libPaths. I though .libPaths should contain

Re: [R] R_LIBS_USER not in libPaths

2017-09-16 Thread Henrik Bengtsson
I'm not sure I follow what.the problem is. Are you trying to set R_LIBS_USER but R does not acknowledge it, or do you observe something in R that you didn't expect to be there and you are trying to figure out why that is / where that happens? Henrik On Sep 16, 2017 07:10, "Rene J Suarez-Soto"

[R] R_LIBS_USER not in libPaths

2017-09-16 Thread Rene J Suarez-Soto
I have a computer where R_LIBS_USER is not found in libPaths. This is for Windows (x64). I ran R from the command line, RGui and RStudio and I get the same results. I also ran R --vanilla and I still get the discrepancy. The only thing I found interesting was that I also ran SET from the command

Re: [R] require help

2017-09-16 Thread yadav neog
oky.. thank you very much to all of you On Sat, Sep 16, 2017 at 2:06 PM, Eric Berger wrote: > You can just use the same code that I provided before but now use your > dataset. Like this > > df <- read.csv(file="data2.csv",header=TRUE) > dates <-

Re: [R] Help with shiny::reactiveFileReader()

2017-09-16 Thread Jeff Newmiller
No. However, you can modify the global environment from within a function if you understand how variable scoping works. [1] See `<<-`. Be warned that this leads down a perilous path of confusing code (side effects) if misused. [1] http://adv-r.had.co.nz/Environments.html -- Sent from my phone.

[R] Help with shiny::reactiveFileReader()

2017-09-16 Thread Lars Bishop
Hello, Is it possible to execute functions (outside the ui and server shiny environments) after reading data using reactiveFileReader() ? For example, I'd like to fit a linear model on data read using reactiveFileReader() outside ui/server. library(shiny) library(dplyr) bigData <-

[R] [R-pkgs] revengc CRAN package

2017-09-16 Thread sam d via R-packages
Dear R community,   I am happy to announce the publication on CRAN of the revengc package: https://cran.r-project.org/web/packages/revengc/index.html The statistical package revengc was designed to reverse engineer censored, decoupledcensus data into a likely hhs x area uncensored contingency

Re: [R] require help

2017-09-16 Thread Eric Berger
You can just use the same code that I provided before but now use your dataset. Like this df <- 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

Re: [R] require help

2017-09-16 Thread Berend Hasselman
> On 15 Sep 2017, at 11:38, yadav neog wrote: > > hello to all. I am working on macroeconomic data series of India, which in > a yearly basis. I am unable to convert my data frame into time series. > kindly help me. > also using zoo and xts packages. but they take only