Re: [R] Help executing R on High Performance Cluster

2022-10-04 Thread Ivan Krylov
Hi Eric!

В Tue, 4 Oct 2022 13:36:59 +
"Rhon Calderon, Eric"  пишет:

> cd /home/ericrhon/labsoftware/R-devel/

> ./configure --prefix=/home/ericrhon/labsoftware/R-devel

I'm not sure, but the reason for the confusing behaviour could be
that the installation prefix is set to be the same as the directory
where you had unpacked the source code. This may have caused file path
conflicts and maybe some kind of recursion when building the final
executable path.

R can run straight from the build directory, without installation.
If you start from scratch, does bin/R work without `make install`? If
not, do you get any useful output if you run bin/R under sh -x?

(Additionally, R supports building away from the source code directory.
For example, if you navigate to the source code directory, then run
mkdir build && cd build && ../configure $CONFIGURE_ARGUMENTS, the build
will be mostly self-contained to that directory, which may be useful
when experimenting.)

Why are you building R with --with-recommended-packages=no?

R is supposed to be easy to build and start working with, but there may
be important details to consider, especially on an HPC, in the "R
installation and administration" guide:
https://cran.r-project.org/doc/manuals/r-release/R-admin.html

> Here is the exec script of R, line 272 is highlighted:
<...>
>   [[alternative HTML version deleted]]

This mailing list strips the HTML version of the e-mails; here's what
we see: https://stat.ethz.ch/pipermail/r-help/2022-October/475956.html

One way to link to R source code is to use the GitHub mirror:
https://github.com/r-devel/r-svn

-- 
Best regards,
Ivan

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help executing R on High Performance Cluster

2022-10-04 Thread Rhon Calderon, Eric
Hi,

I need some help executing recently downloaded R on my HPC.

Here is the script I used to install R on my HPC module:


wget https://cran.r-project.org/src/base-prerelease/R-devel.tar.gz

tar -xvf R-devel.tar.gz

cd /home/ericrhon/labsoftware/R-devel/

./configure --prefix=/home/ericrhon/labsoftware/R-devel 
-with-recommended-packages=no --without-x --with-cairo --with-libpng 
--with-libtiff --with-jpeglib --enable-R-shlib --with-pcre1

make

make install

After I installed, I tried to run /home/ericrhon/labsoftware/R-devel/R. But I 
get the next error:


/home/ericrhon/labsoftware/R-devel/bin/exec/R: line 272: 
/home/ericrhon/labsoftware/R-devel/bin/exec/R: Argument list too long

/home/ericrhon/labsoftware/R-devel/bin/exec/R: line 272: 
/home/ericrhon/labsoftware/R-devel/bin/exec/R: Success

Here is the exec script of R, line 272 is highlighted:


#!/bin/sh

# Shell wrapper for R executable.


R_HOME_DIR="/home/ericrhon/labsoftware/R-devel"

if test "${R_HOME_DIR}" = 
"/home/ericrhon/labsoftware/shared_Renv/versions/R-devel/lib64/R"; then

   case "linux-gnu" in

   linux*)

 run_arch=`uname -m`

 case "$run_arch" in

x86_64|mips64|ppc64|powerpc64|sparc64|s390x)

  libnn=lib64

  libnn_fallback=lib

;;

*)

  libnn=lib

  libnn_fallback=lib64

;;

 esac

 if [ -x 
"/home/ericrhon/labsoftware/shared_Renv/versions/R-devel/${libnn}/R/bin/exec/R" 
]; then


R_HOME_DIR="/home/ericrhon/labsoftware/shared_Renv/versions/R-devel/${libnn}/R"

 elif [ -x 
"/home/ericrhon/labsoftware/shared_Renv/versions/R-devel/${libnn_fallback}/R/bin/exec/R"
 ]; then


R_HOME_DIR="/home/ericrhon/labsoftware/shared_Renv/versions/R-devel/${libnn_fallback}/R"

 ## else -- leave alone (might be a sub-arch)

 fi

 ;;

  esac

fi


if test -n "${R_HOME}" && \

   test "${R_HOME}" != "${R_HOME_DIR}"; then

  echo "WARNING: ignoring environment value of R_HOME"

fi

R_HOME="${R_HOME_DIR}"

export R_HOME

R_SHARE_DIR="${R_HOME_DIR}/share"

export R_SHARE_DIR

R_INCLUDE_DIR="${R_HOME_DIR}/include"

export R_INCLUDE_DIR

R_DOC_DIR="${R_HOME_DIR}/doc"

export R_DOC_DIR


# Since this script can be called recursively, we allow R_ARCH to

# be overridden from the environment.

# This script is shared by parallel installs, so nothing in it should

# depend on the sub-architecture except the default here.

: ${R_ARCH=}


usage="

Usage: R [options] [< infile] [> outfile]

   or: R CMD command [arguments]


Start R, a system for statistical computation and graphics, with the

specified options, or invoke an R tool via the 'R CMD' interface.


Options:

  -h, --helpPrint short help message and exit

  --version Print version info and exit

  --encoding=ENCSpecify encoding to be used for stdin

  --encoding ENC

  RHOME  Print path to R home directory and exit

  --saveDo save workspace at the end of the session

  --no-save Don't save it

  --no-environ  Don't read the site and user environment files

  --no-site-fileDon't read the site-wide Rprofile

  --no-init-fileDon't read the user R profile

  --restore Do restore previously saved objects at startup

  --no-restore-data Don't restore previously saved objects

  --no-restore-history  Don't restore the R history file

  --no-restore  Don't restore anything

  --vanilla Combine --no-save, --no-restore, --no-site-file,

--no-init-file and --no-environ

  --no-readline Don't use readline for command-line editing

  --max-ppsize=NSet max size of protect stack to N

  --min-nsize=N Set min number of fixed size obj's (\"cons cells\") to N

  --min-vsize=N Set vector heap minimum to N bytes; '4M' = 4 MegaB

  -q, --quiet   Don't print startup message

  --silent  Same as --quiet

  -s, --no-echo Make R run as quietly as possible

  --interactive Force an interactive session

  --verbose Print more information about progress

  -d, --debugger=NAME   Run R through debugger NAME

  --debugger-args=ARGS  Pass ARGS as arguments to the debugger

  -g TYPE, --gui=TYPE   Use TYPE as GUI; possible values are 'X11' (default)

and 'Tk'.

  --arch=NAMESpecify a sub-architecture

  --argsSkip the rest of the command line

  -f FILE, --file=FILE  Take input from 'FILE'

  -e EXPR   Execute 'EXPR' and exit


FILE may contain spaces but not shell metacharacters.


Commands:

  BATCH   Run R in batch mode

  COMPILE 

Re: [R] Help in R

2021-07-07 Thread Andrew Simmons
Hello,


I can't provide too much help without knowing which packages `hotspot` and
`levelplot` come from. It might be something as simple as
`as.data.frame(matrixaa)` instead of `matrixaa`.

On Wed, Jul 7, 2021 at 10:04 AM Ahmed Elbeltagi 
wrote:

>  Dear,
> I have a problem in the last code in R. I have attached code highlighted
> with yellow color, files, and screenshot of error.
> Waiting for your kind help.
> Regards,
> Ahmed
> ______
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help in R code

2020-10-18 Thread Martin Møller Skarbiniks Pedersen
I think you first should read and understand this:
https://stackoverflow.com/help/minimal-reproducible-example
and
https://stackoverflow.com/help/how-to-ask

On Sun, Oct 18, 2020, 11:57 Faheem Jan via R-help 
wrote:

> Good morning,  Please help me to code this code in R.
> I working in the multivariate time series data, know my objective is that
> to one year forecast of the hourly time series data, using first five as a
> training set and the remaining one year as validation. For this  I
> transform the the data into functional data through Fourier basis
> functional, apply functional principle components as dimensional reduction
> explaining a specific amount of variation   , using the corresponding
> functional principle components scores. I use the VAR model on those
> FPCscores for forecasting one day ahead forecast, know my problem is that i
> choose four Fpc scores which give only four value in a single day, I want
> the forecast for 24 hours not only 4, and then i want to transform it back
> to the original functional data. for the understanding i am sharing my code
> (1) transform of the multivariate time series data in functional data(2)
> the functional principle components and the corresponding scores(3) I use
> functional final prediction error for the selection of the parameters on
> the VAR model(4) Using VAR for the analysis and forecasting .(1) nb = 23 #
> number of basis functions for the data  fbf =
> create.fourier.basis(rangeval=c(0,1), nbasis=nb) # basis for data
> args=seq(0,1,length=24)  fdata1=Data2fd(args,y=t(mat),fbf) # functions
> generated from discretized y(2) ffpe = fFPE(fdata1, Pmax=10)  d.hat =
> ffpe[1] #order of the model  p.hat = ffpe[2] #lag of the model
> (3) n = ncol(fdata1$coef)  D = nrow(fdata1$coef)  #center the data  mu =
> mean.fd(fdata1)  data = center.fd(fdata1)  #fPCA  fpca =
> pca.fd(data,nharm=D)  scores = fpca$scores[,1:d.hat](4) # to avoid warnings
> from vars predict function below  colnames(scores) <-
> as.character(seq(1:d.hat))  VAR.pre= predict(VAR(scores, p.hat),
> n.ahead=1, type="const")$fcst
> after this I need help first how to transform this into original
> Functional data and to obtain the for for each 24 hours (mean one day
> forecast) and to how to generalize the result for one year.
>
>
> [[alternative HTML version deleted]]
>
> ______
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help in R code

2020-10-18 Thread Faheem Jan via R-help
Good morning,  Please help me to code this code in R.
I working in the multivariate time series data, know my objective is that to 
one year forecast of the hourly time series data, using first five as a 
training set and the remaining one year as validation. For this  I transform 
the the data into functional data through Fourier basis functional, apply 
functional principle components as dimensional reduction explaining a specific 
amount of variation   , using the corresponding  functional principle 
components scores. I use the VAR model on those FPCscores for forecasting one 
day ahead forecast, know my problem is that i choose four Fpc scores which give 
only four value in a single day, I want the forecast for 24 hours not only 4, 
and then i want to transform it back to the original functional data. for the 
understanding i am sharing my code (1) transform of the multivariate time 
series data in functional data(2) the functional principle components and the 
corresponding scores(3) I use functional final prediction error for the 
selection of the parameters on the VAR model(4) Using VAR for the analysis and 
forecasting .(1) nb = 23 # number of basis functions for the data  fbf = 
create.fourier.basis(rangeval=c(0,1), nbasis=nb) # basis for data  
args=seq(0,1,length=24)  fdata1=Data2fd(args,y=t(mat),fbf) # functions 
generated from discretized y(2) ffpe = fFPE(fdata1, Pmax=10)  d.hat = ffpe[1] 
#order of the model  p.hat = ffpe[2] #lag of the model
(3) n = ncol(fdata1$coef)  D = nrow(fdata1$coef)  #center the data  mu = 
mean.fd(fdata1)  data = center.fd(fdata1)  #fPCA  fpca = pca.fd(data,nharm=D)  
scores = fpca$scores[,1:d.hat](4) # to avoid warnings from vars predict 
function below      colnames(scores) <- as.character(seq(1:d.hat))      
VAR.pre= predict(VAR(scores, p.hat), n.ahead=1, type="const")$fcst
after this I need help first how to transform this into original Functional 
data and to obtain the for for each 24 hours (mean one day forecast) and to how 
to generalize the result for one year.


[[alternative HTML version deleted]]

______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] help for R code

2020-10-13 Thread Eric Berger
Hi Ablaye,
The CRAN repository has thousands of available R packages. To help
people find relevant packages amid such a huge collection, there are
some 'task view' pages that group packages according to a particular
task. I am guessing that you are interested in kernels because of
their use in machine learning, so you might want to look at the
Machine Learning task view at:

https://cran.r-project.org/web/views/MachineLearning.html

If you search for 'kernels' on that page you will find

'Support Vector Machines and Kernel Methods' which mentions a few
packages that use kernels.

Good luck,
Eric


On Tue, Oct 13, 2020 at 10:09 AM Ablaye Ngalaba  wrote:
>
> Good morning dear administrators,
> Please help me to code this code in R.
> I use in this file the redescription function Φ which by making a scalar
> product gives a . You can also choose instead of the redescription function
> Φ a kernel k(x,x).
>
>
>
>
>   Sincerely
>
> [[alternative HTML version deleted]]
>
> ______
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] help for R code

2020-10-13 Thread Ablaye Ngalaba
Good morning dear administrators,
Please help me to code this code in R.
I use in this file the redescription function Φ which by making a scalar
product gives a . You can also choose instead of the redescription function
Φ a kernel k(x,x).




  Sincerely

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help in R code

2020-10-04 Thread Rui Barradas

Hello,

This is cross-posted, you have posted the same question in SO[1].
Cross-posting is not well seen, post the question in one place and 
please wait a few days for an answer before posting here.


[1] 
https://stackoverflow.com/questions/64197235/forecasting-of-multivariate-data-through-vector-autoregression-model


Hope this helps,

Rui Barradas

Às 17:25 de 04/10/20, Faheem Jan via R-help escreveu:

Hello , i am working in the functional time series using themultivariate time 
series data(hourly time series data). Sir  i am usingFAR model more than one 
order for which no statistical package is available inR, so for this i convert 
my data into functional form and obtained thefunctional principle component and 
from those FPCA i extract theircorresponding  FPCscores. Know i use the VAR 
model on those FPCscores forthe forecasting of each 24 hours through the VAR 
model, but the VAR give me theforecasted value for all 23hours  when i put 
phat=23, but whenever i putphat=24 i.e want to predict each 24 hours its give 
the results in the form ofNA. the code is given below

  


fdata<- function(mat){

   nb = 27 # number of basis functions for the data

   fbf = create.fourier.basis(rangeval=c(0,1), nbasis=nb) #basis for data

   args=seq(0,1,length=24)

   fdata1=Data2fd(args,y=t(mat),fbf) # functions generatedfrom discretized y

   return(fdata1)

}

prediction.ffpe = function(fdata1){

   n = ncol(fdata1$coef)

   D = nrow(fdata1$coef)

   #center the data

   #mu = mean.fd(fdata1)

   data = center.fd(fdata1)

   #ffpe = fFPE(fdata1, Pmax=10)

   #p.hat = ffpe[2] #order of the model

   d.hat=23

   p.hat=6

   #fPCA

   fpca = pca.fd(data,nharm=D, centerfns=TRUE)

   scores = fpca$scores[,0:d.hat]

   # to avoid warnings from vars predict function below

   colnames(scores) <- as.character(seq(1:d.hat))

   VAR.pre= predict(VAR(scores, p.hat), n.ahead=1,type="const")$fcst

   


}

  


kindly guide me that how can i solve out my problem or whaterror i doing. THANKS


[[alternative HTML version deleted]]

__________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



__________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help in R code

2020-10-04 Thread Faheem Jan via R-help
Hello , i am working in the functional time series using themultivariate time 
series data(hourly time series data). Sir  i am usingFAR model more than one 
order for which no statistical package is available inR, so for this i convert 
my data into functional form and obtained thefunctional principle component and 
from those FPCA i extract theircorresponding  FPCscores. Know i use the VAR 
model on those FPCscores forthe forecasting of each 24 hours through the VAR 
model, but the VAR give me theforecasted value for all 23hours  when i put 
phat=23, but whenever i putphat=24 i.e want to predict each 24 hours its give 
the results in the form ofNA. the code is given below

 

fdata<- function(mat){

  nb = 27 # number of basis functions for the data

  fbf = create.fourier.basis(rangeval=c(0,1), nbasis=nb) #basis for data

  args=seq(0,1,length=24)

  fdata1=Data2fd(args,y=t(mat),fbf) # functions generatedfrom discretized y

  return(fdata1)

}

prediction.ffpe = function(fdata1){

  n = ncol(fdata1$coef)

  D = nrow(fdata1$coef)

  #center the data

  #mu = mean.fd(fdata1)

  data = center.fd(fdata1)

  #ffpe = fFPE(fdata1, Pmax=10)

  #p.hat = ffpe[2] #order of the model

  d.hat=23

  p.hat=6

  #fPCA

  fpca = pca.fd(data,nharm=D, centerfns=TRUE)

  scores = fpca$scores[,0:d.hat]

  # to avoid warnings from vars predict function below

  colnames(scores) <- as.character(seq(1:d.hat))

  VAR.pre= predict(VAR(scores, p.hat), n.ahead=1,type="const")$fcst

  

}

 

kindly guide me that how can i solve out my problem or whaterror i doing. THANKS


[[alternative HTML version deleted]]

__________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] help in R code

2020-10-02 Thread Jim Lemon
Hi Faheem,
This is a complete guess, but the hours of the day may range from 0 to
23 not 1 to 24. So you may be asking for an out of range hour.

Jim

On Fri, Oct 2, 2020 at 10:00 PM Faheem Jan via R-help
 wrote:
>
>
> Hello , i am working in the functional time series using the multivariate 
> time series data(hourly time series data). Sir  i am using FAR model more 
> than one order for which no statistical package is available in R, so for 
> this i convert my data into functional form and obtained the functional 
> principle component and from those FPCA i extract their corresponding  
> FPCscores. Know i use the VAR model on those FPCscores for the forecasting of 
> each 24 hours through the VAR model, but the VAR give me the forecasted value 
> for all 23hours  when i put phat=23, but whenever i put phat=24 i.e want to 
> predict each 24 hours its give the results in the form of NA. the code is 
> given below
> fdata<- function(mat){  nb = 27 # number of basis functions for the data  fbf 
> = create.fourier.basis(rangeval=c(0,1), nbasis=nb) # basis for data  
> args=seq(0,1,length=24)  fdata1=Data2fd(args,y=t(mat),fbf) # functions 
> generated from discretized y  return(fdata1)}prediction.ffpe = 
> function(fdata1){  n = ncol(fdata1$coef)  D = nrow(fdata1$coef)  #center the 
> data  #mu = mean.fd(fdata1)  data = center.fd(fdata1)  #ffpe = fFPE(fdata1, 
> Pmax=10)  #p.hat = ffpe[2] #order of the model  d.hat=23  p.hat=6  #fPCA  
> fpca = pca.fd(data,nharm=D, centerfns=TRUE)  scores = fpca$scores[,0:d.hat]  
> # to avoid warnings from vars predict function below  colnames(scores) <- 
> as.character(seq(1:d.hat))  VAR.pre= predict(VAR(scores, p.hat), n.ahead=1, 
> type="const")$fcst  }
> kindly guide me that how can i solve out my problem or what error i doing. 
> THANKS
>
>     [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] help in R code

2020-10-02 Thread Faheem Jan via R-help


Hello , i am working in the functional time series using the multivariate time 
series data(hourly time series data). Sir  i am using FAR model more than one 
order for which no statistical package is available in R, so for this i convert 
my data into functional form and obtained the functional principle component 
and from those FPCA i extract their corresponding  FPCscores. Know i use the 
VAR model on those FPCscores for the forecasting of each 24 hours through the 
VAR model, but the VAR give me the forecasted value for all 23hours  when i put 
phat=23, but whenever i put phat=24 i.e want to predict each 24 hours its give 
the results in the form of NA. the code is given below
fdata<- function(mat){  nb = 27 # number of basis functions for the data  fbf = 
create.fourier.basis(rangeval=c(0,1), nbasis=nb) # basis for data  
args=seq(0,1,length=24)  fdata1=Data2fd(args,y=t(mat),fbf) # functions 
generated from discretized y  return(fdata1)}prediction.ffpe = 
function(fdata1){  n = ncol(fdata1$coef)  D = nrow(fdata1$coef)  #center the 
data  #mu = mean.fd(fdata1)  data = center.fd(fdata1)  #ffpe = fFPE(fdata1, 
Pmax=10)  #p.hat = ffpe[2] #order of the model  d.hat=23  p.hat=6  #fPCA  fpca 
= pca.fd(data,nharm=D, centerfns=TRUE)  scores = fpca$scores[,0:d.hat]  # to 
avoid warnings from vars predict function below  colnames(scores) <- 
as.character(seq(1:d.hat))  VAR.pre= predict(VAR(scores, p.hat), n.ahead=1, 
type="const")$fcst  }
kindly guide me that how can i solve out my problem or what error i doing. 
THANKS

[[alternative HTML version deleted]]

__________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R-Markdown please

2020-05-13 Thread Rasmus Liland
On 2020-05-13 19:54 +, Poling, William wrote:
> I have R on personal laptop for 
> consultative purposes from time to time, 
> however, I cannot move data, 
> confidentiality constraints, as you can 
> imagine.
> 
> I have initiated another IT ticket with 
> organization, I think I will get to the 
> bottom of this at some point.

Great, I hope you get to the bottom of this! 
加油!加油!

______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R-Markdown please

2020-05-13 Thread Poling, William via R-help
I have R on personal laptop for consultative purposes from time to time, 
however, I cannot move data, confidentiality constraints, as you can imagine.

I have initiated another IT ticket with organization, I think I will get to the 
bottom of this at some point.

Thank you.

WHP


Proprietary

-Original Message-
From: Rasmus Liland  
Sent: Wednesday, May 13, 2020 2:50 PM
To: Poling, William 
Cc: r-help@r-project.org
Subject: [EXTERNAL] Re: Re: [R] Help with R-Markdown please

 External Email - Use Caution 

On 2020-05-13 19:27 +, Poling, William wrote:
> if this is something I can do without IT admin access.

Hi!  O.T. on laptops: Also, perhaps it is easier to find another laptop.  There 
seems to be some great ThinkPads readily available anywhere around the U.S., 
like an X61 or X220 or something, at least that is my impression from various 
Facebook groups ... I mean if it is easier for you to complete your work on 
another machine where you have admin access ... just for making a rmarkdown 
presentation or something, not for working with the sensitive insurance data 
... 

