datacamp / datacamp/rdocumentation-2.0
nrow() function doesn't work for vectors
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 301
- Forks
- 54
- Avg merge
- 16h 19m
- Merged PRs (30d)
- 1
Description
If a vector is used as the argument to the nrow() function, the function returns NULL.
Example:
vector <- c(1, 2, 3, 4, 5)
nrow(vector)
(expected = 5)
(actual = NULL)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied R example and reading the repository's documentation-related entry points for how function behavior is represented. Confirm the intended behavior for nrow() on vectors before identifying the relevant documentation or handling path; done means the documented or implemented behavior matches the project's decision and is covered by an appropriate check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100