Tim, do you know what you are talking about? If so, please do share sample code
so we can follow along. If you pick nine uniformly distributed variables (the
tenth is constrained) and reject sets that do not add to the desired sum then
only (1/10)^9 or so of the draws will not be rejected. This
My opinion is that you should use S3 unless you absolutely need some syntactic
sugar only offered by some other object system.
Note that in a majority of cases you want to transform one standard data
structure to another... tibble to tibble is the fashion for dplyr... and
functions can often do
a) Do be sure to read the Posting Guide... for example changes to contributed
packages is appropriate for communicating directly to the maintainer or via the
recommended forum for that contributed package. Also, you will avoid
mis-communication more reliably if you follow the guide recommendatio
The original question was about sample, a base R function. Dragging in
tidyverse along the way could be regarded as complicating the question
unnecessarily, but in some cases there can be undesirable or simply unexpected
interactions between functions drawn from different packages. Such
complic
4-converter/).
>
>Seems that decimal-to-float conversion has a bug on arm64. Note that I get the
>same result with
>
>> x <- -17725.33343267441
>
>so it's not specific to as.numeric().
>
>Best,
>Stephanie
>
>
>
>
>> On 9 Ma
https://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f
https://0.30004.com/
On March 9, 2025 10:12:47 AM PDT, Christofer Bogaso
wrote:
>Hi,
>
>I have below simple conversion
>
>> sprintf("%0.15f", as.numeric("-17725.33343267441"))
?tools::showNonASCII
On March 3, 2025 12:09:22 AM PST, Ivan Krylov via R-help
wrote:
>В Mon, 3 Mar 2025 13:21:31 +0530
>Christofer Bogaso пишет:
>
>> Is there any way to remove all possible "Unicode character" that may
>> be present in the array at once?
>
>Define a range of characters you cons
Why aren't you loading the package before you load the object that assumes the
relevant methods for that object are available?
On February 11, 2025 4:51:48 AM PST, H B via R-help
wrote:
>Dear all,
>
>I just stumbled on this behavior - not sure if this is expected:
>
>R version 4.4.2 (2024-10-31
I recommend making sure your code is built with functions and using the
debugger and breakpoints (e.g. [1]) to follow the flow of the code to lead you
to where your problem is.
If you are used to building thousand-line top-level scripts then you might not
welcome this suggestion, but in that yo
it has a default value the calling function shouldn't
care... unless it is also abusing
On January 6, 2025 5:15:59 PM PST, Bert Gunter wrote:
>Jeff:
>Would you care to offer an example of:
>
>"String literals are surprisingly simple alternatives that don't bite
It is a pretty tricky topic, but IMO Advanced R [1] steps you through it
systematically... you just have to be prepared to follow along in R with the
examples as you read it. In particular, the chapter on Functions goes through
this.
The subtleties of how base R gives you control over these top
searchers should rerun the analysis several times to provide a range or
>field of possible/probable results.
>
>-----Original Message-
>From: Jeff Newmiller
>Sent: Monday, December 30, 2024 7:52 PM
>To: r-help@r-project.org; Ebert,Timothy Aaron ; Erin Hodgess
>; r-help@r
While asking if you should document what you did and give credit where due
seems... unnecessary (of course you should) ... I believe we are beyond the
point where a paper alone can allow me to reproduce most relevant published
analyses. That is, including a link to a reproducible code repository
Posting Error. OP sent HTML email which by default includes a backup text
version with "helpful" marks where formatting was in the original, and the
mailing list deleted the HTML (per policy stated in the posting guide linked at
the bottom of every email) which effectively leaves the mailing li
This was documented in [1] forever ago. I would not miss it if a future version
of R chose to remove those variables.
[1] The R Inferno, 8.1.32
On December 13, 2024 11:21:13 AM PST, ivo welch wrote:
>isn't this still a little R buglet? I have overwritten T (even if my
>schuld [franconian], it
R is a programming language. If you program it to communicate, it will. Also,
it is designed to work with user-contributed packages of code... the process of
downloading the packages is communication, and the downloaded packages may
communicate if you invoke them (that is often why they are crea
Some people prefer SQL syntax. Also, SQL implementations are generally
intrinsically linked with persistent disk storage, so it works
straightforwardly with data sets larger than RAM. Finally, most implementations
support shared access to the data from multiple clients.
A long time ago in a com
Maybe ask on the HPC list? [1]
A general tip... you may be running out of memory. If at all possible you need
to make sure you extract the data subsets in the parent process, and limit the
amount of environment data passed into the child processes. That is, instead of
using an integer counter t
That is what the "summarise" function is designed to do (instead of mutate).
All of the calculations in a summarise have to aggregate all group rows down to
one value, but that is what you want in this case.
Please note that you are supposed to make your examples reproducible by
including your
Was wondering when this would be suggested. But the question was about getting
the final dataframe...
newdta <- olddta
newdta$FirstDay <- ave(newdata$date, newdata$ID, FUN = \(x) x[1L])
On November 27, 2024 11:13:49 AM PST, Rui Barradas wrote:
>Às 16:30 de 27/11/2024, Sorkin, John escreveu:
>>
Mostly yes. GPU computing is much less flexible than CPU computing. Sometimes a
small algorithmic adjustment such as Martin suggested is enough. Also, if you
divide your work into a small-ish number of chunks then you can benefit from
using the parallel package built into R.
That said, Google s
The rgeoda maintainer seems to be having difficulty keeping up with required
changes to be supported on CRAN. This may get corrected soon or never. There
are instructions for compiling it yourself at
https://geodacenter.github.io/rgeoda/ or you can contact the maintainer about
their plans for
ocess data than you need to read it in.
On November 8, 2024 6:08:16 PM PST, Val wrote:
>Hi Jeff,
>
>Memory was not an issue. The system only used 75% of the memory
>allocated for the job.
>
> I am trying to understand what "r read large file in chunks" is doing.
data was read. The problem is with processing.
>
>On Fri, Nov 8, 2024 at 7:30 PM Bert Gunter wrote:
>>
>> Is the problem reading the file in or processing it after it has been read
>> in?
>>
>> Bert
>>
>> On Fri, Nov 8, 2024 at 5:13 PM Jeff Newmille
Can you tell us what is wrong with the "chunked" package which comes up when
you Google "r read large file in chunks"?
On November 8, 2024 4:58:18 PM PST, Val wrote:
>Hi All,
>
>I am reading data file ( > 1B rows) and do some date formatting like
> dat=fread(mydatafile)
> dat$date1 <- a
A wind rose plot omits time information. Your request is simply not possible.
On October 30, 2024 3:48:03 AM PDT, javad bayat wrote:
>Dear all;
>I am searching for a way to extract wind direction and speed from a wind
>rose plot. I have a graph and I want to make a dataframe of 5 years with
>hou
e one time
>zone regardless of whether local or GMT were used.
>
>On Thu, Oct 10, 2024 at 11:17 AM Jan van der Laan wrote:
>>
>> Thanks.
>>
>> On 10/10/24 16:13, Jeff Newmiller wrote:
>> > POSIXt vectors do not support different time zones element-to-element.
POSIXt vectors do not support different time zones element-to-element.
If you want to keep track of timezones per element, you have to create a vector
of timestamps (I would recommend POSIXct using UTC) and a parallel vector of
timezone strings. How you manipulate these depends on your use cases
Even if this is not a homework question, it smells like one. If you read the
Posting Guide it warns you that homework is off-topic, so when you impose an
arbitrary constraint like "must use specific unrelated function" we feel like
you are either cheating or wasting our time, and it is up to you
I always use a user library on all platforms. The renv package takes this to
the next level and lets you setup per-project libraries.
To be reproducible a data analysis needs to use the same user packages, and
even different versions of R can give different results. It should be up to the
anal
... or a timezone string.
... or do what I usually do and use POSIXct for dates as well as times,
self-managing use of midnight local time for "dates".
On September 25, 2024 5:40:37 AM EDT, Ivan Krylov via R-help
wrote:
>24 сентября 2024 г. 17:10:13 GMT+03:00, Luca Brinkmann via R-help
> пише
7;t one to assume that it is big-endian data. But
in this case there is a BOM so your machine has a buggy decoder?
On September 7, 2024 2:43:24 PM PDT, Duncan Murdoch
wrote:
>On 2024-09-07 4:52 p.m., Jeff Newmiller via R-help wrote:
>> When you specify LE in the encoding type, you are lo
When you specify LE in the encoding type, you are logically telling the decoder
that you know the two-byte pairs are in little-endian order... which could
override whatever the byte-order-mark was indicating. If the BOM indicated
big-endian then the file decoding would break. If there is a BOM,
Add the
fileEncoding = "UTF-16"
argument to the read call.
For a human explanation of why this is going on I recommend [1]. For a more
R-related take, try [2].
For reference, I downloaded your file and used the "file" command line program
typically available on Linux (and possibly MacOSX)
atan(1i) -> 0 + Inf i
complex(1/5) -> 0.2 + 0i
atan(1i) -> (0 + Inf i) * (0.2 + 0i)
-> 0*0.2 + 0*0i + Inf i * 0.2 + Inf i * 0i
infinity times zero is undefined
-> 0 + 0i + Inf i + NaN * i^2
-> 0 + 0i + Inf i - NaN
-> NaN + Inf i
I am not sure how complex arithmetic could arrive at another answer.
Wouldn't that be because the sample is not being compared to a specific
distribution but rather to many possible distributions by MC? [1]
If you think that need not be the case, perhaps you can write your own test...
but then it will probably be answering a different question?
[1] https://en.m.
Use the ave function.
On August 29, 2024 2:29:16 PM PDT, Bert Gunter wrote:
>Petr et.al:
>
>I think using merge is a very nice idea! (note that the email omitted the
>last rows of the result, though your code of course produced them)
>
>The only minor problem is that the order of the rows in the
you say you asked elsewhere, but so many hits come up when I just search for
"unbalanced sample size" your justification for not following the posting guide
does not seem honest.
I also recall that various discussions of statistical power address this in
basic statistics.
On August 24, 2024 1
I think that the simplicity of setNames is hard to beat:
z |> setNames( c( "a", "foo" ) )
and if you are determined not to load dplyr then
column_rename <- function( DF, map ) {
on <- names( DF )
on[ match( map, on ) ] <- names( map )
names( DF ) <- on
DF
}
is more robust to column reor
Here is another way... for data analysis, the idiomatic result is usually more
useful, though for presentation in a final result the wide result might be
desired.
library(dplyr)
library(tidyr)
dat<-read.csv(text=
"Year, Sex,string
2002,F,15 xc Ab
2003,F,14
2004,M,18 xb 25 35 21
2005,M,13 25
200
If I follow your question, you want redundant aesthetics. Ggplot normally
notices correlated aesthetic mapping variables and merges the legends, so the
most likely answer is that your data are not fully correlated in all rows. I
have also seen this where data are drawn from different dataframes
There was a time when people pretty much ignored the distinction between MB and
MiB in computer applications, and using the binary version was usually assumed
because, well, this _is_ memory we are measuring. I think this is a leftover
from that time.
On July 1, 2024 6:33:43 AM PDT, "Sauer, Luk
I think you should reconsider your goal. Matrices must have all elements of the
same type, and in this case you seem to be trying to mix a number of something
(integer) with mean values (double). This would normally be stored together in
a data frame or separately in a vector for counts and a ma
The key points are that:
a) Date values have no idea what timezone means.
b) Sys.Date starts with local time and converts to Date, losing timezone info.
c) You try comparing a Date with a POSIXt time value, and the conversion from
Date to POSIXt _assumes UTC_. This is a problem for anyone not usi
r 'https://github.com': ''
>✖ Can't get user information for this token.
> The token may no longer be valid or perhaps it lacks the 'user' scope.
>Error in `gh()`:
>! GitHub API error (401): Bad credentials
>ℹ Read more at <https://docs.github.co
My guess is that this is related to you saving an expired Personal Access Token
in your global git options or credentials store? Git is perfectly capable of
using per-repo credentials... don't configure a credential in your global
configuration and it won't fall back on using it to access random
I would be more strong on this advice: learn to think in R, rather than
thinking in Python, when programming in R. R has atomic vectors... Python does
not (until you import a package that implements them). I find that while it is
possible to import R thinking into Python, Python programmers seem
Please run your sequence of R statements one at a time so you can tell where
the problem is. Only "run a script" after the code works one line at a time.
There are too many places where things can go wrong otherwise.
Is your file being read in properly? Is the filename correct? was the header
p
How do you integrate perpendicular to a plane if you don't have a concept of
3d? In that direction the plane is just a point.
Vectors in R do not have any concept of "n by 1"... they are like a string of
beads. When you take a column out of a matrix `a` using indexing b <- a[,j] the
resulting v
You have completely ignored mentioning what R contributed packages you may have
been using in "back when it worked". It is critical that you keep track of
which "library" statements are necessary to run your code, if any.
I searched for "R usemethod forecast" in Google and this [1] came up. Perh
What does "doesn't work" mean? What have you tried?
On May 20, 2024 6:36:58 AM PDT, Nick Wray wrote:
>Hello I have lots of folders of individual Scottish river catchments on my
>uni One Drive. Each folder is labelled with the river name eg "Tay" and
>they are all in a folder named "Scotland"
>I
While I certainly think using negative indices to denote element exclusion is a
cool feature, I think people wanting to use zero-based indexes probably are not
planning to use that feature. Python uses negative numbers to index from the
end, which is a completely different use of negative indexe
The parameters in a specific call to a function are stored in a special list
which is used to move/copy data from the calling environment into the
environment created for a particular function call.
UseMethod does not act like a normal function call... it does a kind of magic
substitution of th
Your original code with relative path would also work if you did not put the
leading slash.
On April 18, 2024 10:04:04 AM PDT, "SIBYLLE STÖCKLI via R-help"
wrote:
>Dear community
>Dear Ivan
>
>Thanks a lot. The code works now. Solution: direct and full path to the .tif
>files.
>I confused back
Fascinating. Or, well, not.
Failing to use a method signature that is compatible with the generic is a
no-no. So your bug seems to me to be outside the bounds of how R is supposed to
be used. So don't do that.
On April 17, 2024 4:25:38 PM PDT, "Boylan, Ross via R-help"
wrote:
>When a generic
I would guess your version of R is earlier than 4.1, when the built-in pipe was
introduced to the language
On March 28, 2024 6:43:05 PM PDT, Ogbos Okike wrote:
>Dear Rui,
>Thanks again for resolving this. I have already started using the version
>that works for me.
>
>But to clarify the second p
Your desire is not unusual among novices... but it is really not a good idea
for your function to be making those decisions. Look at how R does things:
The lm function prints nothing... it returns an object containing the result of
a linear regression. If you happen to call it directly from the
?complex
On March 25, 2024 12:23:43 AM PDT, Thomas K wrote:
>Needing a < , > comparison for imaginary numbers
>
>__
>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the post
No idea if the package below would work. This package is MSWindows only. Since
this was readily found using a search engine, you should have mentioned that
you already found this and why it didn't work for you when you posted.
https://cran.r-project.org/web/packages/KeyboardSimulator/readme/READ
To be fair, these replies no longer include the original question, which was
IMO really quite clear (if misguided), and was actually targeted at
understanding pre-allocation for better performance. Richard's suggestion to
store the along-the-way constructed vectors in a list and examine the leng
This really is all LaTeX errors, not R errors. Both examples complain that
pdftexcmds.sty is not installed. Most "sty" files are in LaTeX packages. Each
LaTeX distribution has its own way to install packages ... but the difficulty
is usually on the same order of difficulty as installing R packag
When you specify LE you are overriding any useful information that the BOM
could convey... see
https://softwareengineering.stackexchange.com/questions/370088/is-the-bom-optional-for-utf-16-and-utf-32.
?Encoding
On February 28, 2024 5:44:49 AM PST, "Ebert,Timothy Aaron"
wrote:
>Dear R-help,
>
Why anything but sweep?
The fundamental data type in Matlab is a matrix... they don't have vectors,
they have Nx1 matrices and 1xM matrices.
Vectors don't have any concept of "row" vs. "column". Straight division is
always elementwise with recycling as needed, and matrices are really vectors in
RTools is a set of command-line programs needed for compiling R and its
packages on Windows. You don't need it if your OS is not Windows.
In theory, users on Windows should not need to worry about compiling packages
to binary (zip) form, because CRAN compiles the source code for every package
t
Regarding 1 and 2, please read the Posting Guide mentioned at the bottom of
every R-help post. R does not equal statistics... and education about
statistics is way too ambitious to include in this mailing list that is about a
tool that happens to be useful for statisticians.
There are forums on
... and if the problem is networking, then you will likely need help from
someone who knows your local configuration. Employers often do things that
limit what R can do, and none of us are likely to know about those things.
On February 20, 2024 11:43:24 AM PST, stephen sefick wrote:
>Maybe I mi
I thought so too, but Google suggests there is at least one package on CRAN
with this symbol in it.
OP:
a) You should always mention which contributed package you are using. Most
references to this term online seem to be related to Python rather than R.
b) This seems like extremely specialized
Still OT... but here is my own (I think previously mentioned here) rant on
people thrashing about with log transformation and an all-too-common kludge to
deal with zeros mixed among small numbers...
https://gist.github.com/jdnewmil/99301a88de702ad2fcbaef33326b08b4
OP perhaps posting a link here
This sounds suspiciously like homework (which is off-topic... see the Posting
Guide), and you haven't indicated how you plan to encode your poker hands, and
most core features of other languages are possible in R so if you really
understand these other techniques and R then you should be able to
It would be nice to see what OP wanted to end up with, but the link contained
input data to experiment with.
The first problem is that if you are not interested in working with the whole
set of columns then you need to only give a data frame with the columns you
want to work with:
dta.wide <-
A raster is just a matrix of elevations. Each element of that matrix has a
horizontal area. If you subtract that elevation from a reference elevation and
zero out all negative values then you are left with a bunch of rectangular
parallelopipeds of varying height. Add those heights up and multipl
nt and the text at
>> 12, and the more complex the formatting the harder to deal with rows as
>> related to page size.
>>
>> Thankfully I do not think I will have to do this, so the question is for
>> theoretical interest on my part (at least for now).
>>
One of the most fundamental characteristics of R programming is the use of data
frames of column vectors, and one of the very first challenges I had as a
then-Perl-programmer was coming to grips with the fact that unknown-length CSV
files would be read completely into memory as rows and once the
Quarto is built on top of RMarkdown when R is used, so RMarkdown isn't going
anywhere soon. Don't spread unnecessary FUD.
Quarto is well-supported in VSCode, though.
And reply to the right branch of the thread... Bert is not in the thread below.
On November 29, 2023 10:29:03 AM PST, Eric Berger
No clue. Tip: R-devel is the mailing list for anything related to development
versions of R. Off-topic here.
On November 9, 2023 2:59:44 AM PST, "Iago Giné Vázquez"
wrote:
>Hi all,
>
>I downloaded R-devel as explicited in
>https://developer.r-project.org/SVNtips.html
>Then, I tried to install
I usually just use a regex to strip the colon.
On November 5, 2023 3:45:01 PM PST, Richard O'Keefe wrote:
>I have some data that includes timestamps like this:
>2017-02-28T13:35:00+03:00
>The documentation for strptime says that %z expects
>an offset like 0300. I don't see any way in the documen
Cbind is not a very good tool for adding columns to a data frame. Either use
explicit column referencing like
dt1$x <- new_data_vector
but you do have to make sure the new data vector has the same number of values
and in the same order as the other data in dt1. The transition from multiple
rec
as.data.frame is a _converter_, while data.frame is a _constructor_. Changing
the object contents is not what a conversion is for.
On October 28, 2023 11:39:22 AM PDT, Boris Steipe
wrote:
>Thanks Duncan and Avi!
>
>That you could use NULL in a matrix() dimnames = list(...) argument wasn't
>cl
I recommend cutting snippets out of your code by stopping the code at the point
of interest and using dput() to pull out "data as it is" before the troublesome
section and then using the reprex package to test that the snippet runs.
Either you will notice the problem on your own while taking thi
What makes sense in a math class is not necessarily the same as what makes
sense in a floating point analysis environment.
You lose a lot of significant digits when you add 1 to a floating point number
that is close to zero, and this implementation allows the user to avoid that
structural defic
Use any occurrence of one or more digits as a separator?
s <- c( "CCl3F", "Li4Al4H16", "CCl2CO2AlPO4SiO4Cl" )
strsplit( s, "\\d+" )
On October 18, 2023 7:59:01 AM PDT, Leonard Mada via R-help
wrote:
>Dear List members,
>
>What is the best way to test for numeric digits?
>
>suppressWarnings(as.
Then your data has extra data points... either duplicates or records with
timestamps not on 15min intervals.
On October 16, 2023 7:29:25 AM PDT, "ahmet varlı"
wrote:
>hello,
>
>because ı have data between these times and it has 177647 elements
>
>Gönderen: Marc
This question is not clear to me. What is it you hope to retrieve from the
device?
Note that the type of device in your example is system-dependent. The content
in a png() would be different than the content in a win.graph() device.
On October 15, 2023 8:04:00 AM PDT, Shu Fai Cheung
wrote:
>H
Pre-compute the per-interval answers and use findInterval to look up the
per-row answers...
dat <- read.table( text=
"Tract Pct Totpop
1 0.054000
2 0.033500
3 0.014500
4 0.124100
5 0.
What a strange question... ifelse returns a vector (all data in R is vectors...
some have length 1, but length zero is also possible, as are longer vectors)
that is exactly as long as the logical vector that you give it, filled with
elements from the respective positions in the vectors supplied
Ah, I accidentally replied only to you. I re-introduced the list here...
Maybe this [1] will help?
[1]
https://coolbutuseless.github.io/2021/11/04/custom-ggplot2-point-shapes-with-gggrid/
On October 8, 2023 1:04:23 AM PDT, Chris Evans wrote:
>
>On 07/10/2023 17:45, Jeff Newmiller wrote:
Not really an R question, but some processes are connected to interactive
terminals (where someone can type) and some are not (because they were created
and managed by another process). The system call creates a process and controls
all interactions with that process. You really should not be me
That list is _very_ low volume... most employers who would benefit from the
skills of an R user don't know that R exists.
On October 6, 2023 1:50:17 PM PDT, Fred Kwebiha wrote:
>Thanks Bert.
>
>I have Subscribed now to that list.
>
>*Best Regards,*
>
>*FRED KWEBIHA*
>*+256-782-746-154*
>
>
>On F
Doesn't the outcome of this suggestion still depend on which fonts and output
device you are using? ... and that is to some degree still system dependent...
On October 6, 2023 7:50:00 AM PDT, Rui Barradas wrote:
>Às 10:09 de 06/10/2023, Chris Evans via R-help escreveu:
>> The reason I am asking
Thank you for informing us. Jim was a remarkably patient helper of many lost R
analysts. His efforts will be missed.
On October 4, 2023 3:36:50 PM PDT, Jim Lemon wrote:
>Hello,
>I am very sad to let you know that my husband Jim died on 18th September. I
>apologise for not letting you know earlie
You never created any object in R called irisdataTest. Objects in the global
environment have names that are unrelated to the names of files on disk.
The load function modifies an environment to create a variable named as it was
named in the environment from which it was saved. Thus, you cannot
?cor
cor( M, t( M ) )
On September 23, 2023 7:56:29 AM PDT, tgs77m--- via R-help
wrote:
>Colleagues,
>
>I am trying to write a script for the Mantel Haenszel test.
>
>For the MH test, the test statistic is chi-square (MH) = (W-1) * r^2
>Where W = sum of the case weights. This is straight forw
This request sounds a lot like "do my work for me"... even like it might be
homework... both scenarios are disallowed here.
Also, you need to read the Posting Guide... not all attachments are allowed on
this mailing list, so even if you attached an image we did not get it. Go look
at the mailin
There is/was a discrepancy between versions in source form and in binary form
for that package on the CRAN server. (The server that compiles binaries for
MacOS has been stuck recently.) You declined (automatically or explicitly) to
upgrade from source. This meant you kept an out-of-date binary v
R is not RStudio. RStudio is not R.
RStudio helps you work with R, but to do so it "types" in some commands behind
the scenes. I suspect those errors are because you have a pairing of versions
of RStudio with a version of R that the RStudio team did not test.
Someone here might be able to help,
Leonard... the reason roxygen exists is to allow markup in source files to be
used to automatically generate the numerous files required by standard R
packages as documented in Writing R Extensions.
If your goal is to not use source files this way then the solution is to not
use roxygen at all.
Jim
Yes that is helpful. Everything goes inside the function
Jeff
-Original Message-
From: Jim Lemon
Sent: Wednesday, August 30, 2023 10:54 PM
To: Jeff Reichman
Cc: r-help@r-project.org
Subject: Re: [R] How to create an R input
HI Jeff,
This might give you a start.
add_stuff
`add_five`
add_five <- function(x) {
# Add 5 to the input value
x + 5
}
readline(prompt = "Enter a number: ")
Jeff
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and mo
TL:DR there are at least three maybe four ways to address this depending on
what you plan to do.
I usually adjust PATH to add Rtools using .Rprofile. But if you do that then if
you want to use the command line to invoke R then you need to set the PATH
separately when you start the shell. For th
1. R is open source software. You are welcome to review the source code of the
R interpreter for handling of PII. No warranty is offered by the (volunteer)
developers of R.
2. R software is a programming interpreter, which by definition allows for a
wide range of behaviours. Users of R frequen
1 - 100 of 2527 matches
Mail list logo