Best,
Rasmus

NOTICE TO RECIPIENT OF INFORMATION:\ This e-mail may con...{{dropped:16}}

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R-Markdown please

2020-05-13 Thread Rasmus Liland
On 2020-05-13 19:27 +, Poling, William wrote:
> if this is something I can do without IT admin access.

Hi!  O.T. on laptops: Also, perhaps it is 
easier to find another laptop.  There seems 
to be some great ThinkPads readily available 
anywhere around the U.S., like an X61 or X220 
or something, at least that is my impression 
from various Facebook groups ... I mean if it 
is easier for you to complete your work on 
another machine where you have admin access 
... just for making a rmarkdown presentation 
or something, not for working with the 
sensitive insurance data ... 

Best,
Rasmus

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R-Markdown please

2020-05-13 Thread Poling, William via R-help
Hi Rasmus, thank you I will see if this is something I can do without IT admin 
access.

In the mean time I have reloaded rmarkdown. To local

package ‘rmarkdown’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\A436798\AppData\Local\Temp\RtmpYjSy7G\downloaded_packages

library(rmarkdown)

But R is still looking for it in : " Could not fetch 
http://?/UNC/winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-4.0.0patched/library/rmarkdown/rmd/h/default.html;


More recently I have installed other pkgs for the first time use and they have 
gone to local like above for rmarkdown and I have used functions from them so 
they are being searched for correctly I guess?

Very confusing.

Thank you for your response Sir!

WHP

"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS 
Member-Geo-Location-Test-V1.utf8.md --to html4 --from 
markdown+autolink_bare_uris+tex_math_single_backslash+smart --output 
Member-Geo-Location-Test-V1.html --email-obfuscation none --self-contained 
--standalone --section-divs --template 
"\\winp-oaf-113\FldrRedir_1$\A436798\Data\R\R-4.0.0patched\library\rmarkdown\rmd\h\default.html"
 --no-highlight --variable highlightjs=1 --variable "theme:bootstrap" 
--include-in-header 
"C:\Users\A436798\AppData\Local\Temp\RtmpglP9GJ\rmarkdown-str314c55414a00.html" 
--mathjax --variable 
"mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML;
 --lua-filter 
"\\winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-4.0.0patched/library/rmarkdown/rmd/lua/pagebreak.lua"
 --lua-filter 
"\\winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-4.0.0patched/library/rmarkdown/rmd/lua/latex-div.lua"
 
output file: Member-Geo-Location-Test-V1.knit.md

Could not fetch 
http://?/UNC/winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-4.0.0patched/library/rmarkdown/rmd/h/default.html
HttpExceptionRequest Request {
  host = ""
  port = 80
  secure   = False
  requestHeaders   = []
  path = "/"
  queryString  = 
"?/UNC/winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-4.0.0patched/library/rmarkdown/rmd/h/default.html"
  method   = "GET"
  proxy= Nothing
  rawBody  = False
  redirectCount= 10
  responseTimeout  = ResponseTimeoutDefault
  requestVersion   = HTTP/1.1
}
 (InvalidDestinationHost "")
Error: pandoc document conversion failed with error 61
Execution halted


WHP


Proprietary

-Original Message-
From: Rasmus Liland  
Sent: Wednesday, May 13, 2020 2:10 PM
To: Poling, William 
Cc: r-help@r-project.org
Subject: [EXTERNAL] Re: [R] Help with R-Markdown please

 External Email - Use Caution 

On 2020-05-13 18:46 +, Poling, William via R-help wrote:
> Hello all.
> 
> I am still struggling with this issue.
> 
> It appears that new installations are going to local drive.
> 
> # #Test 05/13/2020
> # install.packages("abjutils")
> # package ‘abjutils’ successfully unpacked and MD5 sums checked # # 
> The downloaded binary packages are in # 
> C:\Users\A436798\AppData\Local\Temp\RtmpCuXNJn\downloaded_packages
> 
> However, when I run .libPaths() it
> indicates our UNC path
> 
> [1] "winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-4.0.0patched/library"
> 
> Is there a way for me to change this myself in my instance of R?

Dear William,

Perhaps you could try to set the variable R_LIBS_USER to some local folder.  I 
do not know how to do this on Windows, but there seems to be some guys in this 
rstudio discussion thread that came to some sort of a
conclusion: 
https://urldefense.proofpoint.com/v2/url?u=https-3A__community.rstudio.com_t_help-2Dregarding-2Dpackage-2Dinstallation-2Drenviron-2Drprofile-2Dr-2Dlibs-2Dr-2Dlibs-2Dsite-2Dand-2Dr-2Dlibs-2Duser-2Doh-2Dmy_13888_8=DwIDaQ=wluqKIiwffOpZ6k5sqMWMBOn0vyYnlulRJmmvOXCFpM=j7MrcIQm2xjHa8v-2mTpmTCtKvneM2ExlYvnUWbsByY=q_5fam9luSaeNgs-KOUZS-w-YAVaPzQdZgIlejBCDFA=NWDnltFH8cjC-pj6K08lWXC1FjfFcyY1mueSZnor9Ng=
  

Since long ago, I have had this line in my ~/.zshrc.local  :)

[ -e /usr/bin/Rscript ] && R_LIBS_USER=`Rscript -e 
'cat(Sys.getenv("R_LIBS_USER"))'`

Best,
Rasmus

NOTICE TO RECIPIENT OF INFORMATION:
This e-mail may contain confidential or privileged information. If you think 
you have received this e-mail in error, please advise the sender by reply 
e-mail and then delete this e-mail immediately.  
This e-mail may also contain protected health information (PHI) with 
information about sensitive medical conditions, including, but not limited to, 
treatment for substance use disorders, behavioral health, HIV/AIDS, or 
pregnancy. This type of information may be protected by various federal and/or 
state laws which prohibit any further disclosure without the express written 

Re: [R] Help with R-Markdown please

2020-05-13 Thread Rasmus Liland
On 2020-05-13 18:46 +, Poling, William via R-help wrote:
> Hello all.
> 
> I am still struggling with this issue.
> 
> It appears that new installations are going 
> to local drive.
> 
> # #Test 05/13/2020
> # install.packages("abjutils")
> # package ‘abjutils’ successfully unpacked and MD5 sums checked
> # 
> # The downloaded binary packages are in
> # C:\Users\A436798\AppData\Local\Temp\RtmpCuXNJn\downloaded_packages
> 
> However, when I run .libPaths() it 
> indicates our UNC path
> 
> [1] "winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-4.0.0patched/library"
> 
> Is there a way for me to change this myself 
> in my instance of R?

Dear William,

Perhaps you could try to set the variable 
R_LIBS_USER to some local folder.  I do not 
know how to do this on Windows, but there 
seems to be some guys in this rstudio 
discussion thread that came to some sort of a 
conclusion: 
https://community.rstudio.com/t/help-regarding-package-installation-renviron-rprofile-r-libs-r-libs-site-and-r-libs-user-oh-my/13888/8
 

Since long ago, I have had this line in my 
~/.zshrc.local  :)

[ -e /usr/bin/Rscript ] && R_LIBS_USER=`Rscript -e 
'cat(Sys.getenv("R_LIBS_USER"))'`

Best,
Rasmus

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R-Markdown please

2020-05-13 Thread Poling, William via R-help
Hello all.

I am still struggling with this issue.

It appears that new installations are going to local drive.


# #Test 05/13/2020
# install.packages("abjutils")
# package ‘abjutils’ successfully unpacked and MD5 sums checked
# 
# The downloaded binary packages are in
# C:\Users\A436798\AppData\Local\Temp\RtmpCuXNJn\downloaded_packages

However, when I run .libPaths() it indicates our UNC path

[1] "winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-4.0.0patched/library"


Is there a way for me to change this myself in my instance of R?

Thank you.

WHP 



Proprietary

-Original Message-
From: Ege Rubak  
Sent: Tuesday, May 12, 2020 7:43 AM
To: Poling, William ; r-help@r-project.org
Subject: [EXTERNAL] Re: [R] Help with R-Markdown please

 External Email - Use Caution 

Looks like your files are on a Windows network drive (UNC path). I have 
experienced many problems with this on a Windows laptop from work. If at all 
possible you should avoid this. As an absolute minimum make sure your R library 
(collection of installed packages) is on the local file system and not a UNC 
path. If you are lucky this could be enough to make things work.

You can check your library location(s) with the command .libPaths() in an R 
session.

Good luck.

Ege

