Hi,I am a student,so I have a trouble to this problem.
I want to create a 8*2 matrix that save every loop answer.
right now I have
d1=matrix(1:8,4,2)
d2=matrix(10:17,4,2)
what should I do
thanks
Hi,
Welcome to the RStudio community!
First of all, I'd like to inform you that if your questions are school or homework related, you should always clearly state so and read your guidelines on the topic:
Can I ask questions from a course I am taking here?
General questions are always welcome!
Please do ask general questions about things like:
How to use R
How to use the RStudio IDE or RStudio Cloud
How to work with tidyverse packages
Where to find resources to help you learn or solve problems
Specific questions can be OK, if you follow these rules:
Never copy-paste instructions from an assignment (even for online courses).
Explicitly mention the course you are taking and use the #homework tag.
Ask your question as a reproducible example (reprex) , preferably prepared for posting using the reprex package .
Want to maximize your chances of getting the help you need? Keep readin…
Second, when asking a question here, it's best you create a reprex, where you generate the minimal code and data needed to recreate the issue you're having. You can find instructions how to build and share one here:
A minimal reproducible example consists of the following items:
A minimal dataset, necessary to reproduce the issue
The minimal runnable code necessary to reproduce the issue, which can be run
on the given dataset, and including the necessary information on the used packages.
Let's quickly go over each one of these with examples:
Minimal Dataset (Sample Data)
You need to provide a data frame that is small enough to be (reasonably) pasted on a post, but big enough to reproduce your issue.
Let's say, as an example, that you are working with the iris data frame
head(iris)
#> Sepal.Length Sepal.Width Petal.Length Petal.Width Species
#> 1 5.1 3.5 1.4 0.…
Kind regards,
PJ
system
Closed
November 6, 2019, 12:28pm
3
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.