On Tue, 2020-05-12 at 10:15 +, Poling, William via R-help wrote:
> #UPDATED 05/05/2020
> #RStudio Version Version 1.2.1335 need this one--> 1.2.5019
> sessionInfo()
> # R version 4.0.0 Patched (2020-05-03 r78349)
> #Platform: x86_64-w64-mingw32/x64 (64-bit) #Running under: Windows 10 
> x64 (build 17763)
> 
> Good morning.
> 
> This is the first time I have tried RMarkdown on new laptop with new 
> employer.
> I am not sure how to go about fixing this problem below?
> 
> Would someone please advise course of action.
> 
> Thank you.
> 
> WHP
> 
> 
> 
> processing file: Member-Geo-Location-Test-V1.Rmd
>  
> |..  
>   |  14%
>   ordinary text without R code
> 
>  
> |
>   |  29%
> label: unnamed-chunk-1 (with options) List of 1  $ echo: logi FALSE
> 
>  
> |..  
>   |  43%
>   ordinary text without R code
> 
>  
> |
>   |  57%
> label: setup (with options)
> List of 2
>  $ include: logi FALSE
>  $ warning: logi FALSE
> 
>  
> |..  
>   |  71%
>   ordinary text without R code
> 
>  
> |
>   |  86%
> label: Table1 (with options)
> List of 2
>  $ echo   : logi FALSE
>  $ results: chr "asis"
> 
>  
> |
> ..| 100%
>inline R code fragments
> 
> 
> output file: Member-Geo-Location-Test-V1.knit.md
> 
> "C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS Member- 
> Geo-Location-Test-V1.utf8.md --to html4 --from
> markdown+autolink_bare_uris+tex_math_single_backslash+smart --output
> Member-Geo-Location-Test-V1.html --email-obfuscation none --self- 
> contained --standalone --section-divs --template "\\winp-oaf-
> 113\FldrRedir_1$\A436798\Data\R\R-
> 4.0.0patched\library\rmarkdown\rmd\h\default.html" --no-highlight -- 
> variable highlightjs=1 --variable "theme:bootstrap" --include-in- 
> header "C:\Users\A436798\AppData\Local\Temp\RtmpSajZla\rmarkdown-
> str2ae846253313.html" --mathjax --variable "mathjax-url:
> https://urldefense.proofpoint.com/v2/url?u=https-3A__mathjax.rstudio.c
> om_latest_MathJax.js-3Fconfig-3DTeX-2DAMS-2DMML-5FHTMLorMML=DwIGaQ
> =wluqKIiwffOpZ6k5sqMWMBOn0vyYnlulRJmmvOXCFpM=j7MrcIQm2xjHa8v-2mTpmTC
> tKvneM2ExlYvnUWbsByY=uBce0mQRO8wdLXO8BDTtjk4R92KVzpjtkQ-NqYiAHCo=S
> MNU_B--j9FvBKh-0u1NG5RHd7AtLkvyVsi9ybyUwYU=
> " --lua-filter "\\winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-
> 4.0.0patched/library/rmarkdown/rmd/lua/pagebreak.lua" --lua-filter
> "\\winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-
> 4.0.0patched/library/rmarkdown/rmd/lua/latex-div.lua" 
> Could not fetch http://?/UNC/winp-oaf-
> 113/FldrRedir_1$/A436798/Data/R/R-
> 4.0.0patched/library/rmarkdown/rmd/h/default.html
> HttpExceptionRequest Request {
>   host = ""
>   port = 80
>   secure   = False
>   requestHeaders   = []
>   path = "/"
>   queryString  = "?/UNC/winp-oaf-
> 113/FldrRedir_1$/A436798/Data/R/R-
> 4.0.0patched/l

Re: [R] Help with R-Markdown please

2020-05-12 Thread Poling, William via R-help
Wow, ok, yep 
"winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-4.0.0patched/library"

Thank you Ege. I did not have this issue with previous employer, I will see 
what our IT group says.

Thank you 

WHP


William H. Poling Ph.D., MPH  | Senior Data Scientist, Medicare Stars, CVS 
Health 
p 813-777-5030


Proprietary

-Original Message-
From: Ege Rubak  
Sent: Tuesday, May 12, 2020 7:43 AM
To: Poling, William ; r-help@r-project.org
Subject: [EXTERNAL] Re: [R] Help with R-Markdown please

 External Email - Use Caution 

Looks like your files are on a Windows network drive (UNC path). I have 
experienced many problems with this on a Windows laptop from work. If at all 
possible you should avoid this. As an absolute minimum make sure your R library 
(collection of installed packages) is on the local file system and not a UNC 
path. If you are lucky this could be enough to make things work.

You can check your library location(s) with the command .libPaths() in an R 
session.

Good luck.

Ege

On Tue, 2020-05-12 at 10:15 +, Poling, William via R-help wrote:
> #UPDATED 05/05/2020
> #RStudio Version Version 1.2.1335 need this one--> 1.2.5019
> sessionInfo()
> # R version 4.0.0 Patched (2020-05-03 r78349)
> #Platform: x86_64-w64-mingw32/x64 (64-bit) #Running under: Windows 10 
> x64 (build 17763)
> 
> Good morning.
> 
> This is the first time I have tried RMarkdown on new laptop with new 
> employer.
> I am not sure how to go about fixing this problem below?
> 
> Would someone please advise course of action.
> 
> Thank you.
> 
> WHP
> 
> 
> 
> processing file: Member-Geo-Location-Test-V1.Rmd
>  
> |..  
>   |  14%
>   ordinary text without R code
> 
>  
> |
>   |  29%
> label: unnamed-chunk-1 (with options) List of 1  $ echo: logi FALSE
> 
>  
> |..  
>   |  43%
>   ordinary text without R code
> 
>  
> |
>   |  57%
> label: setup (with options)
> List of 2
>  $ include: logi FALSE
>  $ warning: logi FALSE
> 
>  
> |..  
>   |  71%
>   ordinary text without R code
> 
>  
> |
>   |  86%
> label: Table1 (with options)
> List of 2
>  $ echo   : logi FALSE
>  $ results: chr "asis"
> 
>  
> |
> ..| 100%
>inline R code fragments
> 
> 
> output file: Member-Geo-Location-Test-V1.knit.md
> 
> "C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS Member- 
> Geo-Location-Test-V1.utf8.md --to html4 --from
> markdown+autolink_bare_uris+tex_math_single_backslash+smart --output
> Member-Geo-Location-Test-V1.html --email-obfuscation none --self- 
> contained --standalone --section-divs --template "\\winp-oaf-
> 113\FldrRedir_1$\A436798\Data\R\R-
> 4.0.0patched\library\rmarkdown\rmd\h\default.html" --no-highlight -- 
> variable highlightjs=1 --variable "theme:bootstrap" --include-in- 
> header "C:\Users\A436798\AppData\Local\Temp\RtmpSajZla\rmarkdown-
> str2ae846253313.html" --mathjax --variable "mathjax-url:
> https://urldefense.proofpoint.com/v2/url?u=https-3A__mathjax.rstudio.c
> om_latest_MathJax.js-3Fconfig-3DTeX-2DAMS-2DMML-5FHTMLorMML=DwIGaQ
> =wluqKIiwffOpZ6k5sqMWMBOn0vyYnlulRJmmvOXCFpM=j7MrcIQm2xjHa8v-2mTpmTC
> tKvneM2ExlYvnUWbsByY=uBce0mQRO8wdLXO8BDTtjk4R92KVzpjtkQ-NqYiAHCo=S
> MNU_B--j9FvBKh-0u1NG5RHd7AtLkvyVsi9ybyUwYU=
> " --lua-filter "\\winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-
> 4.0.0patched/library/rmarkdown/rmd/lua/pagebreak.lua" --lua-filter
> "\\winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-
> 4.0.0patched/library/rmarkdown/rmd/lua/latex-div.lua" 
> Could not fetch http://?/UNC/winp-oaf-
> 113/FldrRedir_1$/A436798/Data/R/R-
> 4.0.0patched/library/rmarkdown/rmd/h/default.html
> HttpExceptionRequest Request {
>   host = ""
>   port = 80
>   secure   = False
>   requestHeaders   = []
>   path = "/"
>   queryString  = "?/UNC/winp-oaf-
> 113/FldrRedir_1$/A436798/Data/R/R-
> 4.0.0patched/library/rmarkdown/rmd/h/default.html"
>   method   = "GET"
>   proxy= Nothing
>   rawBody  = False
>   redirectCount= 10
>   responseTimeout  = ResponseTimeoutDefault
>   reques

Re: [R] Help with R-Markdown please

2020-05-12 Thread Ege Rubak
Looks like your files are on a Windows network drive (UNC path). I have
experienced many problems with this on a Windows laptop from work. If
at all possible you should avoid this. As an absolute minimum make sure
your R library (collection of installed packages) is on the local file
system and not a UNC path. If you are lucky this could be enough to
make things work.

You can check your library location(s) with the command .libPaths() in
an R session.

Good luck.

Ege

On Tue, 2020-05-12 at 10:15 +, Poling, William via R-help wrote:
> #UPDATED 05/05/2020
> #RStudio Version Version 1.2.1335 need this one--> 1.2.5019
> sessionInfo() 
> # R version 4.0.0 Patched (2020-05-03 r78349)
> #Platform: x86_64-w64-mingw32/x64 (64-bit)
> #Running under: Windows 10 x64 (build 17763)
> 
> Good morning.
> 
> This is the first time I have tried RMarkdown on new laptop with new
> employer.
> I am not sure how to go about fixing this problem below?
> 
> Would someone please advise course of action.
> 
> Thank you.
> 
> WHP 
> 
> 
> 
> processing file: Member-Geo-Location-Test-V1.Rmd
>  
> |..  
>   |  14%
>   ordinary text without R code
> 
>  
> |
>   |  29%
> label: unnamed-chunk-1 (with options) 
> List of 1
>  $ echo: logi FALSE
> 
>  
> |..  
>   |  43%
>   ordinary text without R code
> 
>  
> |
>   |  57%
> label: setup (with options) 
> List of 2
>  $ include: logi FALSE
>  $ warning: logi FALSE
> 
>  
> |..  
>   |  71%
>   ordinary text without R code
> 
>  
> |
>   |  86%
> label: Table1 (with options) 
> List of 2
>  $ echo   : logi FALSE
>  $ results: chr "asis"
> 
>  
> |
> ..| 100%
>inline R code fragments
> 
> 
> output file: Member-Geo-Location-Test-V1.knit.md
> 
> "C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS Member-
> Geo-Location-Test-V1.utf8.md --to html4 --from
> markdown+autolink_bare_uris+tex_math_single_backslash+smart --output
> Member-Geo-Location-Test-V1.html --email-obfuscation none --self-
> contained --standalone --section-divs --template "\\winp-oaf-
> 113\FldrRedir_1$\A436798\Data\R\R-
> 4.0.0patched\library\rmarkdown\rmd\h\default.html" --no-highlight --
> variable highlightjs=1 --variable "theme:bootstrap" --include-in-
> header "C:\Users\A436798\AppData\Local\Temp\RtmpSajZla\rmarkdown-
> str2ae846253313.html" --mathjax --variable "mathjax-url:
> https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML
> " --lua-filter "\\winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-
> 4.0.0patched/library/rmarkdown/rmd/lua/pagebreak.lua" --lua-filter
> "\\winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-
> 4.0.0patched/library/rmarkdown/rmd/lua/latex-div.lua" 
> Could not fetch http://?/UNC/winp-oaf-
> 113/FldrRedir_1$/A436798/Data/R/R-
> 4.0.0patched/library/rmarkdown/rmd/h/default.html
> HttpExceptionRequest Request {
>   host = ""
>   port = 80
>   secure   = False
>   requestHeaders   = []
>   path = "/"
>   queryString  = "?/UNC/winp-oaf-
> 113/FldrRedir_1$/A436798/Data/R/R-
> 4.0.0patched/library/rmarkdown/rmd/h/default.html"
>   method   = "GET"
>   proxy= Nothing
>   rawBody      = False
>   redirectCount= 10
>   responseTimeout  = ResponseTimeoutDefault
>   requestVersion   = HTTP/1.1
> }
>  (InvalidDestinationHost "")
> Error: pandoc document conversion failed with error 61
> Execution halted
> 
> WHP
> 
> 
> Proprietary
> 
> NOTICE TO RECIPIENT OF INFORMATION:\ This e-mail may
> con...{{dropped:16}}
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
-- 
Ege Rubak, Associate Professor,
Department of Mathematical Sciences, Aalborg University
Skjernvej 4A, 9220 Aalborg East, Denmark
Phone: (+45)99408861
Mobile: (+45)30230252
Email: ru...@math.aau.dk
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help with R-Markdown please

2020-05-12 Thread Poling, William via R-help
#UPDATED 05/05/2020
#RStudio Version Version 1.2.1335 need this one--> 1.2.5019
sessionInfo() 
# R version 4.0.0 Patched (2020-05-03 r78349)
#Platform: x86_64-w64-mingw32/x64 (64-bit)
#Running under: Windows 10 x64 (build 17763)

Good morning.

This is the first time I have tried RMarkdown on new laptop with new employer.
I am not sure how to go about fixing this problem below?

Would someone please advise course of action.

Thank you.

WHP 



processing file: Member-Geo-Location-Test-V1.Rmd
  |..|  14%
  ordinary text without R code

  |  |  29%
label: unnamed-chunk-1 (with options) 
List of 1
 $ echo: logi FALSE

  |..|  43%
  ordinary text without R code

  |  |  57%
label: setup (with options) 
List of 2
 $ include: logi FALSE
 $ warning: logi FALSE

  |..|  71%
  ordinary text without R code

  |  |  86%
label: Table1 (with options) 
List of 2
 $ echo   : logi FALSE
 $ results: chr "asis"

  |..| 100%
   inline R code fragments


output file: Member-Geo-Location-Test-V1.knit.md

"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS 
Member-Geo-Location-Test-V1.utf8.md --to html4 --from 
markdown+autolink_bare_uris+tex_math_single_backslash+smart --output 
Member-Geo-Location-Test-V1.html --email-obfuscation none --self-contained 
--standalone --section-divs --template 
"\\winp-oaf-113\FldrRedir_1$\A436798\Data\R\R-4.0.0patched\library\rmarkdown\rmd\h\default.html"
 --no-highlight --variable highlightjs=1 --variable "theme:bootstrap" 
--include-in-header 
"C:\Users\A436798\AppData\Local\Temp\RtmpSajZla\rmarkdown-str2ae846253313.html" 
--mathjax --variable 
"mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML;
 --lua-filter 
"\\winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-4.0.0patched/library/rmarkdown/rmd/lua/pagebreak.lua"
 --lua-filter 
"\\winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-4.0.0patched/library/rmarkdown/rmd/lua/latex-div.lua"
 
Could not fetch 
http://?/UNC/winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-4.0.0patched/library/rmarkdown/rmd/h/default.html
HttpExceptionRequest Request {
  host = ""
  port = 80
  secure   = False
  requestHeaders   = []
  path = "/"
  queryString  = 
"?/UNC/winp-oaf-113/FldrRedir_1$/A436798/Data/R/R-4.0.0patched/library/rmarkdown/rmd/h/default.html"
  method   = "GET"
  proxy= Nothing
  rawBody  = False
  redirectCount= 10
  responseTimeout  = ResponseTimeoutDefault
  requestVersion   = HTTP/1.1
}
 (InvalidDestinationHost "")
Error: pandoc document conversion failed with error 61
Execution halted

WHP


Proprietary

NOTICE TO RECIPIENT OF INFORMATION:\ This e-mail may con...{{dropped:16}}

______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R coding

2019-05-22 Thread Bill Poling
Thank you William appreciate your response Sir.

WHP

From: William Michels 
Sent: Wednesday, May 22, 2019 9:58 AM
To: Bill Poling 
Cc: r-help (r-help@r-project.org) 
Subject: Re: [R] Help with R coding

Morning Bill, I take it this is dplyr? You might try:

tmp1 <- HCPC %>%
group_by(HCPCSCode) %>%
summarise(Avg_AllowByLimit =
mean(Avg_AllowByLimit[which(Avg_AllowByLimit!=0 & AllowByLimitFlag ==
TRUE)]))

The code above gives "NaN" for cases where AllowByLimitFlag == FALSE.
Maybe this is the answer you desire, otherwise you can filter out
"NaN" rows.

Cheers,

Bill.

W. Michels, Ph.D.


On Wed, May 22, 2019 at 5:41 AM Bill Poling <mailto:bill.pol...@zelis.com> 
wrote:
>
> Good morning.
>
> #R version 3.6.0 Patched (2019-05-19 r76539)
> #Platform: x86_64-w64-mingw32/x64 (64-bit)
> #Running under: Windows >= 8 x64 (build 9200)
>
> I need a calculated field For the Rate of Avg_AllowByLimit where the 
> Allowed_AmtFlag = TRUE BY Each Code
>
> I have almost got this.
>
> #So far I have this
> tmp1 <- tmp %>%
> group_by(HCPCSCode) %>%
> summarise(Avg_AllowByLimit = 
> mean(Avg_AllowByLimit[which(Avg_AllowByLimit!=0)]))
>
> # But I need Something like that + This
>
> WHERE AllowByLimitFlag == TRUE
>
> I cannot seem to get it in there correctly
>
> Thank you for any help
>
> WHP
>
> #Here is some data
> HCPCSCode Avg_AllowByLimit AllowByLimitFlag
> 1 J1745 4.50 FALSE
> 2 J9299 18.70 FALSE
> 3 J9306 14.33 FALSE
> 4 J9355 7.13 FALSE
> 5 J0897 8.61 FALSE
> 6 J9034 3.32 FALSE
> 7 J9034 3.32 FALSE
> 8 J9045 15.60 FALSE
> 9 J9035 2.77 TRUE
> 10 J1190 3.62 FALSE
> 11 J2250 879.10 FALSE
> 12 J9033 2.92 FALSE
> 13 J1745 4.50 TRUE
> 14 J2785 12.11 FALSE
> 15 J9045 15.60 FALSE
> 16 J2350 7.81 FALSE
> 17 J2469 10.65 TRUE
> 18 J2796 6.27 FALSE
> 19 J2796 6.27 FALSE
> 20 J9355 7.13 FALSE
> 21 J9045 15.60 FALSE
> 22 J2505 2.73 FALSE
> 23 J1786 2.81 FALSE
> 24 J3262 3.26 FALSE
> 25 J0696 168.87 FALSE
> 26 J0178 1.52 TRUE
> 27 J9271 5.55 FALSE
> 28 J3380 80.99 FALSE
> 29 J9355 7.13 TRUE
> 30 J2469 10.65 FALSE
> 31 J9045 15.60 FALSE
> 32 J1459 3.64 FALSE
> 33 J9305 8.74 FALSE
> 34 J9034 3.32 FALSE
> 35 J9034 3.32 FALSE
>
> Confidentiality Notice This message is sent from Zelis. ...{{dropped:13}}
>
> __
> mailto:R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

Confidentiality Notice This message is sent from Zelis. This transmission may 
contain information which is privileged and confidential and is intended for 
the personal and confidential use of the named recipient only. Such information 
may be protected by applicable State and Federal laws from this disclosure or 
unauthorized use. If the reader of this message is not the intended recipient, 
or the employee or agent responsible for delivering the message to the intended 
recipient, you are hereby notified that any disclosure, review, discussion, 
copying, or taking any action in reliance on the contents of this transmission 
is strictly prohibited. If you have received this transmission in error, please 
contact the sender immediately. Zelis, 2018.
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R coding

2019-05-22 Thread Bill Poling
Thank you Jeff!

WHP

From: Jeff Newmiller 
Sent: Wednesday, May 22, 2019 10:06 AM
To: r-help@r-project.org; Rui Barradas ; Bill Poling 
; r-help (r-help@r-project.org) 
Subject: Re: [R] Help with R coding

Generally more efficient to filter before grouping.

Note that summarize clears out whatever isn't mentioned in it, so the 
subsetting currently being done in the mean call could also be done in the 
pre-filter step and you can avoid filtering other columns and then discarding 
them by limiting the operations to only those columns that will be referenced:

tmp1 <- tmp %>%
select( HCPCSCode, Avg_AllowByLimit, AllowByLimitFlag )
filter( AllowByLimitFlag & Avg_AllowByLimit != 0 ) %>%
group_by( HCPCSCode ) %>%
summarise( Avg_AllowByLimit = mean( Avg_AllowByLimit ) )


On May 22, 2019 6:45:39 AM PDT, Rui Barradas <mailto:ruipbarra...@sapo.pt> 
wrote:
>Hello,
>
>Maybe filter the AllowByLimitFlag values first (not tested)?
>
>
>tmp1 <- tmp %>%
> group_by(HCPCSCode) %>%
> filter(AllowByLimitFlag) %>%
> summarise(Avg_AllowByLimit =
>mean(Avg_AllowByLimit[which(Avg_AllowByLimit!=0)]))
>
>
>Hope this helps,
>
>Rui Barradas
>
>
>Às 13:35 de 22/05/19, Bill Poling escreveu:
>> tmp1 <- tmp %>%
>> group_by(HCPCSCode) %>%
>> summarise(Avg_AllowByLimit =
>mean(Avg_AllowByLimit[which(Avg_AllowByLimit!=0)]))
>>
>> # But I need Something like that + This
>>
>> WHERE AllowByLimitFlag == TRUE
>
>__
>mailto:R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

--
Sent from my phone. Please excuse my brevity.

Confidentiality Notice This message is sent from Zelis. This transmission may 
contain information which is privileged and confidential and is intended for 
the personal and confidential use of the named recipient only. Such information 
may be protected by applicable State and Federal laws from this disclosure or 
unauthorized use. If the reader of this message is not the intended recipient, 
or the employee or agent responsible for delivering the message to the intended 
recipient, you are hereby notified that any disclosure, review, discussion, 
copying, or taking any action in reliance on the contents of this transmission 
is strictly prohibited. If you have received this transmission in error, please 
contact the sender immediately. Zelis, 2018.
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R coding

2019-05-22 Thread Jeff Newmiller
Generally more efficient to filter before grouping.

Note that summarize clears out whatever isn't mentioned in it, so the 
subsetting currently being done in the mean call could also be done in the 
pre-filter step and you can avoid filtering other columns and then discarding 
them by limiting the operations to only those columns that will be referenced:

tmp1 <- tmp %>%
   select( HCPCSCode, Avg_AllowByLimit, AllowByLimitFlag )
   filter( AllowByLimitFlag & Avg_AllowByLimit != 0 ) %>%
   group_by( HCPCSCode ) %>%
   summarise( Avg_AllowByLimit = mean( Avg_AllowByLimit ) )


On May 22, 2019 6:45:39 AM PDT, Rui Barradas  wrote:
>Hello,
>
>Maybe filter the AllowByLimitFlag values first (not tested)?
>
>
>tmp1 <- tmp %>%
>   group_by(HCPCSCode) %>%
>   filter(AllowByLimitFlag) %>%
>   summarise(Avg_AllowByLimit = 
>mean(Avg_AllowByLimit[which(Avg_AllowByLimit!=0)]))
>
>
>Hope this helps,
>
>Rui Barradas
>
>
>Às 13:35 de 22/05/19, Bill Poling escreveu:
>> tmp1 <- tmp %>%
>> group_by(HCPCSCode) %>%
>> summarise(Avg_AllowByLimit =
>mean(Avg_AllowByLimit[which(Avg_AllowByLimit!=0)]))
>> 
>> # But I need Something like that + This
>> 
>> WHERE AllowByLimitFlag == TRUE
>
>______
>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

-- 
Sent from my phone. Please excuse my brevity.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R coding

2019-05-22 Thread William Michels via R-help
Morning Bill, I take it this is dplyr? You might try:

tmp1 <- HCPC %>%
group_by(HCPCSCode) %>%
summarise(Avg_AllowByLimit =
mean(Avg_AllowByLimit[which(Avg_AllowByLimit!=0 & AllowByLimitFlag ==
TRUE)]))

The code above gives "NaN" for cases where AllowByLimitFlag == FALSE.
Maybe this is the answer you desire, otherwise you can filter out
"NaN" rows.

Cheers,

Bill.

W. Michels, Ph.D.


On Wed, May 22, 2019 at 5:41 AM Bill Poling  wrote:
>
> Good morning.
>
> #R version 3.6.0 Patched (2019-05-19 r76539)
> #Platform: x86_64-w64-mingw32/x64 (64-bit)
> #Running under: Windows >= 8 x64 (build 9200)
>
> I need a calculated field  For the Rate of Avg_AllowByLimit where the 
> Allowed_AmtFlag = TRUE BY Each Code
>
> I have almost got this.
>
> #So far I have this
> tmp1 <- tmp %>%
> group_by(HCPCSCode) %>%
> summarise(Avg_AllowByLimit = 
> mean(Avg_AllowByLimit[which(Avg_AllowByLimit!=0)]))
>
> # But I need Something like that + This
>
> WHERE AllowByLimitFlag == TRUE
>
> I cannot seem to get it in there correctly
>
> Thank you for any help
>
> WHP
>
> #Here is some data
> HCPCSCode Avg_AllowByLimit AllowByLimitFlag
> 1  J1745 4.50FALSE
> 2  J929918.70FALSE
> 3  J930614.33FALSE
> 4  J9355 7.13FALSE
> 5  J0897 8.61FALSE
> 6  J9034 3.32FALSE
> 7  J9034 3.32FALSE
> 8  J904515.60FALSE
> 9  J9035 2.77 TRUE
> 10 J1190 3.62FALSE
> 11 J2250   879.10FALSE
> 12 J9033 2.92FALSE
> 13 J1745 4.50 TRUE
> 14 J278512.11FALSE
> 15 J904515.60FALSE
> 16 J2350 7.81FALSE
> 17 J246910.65 TRUE
> 18 J2796 6.27FALSE
> 19 J2796 6.27FALSE
> 20 J9355 7.13FALSE
> 21 J904515.60FALSE
> 22 J2505 2.73FALSE
> 23 J1786 2.81FALSE
> 24 J3262 3.26FALSE
> 25 J0696   168.87FALSE
> 26 J0178 1.52 TRUE
> 27 J9271 5.55FALSE
> 28 J338080.99FALSE
> 29 J9355 7.13 TRUE
> 30 J246910.65FALSE
> 31 J904515.60FALSE
> 32 J1459 3.64FALSE
> 33 J9305 8.74FALSE
> 34 J9034 3.32FALSE
> 35 J9034 3.32FALSE
>
> Confidentiality Notice This message is sent from Zelis. ...{{dropped:13}}
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R coding

2019-05-22 Thread Bill Poling
Thank you Rui, but that is getting me the overall mean not the mean of just the 
observations that are flagged as TRUE Grouped By the HCPCSCode
 (AllowByLimitFlag == TRUE).

I also tried adding it to the filter you suggested but that does not seem to 
work either?

tmp1 <- tmp %>%
  group_by(HCPCSCode) %>%
  filter(AllowByLimitFlag==TRUE) %>%
  summarise(Avg_AllowByLimit =
  mean(Avg_AllowByLimit[which(Avg_AllowByLimit!=0)]))

However, I really appreciate your help Sir!

WHP


William H. Poling, Ph.D., MPH | Manager, Data Science
Data Intelligence & Analytics
Zelis Healthcare


-Original Message-
From: Rui Barradas 
Sent: Wednesday, May 22, 2019 9:46 AM
To: Bill Poling ; r-help (r-help@r-project.org) 

Subject: Re: [R] Help with R coding

Hello,

Maybe filter the AllowByLimitFlag values first (not tested)?


tmp1 <- tmp %>%
   group_by(HCPCSCode) %>%
   filter(AllowByLimitFlag) %>%
   summarise(Avg_AllowByLimit =
mean(Avg_AllowByLimit[which(Avg_AllowByLimit!=0)]))


Hope this helps,

Rui Barradas


Às 13:35 de 22/05/19, Bill Poling escreveu:
> tmp1 <- tmp %>%
> group_by(HCPCSCode) %>%
> summarise(Avg_AllowByLimit = 
> mean(Avg_AllowByLimit[which(Avg_AllowByLimit!=0)]))
>
> # But I need Something like that + This
>
> WHERE AllowByLimitFlag == TRUE


Confidentiality Notice This message is sent from Zelis. This transmission may 
contain information which is privileged and confidential and is intended for 
the personal and confidential use of the named recipient only. Such information 
may be protected by applicable State and Federal laws from this disclosure or 
unauthorized use. If the reader of this message is not the intended recipient, 
or the employee or agent responsible for delivering the message to the intended 
recipient, you are hereby notified that any disclosure, review, discussion, 
copying, or taking any action in reliance on the contents of this transmission 
is strictly prohibited. If you have received this transmission in error, please 
contact the sender immediately. Zelis, 2018.
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R coding

2019-05-22 Thread Rui Barradas

Hello,

Maybe filter the AllowByLimitFlag values first (not tested)?


tmp1 <- tmp %>%
  group_by(HCPCSCode) %>%
  filter(AllowByLimitFlag) %>%
  summarise(Avg_AllowByLimit = 
mean(Avg_AllowByLimit[which(Avg_AllowByLimit!=0)]))



Hope this helps,

Rui Barradas


Às 13:35 de 22/05/19, Bill Poling escreveu:

tmp1 <- tmp %>%
group_by(HCPCSCode) %>%
summarise(Avg_AllowByLimit = mean(Avg_AllowByLimit[which(Avg_AllowByLimit!=0)]))

# But I need Something like that + This

WHERE AllowByLimitFlag == TRUE


______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help with R coding

2019-05-22 Thread Bill Poling
Good morning.

#R version 3.6.0 Patched (2019-05-19 r76539)
#Platform: x86_64-w64-mingw32/x64 (64-bit)
#Running under: Windows >= 8 x64 (build 9200)

I need a calculated field  For the Rate of Avg_AllowByLimit where the 
Allowed_AmtFlag = TRUE BY Each Code

I have almost got this.

#So far I have this
tmp1 <- tmp %>%
group_by(HCPCSCode) %>%
summarise(Avg_AllowByLimit = mean(Avg_AllowByLimit[which(Avg_AllowByLimit!=0)]))

# But I need Something like that + This

WHERE AllowByLimitFlag == TRUE

I cannot seem to get it in there correctly

Thank you for any help

WHP

#Here is some data
HCPCSCode Avg_AllowByLimit AllowByLimitFlag
1  J1745 4.50FALSE
2  J929918.70FALSE
3  J930614.33FALSE
4  J9355 7.13FALSE
5  J0897 8.61FALSE
6  J9034 3.32FALSE
7  J9034 3.32FALSE
8  J904515.60FALSE
9  J9035 2.77 TRUE
10 J1190 3.62FALSE
11 J2250   879.10FALSE
12 J9033 2.92FALSE
13 J1745 4.50 TRUE
14 J278512.11FALSE
15 J904515.60FALSE
16 J2350 7.81FALSE
17 J246910.65 TRUE
18 J2796 6.27FALSE
19 J2796 6.27FALSE
20 J9355 7.13FALSE
21 J904515.60FALSE
22 J2505 2.73FALSE
23 J1786 2.81FALSE
24 J3262 3.26FALSE
25 J0696   168.87FALSE
26 J0178 1.52 TRUE
27 J9271 5.55FALSE
28 J338080.99FALSE
29 J9355 7.13 TRUE
30 J246910.65FALSE
31 J904515.60FALSE
32 J1459 3.64FALSE
33 J9305 8.74FALSE
34 J9034 3.32FALSE
35 J9034 3.32FALSE

Confidentiality Notice This message is sent from Zelis. ...{{dropped:13}}

__________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with r script

2018-09-05 Thread ruipbarradas
Hello,
25*30 
This is the most basic possible, please google an intro text and run its 
examples.
Hope this helps,
Rui Barradas 


Enviado a partir do meu smartphone Samsung Galaxy. Mensagem original 
De: Nathan D Jennings  Data: 05/09/2018  
00:30  (GMT+00:00) Para: r-help@r-project.org Assunto: [R] Help with r script 
 To the R Project:

I am using R Studio and I need help sum product exponents with R Script.  Every 
time I type at the very start in the R Script window like 25* 30 nothing 
happens.  Where can I go to find the complete commands for basic functions in 
the r script window?


Sincerely,


Nathan Jennings

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with r script

2018-09-04 Thread Jeff Newmiller

On Tue, 4 Sep 2018, Nathan D Jennings wrote:


?To the R Project:


This is the R-help mailing list, populated by various people who use R 
including the occasional R-core developer.



I am using R Studio and I need help sum product exponents with R Script.


a) This is the R-help mailing list, not the RStudio-help mailing list. 
RStudio is only one of numerous user interfaces that can be used to 
interact with R. This mailing list is about the language, not the user 
interface. They do have a forum [1].


 Every time I type at the very start in the R Script window like 25* 30 
nothing happens.


b) I think the window you are describing as the "R Script" window is 
actually a text editor window. All interaction with R occurs in the R 
Console, and the text editor window is a place to keep organized in a file 
the commands you write that seem to do what you want when executed in the 
Console. Usually you will need a number of commands executed in sequence 
to accomplish whatever analysis goal you have, so a text file is a good 
place to keep those commands organized. You can position the cursor on an 
R command in the editor and hold down the control key and press Enter, and 
RStudio will type it into the console window for you. Once you are 
confident those commands work you can use the source() function to have R 
execute the entire file of commands at once. You would look for the 
response/result/output in the Console and/or the Plot windows depending 
which commands you used.


 Where can I go to find the complete commands for basic functions in the 
r script window?


c) I don't think that there is any comprehensive list of commands you can 
give to R. There are many introductory R books, and there is an 
Introduction to R document provided with R [2]. You might find the 
cheatsheets listed under the Help/Cheatsheets menu in RStudio helpful to 
give you some clues. If you want a thorough discussion of the structure of 
the R language you can refer to the R Language Definition [3], but that is 
really rather dense going if you are just starting out... an introductory 
book or the r-intro document would probably be most useful to you at this 
point.


Finally, per the Posting Guide mentioned below this mailing list is not 
appropriate for students doing homework... from your email address I think 
you should have local resources who can boost you up the learning curve 
much more efficiently than we can through a plain text mailing list (or 
even the RStudio forum). In this mailing list, you need to understand 
enough R to be able to post R code that illustrates what isn't working for 
you, along with a clear specification of what you wanted to get.


[1] https://community.rstudio.com/
[2] https://cran.r-project.org/doc/manuals/r-release/R-intro.pdf
[3] https://cran.r-project.org/manuals.html

---
Jeff NewmillerThe .   .  Go Live...
DCN:Basics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k
---
______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help with r script

2018-09-04 Thread Nathan D Jennings
 To the R Project:

I am using R Studio and I need help sum product exponents with R Script.  Every 
time I type at the very start in the R Script window like 25* 30 nothing 
happens.  Where can I go to find the complete commands for basic functions in 
the r script window?


Sincerely,


Nathan Jennings

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help About R-Package Portability

2018-05-31 Thread Jeff Newmiller
Your lack of permissions is highly operating-system-specific and 
local-policy-specific and therefore outside the scope of this mailing list... I 
suggest you have a conversation with your system administrator(s). Insuring the 
ability to run R code when the admin is not cooperating is not really something 
we can help with. (Some systems are configured to prevent any executables from 
running off removable media at all.)

You should also read

?.libPaths

as well as the R Installation and Administration manual.

On May 31, 2018 6:02:35 AM PDT, BEDIRHAN CALDIR  wrote:
>Hi,
>
>I'm having an issue with R package configurations which I thought the
>community would help me. I have two softwares written in R, DECoN and
>panelcn.mops, and need to run both of them isolated. The problem is
>that I
>couldn't install them onto neither the OS with the sudo permissions nor
>the
>home folder of a specific user with the right permissions. What I need
>is
>making them as portable as possible by installing R-related packages
>separately once and for all, so that I can run any of them even from a
>USB
>drive where no further R installation would be required. I'll run both
>of
>them from Python as a subprocess.
>
>I'd appreciate any suggession to overcome this issue. Thank you in
>advance.

-- 
Sent from my phone. Please excuse my brevity.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help About R-Package Portability

2018-05-31 Thread BEDIRHAN CALDIR
Hi,

I'm having an issue with R package configurations which I thought the
community would help me. I have two softwares written in R, DECoN and
panelcn.mops, and need to run both of them isolated. The problem is that I
couldn't install them onto neither the OS with the sudo permissions nor the
home folder of a specific user with the right permissions. What I need is
making them as portable as possible by installing R-related packages
separately once and for all, so that I can run any of them even from a USB
drive where no further R installation would be required. I'll run both of
them from Python as a subprocess.

I'd appreciate any suggession to overcome this issue. Thank you in advance.

-- 
Bedirhan Çaldır

M.Sc. Computer Engineering
Boğaziçi University

B.S. Molecular Biology and Genetics & B.S. Computer Engineering
Alumni
Koç University

[[alternative HTML version deleted]]

______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R-Calling forth csv.

2018-04-16 Thread Ulrik Stervbo
There are plenty of options for reading csv files. For built-in solutions
look at ?read.csv or at read_csv from the package reader.

If the measurements are ordered in columns rather than in rows, reading the
data can be very slow.

HTH
Ulrik

Mohammad Areida <areid...@gmail.com> schrieb am Mo., 16. Apr. 2018, 13:25:

> Hi, I'm working on R trying to find a distribution that fits data from a
> csv file. The csv contains data on pressure exerted by a certain vehicle in
> terms of pressure [kPa] and I have around 3000 data points.
>
> I want to call forth this csv and by using (fitdistr) or if you could
> recommend a function to use, get a plot of my csv and the distributions I
> can compare it to (Weibull, chi, beta, etc). Now im a complete amateur with
> the program R, and I can't write a code to call forth the csv with every
> data point. I’ve been stuck trying to write a code that works for over a
> week and have not gotten it to work. I've come to the conclusion that this
> is the only program capable enough to help me plot the distributions to my
> data, any help is greatly appreciated!
>
> Kind regards
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R-Calling forth csv.

2018-04-16 Thread Roslina Zakaria
Hi, 
You may use the keyword to google for what you want to do to start with. Slowly 
you will learn...this forum is,really helpful but we should provide or show 
some effort..all the best! 
I like this forum very much and always feel thankful to very helpful and 
committed members.

Sent from my Sony Xperia™ smartphone

 Mohammad Areida wrote 

>Hi, I'm working on R trying to find a distribution that fits data from a csv 
>file. The csv contains data on pressure exerted by a certain vehicle in terms 
>of pressure [kPa] and I have around 3000 data points. 
>
>I want to call forth this csv and by using (fitdistr) or if you could 
>recommend a function to use, get a plot of my csv and the distributions I can 
>compare it to (Weibull, chi, beta, etc). Now im a complete amateur with the 
>program R, and I can't write a code to call forth the csv with every data 
>point. I’ve been stuck trying to write a code that works for over a week and 
>have not gotten it to work. I've come to the conclusion that this is the only 
>program capable enough to help me plot the distributions to my data, any help 
>is greatly appreciated!
>
>Kind regards 
>
>   [[alternative HTML version deleted]]
>
>__
>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R-Calling forth csv.

2018-04-16 Thread Michael Dewey

Dear Mohammad

Perhaps if you showed us what you tried people could offer more helpful 
advice? When you say you want to call it forth do you mean you want to 
read in the file using read.csv?


Michael

On 16/04/2018 11:23, Mohammad Areida wrote:

Hi, I'm working on R trying to find a distribution that fits data from a csv 
file. The csv contains data on pressure exerted by a certain vehicle in terms 
of pressure [kPa] and I have around 3000 data points.

I want to call forth this csv and by using (fitdistr) or if you could recommend 
a function to use, get a plot of my csv and the distributions I can compare it 
to (Weibull, chi, beta, etc). Now im a complete amateur with the program R, and 
I can't write a code to call forth the csv with every data point. I’ve been 
stuck trying to write a code that works for over a week and have not gotten it 
to work. I've come to the conclusion that this is the only program capable 
enough to help me plot the distributions to my data, any help is greatly 
appreciated!

Kind regards

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



--
Michael
http://www.dewey.myzen.co.uk/home.html

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help with R-Calling forth csv.

2018-04-16 Thread Mohammad Areida
Hi, I'm working on R trying to find a distribution that fits data from a csv 
file. The csv contains data on pressure exerted by a certain vehicle in terms 
of pressure [kPa] and I have around 3000 data points. 

I want to call forth this csv and by using (fitdistr) or if you could recommend 
a function to use, get a plot of my csv and the distributions I can compare it 
to (Weibull, chi, beta, etc). Now im a complete amateur with the program R, and 
I can't write a code to call forth the csv with every data point. I’ve been 
stuck trying to write a code that works for over a week and have not gotten it 
to work. I've come to the conclusion that this is the only program capable 
enough to help me plot the distributions to my data, any help is greatly 
appreciated!

Kind regards 

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help in R

2017-11-05 Thread Ulrik Stervbo
And

head(test_df$Movie, 10)

For function completeness :-)

Rui Barradas <ruipbarra...@sapo.pt> schrieb am So., 5. Nov. 2017, 20:56:

> Hello,
>
> Also
>
> tail(test_df$Movie, 10)
>
> Hope this helps,
>
> Rui Barradas
>
> Em 05-11-2017 19:18, Ulrik Stervbo escreveu:
> > R can have a bit of a learning curve... There are several ways to achieve
> > your goal - depending on what you want:
> >
> > test_df <- data.frame(Movie = letters, some.value = rnorm(26))
> >
> > test_df$Movie[1:10]
> >
> > test_df$Movie[sample(c(1:26), 10)]
> >
> > test_df[sample(c(1:26), 10), ]
> >
> > Do read a tutorial or two on R - "Introduction to R" as suggested by
> David
> > or something else - so you can explain the code above to yourself.
> >
> > HTH
> > Ulrik
> >
> > On Sun, 5 Nov 2017 at 19:38 David Winsemius <dwinsem...@comcast.net>
> wrote:
> >
> >>
> >>> On Nov 5, 2017, at 9:28 AM, Ahsan Zahir via R-help <
> r-help@r-project.org>
> >> wrote:
> >>>
> >>>
> >>> Hey,
> >>>
> >>> I am a beginner in R.
> >>>
> >>> How do I read last 10 values from column- Movie, from a dataset?
> >>
> >> Some questions are so simple that they strongly suggest no prior effort
> at
> >> self-leanrning. In such cases the usual recommendation given at Rhelp is
> >> that you read an introductory text. Many of us used the "Introduction
> to R"
> >> that is shipped with every copy of R:
> >>
> >> https://cran.r-project.org/doc/manuals/r-release/R-intro.pdf
> >>
> >>
> >>>
> >>> Pls help.
> >>>
> >>> Sent from my iPhone
> >>>
> >>> __
> >>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >>> https://stat.ethz.ch/mailman/listinfo/r-help
> >>> PLEASE do read the posting guide
> >> http://www.R-project.org/posting-guide.html
> >>> and provide commented, minimal, self-contained, reproducible code.
> >>
> >> David Winsemius
> >> Alameda, CA, USA
> >>
> >> 'Any technology distinguishable from magic is insufficiently advanced.'
> >>   -Gehm's Corollary to Clarke's Third Law
> >>
> >> __
> >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guide
> >> http://www.R-project.org/posting-guide.html
> >> and provide commented, minimal, self-contained, reproducible code.
> >>
> >
> >   [[alternative HTML version deleted]]
> >
> > __
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help in R

2017-11-05 Thread Rui Barradas

Hello,

Also

tail(test_df$Movie, 10)

Hope this helps,

Rui Barradas

Em 05-11-2017 19:18, Ulrik Stervbo escreveu:

R can have a bit of a learning curve... There are several ways to achieve
your goal - depending on what you want:

test_df <- data.frame(Movie = letters, some.value = rnorm(26))

test_df$Movie[1:10]

test_df$Movie[sample(c(1:26), 10)]

test_df[sample(c(1:26), 10), ]

Do read a tutorial or two on R - "Introduction to R" as suggested by David
or something else - so you can explain the code above to yourself.

HTH
Ulrik

On Sun, 5 Nov 2017 at 19:38 David Winsemius <dwinsem...@comcast.net> wrote:




On Nov 5, 2017, at 9:28 AM, Ahsan Zahir via R-help <r-help@r-project.org>

wrote:



Hey,

I am a beginner in R.

How do I read last 10 values from column- Movie, from a dataset?


Some questions are so simple that they strongly suggest no prior effort at
self-leanrning. In such cases the usual recommendation given at Rhelp is
that you read an introductory text. Many of us used the "Introduction to R"
that is shipped with every copy of R:

https://cran.r-project.org/doc/manuals/r-release/R-intro.pdf




Pls help.

Sent from my iPhone

______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide

http://www.R-project.org/posting-guide.html

and provide commented, minimal, self-contained, reproducible code.


David Winsemius
Alameda, CA, USA

'Any technology distinguishable from magic is insufficiently advanced.'
  -Gehm's Corollary to Clarke's Third Law

______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



[[alternative HTML version deleted]]

______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help in R

2017-11-05 Thread Ulrik Stervbo
R can have a bit of a learning curve... There are several ways to achieve
your goal - depending on what you want:

test_df <- data.frame(Movie = letters, some.value = rnorm(26))

test_df$Movie[1:10]

test_df$Movie[sample(c(1:26), 10)]

test_df[sample(c(1:26), 10), ]

Do read a tutorial or two on R - "Introduction to R" as suggested by David
or something else - so you can explain the code above to yourself.

HTH
Ulrik

On Sun, 5 Nov 2017 at 19:38 David Winsemius <dwinsem...@comcast.net> wrote:

>
> > On Nov 5, 2017, at 9:28 AM, Ahsan Zahir via R-help <r-help@r-project.org>
> wrote:
> >
> >
> > Hey,
> >
> > I am a beginner in R.
> >
> > How do I read last 10 values from column- Movie, from a dataset?
>
> Some questions are so simple that they strongly suggest no prior effort at
> self-leanrning. In such cases the usual recommendation given at Rhelp is
> that you read an introductory text. Many of us used the "Introduction to R"
> that is shipped with every copy of R:
>
> https://cran.r-project.org/doc/manuals/r-release/R-intro.pdf
>
>
> >
> > Pls help.
> >
> > Sent from my iPhone
> >
> > ______
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
> David Winsemius
> Alameda, CA, USA
>
> 'Any technology distinguishable from magic is insufficiently advanced.'
>  -Gehm's Corollary to Clarke's Third Law
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help in R

2017-11-05 Thread David Winsemius

> On Nov 5, 2017, at 9:28 AM, Ahsan Zahir via R-help <r-help@r-project.org> 
> wrote:
> 
> 
> Hey,
> 
> I am a beginner in R.
> 
> How do I read last 10 values from column- Movie, from a dataset?

Some questions are so simple that they strongly suggest no prior effort at 
self-leanrning. In such cases the usual recommendation given at Rhelp is that 
you read an introductory text. Many of us used the "Introduction to R" that is 
shipped with every copy of R:

https://cran.r-project.org/doc/manuals/r-release/R-intro.pdf


> 
> Pls help.
> 
> Sent from my iPhone
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius
Alameda, CA, USA

'Any technology distinguishable from magic is insufficiently advanced.'   
-Gehm's Corollary to Clarke's Third Law

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help in R

2017-11-05 Thread Ahsan Zahir via R-help

Hey,

I am a beginner in R.

How do I read last 10 values from column- Movie, from a dataset?

Pls help.

Sent from my iPhone

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help wanted - R contributed documentation

2017-10-09 Thread Martyn Plummer
The R Foundation is looking for a volunteer to organize the collection
of contributed documentation for the R project.  The collection is
currently hosted on CRAN at https://cran.r-project.org/other-docs.html
We want to move it off the CRAN web site.

We think that this task would be suitable for someone whose primary
interest is in library and information science. Ideally the collection
would be reorganized as an R-project.org epub archive, based on re-
using available open source software which features the following: 

* export to .bib
* support for multiple revisions
* support for supplementary material (such as code and data).

If you are interested then please reply privately to me. The R
Foundation board will discuss this at the next meeting.  You can, of
course, put together a team of people but we really want a single
person to act as point of reference.

Martyn Plummer
Co-president, The R Foundation






___
r-annou...@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-announce

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help in R package

2017-10-06 Thread David Winsemius

> On Oct 5, 2017, at 7:19 PM, Akram Alhadainy <akram2004ha...@gmail.com> wrote:
> 
> Hello,
> 
> I watched your YouTube videos for explanation for R package.

Rhelp is a mailing list. It does not release Youtube videos.

> They are
> really helpful for new beginner for using R. Please I need your help for
> solving inequalities that contain beta functions using R studio. I attached
> the file that contains this inequalities.

We are also not a code writing service and we don't do homework. Please read 
the Posting Guide.


> 
> I appreciate your help and looking forward to hear from you.
> 
> Akram
> __


David Winsemius
Alameda, CA, USA

'Any technology distinguishable from magic is insufficiently advanced.'   
-Gehm's Corollary to Clarke's Third Law

______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help in R

2017-09-13 Thread ruipbarradas

Hello,

Post the two equations, a sample dataset and what you have tried, please.
At the bottom of every mail there's a link to the posting guide where  
you will find instructions on how to ask a good question.


Hope this helps,

Rui Barradas


Citando Jessie Todd <jetod...@gmail.com>:

I don’t know if my question is answerable, but it is worth a try. I  
have a data set that I am trying to analyze in R for a course and  
the instructions were to get a standard deviation which I already  
computed in R and use that number and change it to a biased standard  
deviation….(I have the two equations and I understand the difference  
between the two and how the unbiased has the degree of freedom…..I  
just do not know how use my standard deviation and transform it in R  
to a biased one.

Thanks in advance,
Jessie
______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

[R] Help in R

2017-09-13 Thread Jessie Todd
I don’t know if my question is answerable, but it is worth a try. I have a data 
set that I am trying to analyze in R for a course and the instructions were to 
get a standard deviation which I already computed in R and use that number and 
change it to a biased standard deviation….(I have the two equations and I 
understand the difference between the two and how the unbiased has the degree 
of freedom…..I just do not know how use my standard deviation and transform it 
in R to a biased one.
Thanks in advance,
Jessie
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: [R] Help with R script

2017-07-14 Thread Vijayan Padmanabhan
Thanks Ulrik and MacQueen
I am taking inputs from both your options to
arrive at the solution that will work for my
specific requirements..
Will post my final solution once I succeed..which
could help others with similar challenge in their
work..
Appreciate both your time shared on suggesting
these solutions..

Thanks & Regards
VP




From:   Ulrik Stervbo
<ulrik.ster...@gmail.com>
To: "MacQueen, Don" <macque...@llnl.gov>,
Vijayan Padmanabhan
<v.padmanab...@itc.in>,
"r-help@r-project.org"
<r-help@r-project.org>
Date:   14-07-2017 10:39
Subject:Re: [R] Help with R script



@Don your solution does not solve Vijayan's
scenario 2. I used spread and gather for that.

An alternative solution to insert mising Fval -
picking up with Don's newtst - is

newtst <- c("FName: fname1", "Fval: Fval1.name1",
"FName: fname2", "Fval: Fval2.name2", "FName:
fname3", "FName: fname4", "Fval: fval4.fname4")

newtst_new <- vector(mode = "character", length =
sum(grepl("FName", newtst)) * 2)
newtst_len <- length(newtst)
i <- 1
j <- 1
while(i <= newtst_len){
  if(grepl("FName", newtst[i]) & grepl("Fval",
newtst[i + 1])){
    newtst_new[c(j, j + 1)] <- newtst[c(i, i + 1)]
    i <- i + 2
  }else{
    newtst_new[c(j, j + 1)] <- c(newtst[c(i)],
"Fval: ")
    i <- i + 1
  }
  j <- j + 2

}
newtst_new

which is also not very pretty.

HTH
Ulrik

On Thu, 13 Jul 2017 at 16:48 MacQueen, Don <
macque...@llnl.gov> wrote:
  Using Ulrik’s example data (and assuming I
  understand what is wanted), here is what I would
  do:

  ex.dat <- c("FName: fname1", "Fval:
  Fval1.name1", "Fval: ", "FName: fname2", "Fval:
  Fval2.name2", "FName: fname3")
  tst <- data.frame(x = ex.dat,
  stringsAsFactors=FALSE)

  sp <- strsplit(tst$x, ':', fixed=TRUE)
  chk <- unlist(lapply(sp, function(txt) txt[2] !=
  ' '))
  newtst <- tst[chk,,drop=FALSE]

  This both assumes and requires that ALL of the
  rows are structured as in the example data in
  the original question.
  For example:
    if any row is missing the “:”, it will fail.
    If the “:” is not followed by a space
  character it may fail (I have not checked)

  -Don

  --
  Don MacQueen

  Lawrence Livermore National Laboratory
  7000 East Ave., L-627
  Livermore, CA 94550
  925-423-1062


  On 7/13/17, 6:47 AM, "R-help on behalf of Ulrik
  Stervbo" <r-help-boun...@r-project.org on behalf
  of ulrik.ster...@gmail.com> wrote:

      Hi Vijayan,

      one way going about it *could* be this:

      library(dplyr)
      library(tidyr)
      library(purrr)

      ex_dat <- c("FName: fname1", "Fval:
  Fval1.name1", "Fval: ", "FName:
      fname2", "Fval: Fval2.name2", "FName:
  fname3")

      data.frame(x = ex_dat) %>%
        separate(x, c("F1", "F2"), sep = ": ") %>%
        filter(F2 != "") %>%
        group_by(F1) %>%
        mutate(indx = row_number()) %>%
        spread(F1, F2, fill = "") %>%
        gather(F1, F2, FName, Fval) %>%
        arrange(indx) %>%
        mutate(x = paste(F1, F2, sep = ": ")) %>%
        select(x) %>%
        flatten_chr()

      It is not particularly nice or clever, but
  it gets the job done using R.

      HTH
      Ulrik

      On Thu, 13 Jul 2017 at 13:13 Vijayan
  Padmanabhan <v.padmanab...@itc.in>
      wrote:

      >
      > Dear R-help Group
      >
      >
      > Scenario 1:
      > I have a text file running to 1000 of
  lines...that
      > is like as follows:
      >
      > [922] "FieldName: Wk3PackSubMonth"
      >
      >  [923] "FieldValue: Apr"
      >
      >  [924] "FieldName: Wk3PackSubYear"
      >
      >  [925] "FieldValue: 2017"
      >
      >  [926] "FieldName: Wk3Code1"
      >
      >  [927] "FieldValue: "
      >
      >  [928] "FieldValue: K4"
      >
      >  [929] "FieldName: Wk3Code2"
      >
      >  [930] "FieldValue: "
      >
      >  [931] "FieldValue: Q49"
      >
      >
      > I want this to be programmatically
  corrected to
      > read as follows: (All consecutive lines
  starting
      > with FieldValue is cleaned to retain only
  one
      > line)
      >
      > [922] "FieldName: Wk3PackSubMonth"
      >
      >  [923] "FieldValue: Apr"
      >
      >  [924] "FieldName: Wk3PackSubYear"
      >
      >  [925] "FieldValue: 2017"

Re: [R] Help with R script

2017-07-13 Thread Ulrik Stervbo
@Don your solution does not solve Vijayan's scenario 2. I used spread and
gather for that.

An alternative solution to insert mising Fval - picking up with Don's
newtst - is

newtst <- c("FName: fname1", "Fval: Fval1.name1", "FName: fname2", "Fval:
Fval2.name2", "FName: fname3", "FName: fname4", "Fval: fval4.fname4")

newtst_new <- vector(mode = "character", length = sum(grepl("FName",
newtst)) * 2)
newtst_len <- length(newtst)
i <- 1
j <- 1
while(i <= newtst_len){
  if(grepl("FName", newtst[i]) & grepl("Fval", newtst[i + 1])){
newtst_new[c(j, j + 1)] <- newtst[c(i, i + 1)]
i <- i + 2
  }else{
newtst_new[c(j, j + 1)] <- c(newtst[c(i)], "Fval: ")
i <- i + 1
  }
  j <- j + 2

}
newtst_new

which is also not very pretty.

HTH
Ulrik

On Thu, 13 Jul 2017 at 16:48 MacQueen, Don <macque...@llnl.gov> wrote:

> Using Ulrik’s example data (and assuming I understand what is wanted),
> here is what I would do:
>
> ex.dat <- c("FName: fname1", "Fval: Fval1.name1", "Fval: ", "FName:
> fname2", "Fval: Fval2.name2", "FName: fname3")
> tst <- data.frame(x = ex.dat, stringsAsFactors=FALSE)
>
> sp <- strsplit(tst$x, ':', fixed=TRUE)
> chk <- unlist(lapply(sp, function(txt) txt[2] != ' '))
> newtst <- tst[chk,,drop=FALSE]
>
> This both assumes and requires that ALL of the rows are structured as in
> the example data in the original question.
> For example:
>   if any row is missing the “:”, it will fail.
>   If the “:” is not followed by a space character it may fail (I have not
> checked)
>
> -Don
>
> --
> Don MacQueen
>
> Lawrence Livermore National Laboratory
> 7000 East Ave., L-627
> Livermore, CA 94550
> 925-423-1062
>
>
> On 7/13/17, 6:47 AM, "R-help on behalf of Ulrik Stervbo" <
> r-help-boun...@r-project.org on behalf of ulrik.ster...@gmail.com> wrote:
>
> Hi Vijayan,
>
> one way going about it *could* be this:
>
> library(dplyr)
> library(tidyr)
> library(purrr)
>
> ex_dat <- c("FName: fname1", "Fval: Fval1.name1", "Fval: ", "FName:
> fname2", "Fval: Fval2.name2", "FName: fname3")
>
> data.frame(x = ex_dat) %>%
>   separate(x, c("F1", "F2"), sep = ": ") %>%
>   filter(F2 != "") %>%
>   group_by(F1) %>%
>   mutate(indx = row_number()) %>%
>   spread(F1, F2, fill = "") %>%
>   gather(F1, F2, FName, Fval) %>%
>   arrange(indx) %>%
>   mutate(x = paste(F1, F2, sep = ": ")) %>%
>   select(x) %>%
>   flatten_chr()
>
> It is not particularly nice or clever, but it gets the job done using
> R.
>
> HTH
> Ulrik
>
> On Thu, 13 Jul 2017 at 13:13 Vijayan Padmanabhan <v.padmanab...@itc.in
> >
> wrote:
>
> >
> > Dear R-help Group
> >
> >
> > Scenario 1:
> > I have a text file running to 1000 of lines...that
> > is like as follows:
> >
> > [922] "FieldName: Wk3PackSubMonth"
> >
> >  [923] "FieldValue: Apr"
> >
> >  [924] "FieldName: Wk3PackSubYear"
> >
> >  [925] "FieldValue: 2017"
> >
> >  [926] "FieldName: Wk3Code1"
> >
> >  [927] "FieldValue: "
> >
> >  [928] "FieldValue: K4"
> >
> >  [929] "FieldName: Wk3Code2"
> >
> >  [930] "FieldValue: "
> >
> >  [931] "FieldValue: Q49"
> >
> >
> > I want this to be programmatically corrected to
> > read as follows: (All consecutive lines starting
> > with FieldValue is cleaned to retain only one
> > line)
> >
> > [922] "FieldName: Wk3PackSubMonth"
> >
> >  [923] "FieldValue: Apr"
> >
> >  [924] "FieldName: Wk3PackSubYear"
> >
> >  [925] "FieldValue: 2017"
> >
> >  [926] "FieldName: Wk3Code1"
> >
> >  [927] "FieldValue: K4"
> >
> >  [928] "FieldName: Wk3Code2"
> >
> >  [929] "FieldValue: Q49"
> >
> > Scenario 2:
> > In the same file, in some instances, the lines
> > could be as follows: i

Re: [R] Help with R script

2017-07-13 Thread MacQueen, Don
Using Ulrik’s example data (and assuming I understand what is wanted), here is 
what I would do:

ex.dat <- c("FName: fname1", "Fval: Fval1.name1", "Fval: ", "FName: fname2", 
"Fval: Fval2.name2", "FName: fname3")
tst <- data.frame(x = ex.dat, stringsAsFactors=FALSE)

sp <- strsplit(tst$x, ':', fixed=TRUE)
chk <- unlist(lapply(sp, function(txt) txt[2] != ' '))
newtst <- tst[chk,,drop=FALSE]

This both assumes and requires that ALL of the rows are structured as in the 
example data in the original question.
For example:
  if any row is missing the “:”, it will fail.
  If the “:” is not followed by a space character it may fail (I have not 
checked)

-Don

-- 
Don MacQueen

Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062


On 7/13/17, 6:47 AM, "R-help on behalf of Ulrik Stervbo" 
<r-help-boun...@r-project.org on behalf of ulrik.ster...@gmail.com> wrote:

Hi Vijayan,

one way going about it *could* be this:

library(dplyr)
library(tidyr)
library(purrr)

ex_dat <- c("FName: fname1", "Fval: Fval1.name1", "Fval: ", "FName:
fname2", "Fval: Fval2.name2", "FName: fname3")

data.frame(x = ex_dat) %>%
  separate(x, c("F1", "F2"), sep = ": ") %>%
  filter(F2 != "") %>%
  group_by(F1) %>%
  mutate(indx = row_number()) %>%
  spread(F1, F2, fill = "") %>%
  gather(F1, F2, FName, Fval) %>%
  arrange(indx) %>%
  mutate(x = paste(F1, F2, sep = ": ")) %>%
  select(x) %>%
  flatten_chr()

It is not particularly nice or clever, but it gets the job done using R.

HTH
Ulrik

On Thu, 13 Jul 2017 at 13:13 Vijayan Padmanabhan <v.padmanab...@itc.in>
wrote:

>
> Dear R-help Group
>
>
> Scenario 1:
> I have a text file running to 1000 of lines...that
> is like as follows:
>
> [922] "FieldName: Wk3PackSubMonth"
>
>  [923] "FieldValue: Apr"
>
>  [924] "FieldName: Wk3PackSubYear"
>
>  [925] "FieldValue: 2017"
>
>  [926] "FieldName: Wk3Code1"
>
>  [927] "FieldValue: "
>
>  [928] "FieldValue: K4"
>
>  [929] "FieldName: Wk3Code2"
>
>  [930] "FieldValue: "
>
>  [931] "FieldValue: Q49"
>
>
> I want this to be programmatically corrected to
> read as follows: (All consecutive lines starting
> with FieldValue is cleaned to retain only one
> line)
>
> [922] "FieldName: Wk3PackSubMonth"
>
>  [923] "FieldValue: Apr"
>
>  [924] "FieldName: Wk3PackSubYear"
>
>  [925] "FieldValue: 2017"
>
>  [926] "FieldName: Wk3Code1"
>
>  [927] "FieldValue: K4"
>
>  [928] "FieldName: Wk3Code2"
>
>  [929] "FieldValue: Q49"
>
> Scenario 2:
> In the same file, in some instances, the lines
> could be as follows: in this case, wherever a line
> is beginning with FieldName and the subsequent
> line is not displaying a FieldValue, I would want
> to programmatically identify such lines and insert
> FieldValue (as blank).
>
> [941] "FieldName: Wk3Code6"
>
>  [942] "FieldValue: "
>
>  [943] "FieldName: Wk3Code7"
>
>  [944] "FieldValue: "
>
>  [945] "FieldName: Wk3PackWSColorStiffRemarkCode1"
>
>  [946] "FieldName: Wk3PackWSColorWrappRemarkCode1"
>
>  [947] "FieldName:
> Wk3PackWSDelamiStiffRemarkCode1"
>
>
> ie in the above, it should be replaced as
>
> [941] "FieldName: Wk3Code6"
>
>  [942] "FieldValue: "
>
>  [943] "FieldName: Wk3Code7"
>
>  [944] "FieldValue: "
>
>  [945] "FieldName: Wk3PackWSColorStiffRemarkCode1"
>  [946] "FieldValue: "
>
>  [947] "FieldName: Wk3PackWSColorWrappRemarkCode1"
>  [948] "FieldValue: "
>
>  [949] "FieldName:
> Wk3PackWSDelamiStiffRemarkCode1"
>  [950] "FieldValue: "
>
>
> Can anybod suggest how to acheive this in R?
>
> Thanks for your time.
> Regards
> VP
>
>
>
> Discla

Re: [R] Help with R script

2017-07-13 Thread Ulrik Stervbo
Hi Vijayan,

one way going about it *could* be this:

library(dplyr)
library(tidyr)
library(purrr)

ex_dat <- c("FName: fname1", "Fval: Fval1.name1", "Fval: ", "FName:
fname2", "Fval: Fval2.name2", "FName: fname3")

data.frame(x = ex_dat) %>%
  separate(x, c("F1", "F2"), sep = ": ") %>%
  filter(F2 != "") %>%
  group_by(F1) %>%
  mutate(indx = row_number()) %>%
  spread(F1, F2, fill = "") %>%
  gather(F1, F2, FName, Fval) %>%
  arrange(indx) %>%
  mutate(x = paste(F1, F2, sep = ": ")) %>%
  select(x) %>%
  flatten_chr()

It is not particularly nice or clever, but it gets the job done using R.

HTH
Ulrik

On Thu, 13 Jul 2017 at 13:13 Vijayan Padmanabhan <v.padmanab...@itc.in>
wrote:

>
> Dear R-help Group
>
>
> Scenario 1:
> I have a text file running to 1000 of lines...that
> is like as follows:
>
> [922] "FieldName: Wk3PackSubMonth"
>
>  [923] "FieldValue: Apr"
>
>  [924] "FieldName: Wk3PackSubYear"
>
>  [925] "FieldValue: 2017"
>
>  [926] "FieldName: Wk3Code1"
>
>  [927] "FieldValue: "
>
>  [928] "FieldValue: K4"
>
>  [929] "FieldName: Wk3Code2"
>
>  [930] "FieldValue: "
>
>  [931] "FieldValue: Q49"
>
>
> I want this to be programmatically corrected to
> read as follows: (All consecutive lines starting
> with FieldValue is cleaned to retain only one
> line)
>
> [922] "FieldName: Wk3PackSubMonth"
>
>  [923] "FieldValue: Apr"
>
>  [924] "FieldName: Wk3PackSubYear"
>
>  [925] "FieldValue: 2017"
>
>  [926] "FieldName: Wk3Code1"
>
>  [927] "FieldValue: K4"
>
>  [928] "FieldName: Wk3Code2"
>
>  [929] "FieldValue: Q49"
>
> Scenario 2:
> In the same file, in some instances, the lines
> could be as follows: in this case, wherever a line
> is beginning with FieldName and the subsequent
> line is not displaying a FieldValue, I would want
> to programmatically identify such lines and insert
> FieldValue (as blank).
>
> [941] "FieldName: Wk3Code6"
>
>  [942] "FieldValue: "
>
>  [943] "FieldName: Wk3Code7"
>
>  [944] "FieldValue: "
>
>  [945] "FieldName: Wk3PackWSColorStiffRemarkCode1"
>
>  [946] "FieldName: Wk3PackWSColorWrappRemarkCode1"
>
>  [947] "FieldName:
> Wk3PackWSDelamiStiffRemarkCode1"
>
>
> ie in the above, it should be replaced as
>
> [941] "FieldName: Wk3Code6"
>
>  [942] "FieldValue: "
>
>  [943] "FieldName: Wk3Code7"
>
>  [944] "FieldValue: "
>
>  [945] "FieldName: Wk3PackWSColorStiffRemarkCode1"
>  [946] "FieldValue: "
>
>  [947] "FieldName: Wk3PackWSColorWrappRemarkCode1"
>  [948] "FieldValue: "
>
>  [949] "FieldName:
> Wk3PackWSDelamiStiffRemarkCode1"
>  [950] "FieldValue: "
>
>
> Can anybod suggest how to acheive this in R?
>
> Thanks for your time.
> Regards
> VP
>
>
>
> Disclaimer:\ This Communication is for the exclusive use...{{dropped:8}}
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help with R script

2017-07-13 Thread Vijayan Padmanabhan

Dear R-help Group


Scenario 1:
I have a text file running to 1000 of lines...that
is like as follows:

[922] "FieldName: Wk3PackSubMonth"

 [923] "FieldValue: Apr"

 [924] "FieldName: Wk3PackSubYear"

 [925] "FieldValue: 2017"

 [926] "FieldName: Wk3Code1"

 [927] "FieldValue: "

 [928] "FieldValue: K4"

 [929] "FieldName: Wk3Code2"

 [930] "FieldValue: "

 [931] "FieldValue: Q49"


I want this to be programmatically corrected to
read as follows: (All consecutive lines starting
with FieldValue is cleaned to retain only one
line)

[922] "FieldName: Wk3PackSubMonth"

 [923] "FieldValue: Apr"

 [924] "FieldName: Wk3PackSubYear"

 [925] "FieldValue: 2017"

 [926] "FieldName: Wk3Code1"

 [927] "FieldValue: K4"

 [928] "FieldName: Wk3Code2"

 [929] "FieldValue: Q49"

Scenario 2:
In the same file, in some instances, the lines
could be as follows: in this case, wherever a line
is beginning with FieldName and the subsequent
line is not displaying a FieldValue, I would want
to programmatically identify such lines and insert
FieldValue (as blank).

[941] "FieldName: Wk3Code6"

 [942] "FieldValue: "

 [943] "FieldName: Wk3Code7"

 [944] "FieldValue: "

 [945] "FieldName: Wk3PackWSColorStiffRemarkCode1"

 [946] "FieldName: Wk3PackWSColorWrappRemarkCode1"

 [947] "FieldName:
Wk3PackWSDelamiStiffRemarkCode1"


ie in the above, it should be replaced as

[941] "FieldName: Wk3Code6"

 [942] "FieldValue: "

 [943] "FieldName: Wk3Code7"

 [944] "FieldValue: "

 [945] "FieldName: Wk3PackWSColorStiffRemarkCode1"
 [946] "FieldValue: "

 [947] "FieldName: Wk3PackWSColorWrappRemarkCode1"
 [948] "FieldValue: "

 [949] "FieldName:
Wk3PackWSDelamiStiffRemarkCode1"
 [950] "FieldValue: "


Can anybod suggest how to acheive this in R?

Thanks for your time.
Regards
VP



Disclaimer:\ This Communication is for the exclusive use...{{dropped:8}}

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] help regarding r-project

2017-06-08 Thread John Kane via R-help
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

 

On Thursday, June 8, 2017 6:57 AM, Michael Dewey <li...@dewey.myzen.co.uk> 
wrote:
 

 I do not think anyone is going to be able to help you unless you can 
provide a reproducible example with a clear account of what it dies and 
what you expected it to do.

On 08/06/2017 06:34, Sai Sathvick wrote:
> hello sir/ma'am,
>
>                        trying to build a small prototype of resume filter
>  but not able to get expected intercept values, could you please help
> regarding this project ASAP.
>
> to predict,  skills + experience =result
>

-- 
Michael
http://www.dewey.myzen.co.uk/home.html

______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


   
[[alternative HTML version deleted]]

______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: [R] help regarding r-project

2017-06-08 Thread Michael Dewey
I do not think anyone is going to be able to help you unless you can 
provide a reproducible example with a clear account of what it dies and 
what you expected it to do.


On 08/06/2017 06:34, Sai Sathvick wrote:

hello sir/ma'am,

trying to build a small prototype of resume filter
 but not able to get expected intercept values, could you please help
regarding this project ASAP.

to predict,  skills + experience =result



--
Michael
http://www.dewey.myzen.co.uk/home.html

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] help regarding r-project

2017-06-08 Thread Sai Sathvick
hello sir/ma'am,

trying to build a small prototype of resume filter
 but not able to get expected intercept values, could you please help
regarding this project ASAP.

to predict,  skills + experience =result

-- 
*With Regards,*
*C Sai Sathvick*
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help in R code

2017-05-25 Thread Jeff Newmiller
Read the Posting Guide. Assuming your question is not about homework or 
statistics, the answer is probably yes. After reading the the Posting Guide you 
will also know that this is a plain text email list so you will need to set 
your email program appropriately. You will also know that a minimal example 
including data is (almost always) needed, but you might want to read some help 
about what that actually looks like [1][2][3], since many attachment types are 
also not allowed on the list.

If this seems like a lot of work, keep in mind that we can't read your mind and 
you will eventually have to break your problem down this way anyway, and you 
might just figure out the answer yourself if you are thorough in writing your 
minimal example. 

[1] 
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

[2] http://adv-r.had.co.nz/Reproducibility.html

[3] https://cran.r-project.org/web/packages/reprex/index.html
-- 
Sent from my phone. Please excuse my brevity.

On May 25, 2017 5:55:41 AM PDT, "Peter Hänninen" <peter.hanni...@gmail.com> 
wrote:
>Hi! Is this the correct place to ask for some help with R code? I have
>some
>minor questions I would need to ask.
>
>Best regards,
>Peter
>
>   [[alternative HTML version deleted]]
>
>______
>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

[R] Help in R code

2017-05-25 Thread Peter Hänninen
Hi! Is this the correct place to ask for some help with R code? I have some
minor questions I would need to ask.

Best regards,
Peter

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help installing R-3.3.2

2017-03-06 Thread peter dalgaard
Try 3.3.3, it has

 INSTALLATION on a UNIX-ALIKE:

   * The configure check for the zlib version is now robust to
 versions longer than 5 characters, including 1.2.11.

-pd

> On 06 Mar 2017, at 16:12 , Adamo Dahmani <adamo.dahm...@gmail.com> wrote:
> 
> Hi,
> 
> I am trying to install R-3.3.2 in my user account. I have already installed
> all needed libraries.
> 
> I run this command :
> 
> ./configure 'LDFLAGS=-R$HOME/software/bzip2-1.0.6/
> -R$HOME/software/zlib-1.2.11 -L$HOME/software/bzip2-1.0.6
> -L$HOME/software/zlib-1.2.11 -L$HOME/software/xz-5.2.3/bin/lib/
> -R$HOME/software/xz-5.2.3/bin/lib
> -L$HOME/software/pcre-8.40/build/lib-R$HOME/software/pcre-8.40/build/lib'
> CFLAGS='-I$HOME/software/bzip2-1.0.6/ -I$HOME/software/zlib-1.2.11/
> -I/$HOME/software/xz-5.2.3/bin/include/
> -I$HOME/software/pcre-8.40/build/include' --without-recommended-packages
> 
> I am getting this error:
> 
> checking for XDR support... yes
> checking for inflateInit2_ in -lz... yes
> checking zlib.h usability... yes
> checking zlib.h presence... yes
> checking for zlib.h... yes
> checking if zlib version >= 1.2.5... no
> checking whether zlib support suffices... configure: error: zlib library
> and headers are required
> 
> Can you help?
> 
> Many Tanks,
> Mohamed
> 
>   [[alternative HTML version deleted]]
> 
> ______
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd@cbs.dk  Priv: pda...@gmail.com

______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help installing R-3.3.2

2017-03-06 Thread Adamo Dahmani
Hi,

I am trying to install R-3.3.2 in my user account. I have already installed
all needed libraries.

I run this command :

./configure 'LDFLAGS=-R$HOME/software/bzip2-1.0.6/
-R$HOME/software/zlib-1.2.11 -L$HOME/software/bzip2-1.0.6
-L$HOME/software/zlib-1.2.11 -L$HOME/software/xz-5.2.3/bin/lib/
-R$HOME/software/xz-5.2.3/bin/lib
-L$HOME/software/pcre-8.40/build/lib-R$HOME/software/pcre-8.40/build/lib'
CFLAGS='-I$HOME/software/bzip2-1.0.6/ -I$HOME/software/zlib-1.2.11/
-I/$HOME/software/xz-5.2.3/bin/include/
-I$HOME/software/pcre-8.40/build/include' --without-recommended-packages

I am getting this error:

checking for XDR support... yes
checking for inflateInit2_ in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking if zlib version >= 1.2.5... no
checking whether zlib support suffices... configure: error: zlib library
and headers are required

Can you help?

Many Tanks,
Mohamed

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R

2016-11-21 Thread MacQueen, Don
To go further with your teacher's code, I would start by finding out what
kind of object "map" is, in R terms. For example, can your teacher give
you the output from the commands:
  class(map)
  str(map)
?

Without that information, I don't think anyone here can give you effective
help.

Also, as one if the others mentioned, R-sig-geo would be a better place to
ask, when you come back with that information. (And mention up front that
this is not homework, to avoid getting that advice again. Folks will
appreciate it.)

As a general rule, loading images, such as a png file, may or may not
result in an object with correct map coordinates; it depends on the
incoming file.

You could also go back to the CRAN webpage, click on "Task Views" on the
left, then click on "Spatial". There is a LOT of material there. The first
two packages to look at, from my perspective, would be sp and rgdal
(especially if you're going to be doing a lot of serious spatial work in
R) but there are plenty of others that could be relevant for your
particular needs. See also the raster package if your starting point is
really going to be an image such as a png file.

-Don

-- 
Don MacQueen

Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062





On 11/19/16, 10:32 AM, "R-help on behalf of Jackson Hooten"
<r-help-boun...@r-project.org on behalf of jlhoo...@eckerd.edu> wrote:

>Hello R Help,
>
>I am fairly new to R and have been scouring the internet trying to find
>useful tips, tricks and advice with how to solve my problems with R. I
>finally was able to find you guys, and am now asking for your help. I have
>a number of different questions regarding R. My most pressing question is,
>how does one get a map of a very specific area into R? I've been following
>a tutorial that one of my teachers sent me and been following his code.
>However, every time I input this code I get a warning message:
>
>My teacher's code:
>> plot(map, col="dimgray", border=F, add=T)
>
>The Error code I get every time I input the above code:
>> Error in plot.window(...) : need finite 'ylim' values
>In addition: Warning messages:
>1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
>2: In min(x) : no non-missing arguments to min; returning Inf
>3: In max(x) : no non-missing arguments to max; returning -Inf
>4: In plot.window(...) : "border" is not a graphical parameter
>5: In plot.window(...) : "add" is not a graphical parameter
>
>So, what I think I figured out was that I didn't possess the "map" that my
>teacher had in his R program. So I went to try and figure out how to get
>my
>own map into my R session. I found this line of code to try and input a
>good Google Earth map I found that I need for my study. But, alas, this
>code didn't work either and I got more Error codes.
>
>The code I used:
>> img <-readPNG(system.file("img", "Seal_Island_Map.png", package="png"))
>
>The Error code I get every time I input the above code:
>> Error in readPNG(system.file("img", "Seal_Island_Map.png",
>package="png")) : unable to open
>
>
>For the life of me, I have not been able to find anything anywhere that
>can
>help me solve these problems. What am I doing wrong? Can you all help?
>Thank you and I hope to talk to you all soon.
>
>Sincerely,
>Jackson
>
>   [[alternative HTML version deleted]]
>
>__
>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R

2016-11-19 Thread Jackson Hooten
Rui Barradas, 

Thank you very much for your help! This isn't an actual homework assignment, 
it's an independent project that I'm conducting that my teacher was just giving 
me a tutorial to help me. Thank you again! 

Sincerely, 
Jackson 

Sent from my iPhone

> On Nov 19, 2016, at 3:33 PM, Rui Barradas <ruipbarra...@sapo.pt> wrote:
> 
> Hello,
> 
> First of all, there's a no homework policy in R-Help, but since it's the 
> first time you post I'll try to give some help.
> 
> Now, you are trying to call two functions in one statement, system.file and 
> readPNG. If you separate the calls, you will see that the call to system.file 
> is returning an empty string:
> 
> system.file("img", "Seal_Island_Map.png", package="png")
> [1] ""
> 
> You should then read the help page for function system.file. You do this by 
> typing at an R prompt
> 
> ?system.file
> 
> system.file is looking in directory 'img' for a file named 
> Seal_Island_Map.png but in that directory of package png there's just one 
> file, RLogo.png. So you have to ask your teacher where to find that file, and 
> what function does he use to display it [tip: it's not function plot()].
> 
> Hope this helps,
> 
> Rui Barradas
> 
> Em 19-11-2016 18:32, Jackson Hooten escreveu:
>> Hello R Help,
>> 
>> I am fairly new to R and have been scouring the internet trying to find
>> useful tips, tricks and advice with how to solve my problems with R. I
>> finally was able to find you guys, and am now asking for your help. I have
>> a number of different questions regarding R. My most pressing question is,
>> how does one get a map of a very specific area into R? I've been following
>> a tutorial that one of my teachers sent me and been following his code.
>> However, every time I input this code I get a warning message:
>> 
>> My teacher's code:
>>> plot(map, col="dimgray", border=F, add=T)
>> 
>> The Error code I get every time I input the above code:
>>> Error in plot.window(...) : need finite 'ylim' values
>> In addition: Warning messages:
>> 1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
>> 2: In min(x) : no non-missing arguments to min; returning Inf
>> 3: In max(x) : no non-missing arguments to max; returning -Inf
>> 4: In plot.window(...) : "border" is not a graphical parameter
>> 5: In plot.window(...) : "add" is not a graphical parameter
>> 
>> So, what I think I figured out was that I didn't possess the "map" that my
>> teacher had in his R program. So I went to try and figure out how to get my
>> own map into my R session. I found this line of code to try and input a
>> good Google Earth map I found that I need for my study. But, alas, this
>> code didn't work either and I got more Error codes.
>> 
>> The code I used:
>>> img <-readPNG(system.file("img", "Seal_Island_Map.png", package="png"))
>> 
>> The Error code I get every time I input the above code:
>>> Error in readPNG(system.file("img", "Seal_Island_Map.png",
>> package="png")) : unable to open
>> 
>> 
>> For the life of me, I have not been able to find anything anywhere that can
>> help me solve these problems. What am I doing wrong? Can you all help?
>> Thank you and I hope to talk to you all soon.
>> 
>> Sincerely,
>> Jackson
>> 
>>[[alternative HTML version deleted]]
>> 
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>> 

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R

2016-11-19 Thread Rui Barradas

Hello,

First of all, there's a no homework policy in R-Help, but since it's the 
first time you post I'll try to give some help.


Now, you are trying to call two functions in one statement, system.file 
and readPNG. If you separate the calls, you will see that the call to 
system.file is returning an empty string:


system.file("img", "Seal_Island_Map.png", package="png")
[1] ""

You should then read the help page for function system.file. You do this 
by typing at an R prompt


?system.file

system.file is looking in directory 'img' for a file named 
Seal_Island_Map.png but in that directory of package png there's just 
one file, RLogo.png. So you have to ask your teacher where to find that 
file, and what function does he use to display it [tip: it's not 
function plot()].


Hope this helps,

Rui Barradas

Em 19-11-2016 18:32, Jackson Hooten escreveu:

Hello R Help,

I am fairly new to R and have been scouring the internet trying to find
useful tips, tricks and advice with how to solve my problems with R. I
finally was able to find you guys, and am now asking for your help. I have
a number of different questions regarding R. My most pressing question is,
how does one get a map of a very specific area into R? I've been following
a tutorial that one of my teachers sent me and been following his code.
However, every time I input this code I get a warning message:

My teacher's code:

plot(map, col="dimgray", border=F, add=T)


The Error code I get every time I input the above code:

Error in plot.window(...) : need finite 'ylim' values

In addition: Warning messages:
1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
2: In min(x) : no non-missing arguments to min; returning Inf
3: In max(x) : no non-missing arguments to max; returning -Inf
4: In plot.window(...) : "border" is not a graphical parameter
5: In plot.window(...) : "add" is not a graphical parameter

So, what I think I figured out was that I didn't possess the "map" that my
teacher had in his R program. So I went to try and figure out how to get my
own map into my R session. I found this line of code to try and input a
good Google Earth map I found that I need for my study. But, alas, this
code didn't work either and I got more Error codes.

The code I used:

img <-readPNG(system.file("img", "Seal_Island_Map.png", package="png"))


The Error code I get every time I input the above code:

Error in readPNG(system.file("img", "Seal_Island_Map.png",

package="png")) : unable to open


For the life of me, I have not been able to find anything anywhere that can
help me solve these problems. What am I doing wrong? Can you all help?
Thank you and I hope to talk to you all soon.

Sincerely,
Jackson

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R

2016-11-19 Thread Duncan Murdoch

On 19/11/2016 1:32 PM, Jackson Hooten wrote:

Hello R Help,

I am fairly new to R and have been scouring the internet trying to find
useful tips, tricks and advice with how to solve my problems with R. I
finally was able to find you guys, and am now asking for your help.


You can find a fairly recently edited discussion of how to get help at

https://www.r-project.org/help.html




I have

a number of different questions regarding R. My most pressing question is,
how does one get a map of a very specific area into R? I've been following
a tutorial that one of my teachers sent me and been following his code.
However, every time I input this code I get a warning message:

My teacher's code:

plot(map, col="dimgray", border=F, add=T)


The Error code I get every time I input the above code:

Error in plot.window(...) : need finite 'ylim' values

In addition: Warning messages:
1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
2: In min(x) : no non-missing arguments to min; returning Inf
3: In max(x) : no non-missing arguments to max; returning -Inf
4: In plot.window(...) : "border" is not a graphical parameter
5: In plot.window(...) : "add" is not a graphical parameter

So, what I think I figured out was that I didn't possess the "map" that my
teacher had in his R program. So I went to try and figure out how to get my
own map into my R session. I found this line of code to try and input a
good Google Earth map I found that I need for my study. But, alas, this
code didn't work either and I got more Error codes.

The code I used:

img <-readPNG(system.file("img", "Seal_Island_Map.png", package="png"))


The Error code I get every time I input the above code:

Error in readPNG(system.file("img", "Seal_Island_Map.png",

package="png")) : unable to open


For the life of me, I have not been able to find anything anywhere that can
help me solve these problems. What am I doing wrong? Can you all help?
Thank you and I hope to talk to you all soon.


You need to tell R where the "Seal_Island_Map.png" file is sitting.  The 
"system.file(...)" call you used says it's a file in the "png" package, 
but it's not.  The easiest way to find a file is to use the 
file.choose() function to open a file selection dialog, e.g.


filename <- file.choose()
readPNG(filename)

Duncan Murdoch

______
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R

2016-11-19 Thread Jeff Newmiller
This question is a bit too vague for the R mailing lists.

For general advice on using this list,  read the Posting Guide linked in the 
footer of this and every post on this list. One key recommendation made there 
is to send plain text emails because html frequently corrupts your example code 
so we cannot run it. 

For suggestions about making clear examples... read [1] and/or [2]. This is 
critical.

For starting points on analyzing spatial data, look at [3]. Keep in mind that 
for many types of spatial analysis a bitmap image won't be enough, so you need 
to find vector representations of maps. Also note that there is a dedicated 
mailing list called R-sig-geo for discussing this kind of analysis.

[1] 
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

[2] http://adv-r.had.co.nz/Reproducibility.html

[3] https://cran.r-project.org/web/views/Spatial.html


-- 
Sent from my phone. Please excuse my brevity.

On November 19, 2016 10:32:46 AM PST, Jackson Hooten <jlhoo...@eckerd.edu> 
wrote:
>Hello R Help,
>
>I am fairly new to R and have been scouring the internet trying to find
>useful tips, tricks and advice with how to solve my problems with R. I
>finally was able to find you guys, and am now asking for your help. I
>have
>a number of different questions regarding R. My most pressing question
>is,
>how does one get a map of a very specific area into R? I've been
>following
>a tutorial that one of my teachers sent me and been following his code.
>However, every time I input this code I get a warning message:
>
>My teacher's code:
>> plot(map, col="dimgray", border=F, add=T)
>
>The Error code I get every time I input the above code:
>> Error in plot.window(...) : need finite 'ylim' values
>In addition: Warning messages:
>1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
>2: In min(x) : no non-missing arguments to min; returning Inf
>3: In max(x) : no non-missing arguments to max; returning -Inf
>4: In plot.window(...) : "border" is not a graphical parameter
>5: In plot.window(...) : "add" is not a graphical parameter
>
>So, what I think I figured out was that I didn't possess the "map" that
>my
>teacher had in his R program. So I went to try and figure out how to
>get my
>own map into my R session. I found this line of code to try and input a
>good Google Earth map I found that I need for my study. But, alas, this
>code didn't work either and I got more Error codes.
>
>The code I used:
>> img <-readPNG(system.file("img", "Seal_Island_Map.png",
>package="png"))
>
>The Error code I get every time I input the above code:
>> Error in readPNG(system.file("img", "Seal_Island_Map.png",
>package="png")) : unable to open
>
>
>For the life of me, I have not been able to find anything anywhere that
>can
>help me solve these problems. What am I doing wrong? Can you all help?
>Thank you and I hope to talk to you all soon.
>
>Sincerely,
>Jackson
>
>   [[alternative HTML version deleted]]
>
>__
>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R

2016-11-19 Thread Bert Gunter
If you haven't already done so, I strongly recommend that you stop
doing what you're doing until you first spend some time with an R
tutorial or two. You can find some good suggestions here:

https://www.rstudio.com/online-learning/#R

rseek.org is also a good resource for R queries; "plot maps" brought
up lots of relevant hits.


-- Bert


Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Sat, Nov 19, 2016 at 10:32 AM, Jackson Hooten <jlhoo...@eckerd.edu> wrote:
> Hello R Help,
>
> I am fairly new to R and have been scouring the internet trying to find
> useful tips, tricks and advice with how to solve my problems with R. I
> finally was able to find you guys, and am now asking for your help. I have
> a number of different questions regarding R. My most pressing question is,
> how does one get a map of a very specific area into R? I've been following
> a tutorial that one of my teachers sent me and been following his code.
> However, every time I input this code I get a warning message:
>
> My teacher's code:
>> plot(map, col="dimgray", border=F, add=T)
>
> The Error code I get every time I input the above code:
>> Error in plot.window(...) : need finite 'ylim' values
> In addition: Warning messages:
> 1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
> 2: In min(x) : no non-missing arguments to min; returning Inf
> 3: In max(x) : no non-missing arguments to max; returning -Inf
> 4: In plot.window(...) : "border" is not a graphical parameter
> 5: In plot.window(...) : "add" is not a graphical parameter
>
> So, what I think I figured out was that I didn't possess the "map" that my
> teacher had in his R program. So I went to try and figure out how to get my
> own map into my R session. I found this line of code to try and input a
> good Google Earth map I found that I need for my study. But, alas, this
> code didn't work either and I got more Error codes.
>
> The code I used:
>> img <-readPNG(system.file("img", "Seal_Island_Map.png", package="png"))
>
> The Error code I get every time I input the above code:
>> Error in readPNG(system.file("img", "Seal_Island_Map.png",
> package="png")) : unable to open
>
>
> For the life of me, I have not been able to find anything anywhere that can
> help me solve these problems. What am I doing wrong? Can you all help?
> Thank you and I hope to talk to you all soon.
>
> Sincerely,
> Jackson
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help with R

2016-11-19 Thread Jackson Hooten
Hello R Help,

I am fairly new to R and have been scouring the internet trying to find
useful tips, tricks and advice with how to solve my problems with R. I
finally was able to find you guys, and am now asking for your help. I have
a number of different questions regarding R. My most pressing question is,
how does one get a map of a very specific area into R? I've been following
a tutorial that one of my teachers sent me and been following his code.
However, every time I input this code I get a warning message:

My teacher's code:
> plot(map, col="dimgray", border=F, add=T)

The Error code I get every time I input the above code:
> Error in plot.window(...) : need finite 'ylim' values
In addition: Warning messages:
1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
2: In min(x) : no non-missing arguments to min; returning Inf
3: In max(x) : no non-missing arguments to max; returning -Inf
4: In plot.window(...) : "border" is not a graphical parameter
5: In plot.window(...) : "add" is not a graphical parameter

So, what I think I figured out was that I didn't possess the "map" that my
teacher had in his R program. So I went to try and figure out how to get my
own map into my R session. I found this line of code to try and input a
good Google Earth map I found that I need for my study. But, alas, this
code didn't work either and I got more Error codes.

The code I used:
> img <-readPNG(system.file("img", "Seal_Island_Map.png", package="png"))

The Error code I get every time I input the above code:
> Error in readPNG(system.file("img", "Seal_Island_Map.png",
package="png")) : unable to open


For the life of me, I have not been able to find anything anywhere that can
help me solve these problems. What am I doing wrong? Can you all help?
Thank you and I hope to talk to you all soon.

Sincerely,
Jackson

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] help with r package "trip"

2016-06-15 Thread Jim Lemon
Hi Alice,
Have you tried creating a vector of the start position (xpos[1],ypos[1]):

xstart<-rep(xpos[1],n)
ystart<-rep(ypos[1],n)
# where "n" is the number of subsequent positions in the trip
max(trackDistance(xstart,ystart,xpos[2:n],ypos[2:n],...))

may then give you the value of the longest distance from the start. I
don't have the trip package or I could see if you really need to
replicate the start positions.

JIm


On Wed, Jun 15, 2016 at 1:43 PM, Alice Domalik <adoma...@sfu.ca> wrote:
> Hi List,
>
> I'm relatively new to R, so apologies if my question is rather elementary.
> I'm working with some bird tracking data and I would like to calculate the 
> maximum distance traveled from the colony.
> For the maximum distance traveled, I was going to use the function 
> homedist(). However, when I try to use this function I get the following 
> error:
> Error: could not find function "homedist"
> Anyone know why I would get this error? I have been using other functions in 
> "trip" without an issue. Is there an alternative way I can calculate this?
>
> Thanks in advance for any help!
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] help with r package "trip"

2016-06-14 Thread Alice Domalik
Hi List, 

I'm relatively new to R, so apologies if my question is rather elementary. 
I'm working with some bird tracking data and I would like to calculate the 
maximum distance traveled from the colony. 
For the maximum distance traveled, I was going to use the function homedist(). 
However, when I try to use this function I get the following error: 
Error: could not find function "homedist" 
Anyone know why I would get this error? I have been using other functions in 
"trip" without an issue. Is there an alternative way I can calculate this? 

Thanks in advance for any help! 

[[alternative HTML version deleted]]

__________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help using R Sensitivity

2016-04-18 Thread jody.kelly
Hello,

I am currently using the sensitivity package standard regression coefficient in 
order to rank variable importance in a model. I am new to using R so there may 
be some obvious things I am unaware of, apologies in advance as I am still 
learning.

I am using the following which I have taken straight from the help guide.

# a 100-sample with X1 ~ U(0.5, 1.5)
# X2 ~ U(1.5, 4.5)
# X3 ~ U(4.5, 13.5)

library(boot)
n <- 100
X <- data.frame(X1 = runif(n, 0.5, 1.5),
X2 = runif(n, 1.5, 4.5),
X3 = runif(n, 4.5, 13.5))

# linear model : Y = X1 + X2 + X3

y <- with(X, X1 + X2 + X3)

# sensitivity analysis

x <- src(X, y, nboot = 100)


plot(x)
Print(x)

This gives me ranks of the variables I have defined between -1 - 1. However 
this is the part I am unsure of how to apply to my own model.
I hope some one can give me advice on how to do this based on my own model as 
follows:



Model type: building energy consumption model.
Model Input variables (X): parameters relating to the building (X1 = 1.5-3.5, 
X2 = 7-12, X3 = 0.5 - 3, X4 = 10-15)
Model output variables (Y): Monthly Gas and electricity energy consumption

The spread sheet is as follows:  No of simulations: 1-40, for each simulation a 
new combination of model inputs (X) is used, therefore each simulation output 
(Y) will be different.

The aim of this analysis based on the 40 simulations is to rank input variables 
(X1-X4) based on importance of 1-4 with one being the most influential 
parameter and 4 being the least. What these variables are ranked upon, is their 
effect on the output variable (Y) which is energy consumption. Two variables 
will primarily have an effect on gas energy usage, and two will have an effect 
primarily on electricity energy usage. The aim is to produce a graph with left 
Y axis showing rank importance 1-4, X axis showing months January to December 
and the Y axis right showing the input variables with plots at each month 
showing its rank.

The spread sheet titles are set up as below. There are 40 simulations with 
varying combinations of X1-X4. Below each X value (X1-4) will be the input 
parameter value. Each simulations Y value will also change due to the change in 
variable combinations.

  Variable combinations (X)Y
Simulation No.X1X2X3X4JanFebMarAprMayJunJulAugSepOctNovDec


Thanks for any help in advance, much appreciated.

Jody


This message is intended solely for the addressee and may contain confidential 
and/or legally privileged information. Any use, disclosure or reproduction 
without the sender’s explicit consent is unauthorised and may be unlawful. If 
you have received this message in error, please notify Northumbria University 
immediately and permanently delete it. Any views or opinions expressed in this 
message are solely those of the author and do not necessarily represent those 
of the University. The University cannot guarantee that this message or any 
attachment is virus free or has not been intercepted and/or amended.
__________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: [R] Help in R code

2016-03-07 Thread PIKAL Petr
Hi

Keep your reply to the list.

Hm. There is natural language processing section in Task View. Maybe you could 
use already developed instruments for processing text. I vaguely remember there 
was also some article in R journal about text mining.

And searching internet by

R text mining

gave me plenty of possible suggestions including e.g package tm.

First line of your code gave me an error
> s <- unlist(lapply(posText, function(x) { str_split(x, "\n") }))
Error in lapply(posText, function(x) { : object 'posText' not found

And again
you still fail to keep to the recommended way of asking questions

1.   Plain text, not HTML posts

2.   input and output data sent as result of dput(posText[selection])

3.   provide ***reproducible*** code
Instead of trying to persuade all of us to accept your way of mailing you shall 
comply to ours if you want any reasonable help.

Cheers
Petr



Petr Pikal

From: deepak aggarwal [mailto:talk4dee...@gmail.com]
Sent: Thursday, March 03, 2016 2:07 PM
To: PIKAL Petr
Subject: Re: [R] Help in R code


   I have a column A having sentences and column B have some words. I 
want to check the part of speech column B word belongs to sentence present in 
column A.
Currently I am able to get part of speech for a single sentence using following 
code:
I am trying to get part of speech corresponds to each sentence in text file. 
Please suggest code for this.


On Wed, Mar 2, 2016 at 3:35 PM, PIKAL Petr 
<petr.pi...@precheza.cz<mailto:petr.pi...@precheza.cz>> wrote:
Hi

AFAIK what you say now is quite different from what you have told before. You 
want to get rid of all sentences which lack vattrwords.

Maybe it can be done by charmatch
> test<-paste("AAA AAA", "BBB", "CCC CCC", sep=".")
> test
[1] "AAA AAA.BBB.CCC CCC"
>
> test2<-c("AAA", "CCC")
> test.s<-unlist(strsplit(test, "\\."))
> test.s[charmatch(test2, test.s)]
[1] "AAA AAA" "CCC CCC"

BTW, you still fail to keep to the recommended way of asking questions
Plain text, not HTML posts
input and output data sent as result of dput()
provide reproducible code with errors you encountered.

Cheers
Petr



From: deepak aggarwal 
[mailto:talk4dee...@gmail.com<mailto:talk4dee...@gmail.com>]
Sent: Wednesday, March 02, 2016 8:59 AM
To: PIKAL Petr
Cc: r-help@r-project.org<mailto:r-help@r-project.org>

Subject: Re: [R] Help in R code

Hi Petr,
#loading word to be matched
at_list <- read.delim(file='C:/**/All.txt', header=FALSE, 
stringsAsFactors=FALSE)
names(at_list) <- c('attr')
at_list$attr <- tolower(at_list$attr)

vattribute<-at_list$attr

#loading sentences to be checked
posText <- read.delim(file='C:/*/Sentenc.txt', header=FALSE, 
stringsAsFactors=FALSE)
posText <- unlist(lapply(posText, function(x) { str_split(x, "\n") }))

test<-vattribute

test1 <- unlist(strsplit(posText,split="\\."))
# test1 <- strsplit(posText,".",fixed=TRUE)[[1]]
#test2<- test1[match(test1,test)]
test2<-test1[grep(paste(test, collapse="|"),test1)]

score <- c(test,test2)


#add row
newrow <- c(test1, score)
final_scores <- rbind(newrow)
final_scores
result<-as.data.frame(final_scores)

write.table(result, "C:/**/otput.txt", sep="\t")
 On Wed, Mar 2, 2016 at 12:33 PM, PIKAL Petr 
<petr.pi...@precheza.cz<mailto:petr.pi...@precheza.cz>> wrote:
Well, so again, my first answer was maybe too elaborated.

0. Send your replies also to help list.
1. Do not post in HTML.
2. Send some data by using output from
dput(yourobject)
3. Prepare desired output and again show it by dput(yourresult)
I still do not understand your desired output. In first sequence you dropped 
words „He is“ and „he“, in second „word“ and „can be“

Did you check?
4. Check if

?strsplit together with ?"%in%" can be of some help.

test <- "he is smart and fast in his work"
> test
[1] "he is smart and fast in his work"
> unlist(strsplit(test, " "))
[1] "he""is""smart" "and"   "fast"  "in""his"   "work"

unlist(strsplit(test, " ")) %in% "smart"
[1] FALSE FALSE  TRUE FALSE FALSE FALSE FALSE FALSE
If the above does not work for you, you need to evaluate regular expressions.

See e.g.
?gsub

Cheers
Petr

From: deepak aggarwal 
[mailto:talk4dee...@gmail.com<mailto:talk4dee...@gmail.com>]
Sent: Tuesday, March 01, 2016 5:06 PM
To: PIKAL Petr
Subject: Re: [R] Help in R code


Sentence

Words

word string

1

he is a nice human being.he has great talent of singing

human,talent

a nice human being .,has great talent of singing

2

Word is having environmental issues which can be solved at local level nw

environmental,local

is ha

Re: [R] Help in R code

2016-03-01 Thread PIKAL Petr
Well, so again, my first answer was maybe too elaborated.

0. Send your replies also to help list.
1. Do not post in HTML.
2. Send some data by using output from
dput(yourobject)
3. Prepare desired output and again show it by dput(yourresult)

I still do not understand your desired output. In first sequence you dropped 
words „He is“ and „he“, in second „word“ and „can be“

Did you check?
4. Check if

?strsplit together with ?"%in%" can be of some help.

test <- "he is smart and fast in his work"
> test
[1] "he is smart and fast in his work"
> unlist(strsplit(test, " "))
[1] "he""is""smart" "and"   "fast"  "in""his"   "work"

unlist(strsplit(test, " ")) %in% "smart"
[1] FALSE FALSE  TRUE FALSE FALSE FALSE FALSE FALSE

If the above does not work for you, you need to evaluate regular expressions.

See e.g.
?gsub

Cheers
Petr

From: deepak aggarwal [mailto:talk4dee...@gmail.com]
Sent: Tuesday, March 01, 2016 5:06 PM
To: PIKAL Petr
Subject: Re: [R] Help in R code


Sentence

Words

word string

1

he is a nice human being.he has great talent of singing

human,talent

a nice human being .,has great talent of singing

2

Word is having environmental issues which can be solved at local level nw

environmental,local

is having environmental issues which,solved at local level nw


sentence column has 1000 sentences and words have some selected words already 
written
now i want r code using which i can get word string in such a way that first 
human is searched in sentence 1 and then 2 words before human and 2 words after 
human will be writen in word string next it will search word talent and add it 
to word string

so in nutsheel for every word in words column it will fetch 2 words before and 
2 words after where match is found.

Seeking your help on this.

Regards
Deepak

On Tue, Mar 1, 2016 at 8:41 PM, PIKAL Petr 
<petr.pi...@precheza.cz<mailto:petr.pi...@precheza.cz>> wrote:
Hi

See in line

> -Original Message-
> From: R-help 
> [mailto:r-help-boun...@r-project.org<mailto:r-help-boun...@r-project.org>] On 
> Behalf Of deepak
> aggarwal
> Sent: Tuesday, March 01, 2016 1:30 PM
> To: r-help@r-project.org<mailto:r-help@r-project.org>
> Subject: [R] Help in R code
>
> Hi ,
>
> Seeking your help in coding following requirement in R.
>
> Vector 1 has sentences for ex. vector 1="he is a nice human being","he
> is smart and fast in his work"
>
> vector 2 has keywords found in each sentence seperated by comma for
> ex. vector2 for vector 1 =nice,being vector 2 for vector 1 =smart,work
>
> I want output to be vector 3 which will show 2 words before and after
> where match is found
>
> vector 1   vector2vector 3
> he is a nice human being  nice,beingis a nice
> human,human being
> he is smart and fast in his work   smart,workhe is smart,in his
> work
>
> in all i want vector 3 to how 2 words before and aftr to each word of
> vector 2 from vector 1.
>
> really appriciate your quick help on this.

OK. Some very quick help:

1. Do not post in HTML, your mail is barely readable.
2. Send some data by using output from
dput(yourobject)
3. Instead of vaguely explaining what you want to do, prepare desired output 
and again show it by dput(yourresult)
4. Check if

?strsplit together with ?"%in%" can be of some help.

test <- "he is smart and fast in his work"
> test
[1] "he is smart and fast in his work"
> unlist(strsplit(test, " "))
[1] "he""is""smart" "and"   "fast"  "in"    "his"   "work"

unlist(strsplit(test, " ")) %in% "smart"
[1] FALSE FALSE  TRUE FALSE FALSE FALSE FALSE FALSE

Cheers
Petr

>
> Thanks & Regards
> Deepak
>
>   [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org<mailto:R-help@r-project.org> mailing list -- To 
> UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.


Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a jsou určeny 
pouze jeho adresátům.
Jestliže jste obdržel(a) tento e-mail omylem, informujte laskavě neprodleně 
jeho odesílatele. Obsah tohoto emailu i s přílohami a jeho kopie vymažte ze 
svého systému.
Nejste-li zamýšleným adresátem tohoto emailu, nejste oprávněni tento email 
jakkoliv užívat, rozšiřovat, kopírovat či zveřejňovat.
Odesílatel

Re: [R] Help in R code

2016-03-01 Thread Deepak Aggarwal
Hahaha this is not homework..i am just trying to explore r vs sas

Sent from my iPhone

> On 01-Mar-2016, at 9:36 PM, Bert Gunter <bgunter.4...@gmail.com> wrote:
> 
> ... but if this is homework (it looks like it) ask your teachers for
> help, as there is a no homework policy on this list.
> 
> Cheers,
> Bert
> 
> 
> Bert Gunter
> 
> "The trouble with having an open mind is that people keep coming along
> and sticking things into it."
> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
> 
> 
>> On Tue, Mar 1, 2016 at 4:30 AM, deepak aggarwal <talk4dee...@gmail.com> 
>> wrote:
>> Hi ,
>> 
>> Seeking your help in coding following requirement in R.
>> 
>> Vector 1 has sentences for ex. vector 1="he is a nice human being","he is
>> smart and fast in his work"
>> 
>> vector 2 has keywords found in each sentence seperated by comma
>> for  ex. vector2 for vector 1 =nice,being
>> vector 2 for vector 1 =smart,work
>> 
>> I want output to be vector 3 which will show 2 words before and after where
>> match is found
>> 
>> vector 1   vector2vector 3
>> he is a nice human being  nice,beingis a nice
>> human,human being
>> he is smart and fast in his work   smart,workhe is smart,in his work
>> 
>> in all i want vector 3 to how 2 words before and aftr to each word of
>> vector 2 from vector 1.
>> 
>> really appriciate your quick help on this.
>> 
>> Thanks & Regards
>> Deepak
>> 
>>[[alternative HTML version deleted]]
>> 
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help in R code

2016-03-01 Thread Bert Gunter
... but if this is homework (it looks like it) ask your teachers for
help, as there is a no homework policy on this list.

Cheers,
Bert


Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Tue, Mar 1, 2016 at 4:30 AM, deepak aggarwal <talk4dee...@gmail.com> wrote:
> Hi ,
>
> Seeking your help in coding following requirement in R.
>
> Vector 1 has sentences for ex. vector 1="he is a nice human being","he is
> smart and fast in his work"
>
> vector 2 has keywords found in each sentence seperated by comma
> for  ex. vector2 for vector 1 =nice,being
> vector 2 for vector 1 =smart,work
>
> I want output to be vector 3 which will show 2 words before and after where
> match is found
>
> vector 1   vector2vector 3
> he is a nice human being  nice,beingis a nice
> human,human being
> he is smart and fast in his work   smart,workhe is smart,in his work
>
> in all i want vector 3 to how 2 words before and aftr to each word of
> vector 2 from vector 1.
>
> really appriciate your quick help on this.
>
> Thanks & Regards
> Deepak
>
> [[alternative HTML version deleted]]
>
> ______
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help in R code

2016-03-01 Thread PIKAL Petr
Hi

See in line

> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of deepak
> aggarwal
> Sent: Tuesday, March 01, 2016 1:30 PM
> To: r-help@r-project.org
> Subject: [R] Help in R code
>
> Hi ,
>
> Seeking your help in coding following requirement in R.
>
> Vector 1 has sentences for ex. vector 1="he is a nice human being","he
> is smart and fast in his work"
>
> vector 2 has keywords found in each sentence seperated by comma for
> ex. vector2 for vector 1 =nice,being vector 2 for vector 1 =smart,work
>
> I want output to be vector 3 which will show 2 words before and after
> where match is found
>
> vector 1   vector2vector 3
> he is a nice human being  nice,beingis a nice
> human,human being
> he is smart and fast in his work   smart,workhe is smart,in his
> work
>
> in all i want vector 3 to how 2 words before and aftr to each word of
> vector 2 from vector 1.
>
> really appriciate your quick help on this.

OK. Some very quick help:

1. Do not post in HTML, your mail is barely readable.
2. Send some data by using output from
dput(yourobject)
3. Instead of vaguely explaining what you want to do, prepare desired output 
and again show it by dput(yourresult)
4. Check if

?strsplit together with ?"%in%" can be of some help.

test <- "he is smart and fast in his work"
> test
[1] "he is smart and fast in his work"
> unlist(strsplit(test, " "))
[1] "he""is""smart" "and"   "fast"  "in""his"   "work"

unlist(strsplit(test, " ")) %in% "smart"
[1] FALSE FALSE  TRUE FALSE FALSE FALSE FALSE FALSE

Cheers
Petr

>
> Thanks & Regards
> Deepak
>
>   [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.


Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a jsou určeny 
pouze jeho adresátům.
Jestliže jste obdržel(a) tento e-mail omylem, informujte laskavě neprodleně 
jeho odesílatele. Obsah tohoto emailu i s přílohami a jeho kopie vymažte ze 
svého systému.
Nejste-li zamýšleným adresátem tohoto emailu, nejste oprávněni tento email 
jakkoliv užívat, rozšiřovat, kopírovat či zveřejňovat.
Odesílatel e-mailu neodpovídá za eventuální škodu způsobenou modifikacemi či 
zpožděním přenosu e-mailu.

V případě, že je tento e-mail součástí obchodního jednání:
- vyhrazuje si odesílatel právo ukončit kdykoliv jednání o uzavření smlouvy, a 
to z jakéhokoliv důvodu i bez uvedení důvodu.
- a obsahuje-li nabídku, je adresát oprávněn nabídku bezodkladně přijmout; 
Odesílatel tohoto e-mailu (nabídky) vylučuje přijetí nabídky ze strany příjemce 
s dodatkem či odchylkou.
- trvá odesílatel na tom, že příslušná smlouva je uzavřena teprve výslovným 
dosažením shody na všech jejích náležitostech.
- odesílatel tohoto emailu informuje, že není oprávněn uzavírat za společnost 
žádné smlouvy s výjimkou případů, kdy k tomu byl písemně zmocněn nebo písemně 
pověřen a takové pověření nebo plná moc byly adresátovi tohoto emailu případně 
osobě, kterou adresát zastupuje, předloženy nebo jejich existence je adresátovi 
či osobě jím zastoupené známá.

This e-mail and any documents attached to it may be confidential and are 
intended only for its intended recipients.
If you received this e-mail by mistake, please immediately inform its sender. 
Delete the contents of this e-mail with all attachments and its copies from 
your system.
If you are not the intended recipient of this e-mail, you are not authorized to 
use, disseminate, copy or disclose this e-mail in any manner.
The sender of this e-mail shall not be liable for any possible damage caused by 
modifications of the e-mail or by delay with transfer of the email.

In case that this e-mail forms part of business dealings:
- the sender reserves the right to end negotiations about entering into a 
contract in any time, for any reason, and without stating any reasoning.
- if the e-mail contains an offer, the recipient is entitled to immediately 
accept such offer; The sender of this e-mail (offer) excludes any acceptance of 
the offer on the part of the recipient containing any amendment or variation.
- the sender insists on that the respective contract is concluded only upon an 
express mutual agreement on all its aspects.
- the sender of this e-mail informs that he/she is not authorized to enter into 
any contracts on behalf of the

[R] Help in R code

2016-03-01 Thread deepak aggarwal
Hi ,

Seeking your help in coding following requirement in R.

Vector 1 has sentences for ex. vector 1="he is a nice human being","he is
smart and fast in his work"

vector 2 has keywords found in each sentence seperated by comma
for  ex. vector2 for vector 1 =nice,being
vector 2 for vector 1 =smart,work

I want output to be vector 3 which will show 2 words before and after where
match is found

vector 1   vector2vector 3
he is a nice human being  nice,beingis a nice
human,human being
he is smart and fast in his work   smart,workhe is smart,in his work

in all i want vector 3 to how 2 words before and aftr to each word of
vector 2 from vector 1.

really appriciate your quick help on this.

Thanks & Regards
Deepak

[[alternative HTML version deleted]]

__________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Complete archives for MARC needed for r-devel, r-help and r-packages

2016-02-09 Thread David Winsemius

> On Feb 9, 2016, at 7:15 PM, Tae Wong <seotaewon...@gmail.com> wrote:
> 
> I need the archives for r-help from October 2007 to November 2013 in MARC [1].
> 
> The same goes for r-devel [2] who needs archives for July 2005 to
> November 2013 and r-packages [3] needing archives for August 2007 to
> December 2013.
> 

Appears you want to fill in the gap. The original is here:

https://stat.ethz.ch/pipermail/r-help/

You can find the r-devel and package archives by following links in the info 
pages.

https://stat.ethz.ch/mailman/listinfo/r-devel

https://stat.ethz.ch/mailman/listinfo/r-packages


> P.S.: I'm not subscribed to this mailing list.
> 
> [1] http://marc.info/?l=r-help
> [2] http://marc.info/?l=r-devel
> [3] http://marc.info/?l=r-packages
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius
Alameda, CA, USA

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Complete archives for MARC needed for r-devel, r-help and r-packages

2016-02-09 Thread Tae Wong
I need the archives for r-help from October 2007 to November 2013 in MARC [1].

The same goes for r-devel [2] who needs archives for July 2005 to
November 2013 and r-packages [3] needing archives for August 2007 to
December 2013.

P.S.: I'm not subscribed to this mailing list.

[1] http://marc.info/?l=r-help
[2] http://marc.info/?l=r-devel
[3] http://marc.info/?l=r-packages

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help on R Functionality Histogram

2015-05-29 Thread Shivi82
Hello Experts, 
I have couple of questions on the analysis I am creating.
1) How does R adopt to changes. The case I have here is that the excel I
have started initially had to be modified because the data I had was on
hourly basis ranging from 0 to 23 hours. After Changes 0 was modified to 24
in hours. Now do I need to recall this excel again in R using read.csv
syntax or is there another way to do so i.e. a kind of reload option
2) I am creating a histogram. I need on x axis 24 hours to be displayed
separately as 0,1,2, and thereon. However it only shows till 20 which makes
the look awkward. Also all l need to resize the labels and if possible
inside the bars. It used the below code, axis fonts have changed but labels
give an error with this code

Code:- hist(aaa$Hours,main=Hourly Weight,xlab = Time,breaks = 25,col =
yellow,ylim = c(0,9000),
 labels=TRUE, cex.axis=0.6,cex.label=0.6)

Kindly advice on the both the questions. Thanks. 






--
View this message in context: 
http://r.789695.n4.nabble.com/Help-on-R-Functionality-Histogram-tp4707887.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help on R Functionality Histogram

2015-05-29 Thread Shivi82
Hello Experts, 
I have couple of questions on the analysis I am creating.
1) How does R adopt to changes. The case I have here is that the excel I
have started initially had to be modified because the data I had was on
hourly basis ranging from 0 to 23 hours. After Changes 0 was modified to 24
in hours. Now do I need to recall this excel again in R using read.csv
syntax or is there another way to do so i.e. a kind of reload option
2) I am creating a histogram. I need on x axis 24 hours to be displayed
separately as 0,1,2, and thereon. However it only shows till 20 which makes
the look awkward. Also all l need to resize the labels and if possible
inside the bars. It used the below code, axis fonts have changed but labels
give an error with this code

Code:- hist(aaa$Hours,main=Hourly Weight,xlab = Time,breaks = 25,col =
yellow,ylim = c(0,9000),
 labels=TRUE, cex.axis=0.6,cex.label=0.6)

Kindly advice on the both the questions. Thanks. 

Histogram.png http://r.789695.n4.nabble.com/file/n4707886/Histogram.png  



--
View this message in context: 
http://r.789695.n4.nabble.com/Help-on-R-Functionality-Histogram-tp4707886.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help on R Functionality Histogram

2015-05-29 Thread Sarah Goslee
On Fri, May 29, 2015 at 7:53 AM, Shivi82 shivibha...@ymail.com wrote:
 Hello Experts,
 I have couple of questions on the analysis I am creating.
 1) How does R adopt to changes. The case I have here is that the excel I
 have started initially had to be modified because the data I had was on
 hourly basis ranging from 0 to 23 hours. After Changes 0 was modified to 24
 in hours. Now do I need to recall this excel again in R using read.csv
 syntax or is there another way to do so i.e. a kind of reload option

Using read.csv() is the reload option. R has no automatic interface to
external files.


 2) I am creating a histogram. I need on x axis 24 hours to be displayed
 separately as 0,1,2, and thereon. However it only shows till 20 which makes
 the look awkward. Also all l need to resize the labels and if possible
 inside the bars. It used the below code, axis fonts have changed but labels
 give an error with this code

 Code:- hist(aaa$Hours,main=Hourly Weight,xlab = Time,breaks = 25,col =
 yellow,ylim = c(0,9000),
  labels=TRUE, cex.axis=0.6,cex.label=0.6)

The most understandable approach is to break it down into chunks:
Create the histogram.
Add a custom axis.
Add custom labels.

# using fake data
aaa - data.frame(Hours = sample(1:24, 1, replace=TRUE))

aaa.hist - hist(aaa$Hours, main=Hourly Weight, xlab = Time,
breaks = seq(0, 24), col = yellow, ylim = c(0,9000), cex.axis=0.6,
xaxt=n)
axis(1, (0:23)+.5, 1:24, cex.axis=.6)
text((0:23)+.5, aaa.hist$counts-150, aaa.hist$counts, cex=.6)

Sarah

-- 
Sarah Goslee
http://www.functionaldiversity.org

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help on R Functionality Histogram

2015-05-29 Thread Shivi82
Thanks Sarah. This is magical. 
Thanks for explaining in such a length. 



--
View this message in context: 
http://r.789695.n4.nabble.com/Help-on-R-Functionality-Histogram-tp4707886p4707891.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help on R Functionality Histogram

2015-05-29 Thread Boris Steipe
Don't use Nabble when posting to the R-Help forum.

Responses inline.

On May 29, 2015, at 7:54 AM, Shivi82 shivibha...@ymail.com wrote:

 Hello Experts, 
 I have couple of questions on the analysis I am creating.
 1) How does R adopt to changes. The case I have here is that the excel I
 have started initially had to be modified because the data I had was on
 hourly basis ranging from 0 to 23 hours. After Changes 0 was modified to 24
 in hours. Now do I need to recall this excel again in R using read.csv
 syntax or is there another way to do so i.e. a kind of reload option

No. Reload the data by rerunning your script.


 2) I am creating a histogram. I need on x axis 24 hours to be displayed
 separately as 0,1,2, and thereon. However it only shows till 20 which makes
 the look awkward. Also all l need to resize the labels and if possible
 inside the bars. It used the below code, axis fonts have changed but labels
 give an error with this code
 
 Code:- hist(aaa$Hours,main=Hourly Weight,xlab = Time,breaks = 25,col =
 yellow,ylim = c(0,9000),
 labels=TRUE, cex.axis=0.6,cex.label=0.6)

The very understandable warning message you must have got with that call tells 
you that there is no such argument cex.label.

hist() calls plot.histogram() which internally calls text() to write the 
labels. text() has an argument cex, but even if you supply it to hist(), it 
is not passed to text() via the function body of plot.histogram(). You could 
modify plot.histogram but the more immediate solution is to set labels = FALSE, 
and explicitly use text() to write your labels. Try something like

x - hist(aaa$Hours,
 main=Hourly Weight,
 xlab = Time,
 breaks = 25,
 col = yellow,
 ylim = c(0,9000),
 labels=FALSE,
 cex.axis=0.6)
 
text(x$mids, x$counts * 1.05, labels = x$counts, cex=0.5)



B.


 
 Kindly advice on the both the questions. Thanks. 
 
 
 
 
 
 
 --
 View this message in context: 
 http://r.789695.n4.nabble.com/Help-on-R-Functionality-Histogram-tp4707887.html
 Sent from the R help mailing list archive at Nabble.com.
 
 __
 R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help on R Functionality Histogram

2015-05-29 Thread Shivi82
Thanks you Sarah. This was very impressive and really helped me out.




--
View this message in context: 
http://r.789695.n4.nabble.com/Help-on-R-Functionality-Histogram-tp4707886p4707949.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R solve

2014-09-22 Thread Berend Hasselman

On 22-09-2014, at 04:10, Lio, Yuhlong yuhlong@usd.edu wrote:

 
 I need someone to help with solution for a system of linear equations  A%*%x 
 =b, where A is the coefficient matrix and b is right hand-side constant 
 column.  
 
 My question is that is there any option in the qr.solve to get a non-negative 
 solution for x column, when more than one possible solution happens in the 
 system.


If you are referring to an underdetermined system of linear equations have a 
look here:

http://en.wikipedia.org/wiki/System_of_linear_equations

section Matrix solution.

Berend

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help with R solve

2014-09-21 Thread Lio, Yuhlong

I need someone to help with solution for a system of linear equations  A%*%x 
=b, where A is the coefficient matrix and b is right hand-side constant column. 
 

My question is that is there any option in the qr.solve to get a non-negative 
solution for x column, when more than one possible solution happens in the 
system.

Thanks,
Y.L. 
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R solve

2014-09-21 Thread Jeff Newmiller
This question is about linear algebra theory, or perhaps linear programming, 
not about R. There is no magic parameter to solve this for you... either there 
is a non-negative solution or there isn't.
---
Jeff NewmillerThe .   .  Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k
--- 
Sent from my phone. Please excuse my brevity.

On September 21, 2014 7:10:19 PM PDT, Lio, Yuhlong yuhlong@usd.edu 
wrote:

I need someone to help with solution for a system of linear equations 
A%*%x =b, where A is the coefficient matrix and b is right hand-side
constant column.  

My question is that is there any option in the qr.solve to get a
non-negative solution for x column, when more than one possible
solution happens in the system.

Thanks,
Y.L. 
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R package

2014-06-08 Thread Uwe Ligges



On 07.06.2014 23:34, Milan Bimali wrote:

Dear R Community,
   I am in process of developing an R package which in turn depends on a
package that is not available in CRAN but has to be downloaded from a web
source (as follows). Could someone guide me on how to include the package
listed in Depends of the Description file. I have the package installed
in my computer:

Source of Package:
source(“http://bioconductor.org/biocLite.R�)
biocLite(“Packagename�)
library(Packagename)



A user just need to set BioC as a default repository as in

setRepositories()

and then install.package(yourPackage) will also automatically install 
the dependencies from BioC.


Best,
Uwe Ligges




Thank you in advance,
Milan

[[alternative HTML version deleted]]



__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help with R package

2014-06-07 Thread Milan Bimali
Dear R Community,
  I am in process of developing an R package which in turn depends on a
package that is not available in CRAN but has to be downloaded from a web
source (as follows). Could someone guide me on how to include the package
listed in Depends of the Description file. I have the package installed
in my computer:

Source of Package:
source(“http://bioconductor.org/biocLite.R”)
biocLite(“Packagename”)
library(Packagename)

Thank you in advance,
Milan

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Can I find the number of subscribers to r-help and r SIG mailing lists?

2013-12-05 Thread Andrew Hoerner
Dear Folks--
Is there a reasonably straightforward way for me to find the number of
subscribers or distinct posters to the r-help list and the various r SIG
lists? Ideally I would like a time series from founding, but unadorned
current membership numbers would still be useful, as would founding dates
for active SIGs.

Peace, andrewH
-- 
J. Andrew Hoerner
Director, Sustainable Economics Program
Redefining Progress
(510) 507-4820

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Can I find the number of subscribers to r-help and r SIG mailing lists?

2013-12-05 Thread David Winsemius

On Dec 5, 2013, at 10:16 AM, Andrew Hoerner wrote:

 Dear Folks--
 Is there a reasonably straightforward way for me to find the number of
 subscribers

That's not easily accessed by any publicly avaiable method I know but I can 
give the current count:

7783 Non-digested Members of R-help:
7563 Digested Members of R-help:


 or distinct posters to the r-help list

Perhaps look at MarkMail or do some work with the various Archives.

 and the various r SIG
 lists? Ideally I would like a time series from founding, but unadorned
 current membership numbers would still be useful, as would founding dates
 for active SIGs.

Have you done any searching?  I believe earlier figures have been offered in 
prior postings and blogs about R and remember a recently published article 
cited here: How Social QA Sites are Changing Knowledge Sharing in Open Source 
Software Communities. 

You should send private inquiries to the moderators or owners of those lists. 
(You should not expect them to all be reading R-help.)

http://www.r-project.org/mail.html

 

There was recently a discussion about StackOverflow's impact. SO gives the 
number of its registered users that are following [r] = 5.3K.


 Peace, andrewH
 -- 
 J. Andrew Hoerner
 Director, Sustainable Economics Program
 Redefining Progress
 (510) 507-4820
 
   [[alternative HTML version 
 deleted]]__
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.

David Winsemius
Alameda, CA, USA

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help: concurrent R sessions for different settings of simulations

2013-09-29 Thread Chee Chen
Dear All, 
I have spent almost 2 days but did not succeed yet.

Problem description:  I have 3 parameters, p1, p2 and p3, for which p1 take 1 
of 5 possible distributions (e.g., normal, laplace), p2 takes 1 of 3 possible 
distributions, and p3 takes 1 of 5 possible distribution. These 3 parameters 
create 75 settings, and these 3 parameters are arguments of a function F; and  
F is part of simulation codes.  To summarize: different value of the ordered 
triple (p1,p2,p3) means different setting and this is the only difference in 
the simulation codes. 

Target to achieve: instead of loop through each of the 75 settings one after 
another, I would like to concurrently run all 75 settings on the cluster.

My attempts: via loops, I used Perl to create 75 files, each for a different 
triple (p1,p2,p3), and Perl uses system(R ..) to execute this setting once it 
is created. The Perl codes are submitted to cluster correctly. But when I 
looked into the log file, the cluster still executes it one setting after 
another setting. 

Request: any help is appreciated!  It is because of the loops of Perl that 
executes a setting once it is created?

Have a nice day!
Chee 
  
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help: concurrent R sessions for different settings of simulations

2013-09-29 Thread Ted Harding
[See at end]
On 29-Sep-2013 17:22:24 Chee Chen wrote:
 Dear All, 
 I have spent almost 2 days but did not succeed yet.
 
 Problem description:  I have 3 parameters, p1, p2 and p3, for which
 p1 take 1 of 5 possible distributions (e.g., normal, laplace),
 p2 takes 1 of 3 possible distributions, and p3 takes 1 of 5 possible
 distribution. These 3 parameters create 75 settings, and these 3
 parameters are arguments of a function F; and F is part of simulation
 codes. To summarize: different value of the ordered triple (p1,p2,p3)
 means different setting and this is the only difference in the
 simulation codes. 
 
 Target to achieve: instead of loop through each of the 75 settings
 one after another, I would like to concurrently run all 75 settings
 on the cluster.
 
 My attempts: via loops, I used Perl to create 75 files, each for a
 different triple (p1,p2,p3), and Perl uses system(R ..) to execute
 this setting once it is created. The Perl codes are submitted to
 cluster correctly. But when I looked into the log file, the cluster
 still executes it one setting after another setting. 
 
 Request: any help is appreciated!  It is because of the loops of Perl
 that executes a setting once it is created?
 
 Have a nice day!
 Chee

Just a simple comment (which does not cionsider the technicalities
of using Perl, using a cluster, etc.).

From your description, it looks as though the system waits for one
item in the loop to finish before it starts the next one.

If that is the case, and *if* you are using UNIX/Linux (or other
UNIX-like OS), then you could try appending   to each submitted
command. An outline exemplar:

  for( s in settings ){
system(R something depending on s )
  }

The   has the effect, in a UNIX command line, of detaching the
command from the executing program. So the program can continue to
run (and take as long as it likes) while the system command-shell
is immediately freed up for the next command.

Therefore, with the above exemplar, is there were say 75 settings,
then that loop would complete in a very short time, after which
you would have 75 copies of R executing simulations, and your
original R command-line would be available.

Just a suggestion (which may have missed the essential point of
your query, but worth a try ... ).

I have no idea how to achieve a similar effect in Windows ...

Ted.

-
E-Mail: (Ted Harding) ted.hard...@wlandres.net
Date: 29-Sep-2013  Time: 19:31:29
This message was sent by XFMail

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help: concurrent R sessions for different settings of simulations

2013-09-29 Thread Henrik Bengtsson
I strongly suggest to use the BatchJobs package
[http://cran.r-project.org/web/packages/BatchJobs] for this.  It is
easy to install and cross platform and does not rely on external
software such as perl.  It allows you develop your script running
sequentially/interactively on your local machine/laptop, the via *a
single configuration file* (./.BatchJobs.R) you can use the exact same
script to distribute the jobs to separate R sessions either on
multiple cores on the same machine or on a cluster (most common
cluster types are supported).  The learning curve is not that step -
as with most parallel computations you have to move away from using
for loops to using lapply() and then you're almost done.

/Henrik

On Sun, Sep 29, 2013 at 10:22 AM, Chee Chen chee.c...@yahoo.com wrote:
 Dear All,
 I have spent almost 2 days but did not succeed yet.

 Problem description:  I have 3 parameters, p1, p2 and p3, for which p1 take 1 
 of 5 possible distributions (e.g., normal, laplace), p2 takes 1 of 3 possible 
 distributions, and p3 takes 1 of 5 possible distribution. These 3 parameters 
 create 75 settings, and these 3 parameters are arguments of a function F; and 
  F is part of simulation codes.  To summarize: different value of the ordered 
 triple (p1,p2,p3) means different setting and this is the only difference in 
 the simulation codes.

 Target to achieve: instead of loop through each of the 75 settings one after 
 another, I would like to concurrently run all 75 settings on the cluster.

 My attempts: via loops, I used Perl to create 75 files, each for a different 
 triple (p1,p2,p3), and Perl uses system(R ..) to execute this setting once 
 it is created. The Perl codes are submitted to cluster correctly. But when I 
 looked into the log file, the cluster still executes it one setting after 
 another setting.

 Request: any help is appreciated!  It is because of the loops of Perl that 
 executes a setting once it is created?

 Have a nice day!
 Chee

 [[alternative HTML version deleted]]

 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] help f0r R

2013-08-07 Thread Rui Barradas

Hello,

Please send questions to R-Help, r-help@r-project.org.

As for your question, how have you imported the file, what command have 
you used?


Rui Barradas

Em 07-08-2013 11:59, waqas shafqat escreveu:

plz sir i have tried diallel analysis in r. i import the file and when
entered command,

data(fulldial)

Warning message:
In data(fulldial) : data set ‘fulldial’ not found
above massage received.plz guide me...
thanks



__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help with R loop for URL download from FRED to create US time series

2013-06-10 Thread arum
I am downloading time series data from FRED. I have a working download, but I
do not want to write out the download for all 50 states likes this:
 IDRGSP -
read.table('http://research.stlouisfed.org/fred2/data/IDRGSP.txt', skip=11,
header=TRUE)
IDRGSP$DATE - as.Date(IDRGSP$DATE, '%Y-%m-%d')
IDRGSP$SERIES - 'IDRGSP'
IDRGSP$DESC -  Real Total Gross Domestic Product by State for Idaho, Mil.
of, A, NSA, 2012-06-05

WYRGSP - read.table('http://research.stlouisfed.org/fred2/data/WYRGSP.txt',
skip=11, header=TRUE)
WYRGSP$DATE - as.Date(WYRGSP$DATE, '%Y-%m-%d')
WYRGSP$SERIES - 'WYRGSP'
WYRGSP$DESC -  Real Total Gross Domestic Product by State for Wyoming,
Mil. of, A, NSA, 2012-06-05
RGSP - rbind(IDRGSP, WYRGSP)

I want to loop but I can not get the paste to work correctly. I am trying
this:  Can someone help me figure out the loop so I can build a table for
all 50 states.
ab - c(state.abb)
base - 'http://research.stlouisfed.org/fred2/data/;
type - RGSP.txt', skip=11, header=TRUE;

tmp - NULL;
for (a in ab) {
  url - paste(base, a, type, sep=);

if (is.null(tmp))
tmp - read.table(url)
  else tmp - rbind(tmp, read.table(url))
}
tmp

thanks for your help




--
View this message in context: 
http://r.789695.n4.nabble.com/Help-with-R-loop-for-URL-download-from-FRED-to-create-US-time-series-tp4669209.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with R loop for URL download from FRED to create US time series

2013-06-10 Thread jim holtman
This should do it for you:


 base - http://research.stlouisfed.org/fred2/data/;

 files - lapply(state.abb, function(.state){
+ cat(.state, \n)
+ input - read.table(paste0(base, .state, RGSP.txt)
+ , skip = 11
+ , header = TRUE
+ , as.is = TRUE
+ )
+ input$DATE - as.Date(input$DATE, %Y-%m-%d)
+ input$SERIES - paste0(.state, RGSP)
+ input
+ })
AL
AK
AZ
AR
CA
CO
CT
DE
FL
GA
HI
ID
IL
IN
IA
KS
KY
LA
ME
MD
MA
MI
MN
MS
MO
MT
NE
NV
NH
NJ
NM
NY
NC
ND
OH
OK
OR
PA
RI
SC
SD
TN
TX
UT
VT
VA
WA
WV
WI
WY

 result - do.call(rbind, files)


 str(result)
'data.frame':   750 obs. of  3 variables:
 $ DATE  : Date, format: 1997-01-01 1998-01-01 1999-01-01
2000-01-01 ...
 $ VALUE : int  122541 126309 130898 132699 133888 137086 140020 146937
150968 153681 ...
 $ SERIES: chr  ALRGSP ALRGSP ALRGSP ALRGSP ...
 head(result,30)
 DATE  VALUE SERIES
1  1997-01-01 122541 ALRGSP
2  1998-01-01 126309 ALRGSP
3  1999-01-01 130898 ALRGSP
4  2000-01-01 132699 ALRGSP
5  2001-01-01 133888 ALRGSP
6  2002-01-01 137086 ALRGSP
7  2003-01-01 140020 ALRGSP
8  2004-01-01 146937 ALRGSP
9  2005-01-01 150968 ALRGSP
10 2006-01-01 153681 ALRGSP
11 2007-01-01 155388 ALRGSP
12 2008-01-01 155870 ALRGSP
13 2009-01-01 148074 ALRGSP
14 2010-01-01 151480 ALRGSP
15 2011-01-01 150330 ALRGSP
16 1997-01-01  37249 AKRGSP
17 1998-01-01  35341 AKRGSP
18 1999-01-01  34967 AKRGSP
19 2000-01-01  34192 AKRGSP
20 2001-01-01  35729 AKRGSP
21 2002-01-01  37111 AKRGSP
22 2003-01-01  36288 AKRGSP
23 2004-01-01  38179 AKRGSP
24 2005-01-01  37774 AKRGSP
25 2006-01-01  39836 AKRGSP
26 2007-01-01  40694 AKRGSP
27 2008-01-01  41039 AKRGSP
28 2009-01-01  44030 AKRGSP
29 2010-01-01  43591 AKRGSP
30 2011-01-01  44702 AKRGSP




On Mon, Jun 10, 2013 at 7:42 PM, arum arumk...@wrdf.org wrote:

 I am downloading time series data from FRED. I have a working download,
 but I
 do not want to write out the download for all 50 states likes this:
  IDRGSP -
 read.table('http://research.stlouisfed.org/fred2/data/IDRGSP.txt',
 skip=11,
 header=TRUE)
 IDRGSP$DATE - as.Date(IDRGSP$DATE, '%Y-%m-%d')
 IDRGSP$SERIES - 'IDRGSP'
 IDRGSP$DESC -  Real Total Gross Domestic Product by State for Idaho, Mil.
 of, A, NSA, 2012-06-05

 WYRGSP - read.table('http://research.stlouisfed.org/fred2/data/WYRGSP.txt
 ',
 skip=11, header=TRUE)
 WYRGSP$DATE - as.Date(WYRGSP$DATE, '%Y-%m-%d')
 WYRGSP$SERIES - 'WYRGSP'
 WYRGSP$DESC -  Real Total Gross Domestic Product by State for Wyoming,
 Mil. of, A, NSA, 2012-06-05
 RGSP - rbind(IDRGSP, WYRGSP)

 I want to loop but I can not get the paste to work correctly. I am trying
 this:  Can someone help me figure out the loop so I can build a table for
 all 50 states.
 ab - c(state.abb)
 base - 'http://research.stlouisfed.org/fred2/data/;
 type - RGSP.txt', skip=11, header=TRUE;

 tmp - NULL;
 for (a in ab) {
   url - paste(base, a, type, sep=);

 if (is.null(tmp))
 tmp - read.table(url)
   else tmp - rbind(tmp, read.table(url))
 }
 tmp

 thanks for your help




 --
 View this message in context:
 http://r.789695.n4.nabble.com/Help-with-R-loop-for-URL-download-from-FRED-to-create-US-time-series-tp4669209.html
 Sent from the R help mailing list archive at Nabble.com.

 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.




-- 
Jim Holtman
Data Munger Guru

What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] help with R CMD check --as-cran

2013-02-22 Thread Tao Wang
Hi Everyone!

This is my first time using R-help. I am trying to do R CMD check before 
uploading my package to CRAN.

R CMD check --as-cran my package folder.

However, it spits out this warning:

pdf is needed for checks on size reduction of PDFs

I searched online but found no clue to solve this problem. Can someone tell me 
what could be wrong with my package?

Thanks a lot!

Tao




UT Southwestern Medical Center
The future of medicine, today.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] help with R CMD check --as-cran

2013-02-22 Thread Joshua Wiley
Hi Tao,

I wonder if you are on Windows?  If so, make sure you have qpdf
installed, and the location is in your path.

Cheers,

Josh

On Fri, Feb 22, 2013 at 3:32 PM, Tao Wang tao.w...@utsouthwestern.edu wrote:
 Hi Everyone!

 This is my first time using R-help. I am trying to do R CMD check before 
 uploading my package to CRAN.

 R CMD check --as-cran my package folder.

 However, it spits out this warning:

 pdf is needed for checks on size reduction of PDFs

 I searched online but found no clue to solve this problem. Can someone tell 
 me what could be wrong with my package?

 Thanks a lot!

 Tao


 

 UT Southwestern Medical Center
 The future of medicine, today.

 [[alternative HTML version deleted]]

 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.



--
Joshua Wiley
Ph.D. Student, Health Psychology
Programmer Analyst II, Statistical Consulting Group
University of California, Los Angeles
https://joshuawiley.com/

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] help with R CMD check --as-cran

2013-02-22 Thread David Winsemius

On Feb 22, 2013, at 5:52 PM, Joshua Wiley wrote:

 Hi Tao,
 
 I wonder if you are on Windows?  If so, make sure you have qpdf
 installed, and the location is in your path.
 
 Cheers,
 
 Josh
 
 On Fri, Feb 22, 2013 at 3:32 PM, Tao Wang tao.w...@utsouthwestern.edu wrote:
 Hi Everyone!
 
 This is my first time using R-help. I am trying to do R CMD check before 
 uploading my package to CRAN.
 
 R CMD check --as-cran my package folder.
 
 However, it spits out this warning:
 
 pdf is needed for checks on size reduction of PDFs
 
 I searched online but found no clue to solve this problem. Can someone tell 
 me what could be wrong with my package?


I believe this was crossposted to StackOverflow where the questioner has later 
reported figuring out that warning was inaccurate but harmless.

-- 
David Winsemius
Alameda, CA, USA

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] r-help or r-devel ?

2012-11-05 Thread Christophe Genolini
Hi the list,

I have some basic questions about writing a package. On which list shall I 
post them? 
Theoretically, I am supposed to post them on r-devel, but all the questions on 
this list are very 
advance questions, not basic ones... So I don't know what to do.

Christophe

-- 
Christophe Genolini
Maître de conférences en bio-statistique
Vice président Communication interne et animation du campus
Université Paris Ouest Nanterre La Défense


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] r-help or r-devel ?

2012-11-05 Thread Marc Schwartz
On Nov 5, 2012, at 11:24 AM, Christophe Genolini cgeno...@u-paris10.fr wrote:

 Hi the list,
 
 I have some basic questions about writing a package. On which list shall I 
 post them? 
 Theoretically, I am supposed to post them on r-devel, but all the questions 
 on this list are very 
 advance questions, not basic ones... So I don't know what to do.
 
 Christophe



In general, queries pertaining to creating R packages should go to R-Devel, 
especially if it involves the use of C/C++/FORTRAN.

That being said, if your queries are basic, please be sure to read through 
Writing R Extensions:

  http://cran.r-project.org/doc/manuals/R-exts.pdf

and consider searching the list archives via:

  http://www.rseek.org

as there is a reasonable chance that your query has already been posted and 
answered in the past.

If you have already done those things, then post to R-Devel, but please do 
subscribe first:

  https://stat.ethz.ch/mailman/listinfo/r-devel

as it will save the R-Devel list moderators from having to manually approve 
each of your posts, therefore making your posting more expedient.

Thanks and regards,

Marc Schwartz

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] help in R

2012-10-18 Thread Berend Hasselman

On 18-10-2012, at 09:55, namrata mohapatra wrote:

 
 
 
 
 Hello Sir/Madam 
 
 I want to reverse the colour distribution . I want the lowest value of error 
 to be in blue and highest in red .
 

Please provide a reproducible example in the form of R code.

Berend

 With Regards 
 Namrata MohapatraRplot.pdf__
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


  1   2   3   >